zyayoung / Iter-Deformable-DETR

[CVPR2022] "Progressive End-to-End Object Detection in Crowded Scenes" on Deformable-DETR.
28 stars 6 forks source link

TypeError: list indices must be integers or slices, not str #12

Open lyccyl1 opened 1 year ago

lyccyl1 commented 1 year ago

When I try to eval with the pretained model. I miss this error. I have the cofig right. Asking for your help.

lyccyl1 commented 1 year ago

The error traceback: Traceback (most recent call last): File "demo_opt.py", line 470, in eval_results = _evaluate_predictions_on_crowdhuman(gt_path, fpath) File "demo_opt.py", line 448, in _evaluate_predictions_on_crowdhuman database = Database(gt_path, dt_path, target_key, None, mode) File "demo_opt.py", line 311, in init self.loadData(gtpath, body_key, head_key, if_gt=True) File "demo_opt.py", line 326, in loadData self.images[record["ID"]] = Image(self.eval_mode) TypeError: list indices must be integers or slices, not str

Yamahhh commented 1 year ago

I got the same error, have you solved it yet?