tensorflow / tensorflow/models

Low mAP due to wrong num_gt

Open
#9,624 3 comments 1 reaction 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jan 12, 2021.

models:research:odapi type:bug
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

I run the tensorflow 2.3 Object Detection API on my own dataset, but the mAP is very low.
Since I have dense objects on the images, I changed the (max_number_of_boxes) here to 600.
I used the evaluation protocol of pascal_voc_detection_metrics.

After running the model_main_tf2.py with checkpoint_dir for evaluation on 30 images, we can find the printed num_gt, precision and recall from here are weird as showed below.

image
The max_number_of_boxes is 600 as shown in eval_input_reader (in Configuration file) below for each images. Thus, I guess the num_gt=18000 is actuallly the sum for 30 images. And when I change the max_number_of_boxes, the num_gt will change, correspondingly!

In additon, the result for the same dataset in tensorflow 1.13 seems correct.
num-gt=6474, which is right.
image

How can I get the right num_gt? Please do me a favor. Many thanks!

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.