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

Function joint_stracks

tutorials/qdtrack/tracker_reid_motion.py:347–358  ·  view source on GitHub ↗
(tlista, tlistb)

Source from the content-addressed store, hash-verified

345 return torch.tensor(bboxes), torch.tensor(labels), torch.tensor(ids)
346
347def joint_stracks(tlista, tlistb):
348 exists = {}
349 res = []
350 for t in tlista:
351 exists[t.track_id] = 1
352 res.append(t)
353 for t in tlistb:
354 tid = t.track_id
355 if not exists.get(tid, 0):
356 exists[tid] = 1
357 res.append(t)
358 return res
359
360
361def sub_stracks(tlista, tlistb):

Callers 1

updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected