YOLOV5_NCNN_Android icon indicating copy to clipboard operation
YOLOV5_NCNN_Android copied to clipboard

YOLOv5 C++ Implementation on Android using NCNN framework

Results 16 YOLOV5_NCNN_Android issues
Sort by recently updated
recently updated
newest added

将自己的模型转为ncnn,inference结果多了好多误检

你好,我解决了自己训练的模型,部署时预测框都在左上角不对的问题了。 【1】在导出onnx模型时,common.py删除切片操作还是采用的return self.conv(torch.cat([x,x,x,x], 1))替代。然后export.py导出模型时,输入大小改为训练模型时的一半,如输入大小640时为[320, 320] ![image](https://user-images.githubusercontent.com/67671719/89187394-d1060280-d5cf-11ea-94b0-5058bd7ff863.png) ![image](https://user-images.githubusercontent.com/67671719/89188048-b1bba500-d5d0-11ea-8957-cd5323dd4c18.png) 【2】预测框不对是因为YoloV5.h文件中,预测层没有根据自己模型指定对,原来的是“394,“375,“output”这3层输出,可以根据Netron查看自己模型的3个预测层修改,我的是“output”,“423”,“442”,然后预测框正确。 ![image](https://user-images.githubusercontent.com/67671719/89188519-5c33c800-d5d1-11ea-9d69-9be395769f23.png) ![image](https://user-images.githubusercontent.com/67671719/89186746-cf880a80-d5ce-11ea-91e9-47f18a203e43.png) 感谢之前各位大佬的回答和分享! _Originally posted by @Skr20200701 in https://github.com/sunnyden/YOLOV5_NCNN_Android/issues/3#issuecomment-668028381_

I have use my yolov5 model to replace yours, the process is that *.pt -> *.onnx -> *-sim.onnx -> *-sim.param, *-sim.bin. Then use the Android Studio to Synic..., Build ->...

请问一下,我用onnx2ncnn转换yolov5s.onnx的时候出现Segmentation fault (core dumped)这种错误,怎么处理?我用的命令是 ./onnx2ncnn yolov5s-sim.onnx y5.param y5.bin。这种怎么解决?

Hi, Thanks for you work i using my own trained model file will report error Slice operation in .pt or in .onnx?