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.
When i tried converting the OpenVINO IR format of the model to .h5 model using the above command I am facing the below issue.
TypeError: cannot pickle 'module' object
It would be great if someone could help me with this.
Issue Type
Bug
OS
Ubuntu
OS architecture
x86_64
Programming Language
Python
Framework
OpenVINO
Download URL for ONNX / OpenVINO IR
https://github.com/Megvii-BaseDetection/YOLOX/releases/download/0.1.1rc0/yolox_tiny_openvino.tar.gz
Convert Script
python openvino2tensorflow.py --model_path /yolox_tiny_sim.xml --model_output_path saved_h5_416_416 --output_h5
Description
When i tried converting the OpenVINO IR format of the model to .h5 model using the above command I am facing the below issue. TypeError: cannot pickle 'module' object It would be great if someone could help me with this.
Relevant Log Output
Source code for simple inference testing code
No response