mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-15 14:31:44 +03:00
Update webui.py
Fix CheckboxGroup read error
This commit is contained in:
parent
d2968f4089
commit
5d452710b1
4
webui.py
4
webui.py
@ -560,7 +560,7 @@ def txt2img(prompt: str, ddim_steps: int, sampler_name: str, toggles: list, ddim
|
||||
|
||||
# print('toggles:', toggles)
|
||||
prompt_matrix = 0 in toggles
|
||||
normalize_prompt_weights = 1
|
||||
normalize_prompt_weights = 1 in toggles
|
||||
skip_save = 2 not in toggles
|
||||
skip_grid = 3 not in toggles
|
||||
use_GFPGAN = 4 in toggles
|
||||
@ -718,7 +718,7 @@ def img2img(prompt: str, init_info, mask_mode, ddim_steps: int, sampler_name: st
|
||||
seed = seed_to_int(seed)
|
||||
|
||||
prompt_matrix = 0 in toggles
|
||||
normalize_prompt_weights = 1
|
||||
normalize_prompt_weights = 1 in toggles
|
||||
loopback = 2 in toggles
|
||||
skip_save = 3 not in toggles
|
||||
skip_grid = 4 not in toggles
|
||||
|
Loading…
Reference in New Issue
Block a user