nihui

Results 477 comments of nihui

It looks like there is a problem with your opencv installation It is recommended to reinstall opencv For example brew install

Temporary solution: comment out the protobuf content in pnnx CMakeLists so that it does not compile onnx-zero support https://github.com/Tencent/ncnn/blob/d30af29ee2540eb80d878ff7df6841a7379713cd/tools/pnnx/CMakeLists.txt#L42-L55

https://github.com/Tencent/ncnn/wiki/FAQ-ncnn-produce-wrong-result 参考这个wiki检查下

https://github.com/Tencent/ncnn/wiki/FAQ-ncnn-produce-wrong-result#image-decoding https://github.com/Tencent/ncnn/wiki/FAQ-ncnn-produce-wrong-result#disable-fp16 检查图片格式用无损的bmp/png,禁用fp16推理

https://github.com/Tencent/ncnn/pull/5390 请测试下这个pr是否能解决你遇到的问题

https://github.com/Tencent/ncnn/pull/5393 还有这个pr修复了softmax fp16的运算错误,可以测试下

cmake -DNCNN_BUILD_TOOLS=OFF .. 可以跳过工具编译,caffe2ncnn这些工具可以在 release 里下载编译好的二进制程序