mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-09 01:19:58 +00:00
invalidate cond cache if distilled CFG changed (#1240)
* Update processing.py add distilled_cfg_scale to params that invalidate cond cache * Update ui.py distilled CFG and CFG step size 0.1 (from 0.5)
This commit is contained in:
@@ -419,6 +419,7 @@ class StableDiffusionProcessing:
|
||||
|
||||
return (
|
||||
required_prompts,
|
||||
self.distilled_cfg_scale,
|
||||
steps,
|
||||
hires_steps,
|
||||
use_old_scheduling,
|
||||
|
||||
@@ -307,9 +307,9 @@ def create_ui():
|
||||
|
||||
elif category == "cfg":
|
||||
with gr.Row():
|
||||
distilled_cfg_scale = gr.Slider(minimum=0.0, maximum=30.0, step=0.5, label='Distilled CFG Scale', value=3.5, elem_id="txt2img_distilled_cfg_scale")
|
||||
distilled_cfg_scale = gr.Slider(minimum=0.0, maximum=30.0, step=0.1, label='Distilled CFG Scale', value=3.5, elem_id="txt2img_distilled_cfg_scale")
|
||||
with gr.Row():
|
||||
cfg_scale = gr.Slider(minimum=1.0, maximum=30.0, step=0.5, label='CFG Scale', value=7.0, elem_id="txt2img_cfg_scale")
|
||||
cfg_scale = gr.Slider(minimum=1.0, maximum=30.0, step=0.1, label='CFG Scale', value=7.0, elem_id="txt2img_cfg_scale")
|
||||
cfg_scale.change(lambda x: gr.update(interactive=(x != 1)), inputs=[cfg_scale], outputs=[toprow.negative_prompt], queue=False, show_progress=False)
|
||||
|
||||
elif category == "checkboxes":
|
||||
|
||||
Reference in New Issue
Block a user