(self, filename)
| 169 | return events |
| 170 | |
| 171 | def eval_file(self, filename): |
| 172 | self.reset_accumulator() |
| 173 | |
| 174 | result_frame_dict = read_results(filename, self.data_type, is_gt=False) |
| 175 | #frames = sorted(list(set(self.gt_frame_dict.keys()) | set(result_frame_dict.keys()))) |
| 176 | frames = sorted(list(set(result_frame_dict.keys()))) |
| 177 | |
| 178 | for frame_id in frames: |
| 179 | trk_objs = result_frame_dict.get(frame_id, []) |
| 180 | trk_tlwhs, trk_ids = unzip_objs(trk_objs)[:2] |
| 181 | self.eval_frame(frame_id, trk_tlwhs, trk_ids, rtn_events=False) |
| 182 | |
| 183 | return self.acc |
| 184 | |
| 185 | @staticmethod |
| 186 | def get_summary(accs, names, metrics=('mota', 'num_switches', 'idp', 'idr', 'idf1', 'precision', 'recall')): |
no test coverage detected