nihui
nihui
> > 另外建议重新用新版NCNN导出一下模型,因为中间有过一次不兼容的算子升级 > > 用最新的试了下,检测结果还是异常,还有其他办法吗 `-DNCNN_OPENMP=OFF` 编译试试?我发现 ndk-r16b 的 libomp 底层实现有问题。。。得想办法绕过编译器bug了。。
用最新的 git 版本 + ndk-r16b + 附件中的模型测试,armv7 armv8 在手机上效果都正常
没有把后处理去掉?
注意取结果有 channel gap https://github.com/Tencent/ncnn/wiki/FAQ-ncnn-produce-wrong-result#blob-may-have-channel-gap
ncnn 不需要 batch 维度,输入 4x52 便会输出 4x80
https://github.com/Tencent/ncnn/pull/3970
这个模型里存在着手写的 multiheadattention,暂时无法合并,建议改为标准的 nn.MultiheadAttention 实现
可以参考 https://github.com/android/ndk/issues/1028 的建议,修改 ld flags 老的ndk上尝试 ``` -Wl,-Bstatic -lomp -Wl,-Bdynamic ``` 新的ndk这样 ``` -fstatic-openmp ```
https://github.com/Tencent/ncnn/pull/3799 验证下来是编译器针对 armv7 优化不力导致,改写了下
As far as I know, onnx2ncnn only supports the onnx models converted from pytorch. There is a keras2ncnn utility being developed by the community, but I don't know when it...