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

Why changing tracking-method also affects the number of detections? #1641

Closed
1 task done
davide-bontempelli-zupit opened this issue Sep 18, 2024 · 1 comment
Closed
1 task done
Labels
question Further information is requested

Comments

@davide-bontempelli-zupit

Search before asking

  • I have searched the Yolo Tracking issues and found no similar bug report.

Question

I ran boxmot keeping the same yolo model and only changing tracking method and on the video shown i got a lot less detections.

These are the two command that i used

python tracking/track.py --source "5042_5047.mp4" \ 
  --yolo-model yolov8x-pose.pt \
  --reid-model osnet_x1_0_msmt17.pt \
  --tracking-method botsort \
  --conf 0.1 \
  --iou 0.7 \
  --device 0 \
  --show \       
  --classes 0 \
  --name test \
  --exist-ok \ 
  --show-labels \      
  --show-conf \
  --show-trajectories \
  --save-txt \
  --line-width 3 \
  --verbose
python tracking/track.py --source "5042_5047.mp4" \ 
--yolo-model yolov8x-pose.pt \
--reid-model osnet_x1_0_msmt17.pt \
--tracking-method botsort \
--conf 0.1 \
--iou 0.7 \
--device 0 \
--show \     
--classes 0 \
--name test \
--exist-ok \ 
--show-labels \      
--show-conf \
--show-trajectories \
--save-txt \
--line-width 3 \
--verbose
@davide-bontempelli-zupit davide-bontempelli-zupit added the question Further information is requested label Sep 18, 2024
@mikel-brostrom
Copy link
Owner

The tracking modules themselves are doing some filtering on the detections in order to figure out wether they are good candidates to be accepted as valid tracks or not. Hence, affecting the number of outputs 😄. For example this line of code is relevant in BoTSORT:

first_mask = confs > self.track_high_thresh

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

No branches or pull requests

2 participants