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

test error #1

Closed
oujieww opened this issue Mar 25, 2020 · 7 comments
Closed

test error #1

oujieww opened this issue Mar 25, 2020 · 7 comments

Comments

@oujieww
Copy link

oujieww commented Mar 25, 2020

when runing for test, the code needs val_gt.json file, so i change the path in test_city_person.py to "val_gt_for mmdetection.json". and get following problem.

File "tools/test_city_person.py", line 225, in
main()
File "tools/test_city_person.py", line 219, in main
MRs = validate('Pedestron/datasets/CityPersons/val_gt_for_mmdetction.json', args.out)
File "Pedestron/tools/cityPerson/eval_demo.py", line 10, in validate
cocoDt = cocoGt.loadRes(dt_path)
File "Pedestron/tools/cityPerson/coco.py", line 313, in loadRes
if 'caption' in anns[0]:
IndexError: list index out of range

@hasanirtiza
Copy link
Owner

Did you use one of the pre-trained models provided by us ? Usually this error comes when your model is unable to make any predictions on test image. Since the error log shows the problem in the detection file not the ground-truth. Additionally, if you can simply run the demo using one or two images using your model (in-case you are using your own model).

@hasanirtiza
Copy link
Owner

hasanirtiza commented Mar 25, 2020

Furthermore, we have resolved paths and added val_gt.json along with fixing of some minor bugs. We have tested our provided pre-trained model (on this repo for CityPersons) for demo and test_cityperson.py and we have managed to reproduce the numbers. Training of new model should also be fine, it should work on your side as well. I would suggest you to clone and update your local repo.

@AyeshaNirma
Copy link

I can now run the test_cityperson.py without hiccup on my machine

@oujieww
Copy link
Author

oujieww commented Mar 30, 2020

thank u so much @hasanirtiza !!!

@oujieww
Copy link
Author

oujieww commented Mar 30, 2020

@hasanirtiza could u share me how to choose setting for retinanet.py for cityperson? thank you

@hasanirtiza
Copy link
Owner

@oujieww I suggest you to create a new issue with [feature request] (close this one). I believe we can provide support for RetinaNet as well.

@oujieww
Copy link
Author

oujieww commented Mar 31, 2020

@hasanirtiza thank you!

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

3 participants