(self, filename)
| 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')): |
no test coverage detected