models icon indicating copy to clipboard operation
models copied to clipboard

all objection detection result of mAP: -1

Open zhangmengya opened this issue 8 years ago • 5 comments

System information

  • What is the top-level directory of the model you are using: object-detection
  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): N/A
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04
  • TensorFlow installed from (source or binary): binary
  • TensorFlow version (use command below): v1.8.0
  • Bazel version (if compiling from source): --
  • CUDA/cuDNN version: 9.0.176 7.0.5
  • GPU model and memory:GeForce GTX 1080 Ti totalMemory: 10.92GiB freeMemory: 10.35GiB
  • Exact command to reproduce: I run the eval.py with ssd_mobilenet_v1 on coco2017 object detection dataset. The bounding box can be detected. However, all evaluations are -1. Anyone konws how to solve the problem. image 2018-07-04 10 27 45

zhangmengya avatar Jul 04 '18 01:07 zhangmengya

solved. When we use coco detection metrics, the train and eval tfrecord can't include 'image/object/class/text'

zhangmengya avatar Jul 04 '18 12:07 zhangmengya

@zhangmengya So how did you solve your problem? I met the same problem today,I am using coco metrics too,but I did meet some case where mAP can be normal.

Salight avatar Jul 16 '18 06:07 Salight

@Salight my problem appears in creating tfrecord. When the example(feature_dict) includes image/object/class/text, the result is wrong. I don't know your question, but i think the label may be wrong.

zhangmengya avatar Jul 16 '18 08:07 zhangmengya

@zhangmengya how do you create your tfrecord? my data include 5 classes, model is faster rcnn resnet50, i got a high mAP(iou=0.5)=92%, but when i detect some picture ,it appears not good ,some classses can't be detected.

Atlas-wuu avatar Aug 29 '18 08:08 Atlas-wuu

@zhangmengya I met the same problem. what do you mean by "example(feature_dict) includes image/object/class/text" ? I'm still confused. By the way, if I change the metric to pascal_voc_detection. I can get reasonable numbers. So it seems that the dataset itself is correct.

Ekko1992 avatar Apr 11 '19 06:04 Ekko1992