mikel-brostrom / boxmot

BoxMOT: pluggable SOTA tracking modules for segmentation, object detection and pose estimation models
GNU Affero General Public License v3.0
6.74k stars 1.72k forks source link

Need to move train.py into main folder, cannot execute properly from /examples #936

Closed vhuard closed 1 year ago

vhuard commented 1 year ago

Search before asking

Yolv8 Tracking Component

Tracking

Bug

i tried to run the main example provided. while executing !python /examples/train.py ... there was an error regarding botsort folder access if i move train.py from examples/ to main folder it works for bytetrack tracking method but not for strongsort can you help?

Environment

Yolo Tracking v10.0.13 🚀 Python-3.10.12 torch-2.0.1+cu118 CUDA:0 (Tesla T4, 15102MiB)

Minimal Reproducible Example

!python track.py --yolo-model 'best_yv8n_imgz640_100ep.pt' --tracking-method strongsort --imgsz 640 --source Barc_Placa_Espanya_2.MP4 --save --conf 0.4

vhuard commented 1 year ago

aditionaly i have one question in previous versions, trajectories are shown on the video. is that schedule to bring back that functionallity?

mikel-brostrom commented 1 year ago

Post the full error please

mikel-brostrom commented 1 year ago

All the trackers are tested in the CI pipeline together with all the detector. SO unless you made modification I cannot see how this is failing. Again, post the error so that I can better help you out :smile:

vhuard commented 1 year ago

i download the git with following folders organisation yolo_tracking --assets --boxmot --examples ----track.py --tests

i setup requirements

i launch the following command !python examples/track.py --yolo-model 'best_yolov8n_imgz640.pt' --tracking-method bytetrack --imgsz 640 --source IMG_2240.MP4 --save --conf 0.4

and got following issues reported: Traceback (most recent call last): File "/content/yolo_tracking/examples/track.py", line 10, in from boxmot.tracker_zoo import create_tracker ModuleNotFoundError: No module named 'boxmot'

mikel-brostrom commented 1 year ago

you forgot pip install boxmot

vhuard commented 1 year ago

i did pip install boxmot same error still need to move train.py, utils.py and multiflow,py to main folder

any idea?

mikel-brostrom commented 1 year ago

There is no need to move anything at all. Everything gets tested in the CI pipeline ensuring that the basic functionality works as it should. I recommend that you start from a clean slate.

vhuard commented 1 year ago

i do start every time from clean state still it got the same error reported before. anything else you can recommend?