Megvii-BaseDetection / Megvii-BaseDetection/YOLOX

Errors in the evaluation (data has only one category)

Open
#35 3 comments 0 reactions 0 assignees View on GitHub

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.

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 的屏幕截图

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.