YOLOv8_Segmentation_DeepSORT_Object_Tracking
YOLOv8_Segmentation_DeepSORT_Object_Tracking copied to clipboard
Traffic Counting using YOLOv8 and DeepSORT Object Tracking -- cannot import name 'DEFAULT_CONFIG' from 'ultralytics.utils'
python predict.py model=yolov8l.pt source="test3.mp4"
ERROR:
/Users/ankushsingal/miniconda3/envs/book_env/lib/python3.8/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: dlopen(/Users/ankushsingal/miniconda3/envs/book_env/lib/python3.8/site-packages/torchvision/image.so, 0x0006): Symbol not found: __ZN2at4_ops19empty_memory_format4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEENS5_INS2_12MemoryFormatEEE
Referenced from: <320D718F-E2FD-3687-B2F0-E83CF97743B1> /Users/ankushsingal/miniconda3/envs/book_env/lib/python3.8/site-packages/torchvision/image.so
Expected in: <33B9BCB1-C3B0-309D-8DFD-07CBC1A23530> /Users/ankushsingal/miniconda3/envs/book_env/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib
warn(f"Failed to load image Python extension: {e}")
WARNING ⚠️ 'ultralytics.yolo.v8' is deprecated since '8.0.136' and will be removed in '8.1.0'. Please use 'ultralytics.models.yolo' instead.
WARNING ⚠️ 'ultralytics.yolo.engine' is deprecated since '8.0.136' and will be removed in '8.1.0'. Please use 'ultralytics.engine' instead.
WARNING ⚠️ 'ultralytics.yolo.utils' is deprecated since '8.0.136' and will be removed in '8.1.0'. Please use 'ultralytics.utils' instead.
Note this warning may be related to loading older models. You can update your model to current structure with:
import torch
ckpt = torch.load("model.pt") # applies to both official and custom models
torch.save(ckpt, "updated-model.pt")
Traceback (most recent call last):
File "predict.py", line 15, in <module>
from ultralytics.yolo.utils import DEFAULT_CONFIG, ROOT, ops
ImportError: cannot import name 'DEFAULT_CONFIG' from 'ultralytics.utils' (/Users/ankushsingal/miniconda3/envs/book_env/lib/python3.8/site-packages/ultralytics/utils/__init__.py)