zhenhuaw-me / tflite2onnx

Convert TensorFlow Lite models (*.tflite) to ONNX.
https://zhenhuaw.me/tflite2onnx
Apache License 2.0
149 stars 26 forks source link

Type Error: Type 'tensor(int32)' of input parameter (up_sampling2d/Size) of operator (Resize) in node (up_sampling2d) is invalid. #71

Open zhang0557kui opened 2 years ago

zhang0557kui commented 2 years ago

use tflite2onnx to transform the tflite model to onnx model and I test the onnx model, but error is acoureed: onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from ../models/tflite/palm_detection.onnx failed:This is an invalid model. Type Error: Type 'tensor(int32)' of input parameter (up_sampling2d/Size) of operator (Resize) in node (up_sampling2d) is invalid.

zhenhuaw-me commented 2 years ago

Hi @zhang0557kui Thank you for reporting this issue. It seems to trigger some unsupported case of tflite2onnx. Could you help to narrow it down to the specific tflite operator and attach it? That would help the process of this issue.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.