Commit b8eae5de authored by AUTOMATIC's avatar AUTOMATIC

Merge remote-tracking branch 'origin/master'

parents 600cc034 72e2a962
...@@ -1040,7 +1040,10 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): ...@@ -1040,7 +1040,10 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
def loadsave(path, x): def loadsave(path, x):
def apply_field(obj, field, condition=None): def apply_field(obj, field, condition=None):
key = path + "/" + field key = path + "/" + field
if getattr(obj,'do_not_save_to_config',False):
return
saved_value = ui_settings.get(key, None) saved_value = ui_settings.get(key, None)
if saved_value is None: if saved_value is None:
ui_settings[key] = getattr(obj, field) ui_settings[key] = getattr(obj, field)
...@@ -1056,6 +1059,15 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): ...@@ -1056,6 +1059,15 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
if type(x) == gr.Radio: if type(x) == gr.Radio:
apply_field(x, 'value', lambda val: val in x.choices) apply_field(x, 'value', lambda val: val in x.choices)
if type(x) == gr.Checkbox:
apply_field(x, 'value')
if type(x) == gr.Textbox:
apply_field(x, 'value')
if type(x) == gr.Number:
apply_field(x, 'value')
visit(txt2img_interface, loadsave, "txt2img") visit(txt2img_interface, loadsave, "txt2img")
visit(img2img_interface, loadsave, "img2img") visit(img2img_interface, loadsave, "img2img")
visit(extras_interface, loadsave, "extras") visit(extras_interface, loadsave, "extras")
......
transformers
diffusers
basicsr basicsr
diffusers
fairscale==0.4.4
fonts
font-roboto
gfpgan gfpgan
gradio gradio
invisible-watermark
git+https://github.com/crowsonkb/k-diffusion.git
numpy numpy
Pillow
realesrgan
torch
transformers
omegaconf omegaconf
piexif
Pillow
pytorch_lightning pytorch_lightning
diffusers realesrgan
invisible-watermark
scikit-image>=0.19 scikit-image>=0.19
fonts
font-roboto
git+https://github.com/crowsonkb/k-diffusion.git
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
timm==0.4.12 timm==0.4.12
fairscale==0.4.4 transformers
piexif torch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment