Text-Image-Augmentation-python icon indicating copy to clipboard operation
Text-Image-Augmentation-python copied to clipboard

生成时候出现错误,但是好像能生成

Open zhangyingying520 opened this issue 3 years ago • 0 comments

麻烦问一下,生成的时候报这个错是怎么回事哪,什么都没改 Total fonts num: 1 Background num: 1 Generate text images in ./output/default Retry gen_img: Traceback (most recent call last): File "main.py", line 75, in gen_img_retry return renderer.gen_img(img_index) File "/home/aistudio/work/text_renderer/textrenderer/renderer.py", line 54, in gen_img bg = self.gen_bg(width=word_size[0] * 8, height=word_size[1] * 8) File "/home/aistudio/work/text_renderer/textrenderer/renderer.py", line 452, in gen_bg bg = self.gen_bg_from_image(int(width), int(height)) File "/home/aistudio/work/text_renderer/textrenderer/renderer.py", line 477, in gen_bg_from_image assert width > height AssertionError

zhangyingying520 avatar Mar 13 '22 07:03 zhangyingying520