You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I trained an ocr model with paddlepaddle-2.6, and export the model to onnx, then I convert the original onnx model to ncnn, it reported error:
Shape not supported yet!
Tile not supported yet!
Shape not supported yet!
Tile not supported yet!
so, i try to use the python3 -m onnx2sim src.onnx sim.onnx to simplifier the onnx model, and it shows as below,
Your model contains "Tile" ops or/and "ConstantOfShape" ops. Folding these ops can make the simplified model much larger. If it is not expected, please specify "--no-large-tensor"(which will lose some optimization chances)
the table show that the shape ops from 2 to 1, the tile ops from 2 to 1, not we expect the 0.
and the convert error is not eliminated when convert the simplified onnx model to ncnn with onnx2ncnn tool.
the input is dynamic with dynamic_batch x 3 x 32 x dynamic
minushuang
changed the title
[BUG] Shape not supported yet! Gather not supported yet!
[BUG] Shape not supported yet! Tile not supported yet!
Feb 29, 2024
Describe the bug
I trained an ocr model with paddlepaddle-2.6, and export the model to onnx, then I convert the original onnx model to ncnn, it reported error:
so, i try to use the
python3 -m onnx2sim src.onnx sim.onnx
to simplifier the onnx model, and it shows as below,Your model contains "Tile" ops or/and "ConstantOfShape" ops. Folding these ops can make the simplified model much larger. If it is not expected, please specify "--no-large-tensor"(which will lose some optimization chances)
the table show that the shape ops from 2 to 1, the tile ops from 2 to 1, not we expect the 0.
and the convert error is not eliminated when convert the simplified onnx model to ncnn with onnx2ncnn tool.
Model
https://drive.google.com/file/d/1ixsUIE3rwwUzmldavvZHr5TxtmBKg94r/view?usp=sharing
The text was updated successfully, but these errors were encountered: