Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problem, when i run detect.py #127

Open
Song-Jie-ing opened this issue Apr 16, 2024 · 0 comments
Open

Some problem, when i run detect.py #127

Song-Jie-ing opened this issue Apr 16, 2024 · 0 comments
Labels
question Further information is requested

Comments

@Song-Jie-ing
Copy link

❔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

@Song-Jie-ing Song-Jie-ing added the question Further information is requested label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant