ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

ONNX2NCNN时,Gather not supported yet!

Open Coay opened this issue 1 year ago • 1 comments

error log | 日志或报错信息 | ログ

使用了onnx-simplifier后依然存在以下报错信息 Unknown data type 0 Gather not supported yet!

model | 模型 | モデル

  1. original model 模型结构图 simplifier结果

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

  1. onnx-simplifier模型
  2. onnx2ncnn转换模型时报错

是不支持nn.embedding吗?试了pnnx也不行

Coay avatar Jun 12 '24 01:06 Coay

针对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

针对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

hi 大佬 同样是用gather算子,如果用的时tensorflow有好的办法吗? 现在是用tf1.15的frozen pb转onnx

R-Ceph avatar Dec 17 '24 01:12 R-Ceph

@nihui 大佬麻烦看下咧

R-Ceph avatar Dec 17 '24 06:12 R-Ceph