Megvii-BaseDetection / Megvii-BaseDetection/YOLOX
Errors in the evaluation (data has only one category)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
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.

One point worth noting in yolox/data/datasets/coco.py

i modified img_file

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting yolox/layers/fast_coco_eval_api.py and the dataset handling in yolox/data/datasets/coco.py. Reproduce evaluation with data containing one category and eval_interval set to 1, then trace why AP becomes -1.0 or 0.0. Done means single-category evaluation reports the correct AP without requiring the reported manual changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100