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
706 stars 73 forks source link

Wrong shape converted for GIST-all-MiniLM-L6-v2 #687

Closed superjackie closed 2 months ago

superjackie commented 2 months ago

Issue Type

Others

OS

Windows

onnx2tf version number

1.25.9

onnx version number

1.16.2

onnxruntime version number

1.19.2

onnxsim (onnx_simplifier) version number

0.4.36

tensorflow version number

2.17.0

Download URL for ONNX

https://huggingface.co/avsolatorio/GIST-all-MiniLM-L6-v2/resolve/main/onnx/model.onnx?download=true

Parameter Replacement JSON

{}

Description

  1. Purpose: convert GIST-all-MiniLM-L6-v2 onnx model to tflite
  2. command run on x86 windows11 WSL: onnx2tf -i model.onnx -osd -coion -b 1
  3. Issue: incorrect shape for this node: image image
  4. log: log.txt
PINTO0309 commented 2 months ago

Ref: https://github.com/PINTO0309/onnx2tf/issues/681 TODO: https://github.com/PINTO0309/onnx2tf/commit/28d98afbad3d00cd018ef6caea65ae42c5ccfb4e

https://github.com/PINTO0309/onnx2tf/releases/download/1.25.9/GIST-all-MiniLM-L6-v2.zip

image

PINTO0309 commented 2 months ago

https://github.com/PINTO0309/onnx2tf/commit/4268bcfbf6ad467c5156c04ed7e8a68139cb1d0e

The architecture of onnx2tf is not able to meet your request. Please try the following tools:

  1. https://github.com/google-ai-edge/ai-edge-torch
  2. https://github.com/AlexanderLutsenko/nobuco
superjackie commented 2 months ago

4268bcf

The architecture of onnx2tf is not able to meet your request. Please try the following tools:

  1. https://github.com/google-ai-edge/ai-edge-torch
  2. https://github.com/AlexanderLutsenko/nobuco

Thanks, I'll try that.