我将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)