wmuron / motpy

Library for tracking-by-detection multi object tracking implemented in python
MIT License
499 stars 61 forks source link

not working example command #32

Open hiwatee opened 1 year ago

hiwatee commented 1 year ago

When the following command is executed

python examples/detect_and_track_in_video.py \
            --video_path=./assets/video.mp4 \
            --detect_labels=['car','truck'] \
            --tracker_min_iou=0.15 \
            --device=cuda

The following error occurs

no matches found: --detect_labels=[car,truck]
colin0brass commented 1 year ago

I experienced this too (in zsh shell, on Mac). For me it was the shell trying to pre-process the command line including the square brackets, before passing it to the motpy examples python script, and the solution was to enclose the detect_labels argument in quotes.

e.g. (also selecting device as cpu, since no cuda GPU on my Mac):

python examples/detect_and_track_in_video.py \
            --video_path=./assets/video.mp4 \
            --detect_labels="['car','truck']" \
            --tracker_min_iou=0.15 \
            --device=cpu