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

tensorflow conversion error #39

Closed 7aughing closed 3 years ago

7aughing commented 3 years ago

1. macOS,

2. Version of OpenVINO e.g. 2021.3.185, etc

3. Version of TensorFlow e.g. v2.5.0tc

openvino2tensorflow --model_path scrfd_500m_bnkps_shape320x320.xml --output_pb

Issue Details

ValueError: Depth of input (5) is not a multiple of input depth of filter (3) for '{{node tf.nn.conv2d/Conv2D}} = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], explicit_paddings=[], padding="VALID", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true](Placeholder, tf.nn.conv2d/Conv2D/filter)' with input shapes: [1,320,322,5], [16,3,3,3].

Can you give me some suggestions?

PINTO0309 commented 3 years ago

What is this model? I have been given very little information, so there is no way to find out.

7aughing commented 3 years ago

can use docker successfully. thank you so much!!!