stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[BUG] Prompt Matrix final grid image not rendering label text correctly

Open igoralvarezz opened this issue 3 years ago • 1 comments

Describe the bug Final grid image with 'prompt matrix' option not rendering the text correctly. I noticed two bugs:

  1. Strike-through font not rendering correctly (shows each letter of the word separated by □)
  2. If there are a lot of different terms in the matrix, the stacking of them leave some words out of the image boundaries

To Reproduce Steps to reproduce the behavior:

  1. Generate a prompt matrix image with 8 or more terms, I've used "a large black object|flying through a purple sky|a digital rendering by Chris Moore|cg society|precisionism|ue5|playstation 5 screenshot|concept art"
  2. The final grid image will have problems rendering the strike-through text.

Expected behavior 1.Strikethrough rendering correctly. 2.More white margin around the images to allow for all the terms in the prompt matrix to show on final image.

Screenshots image

Running on Desktop:

  • OS: Google Colab Notebook linked in the README
  • Google Chrome Version 102.0.5005.115 (Official Build) (64-bit) on Debian 11

Additional context I know it may be kind of an edge case for the quantity of terms but the strikethrough I guess will be an issue to everyone running the Colab notebook if the issue is reproducible.

igoralvarezz avatar Aug 30 '22 13:08 igoralvarezz

The first issue might be something to do with the font the colab is loading

The second is could be related, or like you said it just needs a bigger margin

hlky avatar Aug 30 '22 14:08 hlky

For the first issue, is the strikethrough really necessary? I think being gray suffices to denote that the prompt is inactive.

vibrantrida avatar Sep 03 '22 07:09 vibrantrida

@vibrantrida the original issue author never got back to me, presumably their issue resolved at some point. Other users have had issues that involve colab and fonts not loading/not working.

hlky avatar Sep 03 '22 08:09 hlky

@hlky Sorry for not getting back earlier. But unfortunately I wasn't able to solve it. But I agree with @vibrantrida , I guess that the font grayed out or even take off the word entirely would be better. The second option would even help with the margin problem, saving space (at least for the first items). About the margin problem, maybe if we start to draw the final image from the fonts, align them to the left/top and, after all the rows and columns are placed, place the images aside/bellow with some padding may help adjust the space according to the need of each grid instead of having a fixed margin.

igoralvarezz avatar Sep 03 '22 13:09 igoralvarezz

@vibrantrida the original issue author never got back to me, presumably their issue resolved at some point. Other users have had issues that involve colab and fonts not loading/not working.

Why was this closed? The overflowing prompt list is a bigger issue than the strikethrough not rendering correctly.

vibrantrida avatar Sep 03 '22 23:09 vibrantrida