openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
7.42k stars 2.33k forks source link

[Bug] Accuracy-Check: It does not support the annotation with the COCO text files but it works on JSON format #6876

Closed qin53027 closed 3 years ago

qin53027 commented 3 years ago

Hi,

I try to run the accuracy check on person-detection-retail-0002 model with JSON annotation file. But get bad result:

  1. using the COCO2017 json file: instances_val2017.json ===> got AP = 0.01%

  2. I generated the filtered_instances_val2017.json with only Person class ====> got AP = 0.00%

  3. I extracted the Person class from val2017 and got the person_images and person_annotation with txt files When I use following command to run:

accuracy_check -c /home/jiande/program/open_model_zoo/tools/accuracy_checker/configs/person-detection-retail-0002.yml -m /tmp/model -s /home/jiande/coco_kitti -a /home/jiande/coco_kitti/labels

then I got error: File "/home/jiande/.local/lib/python3.8/site-packages/accuracy_checker/dataset.py", line 153, in load_annotation raise ConfigError('path to converted annotation or data for conversion should be specified') accuracy_checker.config.config_validator.ConfigError: path to converted annotation or data for conversion should be specified

Please let me know how I can use the annotation with the text format. In this way, I can compare the AP result. Also if I can use the annotation with text file format, please let me know how I can include the person_images I extracted.

Thanks so much Jimmy

run person-detection-retail-0002 command

accuracy_check -m /tmp/model/intel/person-detection-retail-0002/FP32 -c /home/jiande/coco_kitti/person-detection-retail-0002.yml

AP result ---- only 0.01%

Output info Layer name: detection_out precision: FP32 shape: [1, 1, 200, 7]

5000 objects processed in 753.631 seconds map: 0.01%

person-detection-retail-0002.yml

models:

zulkifli-halim commented 3 years ago

Hi @qin53027, the COCO dataset might not work as it's targeted more for object detection. We suggest you use this Pedestrian Detection Database: https://www.cis.upenn.edu/~jshi/ped_html/

qin53027 commented 3 years ago

let me close this issue first