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
While converting openvino (xml) to Tensorflow saved_output_model, getting following error.temp_sorted_tf_edge.append(tf_edges[to_layer][ports.index(str(idx))]) IndexError: list index out of range #127
TensorFlow/Keras model building process starts ======================================
Layer structure =====================================================================
Traceback (most recent call last):
File "/model-conversion/git/env/bin/openvino2tensorflow", line 7887, in <module>
main()
File "/model-conversion/git/env/bin/openvino2tensorflow", line 7871, in main
convert(model, model_output_path, output_saved_model, output_h5, output_weight_and_json, output_pb, dont_convert_from_keras_model,
File "/model-conversion/git/env/bin/openvino2tensorflow", line 592, in convert
temp_sorted_tf_edge.append(tf_edges[to_layer][ports.index(str(idx))])
IndexError: list index out of range
Issue Type
Bug
OS
Mac OS
OS architecture
x86_64
Programming Language
Python
Framework
Other
Download URL for ONNX / OpenVINO IR
Using openvino2tensorflow tool.
Convert Script
openvino2tensorflow --model_path.xml --output_saved_model --model_output_path output_folder
Description
Conersion should happen smoothly.
Relevant Log Output
Source code for simple inference testing code
No response