PINTO0309 / openvino2tensorflow

This script converts the ONNX/OpenVINO IR model to Tensorflow's saved_model, tflite, h5, tfjs, tftrt(TensorRT), CoreML, EdgeTPU, ONNX and pb. PyTorch (NCHW) -> ONNX (NCHW) -> OpenVINO (NCHW) -> openvino2tensorflow -> Tensorflow/Keras (NHWC/NCHW) -> TFLite (NHWC/NCHW). And the conversion from .pb to saved_model and from saved_model to .pb and from .pb to .tflite and saved_model to .tflite and saved_model to onnx. Support for building environments with Docker. It is possible to directly access the host PC GUI and the camera to verify the operation. NVIDIA GPU (dGPU) support. Intel iHD GPU (iGPU) support.
MIT License
334 stars 40 forks source link

[DeformableConvolution] can not converter person-detection-0301 from openvino to onnx #122

Closed HeXCZ1028 closed 1 year ago

HeXCZ1028 commented 1 year ago

Issue Type

Feature Request

OS

Ubuntu

OS architecture

x86_64

Programming Language

Python

Framework

OpenVINO, ONNX

Download URL for ONNX / OpenVINO IR

https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/1/person-detection-0301/FP32/person-detection-0301.xml

https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/1/person-detection-0301/FP32/person-detection-0301.bin

Convert Script

H=800 W=1344 MODEL=person-detection-0301

sudo openvino2tensorflow --model_path ${MODEL}.xml --output_saved_model --output_pb --output_no_quant_float32_tflite --output_dynamic_range_quant_tflite --output_weight_quant_tflite --output_float16_quant_tflite --output_integer_quant_tflite --output_integer_quant_type 'uint8' --string_formulas_for_normalization 'data / 255.0' --output_tfjs --output_coreml

Description

The DeformableConvolution layer is not yet implemented

I want to convert openvino model to onnx, but get ‘The DeformableConvolution layer is not yet implemented’ information .

can you help me convert this model ?

Thank you

Relevant Log Output

The DeformableConvolution layer is not yet implemented

Source code for simple inference testing code

No response

PINTO0309 commented 1 year ago

DeformableConvolution is implemented in MXNet, but not in PyTorch, TensorFlow or ONNX. Unfortunately, it is not convertible.

HeXCZ1028 commented 1 year ago

Can you help me convert person-detection-0302 from openvino to onnx https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/3/person-detection-0302/FP32/person-detection-0302.xml

https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/3/person-detection-0302/FP32/person-detection-0302.bin