BGF-YOLO icon indicating copy to clipboard operation
BGF-YOLO copied to clipboard

no module found

Open Ham-png opened this issue 2 years ago • 6 comments

ModuleNotFoundError: No module named 'ultralytics.yolo'

Ham-png avatar Mar 24 '24 17:03 Ham-png

Moreover,

File "/home/ubuntu/NoFileReplication/root/BGF-YOLO-1.1/nn/tasks.py", line 209, in init self.model, self.save = parse_model(deepcopy(self.yaml), ch=ch, verbose=verbose) # model, savelist File "/home/ubuntu/NoFileReplication/root/BGF-YOLO-1.1/nn/tasks.py", line 560, in parse_model elif m in (Detect, Segment, Pose, RTDETRDecoder): NameError: name 'Segment' is not defined

Ham-png avatar Mar 24 '24 17:03 Ham-png

Thanks for pointing issues out. I've fixed the bugs you mentioned.

mkang315 avatar Mar 25 '24 12:03 mkang315

File "/home/ubuntu/SomethingNew/BGF-YOLO-1.2/nn/tasks.py", line 560, in parse_model elif m in (Detect, Segment, Pose, RTDETRDecoder): NameError: name 'Pose' is not defined

I'm also going to guess that RTDETRDecoder won't be defined either.

Ham-png avatar Mar 27 '24 14:03 Ham-png

To give some context, I am changing all the paths to absolute imports and running python -m yolo.bgf.detect.train

Ham-png avatar Mar 27 '24 14:03 Ham-png

File "/home/ubuntu/SomethingNew/BGF-YOLO-1.2/nn/tasks.py", line 560, in parse_model elif m in (Detect, Segment, Pose, RTDETRDecoder): NameError: name 'Pose' is not defined

I'm also going to guess that RTDETRDecoder won't be defined either.

Thank you very much! Some packages were omitted when changing the directories from the original YOLOv8 code.

mkang315 avatar Mar 30 '24 09:03 mkang315

To give some context, I am changing all the paths to absolute imports and running python -m yolo.bgf.detect.train

There were not bugs if not changing the original directory path of ultralytics. Thank you for your understanding.

mkang315 avatar Mar 30 '24 09:03 mkang315