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
File "draw_box.py", line 111, in
box_num = draw_box_on_image(image_names[image_total], classes, colors, label_folder, raw_images_folder, save_images_folder)#对图片画框
File "draw_box.py", line 69, in draw_box_on_image
plot_one_box([x1,y1,x2,y2], image, color=colors[class_idx], label=classes[class_idx], line_thickness=None)
IndexError: list index out of range
There seems to be a list index issue that limites this to 675 images. Any idea what could fix this?
The text was updated successfully, but these errors were encountered:
I cannot reproduce this error on my end. I tested a more enormous image volume and it does work with >675 images.
Probably the error is triggered by some other reason.
Banana-4_jpg.rf.e7ab025d4785f0ab4ff667d0fe2f3ded
Traceback (most recent call last):
File "/content/draw-YOLO-box/draw_box.py", line 106, in
box_num = draw_box_on_image(
File "/content/draw-YOLO-box/draw_box.py", line 66, in draw_box_on_image
plot_one_box([x1, y1, x2, y2], image, color=colors[class_idx],
IndexError: list index out of range
File "draw_box.py", line 111, in
box_num = draw_box_on_image(image_names[image_total], classes, colors, label_folder, raw_images_folder, save_images_folder)#对图片画框
File "draw_box.py", line 69, in draw_box_on_image
plot_one_box([x1,y1,x2,y2], image, color=colors[class_idx], label=classes[class_idx], line_thickness=None)
IndexError: list index out of range
There seems to be a list index issue that limites this to 675 images. Any idea what could fix this?
The text was updated successfully, but these errors were encountered: