You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing OC-SORT on one of my own video using the demo_video.py file as you suggested in readme. I found that some detection results are not included in any of tracking results. Digging further I found that the main problem is at ocsort.py where we output results:
specifically on line 316 trk.hit_streak >= self.min_hits or self.frame_count <= self.min_hits:
Let's suppose the video has 4 frames, the a still object appear on frames 2, 3, 4, and we set min_hits = 3 as the default params.
track successfully stablished for the object on frame 2 and 3
On frame 4: we associate the object, so the hit_streak= 2, min_hits=3, frame_count=4, it does not satisfy the condition to include to the return, hence empty blob is outputted.
I'm a bit confused what's the rational behind trk.hit_streak >= self.min_hits or self.frame_count <= self.min_hits. My guest is that it may boost performance for certain types of videos? Should I use a different function other than update for general videos (eg: not security footage, with shot changes, etc)?
I guess my concern is that I can fix this specific part with something making sense. but there may be other parts you did intentionally for performance on certain types of videos that I'm not aware of.
Thank you
The text was updated successfully, but these errors were encountered:
Hello,
First, thank you for sharing this repository.
I'm testing OC-SORT on one of my own video using the
demo_video.py
file as you suggested inreadme
. I found that some detection results are not included in any of tracking results. Digging further I found that the main problem is atocsort.py
where we output results:OC_SORT/trackers/ocsort_tracker/ocsort.py
Lines 316 to 318 in 7a390a5
specifically on line 316
trk.hit_streak >= self.min_hits or self.frame_count <= self.min_hits
:Let's suppose the video has
4 frames
, the a still object appear on frames2, 3, 4
, and we setmin_hits = 3
as the default params.2
and3
hit_streak= 2
,min_hits=3
,frame_count=4
, it does not satisfy the condition to include to the return, hence empty blob is outputted.I'm a bit confused what's the rational behind
trk.hit_streak >= self.min_hits or self.frame_count <= self.min_hits
. My guest is that it may boost performance for certain types of videos? Should I use a different function other thanupdate
for general videos (eg: not security footage, with shot changes, etc)?I guess my concern is that I can fix this specific part with something making sense. but there may be other parts you did intentionally for performance on certain types of videos that I'm not aware of.
Thank you
The text was updated successfully, but these errors were encountered: