Closed sergeygrosul closed 2 years ago
Hello Katsuya, thank you very much for your help!
I have tested this model, but the result is still not correct. Here is the example picture (faces detected by the same model with OpenVINO, so my goal is to repeat this result with the ONNX model). I guess I'm doing something wrong but I can not realize what exactly. I attached the test app (test-onnx.py open the static image demo.png):
I figured out with this issue! (I used the wrong index in my demo app). Now everything is working fine! Domo arigatou!
Issue Type
Bug, Feature Request
OS
Ubuntu
OS architecture
x86_64, aarch64
Programming Language
C++
Framework
ONNX, TensorFlow
Download URL for ONNX / OpenVINO IR
https://download.01.org/opencv/2020/openvinotoolkit/2020.4/open_model_zoo/models_bin/3/face-detection-0100/FP32/face-detection-0100.xml https://download.01.org/opencv/2020/openvinotoolkit/2020.4/open_model_zoo/models_bin/3/face-detection-0100/FP32/face-detection-0100.bin
Convert Script
Description
Hello! I'm trying to convert the face-detection-0100 model to ONNX. Based on these recommendations: https://github.com/PINTO0309/openvino2tensorflow/issues/89 https://github.com/PINTO0309/openvino2tensorflow/issues/52 I changed the XML file (removed the DetectionOutput layer) and seems successfully converted to ONNX. At least there were no errors during the conversion. But now I have two issues:
1) Opening of ONNX in C++ app If I open the ONNX model in C++ app with OpenCV
I get this error:
But at the same time, the same ONNX file successfully opens and works in Python (I use this source as a base: https://github.com/PINTO0309/PINTO_model_zoo/blob/ce8421f2e8720d636d5f00e817debdc6720f235a/178_vehicle-detection-0200/demo/demo_vehicle-detection-0200_onnx.py). TensorFlow model model_float32.pb opens in my code correctly.
I can not get it, does it is the conversion error, or do I have something wrong with my C++ code?
2) Model returns the wrong results The model does not detect faces. I guess the problem is with my replace.json file. I tried to make it similar with (https://github.com/PINTO0309/PINTO_model_zoo/blob/ce8421f2e8720d636d5f00e817debdc6720f235a/178_vehicle-detection-0200/replace.json), but to be honest, I did not get it, how to correctly make this file, and what should its contain. It would be extremely great if you give some hints about how to create this file and what should be in it. BTW, I tested 227_face-detection-adas-0001 from your PINTO_model_zoo repo and seems it does not work too (does not find faces).
My files: face-detection-0100.zip
Relevant Log Output
Source code for simple inference testing code
No response