aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDepFA <35278260+dfaker@users.noreply.github.com>2022-09-25 05:39:22 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-25 05:46:09 +0000
commitab5a472556782801b275bd317790dae7a2cd4a98 (patch)
tree276e7bc16167622d9fe81ef79b42946fa171b808
parentca13264609e9c2667358461be52cf782895841dd (diff)
downloadstable-diffusion-webui-gfx803-ab5a472556782801b275bd317790dae7a2cd4a98.tar.gz
stable-diffusion-webui-gfx803-ab5a472556782801b275bd317790dae7a2cd4a98.tar.bz2
stable-diffusion-webui-gfx803-ab5a472556782801b275bd317790dae7a2cd4a98.zip
Persist default Number values
-rw-r--r--modules/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 228b3905..4862a267 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1062,7 +1062,10 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
if type(x) == gr.Textbox:
apply_field(x, 'value')
-
+
+ if type(x) == gr.Number:
+ apply_field(x, 'value')
+
visit(txt2img_interface, loadsave, "txt2img")
visit(img2img_interface, loadsave, "img2img")
visit(extras_interface, loadsave, "extras")