mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
@@ -76,6 +76,8 @@ class OptionInfo:
|
||||
value = [value]
|
||||
for v in value:
|
||||
if v not in choices:
|
||||
if isinstance(choices, list) and 'All' in choices or 'all' in choices: # may be added dynamically
|
||||
continue
|
||||
log.debug(f'Setting validation: "{opt}"="{v}" default="{self.default}" choices={choices}')
|
||||
# return False
|
||||
minimum = args.get("minimum", None)
|
||||
|
||||
@@ -41,7 +41,7 @@ class StableDiffusionProcessing:
|
||||
# guidance
|
||||
cfg_scale: float = 6.0,
|
||||
cfg_end: float = 1,
|
||||
diffusers_guidance_rescale: float = 0.7,
|
||||
diffusers_guidance_rescale: float = 0.0,
|
||||
pag_scale: float = 0.0,
|
||||
pag_adaptive: float = 0.5,
|
||||
# styles
|
||||
|
||||
@@ -181,7 +181,7 @@ def create_advanced_inputs(tab, base=True):
|
||||
cfg_scale, cfg_end = None, None
|
||||
with gr.Row():
|
||||
image_cfg_scale = gr.Slider(minimum=0.0, maximum=30.0, step=0.1, label='Refine guidance', value=6.0, elem_id=f"{tab}_image_cfg_scale")
|
||||
diffusers_guidance_rescale = gr.Slider(minimum=0.0, maximum=1.0, step=0.05, label='Rescale guidance', value=0.7, elem_id=f"{tab}_image_cfg_rescale", visible=shared.native)
|
||||
diffusers_guidance_rescale = gr.Slider(minimum=0.0, maximum=1.0, step=0.05, label='Rescale guidance', value=0.0, elem_id=f"{tab}_image_cfg_rescale", visible=shared.native)
|
||||
with gr.Row():
|
||||
diffusers_pag_scale = gr.Slider(minimum=0.0, maximum=30.0, step=0.05, label='Attention guidance', value=0.0, elem_id=f"{tab}_pag_scale", visible=shared.native)
|
||||
diffusers_pag_adaptive = gr.Slider(minimum=0.0, maximum=1.0, step=0.05, label='Adaptive scaling', value=0.5, elem_id=f"{tab}_pag_adaptive", visible=shared.native)
|
||||
|
||||
Reference in New Issue
Block a user