在运行给的yolov8detect.py代码时报错
root@ubuntu:/app# /bin/python /app/rdk_model_zoo/demos/detect/YOLOv8/zyh.py
[RDK_YOLO] [21:19:33.064] [INFO] Namespace(model_path=‘/app/rdk_model_zoo/demos/detect/YOLOv8/models/number7_10_2.bin’, test_img=‘../../../resource/assets/bus.jpg’, img_save_path=‘jupyter_result.jpg’, classes_num=80, reg=16, iou_thres=0.45, conf_thres=0.25)
[BPU_PLAT]BPU Platform Version(1.3.6)!
[HBRT] set log level as 0. version = 3.15.55.0
[DNN] Runtime version = 1.24.5_(3.15.55 HBRT)
[A][DNN][packed_model.cpp:247]Model [HorizonRT] The model builder version = 1.24.3
[RDK_YOLO] [21:19:33.284] [DEBUG] Load D-Robotics Quantize model time = 219.79 ms
[RDK_YOLO] [21:19:33.285] [INFO] → input tensors
[RDK_YOLO] [21:19:33.285] [INFO] intput[0], name=images, type=uint8, shape=(1, 3, 640, 640)
[RDK_YOLO] [21:19:33.285] [INFO] → output tensors
[RDK_YOLO] [21:19:33.285] [INFO] output[0], name=output0, type=float32, shape=(1, 12, 8400, 1)
Traceback (most recent call last):
File “/app/rdk_model_zoo/demos/detect/YOLOv8/zyh.py”, line 330, in
main()
File “/app/rdk_model_zoo/demos/detect/YOLOv8/zyh.py”, line 57, in main
model = YOLOv8_Detect(opt.model_path, opt.conf_thres, opt.iou_thres)
File “/app/rdk_model_zoo/demos/detect/YOLOv8/zyh.py”, line 190, in init
self.m_bboxes_scale = self.quantize_model[0].outputs[1].properties.scale_data[np.newaxis, :]
IndexError: list index out of range