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

Method eval_file

tutorials/jde/evaluation.py:69–80  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

67 return events
68
69 def eval_file(self, filename):
70 self.reset_accumulator()
71
72 result_frame_dict = read_results(filename, self.data_type, is_gt=False)
73 #frames = sorted(list(set(self.gt_frame_dict.keys()) | set(result_frame_dict.keys())))
74 frames = sorted(list(set(result_frame_dict.keys())))
75 for frame_id in frames:
76 trk_objs = result_frame_dict.get(frame_id, [])
77 trk_tlwhs, trk_ids = unzip_objs(trk_objs)[:2]
78 self.eval_frame(frame_id, trk_tlwhs, trk_ids, rtn_events=False)
79
80 return self.acc
81
82 @staticmethod
83 def get_summary(accs, names, metrics=('mota', 'num_switches', 'idp', 'idr', 'idf1', 'precision', 'recall')):

Callers 3

eval_motaFunction · 0.95
get_motaFunction · 0.95
mainFunction · 0.95

Calls 4

reset_accumulatorMethod · 0.95
eval_frameMethod · 0.95
read_resultsFunction · 0.90
unzip_objsFunction · 0.90

Tested by

no test coverage detected