PINTO0309 / onnx2tf

Self-Created Tools to convert ONNX files (NCHW) to TensorFlow/TFLite/Keras format (NHWC). The purpose of this tool is to solve the massive Transpose extrapolation problem in onnx-tensorflow (onnx-tf). I don't need a Star, but give me a pull request.
MIT License
662 stars 65 forks source link

InceptionV3 model convert result not as expected. #662

Closed hayyaw closed 2 months ago

hayyaw commented 2 months ago

Issue Type

Others

OS

Linux

onnx2tf version number

1.23.2

onnx version number

1.15.0

onnxruntime version number

1.17.1

onnxsim (onnx_simplifier) version number

0.4.33

tensorflow version number

2.16.1

Download URL for ONNX

image

Parameter Replacement JSON

no

Description

onnx model image

Full INT8 Quantization tflite image.

command: onnx2tf.py -i inception_v3_Opset18.onnx -oiqt

the part structure of full INT8 Quantization tflite is so different from the origin onnx model. Is it a bug? Can it be simplified as the structure of onnx model with quantized tflite op? Thanks!

PINTO0309 commented 2 months ago

Is it a bug?

No.

https://github.com/PINTO0309/onnx2tf/pull/138 https://github.com/PINTO0309/onnx2tf/pull/151 https://github.com/PINTO0309/onnx2tf/pull/211