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

OpenVINO MobileNetV2 model conversion #12

Closed sbudenkov closed 3 years ago

sbudenkov commented 3 years ago

Hi,

Could you please with the following sample? https://docs.openvinotoolkit.org/2021.2/omz_models_intel_person_vehicle_bike_detection_2002_description_person_vehicle_bike_detection_2002.html

Is is possible to convert?

python3 openvino2tensorflow.py --model_path=tmp/FP32/person-vehicle-bike-detection-2002.xml --output_saved_model True --output_pb True Output: /usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py:22: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp The PriorBoxClustered layer is not yet implemented.

PINTO0309 commented 3 years ago

Unfortunately, this model cannot be converted because PriorBoxClustered is not replaceable with standard TensorFlow OPs.

sbudenkov commented 3 years ago

Thanks. Do you have a full list of supported OV models? I see 10. Conversion Confirmed Models.

PINTO0309 commented 3 years ago

Most of the models committed here can be converted. Rather, it has been converted. However, I have been experimenting with conversions little by little for over a year now, and I believe that there are some models that will not work due to changes in the framework version. https://github.com/PINTO0309/PINTO_model_zoo

sbudenkov commented 3 years ago

Thank you very much. I will close the issue then.