Iter-Deformable-DETR icon indicating copy to clipboard operation
Iter-Deformable-DETR copied to clipboard

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

Open lyccyl1 opened this issue 1 year ago • 2 comments

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

lyccyl1 avatar Jun 26 '23 16:06 lyccyl1

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

lyccyl1 avatar Jun 26 '23 16:06 lyccyl1

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

Yamahhh avatar Aug 17 '23 07:08 Yamahhh