AttributeError: 'IterableSimpleNamespace' object has no attribute 'parent'. This may be caused by a modified or out of date ultralytics
mmcuavqgc opened this issue · comments
Hello, I encountered this problem when running;
(yolov8) F:\ultralytics>python .\ultralytics\yolo\v8\detect\predict_deepsort.py model=yolov8l.pt source="test3.mp4" show=True
Traceback (most recent call last):
File "F:\ultralytics\ultralytics\yolo\v8\detect\predict_deepsort.py", line 308, in
@hydra.main(version_base=None, config_path=str(DEFAULT_CFG.parent), config_name=DEFAULT_CFG.name)
File "D:\Users\liush\Anaconda3\envs\yolov8\lib\site-packages\ultralytics\yolo\utils_init_.py", line 118, in getattr
raise AttributeError(f"""
AttributeError:
'IterableSimpleNamespace' object has no attribute 'parent'. This may be caused by a modified or out of date ultralytics
'default.yaml' file.
Please update your code with 'pip install -U ultralytics' and if necessary replace
D:\Users\liush\Anaconda3\envs\yolov8\Lib\site-packages\ultralytics\yolo\cfg\default.yaml with the latest version from
https://github.com/ultralytics/ultralytics/blob/main/ultralytics/yolo/cfg/default.yaml
Please follow the instructions in this video
https://www.youtube.com/watch?v=nkptX_vXJKo
And then run
Thanks
Please follow the instructions in this video https://www.youtube.com/watch?v=nkptX_vXJKo And then run Thanks
ok,i will try
Please follow the instructions in this video https://www.youtube.com/watch?v=nkptX_vXJKo And then run Thanks
ok,i will try
There are still problems。like the problems 5;#5
(yolov8) F:\YOLOv8-DeepSORT\ultralytics\yolo\v8\detect>python predict.py model=yolov8l.pt source="test3.mp4" show=True
Traceback (most recent call last):
File "F:\YOLOv8-DeepSORT\ultralytics\yolo\v8\detect\predict.py", line 14, in
from ultralytics.yolo.utils import DEFAULT_CONFIG, ROOT, ops
ImportError: cannot import name 'DEFAULT_CONFIG' from '
Please follow the instructions in this video https://www.youtube.com/watch?v=nkptX_vXJKo And then run Thanks
ok,i will try
There are still problems。like the problems 5;#5
(yolov8) F:\YOLOv8-DeepSORT\ultralytics\yolo\v8\detect>python predict.py model=yolov8l.pt source="test3.mp4" show=True Traceback (most recent call last): File "F:\YOLOv8-DeepSORT\ultralytics\yolo\v8\detect\predict.py", line 14, in from ultralytics.yolo.utils import DEFAULT_CONFIG, ROOT, ops ImportError: cannot import name 'DEFAULT_CONFIG' from '
my ultralytics version is ultralytics-8.0.49
Please follow the instructions in this video https://www.youtube.com/watch?v=nkptX_vXJKo And then run Thanks
ok,i will try
There are still problems。like the problems 5;#5
(yolov8) F:\YOLOv8-DeepSORT\ultralytics\yolo\v8\detect>python predict.py model=yolov8l.pt source="test3.mp4" show=True Traceback (most recent call last): File "F:\YOLOv8-DeepSORT\ultralytics\yolo\v8\detect\predict.py", line 14, in from ultralytics.yolo.utils import DEFAULT_CONFIG, ROOT, ops ImportError: cannot import name 'DEFAULT_CONFIG' from 'my ultralytics version is ultralytics-8.0.49
Please follow the instructions in this video https://www.youtube.com/watch?v=nkptX_vXJKo And then run Thanks
ok,i will try
There are still problems。like the problems 5;#5
(yolov8) F:\YOLOv8-DeepSORT\ultralytics\yolo\v8\detect>python predict.py model=yolov8l.pt source="test3.mp4" show=True Traceback (most recent call last): File "F:\YOLOv8-DeepSORT\ultralytics\yolo\v8\detect\predict.py", line 14, in from ultralytics.yolo.utils import DEFAULT_CONFIG, ROOT, ops ImportError: cannot import name 'DEFAULT_CONFIG' from 'my ultralytics version is ultralytics-8.0.49
I replaced the version of ultralytics and it can work normally. I wonder if you can update the project's ultralytics to the latest version.
Anaconda3\envs\yolov8\Lib\site-packages\ultralytics