ncnn CBAM module seems not working

ghhkc1vu  于 3个月前  发布在  其他
关注(0)|答案(1)|浏览(44)

detail | 详细描述 | 詳細な説明

Hi, I implemented CBAM module with global average pooling and maxpooling.
When I converted my onnx model to ncnn, it seemed be successful(sorry, I cannot upload the onnx model by private issue).
But It gives me -nan values when I infer the model (I checked python and C++)

What can I do for this?
Thanks

Attached file is converted .param file
res34_CBAM.param.txt
e

c3frrgcw

c3frrgcw1#

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

相关问题