-
Notifications
You must be signed in to change notification settings - Fork 7.1k
cocotools breakes when loading results in version 2.0.9, after PR that added info dict to results #9092
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
Comments
Hi @tsahiasher , can you provide a minimal reproducing example of the issue you are mentioning? |
Here is a minimal example to reproduce the problem: The call to COCO.loadRes depends on the model finding results, and since this is random data there are no results, what i did was to change line 37 in coco_eval.py from
to
running this script produced the error:
|
I can also replicate this with a fake model that generates one result to trigger
Happy to contribute a PR for this, if desired. |
🐛 Describe the bug
With ppwwyyxx/cocoapi#26 pycocotools is copying info dict to results, so it has to be created in coco_utils.py::convert_to_coco_api while creating the dataset
Versions
pycocotools==2.0.9
The text was updated successfully, but these errors were encountered: