ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

Fix yolov8.cpp larger object boundingbox error

Open caoshihao996 opened this issue 1 year ago • 2 comments

Yolov8 has three different heads and output different size feature maps. So the part of boundingboxs needs to be adjusted accordingly.

caoshihao996 avatar Aug 19 '24 10:08 caoshihao996

CLA assistant check
All committers have signed the CLA.

tencent-adm avatar Aug 19 '24 10:08 tencent-adm

@caoshihao996 @nihui 并没有从yolov8的ultralytics官方ort推理示例中寻找到类似您pr中所提供的根据num_anchors(或称strideNum)的值针对boundingboxs进行坐标和宽高的调整之代码,只有针对fp16和fp32的处理,如果有更多其他可供参考的文档或者Torch Yolov8后处理的代码,欢迎提出来共同学习讨论~

yolov8的ultralytics官方ort推理示例源码: https://github.com/ultralytics/ultralytics/blob/main/examples/YOLOv8-ONNXRuntime-CPP/inference.cpp#L263

whyb avatar Aug 20 '24 06:08 whyb

hi, yolov8 examples are updated with full support for detection, segmentation, classification, pose estimation and obb https://github.com/Tencent/ncnn/tree/master/examples

android demo https://github.com/nihui/ncnn-android-yolov8

detailed instruction (zh) https://zhuanlan.zhihu.com/p/16030630352

nihui avatar Jan 08 '25 08:01 nihui