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:
DenOfEquity
2024-08-18 03:34:11 +01:00
committed by GitHub
parent 0f266c48bd
commit 93bfd7f85b
2 changed files with 3 additions and 2 deletions

View File

@@ -419,6 +419,7 @@ class StableDiffusionProcessing:
return (
required_prompts,
self.distilled_cfg_scale,
steps,
hires_steps,
use_old_scheduling,

View File

@@ -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":