(self, filename)
| 74 | return events |
| 75 | |
| 76 | def eval_file(self, filename): |
| 77 | self.reset_accumulator() |
| 78 | |
| 79 | result_frame_dict = read_results(filename, self.data_type, is_gt=False) |
| 80 | #frames = sorted(list(set(self.gt_frame_dict.keys()) | set(result_frame_dict.keys()))) |
| 81 | frames = sorted(list(set(result_frame_dict.keys()))) |
| 82 | for frame_id in frames: |
| 83 | trk_objs = result_frame_dict.get(frame_id, []) |
| 84 | trk_tlwhs, trk_ids = unzip_objs(trk_objs)[:2] |
| 85 | self.eval_frame(frame_id, trk_tlwhs, trk_ids, rtn_events=False) |
| 86 | |
| 87 | return self.acc |
| 88 | |
| 89 | @staticmethod |
| 90 | def get_summary(accs, names, metrics=('mota', 'num_switches', 'idp', 'idr', 'idf1', 'precision', 'recall')): |
nothing calls this directly
no test coverage detected