MNN icon indicating copy to clipboard operation
MNN copied to clipboard

Cannot convert ONNX/TFLITE model to MNN

Open K-prog opened this issue 1 year ago • 3 comments

Using the latest MNNConvert, I am not able to convert my original TFLITE model to MNN. image

I tried converting it to ONNX and then exporting but it seems to get stuck in a loop and throws warnings, tried using onnx-sim and static batch sizes as well image

Command used:

MNNConvert.exe -f ONNX --modelFile "facenet_dynamic-sim.onnx" --MNNModel facenet.mnn --bizCode MNN --info

Model Links

K-prog avatar Aug 12 '24 15:08 K-prog

Use testMNNFromOnnx.py to test. The error may be caused by subgraph's inputs not valid.

jxt1234 avatar Aug 20 '24 03:08 jxt1234

Seems like it stopped at:

Start to Optimize the MNN Net... Screenshot 2024-09-01 at 11 53 35 AM_cleanup

This didn't throw any error, also the ONNX model runs properly.

K-prog avatar Sep 01 '24 06:09 K-prog

It seems has error with dequant. Could you use float model convert to MNN and then quantized it by MNN ?

jxt1234 avatar Oct 05 '24 07:10 jxt1234

Marking as stale. No activity in 60 days.

github-actions[bot] avatar Dec 04 '24 09:12 github-actions[bot]