-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to convert a model with 3d input shape of dynamic length into tflite int8 format #673
Comments
I will keep notes on the material to research again when I have enough time to work on it.
|
Thank you! |
There is a JSON behavior correction function, but it is difficult to understand and takes a very long time to comprehend. I'm concentrating on other tasks for a while, so if you're in a hurry, try these. The conversion success rate is said to be 100%. |
It turned out to be an Unfortunately, this The padding size is calculated by a rather complicated logic and is forced to conform to TensorFlow, so I have to investigate how to reduce the padding size to zero. Essentially, the output tensor of onnx2tf/onnx2tf/ops/AveragePool.py Lines 306 to 314 in 3ce052d
|
We did try it by using ai-edge-torch, but saw that if failed to modify the code, but after some meddling we could convert the code. But it still does not transform the average pooling layer correctly. |
Thanks for sharing your valuable experience. This is quite a difficult issue. |
I would add debugging resources.
|
I have fixed and released the critical problems except for The problem is that the error was not occurring in the
|
Issue Type
Others
OS
Linux
onnx2tf version number
1.25.6
onnx version number
1.16.1
onnxruntime version number
1.18.1
onnxsim (onnx_simplifier) version number
0.4.33
tensorflow version number
2.17.0
Download URL for ONNX
https://github.com/gurudatta-patil/ML-Campp/blob/main/cam%2B%2B_vin.onnx
Parameter Replacement JSON
~
Description
Input size: [1,-1,80]
name: input
tensor: float32[1,time_frames,80]
I also tried a few other commands including passing a npy file as input.
I am trying to get a int8 output for the model.
I am trying to get this model into lightweight format with minimal quantization error to deploy on embedded device.
The text was updated successfully, but these errors were encountered: