You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used yolov5-sp6.pt weight to predict images, I encountered an error
Additional context
Traceback (most recent call last):
File "D:\PycharmProjects\PycharmProjects\edgeai-yolov5-yolo-pose\edgeai-yolov5-yolo-pose\detect.py", line 204, in
detect(opt=opt)
File "D:\PycharmProjects\PycharmProjects\edgeai-yolov5-yolo-pose\edgeai-yolov5-yolo-pose\detect.py", line 120, in detect
plot_one_box(xyxy, im0, label=label, color=colors(c, True), line_thickness=opt.line_thickness, kpt_label=kpt_label, kpts=kpts, steps=3, orig_shape=im0.shape[:2])
File "D:\PycharmProjects\PycharmProjects\edgeai-yolov5-yolo-pose\edgeai-yolov5-yolo-pose\utils\plots.py", line 84, in plot_one_box
plot_skeleton_kpts(im, kpts, steps, orig_shape=orig_shape)
File "D:\PycharmProjects\PycharmProjects\edgeai-yolov5-yolo-pose\edgeai-yolov5-yolo-pose\utils\plots.py", line 118, in plot_skeleton_kpts
pos1 = (int(kpts[(sk[0]-1)*steps]), int(kpts[(sk[0]-1)*steps+1]))
IndexError: index 45 is out of bounds for dimension 0 with size 0
The text was updated successfully, but these errors were encountered:
❔Question
When I used yolov5-sp6.pt weight to predict images, I encountered an error
Additional context
Traceback (most recent call last):
File "D:\PycharmProjects\PycharmProjects\edgeai-yolov5-yolo-pose\edgeai-yolov5-yolo-pose\detect.py", line 204, in
detect(opt=opt)
File "D:\PycharmProjects\PycharmProjects\edgeai-yolov5-yolo-pose\edgeai-yolov5-yolo-pose\detect.py", line 120, in detect
plot_one_box(xyxy, im0, label=label, color=colors(c, True), line_thickness=opt.line_thickness, kpt_label=kpt_label, kpts=kpts, steps=3, orig_shape=im0.shape[:2])
File "D:\PycharmProjects\PycharmProjects\edgeai-yolov5-yolo-pose\edgeai-yolov5-yolo-pose\utils\plots.py", line 84, in plot_one_box
plot_skeleton_kpts(im, kpts, steps, orig_shape=orig_shape)
File "D:\PycharmProjects\PycharmProjects\edgeai-yolov5-yolo-pose\edgeai-yolov5-yolo-pose\utils\plots.py", line 118, in plot_skeleton_kpts
pos1 = (int(kpts[(sk[0]-1)*steps]), int(kpts[(sk[0]-1)*steps+1]))
IndexError: index 45 is out of bounds for dimension 0 with size 0
The text was updated successfully, but these errors were encountered: