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

KeyError:'neg_category_ids' #1

Closed
zhangshen12356 opened this issue Aug 27, 2020 · 6 comments
Closed

KeyError:'neg_category_ids' #1

zhangshen12356 opened this issue Aug 27, 2020 · 6 comments

Comments

@zhangshen12356
Copy link

when i run the CUDA_VISIBLE_DEVICES=1 python tools/test.py configs/lvis/forest_rcnn_r101_32_x4d_fpn.py forest_rcnn_resnext101.pth --out out.pkl --eval bbox segm after loading the dataset, it occur KeyError:'neg_category_ids' how to slove the problem

@JialianW
Copy link
Owner

I did not meet this error before. Are you using LVIS v1.0? Our code is based on LVIS v0.5.

@zhangshen12356
Copy link
Author

I did not meet this error before. Are you using LVIS v1.0? Our code is based on LVIS v0.5.

I used LVIS v0.5

@zhangshen12356
Copy link
Author

I did not meet this error before. Are you using LVIS v1.0? Our code is based on LVIS v0.5.

Could it caused by the version of LVISAPI?beacuse the error shows in lvis/eval.py

@JialianW
Copy link
Owner

The LVIS API version in this repo is exactly v0.5. I can pass the test by directly using this repo and v0.5 annotations. Please kindly self-check the details in the context of your error. This error seems to be easily addressed.

@zhangshen12356
Copy link
Author

The LVIS API version in this repo is exactly v0.5. I can pass the test by directly using this repo and v0.5 annotations. Please kindly self-check the details in the context of your error. This error seems to be easily addressed.

ok thank you very much for your reply!

@JialianW
Copy link
Owner

The LVIS API version in this repo is exactly v0.5. I can pass the test by directly using this repo and v0.5 annotations. Please kindly self-check the details in the context of your error. This error seems to be easily addressed.

ok thank you very much for your reply!

In the annotation file, 'neg_category_ids' should exist in the list of 'images'.

@JialianW JialianW closed this as completed Jan 7, 2021
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