anapnoe / stable-diffusion-webui-ux

Stable Diffusion web UI UX
GNU Affero General Public License v3.0
970 stars 58 forks source link

[Bug]: Clip Skip in Quick settings isn't updated #118

Closed rhurta closed 1 year ago

rhurta commented 1 year ago

Is there an existing issue for this?

What happened?

After add clip skip to quick settings, the generated images doesn't use the new value. To change it its needed to restore clip skip to Settings tab then Reload UI image

Steps to reproduce the problem

  1. Add clip skip to quick settings
  2. Change value of clip skip
  3. Generate new image
  4. New image is created with previous clip skip

What should have happened?

New image should be created with new clip skip

Commit where the problem happens

f050e3c2

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--xformers --enable-console-prompts --api --cors-allow-origins=http://127.0.0.1:3456

List of extensions

openOutpaint-webUI-extension https://github.com/zero01101/openOutpaint-webUI-extension.git 5e84d6d5 (Mon Apr 10 23:01:41 2023) unknown openpose-editor https://github.com/fkunn1326/openpose-editor.git 0b10737e (Wed Apr 12 10:20:59 2023) unknown posex https://github.com/hnmr293/posex.git 61169d30 (Sat Apr 1 12:28:38 2023) unknown sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet.git a482867e (Tue May 2 23:13:18 2023) unknown sd-webui-infinite-image-browsing https://github.com/zanllp/sd-webui-infinite-image-browsing.git 6bc7f4ca (Tue May 2 19:52:50 2023) unknown sd-webui-regional-prompter https://github.com/hako-mikan/sd-webui-regional-prompter 0b43e174 (Tue May 2 23:22:53 2023) unknown sd_save_intermediate_images https://github.com/AlUlkesh/sd_save_intermediate_images.git 8115a847 (Mon Mar 27 13:58:26 2023) unknown stable-diffusion-webui-rembg https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git 64821f04 (Sun Mar 12 15:32:00 2023) unknown stable-diffusion-webui-two-shot https://github.com/ashen-sensored/stable-diffusion-webui-two-shot.git 6b55dd52 (Sun Apr 2 11:24:25 2023) unknown ultimate-upscale-for-automatic1111 https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git d002fdfc (Mon May 1 03:37:09 2023) unknown

Console logs

(base) PS D:\AUTOMATIC1111\stable-diffusion-webui-ux> .\webui-user.bat
Already up to date.
venv "D:\AUTOMATIC1111\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.9 | packaged by conda-forge | (main, Jan 11 2023, 15:15:40) [MSC v.1916 64 bit (AMD64)]
Commit hash: f050e3c25d1cf8a6dd3163a7334e07ecfdd2d64c
Installing requirements

Launching Web UI with arguments: --xformers --enable-console-prompts --api --cors-allow-origins=http://127.0.0.1:3456
ControlNet v1.1.132
ControlNet v1.1.132
Loading weights [540fa53557] from D:\AUTOMATIC1111\stable-diffusion-webui-ux\models\Stable-diffusion\DreamShaper_4BakedVae_fp16.ckpt
Creating model from config: D:\AUTOMATIC1111\stable-diffusion-webui-ux\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 47.7s (load weights from disk: 14.7s, load config: 0.1s, create model: 5.1s, apply weights to model: 3.5s, apply half(): 2.9s, apply dtype to VAE: 0.1s, load VAE: 0.7s, move model to device: 2.2s, load textual inversion embeddings: 18.2s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 136.0s (import torch: 43.9s, import gradio: 2.2s, import ldm: 5.4s, other imports: 11.3s, list SD models: 0.1s, setup codeformer: 0.5s, load scripts: 14.8s, load SD checkpoint: 48.3s, create ui: 8.6s, gradio launch: 0.6s, scripts app_started_callback: 0.2s).

txt2img: raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed
['raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed']
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [01:26<00:00,  4.34s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [01:06<00:00,  3.35s/it]
{"prompt": "raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed", "all_prompts": ["raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed"], "negative_prompt": "", "all_negative_prompts": [""], "seed": 535254472, "all_seeds": [535254472], "subseed": 2666284512, "all_subseeds": [2666284512], "subseed_strength": 0, "width": 512, "height": 512, "sampler_name": "Euler a", "cfg_scale": 7, "steps": 20, "batch_size": 1, "restore_faces": false, "face_restoration_model": null, "sd_model_hash": "540fa53557", "seed_resize_from_w": 0, "seed_resize_from_h": 0, "denoising_strength": null, "extra_generation_params": {}, "index_of_first_image": 0, "infotexts": ["raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed\nSteps: 20, Sampler: Euler a, CFG scale: 7, Seed: 535254472, Size: 512x512, Model hash: 540fa53557, Model: DreamShaper_4BakedVae_fp16, Clip skip: 12"], "styles": [], "job_timestamp": "20230503185538", "clip_skip": 12, "is_using_inpainting_conditioning": false}

txt2img: raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed
['raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed']
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:57<00:00,  2.90s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [01:01<00:00,  3.09s/it]
{"prompt": "raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed", "all_prompts": ["raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed"], "negative_prompt": "", "all_negative_prompts": [""], "seed": 3276991943, "all_seeds": [3276991943], "subseed": 2650875172, "all_subseeds": [2650875172], "subseed_strength": 0, "width": 512, "height": 512, "sampler_name": "Euler a", "cfg_scale": 7, "steps": 20, "batch_size": 1, "restore_faces": false, "face_restoration_model": null, "sd_model_hash": "540fa53557", "seed_resize_from_w": 0, "seed_resize_from_h": 0, "denoising_strength": null, "extra_generation_params": {}, "index_of_first_image": 0, "infotexts": ["raw photo of beautiful woman, green hair, braids, red dress, uhd, photorealistic, detailed\nSteps: 20, Sampler: Euler a, CFG scale: 7, Seed: 3276991943, Size: 512x512, Model hash: 540fa53557, Model: DreamShaper_4BakedVae_fp16, Clip skip: 12"], "styles": [], "job_timestamp": "20230503185949", "clip_skip": 12, "is_using_inpainting_conditioning": false}

Additional information

No response

anapnoe commented 1 year ago

when you add settings to quicksettings for the first time you need to restart the ui for the new added quicksettings to take effect I used to display the newly added quicksettings with red tint color but that change lost to the upgrade of gradio and I didn't add it again

rhurta commented 1 year ago

Thanks for your time, I see is already fixed. :)