MuhammadMoinFaisal / YOLOv8-DeepSORT-Object-Tracking

YOLOv8 Object Tracking using PyTorch, OpenCV and DeepSORT
812 stars 223 forks source link

ImportError: cannot import name 'DeepSort' from 'deep_sort_pytorch.deep_sort' (unknown location) #44

Open NhanDoremon opened 11 months ago

NhanDoremon commented 11 months ago

After I unzip the deep_sort_pytorch zip file, and i run the code like: !python predict.py source="test1.mp4"
The model have the problem below, i reall appreciate if you help me to sovle it, thank you in advance Traceback (most recent call last): File "d:\OneDrive - Sejong University\NgheNhan_Master\Course Work\First Semester\Advanced in Machine Vision\Projects\Abnormal Behavior\Code\Object_detection_and Tracking\YOLOv8-DeepSORT-Object-Tracking\ultralytics\yolo\v8\detect\predict.py", line 14, in from ultralytics.yolo.engine.predictor import BasePredictor File "d:\onedrive - sejong university\nghenhan_master\course work\first semester\advanced in machine vision\projects\abnormal behavior\code\object_detection_and tracking\yolov8-deepsort-object-tracking\ultralytics__init.py", line 5, in from ultralytics.hub import checks File "d:\onedrive - sejong university\nghenhan_master\course work\first semester\advanced in machine vision\projects\abnormal behavior\code\object_detection_and tracking\yolov8-deepsort-object-tracking\ultralytics\hub__init__.py", line 15, in from ultralytics.yolo.v8.detect import DetectionTrainer File "d:\onedrive - sejong university\nghenhan_master\course work\first semester\advanced in machine vision\projects\abnormal behavior\code\object_detection_and tracking\yolov8-deepsort-object-tracking\ultralytics\yolo\v8\detect\init__.py", line 3, in from .predict import DetectionPredictor, predict File "d:\onedrive - sejong university\nghenhan_master\course work\first semester\advanced in machine vision\projects\abnormal behavior\code\object_detection_and tracking\yolov8-deepsort-object-tracking\ultralytics\yolo\v8\detect\predict.py", line 23, in from deep_sort_pytorch.deep_sort import DeepSort ImportError: cannot import name 'DeepSort' from 'deep_sort_pytorch.deep_sort' (unknown location)

NhanDoremon commented 7 months ago

Yes I already fixed this problem, I think the source code is lack of deep_sort_pytorch module. So I find this module on another repo and add to the forlder "./v8/detect". If you need this module, please contact me through my email @.***, i will send you the zip file of that module because of the large size so I can't send directly in github.


From: Sakura0v01 @.> Sent: 17 April 2024 7:03 PM To: MuhammadMoinFaisal/YOLOv8-DeepSORT-Object-Tracking @.> Cc: Truong Nghe Nhan @.>; Author @.> Subject: Re: [MuhammadMoinFaisal/YOLOv8-DeepSORT-Object-Tracking] ImportError: cannot import name 'DeepSort' from 'deep_sort_pytorch.deep_sort' (unknown location) (Issue #44)

Have you solved this problem?If so, how was it resolved

— Reply to this email directly, view it on GitHubhttps://github.com/MuhammadMoinFaisal/YOLOv8-DeepSORT-Object-Tracking/issues/44#issuecomment-2060890629, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDVDLVTJVI7DMMGVJFOTKE3Y5ZCHRAVCNFSM6AAAAABAOTUF4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRQHA4TANRSHE. You are receiving this because you authored the thread.Message ID: @.***>