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

Errors in the evaluation (data has only one category) #35

Open
Mindisblown opened this issue Jul 21, 2021 · 3 comments
Open

Errors in the evaluation (data has only one category) #35

Mindisblown opened this issue Jul 21, 2021 · 3 comments

Comments

@Mindisblown
Copy link

My data has only one category, i set self.eval_interval = 1, but got ap = -1.0. The same problem is in EfficientDet eval [https://github.com/zylo117/Yet-Another-EfficientDet-Pytorch/issues/542], in yolox/layers/fast_coco_eval_api.py, i add p.catIds = 1, but got ap = 0.0.

2021-07-21 10-28-46 的屏幕截图

One point worth noting in yolox/data/datasets/coco.py
2021-07-21 10-32-37 的屏幕截图
i modified img_file
2021-07-21 10-33-52 的屏幕截图

@Mindisblown
Copy link
Author

I checked the data load is correct, but i find coco_evaluator.py 116 line outputs = postprocess() return None.
2021-07-21 16-08-46 的屏幕截图

@FateScript
Copy link
Member

what's your value of num_classes

@Mindisblown
Copy link
Author

num_classes = 1

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