AttributeError: 'ImageDraw' object has no attribute 'textlength' #1517
i-huzaifa-arshad
started this conversation in
General
Replies: 1 comment 1 reply
-
the A1111 version in dreambooth colab is basic and only for testing the trained model, the repo is frozen, to use the latest A1111 repo, use this colab : https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the txt2img, I am using X/Y plot script and when I run it, it stops mid way and throws this error. In X type, I am using Sampler (Euler a, LMS, Heun, DDIM, PLMS), and in Y type, I am using CFG (7.5), with Draw legend checked.
X/Y plot will create 5 images on a 5x1 grid. (Total steps to process: 350)
100% 70/70 [00:12<00:00, 5.66it/s]
100% 70/70 [00:11<00:00, 5.94it/s]
100% 70/70 [00:23<00:00, 2.92it/s]
Data shape for DDIM sampling is (1, 4, 64, 64), eta 0.0
Running DDIM Sampling with 72 timesteps
DDIM Sampler100% 72/72 [00:12<00:00, 5.68it/s]
Data shape for PLMS sampling is (1, 4, 64, 64)
Running PLMS Sampling with 72 timesteps
PLMS Sampler100% 72/72 [00:12<00:00, 5.58it/s]
Error completing request
Arguments: ('portrait of a skinny slim cute ((yournamehere)) with a Bob cut, wearing round glasses, wearing a pastel pink hoodie, dramatic lighting, anime illustration by Greg rutkowski, yoji shinkawa, 4k, digital art, concept art, trending on artstation ', 'distorted, (((distorted face))), ugly, distorted hands, text, watermark, signature, distorted nose, ', 'None', 'None', 70, 0, True, False, 1, 1, 8.5, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, 3, False, False, False, False, '', 8, 'Euler a, LMS, Heun, DDIM, PLMS', 5, '7.5', True, False, False) {}
Traceback (most recent call last):
File "/content/gdrive/MyDrive/Fast-Dreambooth/sd_db/stable-diffusion-webui/modules/call_queue.py", line 45, in f
res = list(func(*args, **kwargs))
File "/content/gdrive/MyDrive/Fast-Dreambooth/sd_db/stable-diffusion-webui/modules/call_queue.py", line 28, in f
res = func(*args, **kwargs)
File "/content/gdrive/MyDrive/Fast-Dreambooth/sd_db/stable-diffusion-webui/modules/txt2img.py", line 49, in txt2img
processed = modules.scripts.scripts_txt2img.run(p, *args)
File "/content/gdrive/MyDrive/Fast-Dreambooth/sd_db/stable-diffusion-webui/modules/scripts.py", line 337, in run
processed = script.run(p, *script_args)
File "/content/gdrive/MyDrive/Fast-Dreambooth/sd_db/stable-diffusion-webui/scripts/xy_grid.py", line 436, in run
processed = draw_xy_grid(
File "/content/gdrive/MyDrive/Fast-Dreambooth/sd_db/stable-diffusion-webui/scripts/xy_grid.py", line 258, in draw_xy_grid
grid = images.draw_grid_annotations(grid, cell_size[0], cell_size[1], hor_texts, ver_texts)
File "/content/gdrive/MyDrive/Fast-Dreambooth/sd_db/stable-diffusion-webui/modules/images.py", line 186, in draw_grid_annotations
wrapped = wrap(calc_d, line.text, fnt, allowed_width)
File "/content/gdrive/MyDrive/Fast-Dreambooth/sd_db/stable-diffusion-webui/modules/images.py", line 136, in wrap
if drawing.textlength(line, font=font) <= line_length:
AttributeError: 'ImageDraw' object has no attribute 'textlength'
Beta Was this translation helpful? Give feedback.
All reactions