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
338 stars 39 forks source link

can not convert some model #6

Closed vijayky88 closed 3 years ago

vijayky88 commented 3 years ago

hi ,

i wanted to convert https://download.01.org/openvinotoolkit/2018_R5/open_model_zoo/face-reidentification-retail-0095/FP32/ but getting failed with below message: openvino2tensorflow --model_path=openvino/448x448/FP32/Resnet34_3inputs_448x448_20200609.xml --output_saved_model True --output_pb True --output_weight_quant_tflite True --output_float16_quant_tflite True --output_no_quant_float32_tflite True

openvino2tensorflow --model_path=FP32/face-reidentification-retail-0095.xml --output_saved_model True --output_pb True --output_weight_quant_tflite True --output_float16_quant_tflite True --output_no_quant_float32_tflite True TensorFlow/Keras model building process starts ====================================== /home/vijay/.local/lib/python3.6/site-packages/tensorflow/python/autograph/utils/testing.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp The Input layer is not yet implemented.

please let mw know if i need to do any workaorund.

Limitation from myside: i can not used the said model in openvino 2021 version as it failed with below message saying "intel IR files is not compatible"

openvino2tensorflow --model_path=openvino/448x448/FP32/Resnet34_3inputs_448x448_20200609.xml --output_saved_model True --output_pb True --output_weight_quant_tflite True --output_float16_quant_tflite True --output_no_quant_float32_tflite True

openvino2tensorflow --model_path=FP32/face-reidentification-retail-0095.xml --output_saved_model True --output_pb True --output_weight_quant_tflite True --output_float16_quant_tflite True --output_no_quant_float32_tflite True TensorFlow/Keras model building process starts ====================================== /home/vijay/.local/lib/python3.6/site-packages/tensorflow/python/autograph/utils/testing.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp The Input layer is not yet implemented.

Thanks Vijay skpyeid ~ vijayky88

PINTO0309 commented 3 years ago

Unfortunately, face-reidentification-retail-0095 is the OpenVINO model for 2018, so it is currently unsupported.

vijayky88 commented 3 years ago

any work around or any suggestion ? or should i wait for the upgraded version of face-reidentification-retail-0095 from intel side

PINTO0309 commented 3 years ago

You can try this one.https://download.01.org/opencv/2020/openvinotoolkit/2020.4/open_model_zoo/models_bin/1/face-reidentification-retail-0095/

 ----- Original Message -----

From: Vijay Yadav notifications@github.com To: PINTO0309/openvino2tensorflow openvino2tensorflow@noreply.github.com Cc: Katsuya Hyodo rmsdh122@yahoo.co.jp; Comment comment@noreply.github.com Date: 2020/12/18, Fri 20:10 Subject: Re: [PINTO0309/openvino2tensorflow] can not convert some model (#6)

any work around or any suggestion ? or should i wait for the upgraded version of face-reidentification-retail-0095 from intel side— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

PINTO0309 commented 3 years ago

ezgif com-gif-maker (6)

PINTO0309 commented 3 years ago

@semihstp Please issue another issue.