eideehi / sd-webui-better-styles

Stable Diffusion web UI extension that provides a better UI for managing styles.
MIT License
20 stars 5 forks source link

[BUG]: Can't set the preview of the style #7

Open GlebIgorevich opened 1 year ago

GlebIgorevich commented 1 year ago

Is there an existing issue for this?

Bug Description

I'm creating different templates of styles. Trying to add thumbnails for them. The blank preview instead of the correct thumbnails.

Steps to Reproduce

  1. Install the extension via a direct link
  2. Restart A1111 web UI
  3. Add the 1st style (name, name folder, prompt, negative, no other settings)
  4. Set the preview of style - it will be added correctly. Image has been created in stable-diffusion-webui\extensions\sd-webui-better-styles\user-data\images\1
  5. Create a second style (name, name folder, prompt, negative, no other settings)
  6. Set the preview of style - there are no images agged. No images or folders not created in the folder. stable-diffusion-webui\extensions\sd-webui-better-styles\user-data\images\
  7. If I'm creating style with a checkbox (use the current image as a thumbnail) I will have the same result: blank preview, there are no images in the folder

version: v1.4.0 python: 3.10.6 torch: 2.0.1+cu118x formers: N/A gradio: 3.32.0 checkpoint: 980cb713af

Screenshot (optional)

изображение

eideehi commented 1 year ago

Is this bug still occurring? I was unable to reproduce the bug on my end. Could you please check the "src" attribute of the image using your browser's developer tools? devtools

GlebIgorevich commented 1 year ago

Of course изображение

eideehi commented 1 year ago

Thank you for your cooperation. It appears that only the part responsible for saving images is not functioning correctly. I will examine the source code and investigate cases that could lead to such behavior.

eideehi commented 1 year ago

I have changed the method of saving thumbnails in the 1.4.0 update. Please try to confirm if this issue still occurs.