ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

Cannot convert ONNX to NCNN

Open scraus opened this issue 2 years ago • 2 comments

Cannot convert ONNX to NCNN

model | 模型 | モデル

  1. onnx

how to reproduce | 复现步骤 | 再現方法

image

scraus avatar May 28 '23 16:05 scraus

These tools are not under the official responsibility of ncnn. You need submit your issue to https://github.com/daquexian/web-model-converter

wzyforgit avatar May 30 '23 01:05 wzyforgit

针对onnx模型转换的各种问题,推荐使用最新的pnnx工具转换到ncnn In view of various problems in onnx model conversion, it is recommended to use the latest pnnx tool to convert your model to ncnn

pip install pnnx
pnnx model.onnx inputshape=[1,3,224,224]

详细参考文档 Detailed reference documentation https://github.com/pnnx/pnnx https://github.com/Tencent/ncnn/wiki/use-ncnn-with-pytorch-or-onnx#how-to-use-pnnx

nihui avatar Aug 05 '24 09:08 nihui