PIL error
hello, I'm running consolidate_datasets.py and got these errors, could you please tell me what cause them? Thank you sooo much.
File "/Users/z/Desktop/transnetv2/consolidate_datasets.py", line 215, in
Hi,have you solved this problem?
Same issue, was this solved?
I encountered the same issue when processing the dataset, I swapped the rectangle's parameter (x0, x1), and it worked.
def draw_end_frame(frame_no):
w = frame_no % width
h = frame_no // width
draw.rectangle([(w * iw + iw - 3, h * ih), (w * iw + iw - 1, h * ih + ih - 1)], fill=(255, 0, 0))
draw.polygon([(w * iw + iw - 8, h * ih + ih // 2 - 4), (w * iw + iw - 13, h * ih + ih // 2),
(w * iw + iw - 8, h * ih + ih // 2 + 4)], fill=(255, 0, 0))
draw.rectangle([(w * iw + iw - 8, h * ih + ih // 2 - 1), (w * iw + iw - 1, h * ih + ih // 2 + 1)],
fill=(255, 0, 0))
Also, comment the visualize_scenes(video, scenes).save(save_to + ".png") may also be fine