yolov8推理无框


我将pt转换为bin后,在x5上跑,可以跑到最后,但result,jpg没有框,也就是没有识别到任何东西,我用的yolov8n转换的,用bus.jpg去跑的,转换的yaml如下:没有数据集,所以我这里加了calibration_type: skip

直接用YOLOv8_Detect_YUV420SP.py跑会报错:

对模型输出顺序进行处理后推理结果如下,虽然走通了,但没有任何结果:-
顺序修改如下:-
s_bboxes = outputs[0].reshape(-1, self.REG * 4)-
m_bboxes = outputs[1].reshape(-1, self.REG * 4)-
l_bboxes = outputs[2].reshape(-1, self.REG * 4)-
s_clses = outputs[3].reshape(-1, self.CLASSES_NUM)-
m_clses = outputs[4].reshape(-1, self.CLASSES_NUM)-
l_clses = outputs[5].reshape(-1, self.CLASSES_NUM)

你好, 在算法开发的过程中,遇到各种数值不可控的问题都是正常的,算法开发本身就是需要厚积薄发的领域。算法工具链提供了完整的流程说明,debug工具及流程说明,供您参考。 PTQ流程详解:https://developer.d-robotics.cc/api/v1/fileData/x5\_doc-v126cn/oe\_mapper/source/ptq/ptq\_workflow.html-
精度调优:https://developer.d-robotics.cc/api/v1/fileData/x5\_doc-v126cn/oe\_mapper/source/tune\_content/accuracy\_tune.html-
性能调优:https://developer.d-robotics.cc/api/v1/fileData/x5\_doc-v126cn/oe\_mapper/source/tune\_content/performance\_tune.html-
精度debug工具详解:https://developer.d-robotics.cc/api/v1/fileData/x5\_doc-v126cn/oe\_mapper/source/ptq/ptq\_tool/accuracy\_debug.html-
Runtime程序编写详解:https://developer.d-robotics.cc/api/v1/fileData/x5\_doc-v126cn/oe\_mapper/source/runtime.html

calibration_type: skip代表最终的模型是随机数据,自然不会有结果