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'
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)