fix to exactly match existing release version when minimum_consecutive_frames = 1

This commit is contained in:
Raif Olson committed 2024-04-11 09:21:32 -04:00
1 parent 7924a13dc5
commit b1d5d4faf0
1 file changed
+5 -1
+5 -1
View File
@@ -65,8 +65,12 @@ class STrack(BaseTrack):
self.tracklet_len = 0
self.state = TrackState.Tracked
if frame_id == 1 and self.minimum_consecutive_frames == 1:
if frame_id == 1:
self.is_activated = True
if self.minimum_consecutive_frames == 1:
self.external_track_id = self.next_external_id()
self.frame_id = frame_id
self.start_frame = frame_id