MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / remove_fp_stracks

Function remove_fp_stracks

tutorials/ctracker/byte_tracker.py:334–343  ·  view source on GitHub ↗
(stracksa, n_frame=10)

Source from the content-addressed store, hash-verified

332
333
334def remove_fp_stracks(stracksa, n_frame=10):
335 remain = []
336 for t in stracksa:
337 score_5 = t.score_list[-n_frame:]
338 score_5 = np.array(score_5, dtype=np.float32)
339 index = score_5 < 0.45
340 num = np.sum(index)
341 if num < n_frame:
342 remain.append(t)
343 return remain

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected