MuhammadMoinFaisal / YOLOv8_Segmentation_DeepSORT_Object_Tracking

YOLOv8 Segmentation with DeepSORT Object Tracking (ID + Trails)
249 stars 64 forks source link

ModuleNotFoundError: No module named 'ultralytics.yolo' #12

Open andysingal opened 1 year ago

andysingal commented 1 year ago
python predict.py model=yolov8x-seg.pt source="test3.mp4"
Traceback (most recent call last):
  File "/Users/ankushsingal/Desktop/yolov8/ObjectTrackingsYOLOv8/YOLOv8-DeepSORT-Object-Tracking/ultralytics/yolo/v8/detect/predict.py", line 13, in <module>
    from ultralytics.yolo.engine.predictor import BasePredictor
ModuleNotFoundError: No module named 'ultralytics.yolo'
SH9959 commented 1 year ago

You can try to add the absolute path in the beginning of the file 'predict.py' like this: ultralytics_path = "D:\YOLOv8-DeepSORT-Object-Tracking" sys.path.append(ultralytics_path)