cannot assign module before Module.__init__() call #3
Unanswered
promaprogga
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
!pip install ultralyticsplus==0.0.23 ultralytics==8.0.21
from ultralyticsplus import YOLO, render_result
import os
model = YOLO('keremberke/yolov8m-table-extraction')
this is my code and i am getting this error:
AttributeError Traceback (most recent call last)
in <cell line: 4>()
2 import os
3
----> 4 model = YOLO('keremberke/yolov8m-table-extraction')
5
6 # model.overrides['conf'] = 0.25
2 frames
/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py in setattr(self, name, value)
1641 if isinstance(value, Module):
1642 if modules is None:
-> 1643 raise AttributeError(
1644 "cannot assign module before Module.init() call")
1645 remove_from(self.dict, self._parameters, self._buffers, self._non_persistent_buffers_set)
AttributeError: cannot assign module before Module.init() call
why this issue arrived? last day it worked fine.
Beta Was this translation helpful? Give feedback.
All reactions