Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lyccyl1 opened this issue Jun 26, 2023 · 2 comments
Open

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

lyccyl1 opened this issue Jun 26, 2023 · 2 comments

Comments

@lyccyl1
Copy link

lyccyl1 commented Jun 26, 2023

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

@lyccyl1
Copy link
Author

lyccyl1 commented Jun 26, 2023

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
Copy link

Yamahhh commented Aug 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants