motpy icon indicating copy to clipboard operation
motpy copied to clipboard

not working example command

Open hiwatee opened this issue 3 years ago • 1 comments

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]

hiwatee avatar Dec 27 '22 02:12 hiwatee

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

colin0brass avatar May 08 '23 12:05 colin0brass