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

Question when running detection_perf.py #29

Open
wjp0408 opened this issue Dec 10, 2018 · 3 comments
Open

Question when running detection_perf.py #29

wjp0408 opened this issue Dec 10, 2018 · 3 comments

Comments

@wjp0408
Copy link

wjp0408 commented Dec 10, 2018

I just use train set as "trainval set" + val set as "test set".
And when I run detection_perf.py,I got this output:
image
It's weird that APs of 店,路,车 are all 0.0 %.
So it's means that there're some error heppened?
Or these characters didn't appear in the val set?
Or the other reasons... ?
Thanks for your help. :)

@yuantailing
Copy link
Owner

We use train+val to generate cates.json. Our trained models use this order to map character catetory into ID (i.e., the #class output by CNN).
If you are using trained model, you should generate cates.json using train+val, and then test performance on val.
e.g., If the model outputs ID=4, it means '店' according to cates.json. But if you generate cate.json using trainset only, you may translate 'ID=4' into another character catetory, not '店'.

@wjp0408
Copy link
Author

wjp0408 commented Dec 10, 2018

Thanks for your reply !
And I think I got the correct result with your help :
image

Thanks.

@peppapeppapeppapeppa
Copy link

Thanks for your reply !
And I think I got the correct result with your help :
image

您好 我想问下您是怎么解决这个问题的,我也遇到了这个问题 非常期待您的回答 谢谢

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