MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / compare_dataframes

Function compare_dataframes

tools/track_sort.py:112–123  ·  view source on GitHub ↗
(gts, ts)

Source from the content-addressed store, hash-verified

110
111
112def compare_dataframes(gts, ts):
113 accs = []
114 names = []
115 for k, tsacc in ts.items():
116 if k in gts:
117 logger.info('Comparing {}...'.format(k))
118 accs.append(mm.utils.compare_to_groundtruth(gts[k], tsacc, 'iou', distth=0.5))
119 names.append(k)
120 else:
121 logger.warning('No ground truth for {}, skipping.'.format(k))
122
123 return accs, names
124
125
126@logger.catch

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected