RizwanMunawar / yolov8-object-tracking

YOLOv8 Object Tracking Using PyTorch, OpenCV and Ultralytics
GNU Affero General Public License v3.0
281 stars 49 forks source link

error using tracking #15

Open moahaimen opened 1 year ago

moahaimen commented 1 year ago

hi i use CoLab, after doing installation instructions, when i reached this line !python /content/yolov8-object-tracking/yolo/v8/detect/detect_and_trk.py model=yolov8s.pt source="test.mp4" show=True

this error appear Traceback (most recent call last): File "/content/yolov8-object-tracking/yolo/v8/detect/detect_and_trk.py", line 1, in import hydra ModuleNotFoundError: No module named 'hydra' so i pip installed it , but then Traceback (most recent call last): File "/content/yolov8-object-tracking/yolo/v8/detect/detect_and_trk.py", line 7, in from ultralytics.yolo.utils import DEFAULT_CONFIG, ROOT, ops ImportError: cannot import name 'DEFAULT_CONFIG' from 'ultralytics.yolo.utils' (/usr/local/lib/python3.10/dist-packages/ultralytics/yolo/utils/init.py) appeared

RizwanMunawar commented 1 year ago

@moahaimen! you are using the latest ultralytics package, please install the ultralytics package with mentioned command and it will work.

''' pip install ultralytics==8.0.0 '''