mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-09 13:49:48 +00:00
X/Y plot can not output the final result with this error message #244
This commit is contained in:
@@ -135,7 +135,12 @@ def draw_grid_annotations(im, width, height, hor_texts, ver_texts):
|
|||||||
|
|
||||||
fontsize = (width + height) // 25
|
fontsize = (width + height) // 25
|
||||||
line_spacing = fontsize // 2
|
line_spacing = fontsize // 2
|
||||||
fnt = ImageFont.truetype(opts.font or Roboto, fontsize)
|
|
||||||
|
try:
|
||||||
|
fnt = ImageFont.truetype(opts.font or Roboto, fontsize)
|
||||||
|
except Exception:
|
||||||
|
fnt = ImageFont.truetype(Roboto, fontsize)
|
||||||
|
|
||||||
color_active = (0, 0, 0)
|
color_active = (0, 0, 0)
|
||||||
color_inactive = (153, 153, 153)
|
color_inactive = (153, 153, 153)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user