Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working example command #32

Open
hiwatee opened this issue Dec 27, 2022 · 1 comment
Open

not working example command #32

hiwatee opened this issue Dec 27, 2022 · 1 comment

Comments

@hiwatee
Copy link

hiwatee commented Dec 27, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants