merge develop branch and change back to using boolean indexing
This commit is contained in:
1 parent
dc45c0a5e0
commit
a2aca62ecb
1 file changed
+1
-7
@@ -287,13 +287,7 @@ class ByteTrack:
|
||||
for i_detection, i_track in matches:
|
||||
detections.tracker_id[i_detection] = int(tracks[i_track].track_id)
|
||||
|
||||
invalid_tracks = [
|
||||
i
|
||||
for i in range(len(detections.tracker_id))
|
||||
if detections.tracker_id[i] != -1
|
||||
]
|
||||
|
||||
return detections[invalid_tracks]
|
||||
return detections[detections.tracker_id != -1]
|
||||
|
||||
else:
|
||||
detections.tracker_id = np.array([], dtype=int)
|
||||
|
||||
Reference in new issue
Block a user