aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authordan <guaneec@gmail.com>2023-01-07 17:34:52 +0000
committerdan <guaneec@gmail.com>2023-01-07 18:31:40 +0000
commit669fb18d5222f53ae48abe0f30393d846c50ad91 (patch)
treed23e334e7d52bd446f2f2a4f566c455c6dc69a48 /modules/ui.py
parent448b9cedab66e05b5b2800513ca334a769b42aa7 (diff)
downloadstable-diffusion-webui-gfx803-669fb18d5222f53ae48abe0f30393d846c50ad91.tar.gz
stable-diffusion-webui-gfx803-669fb18d5222f53ae48abe0f30393d846c50ad91.tar.bz2
stable-diffusion-webui-gfx803-669fb18d5222f53ae48abe0f30393d846c50ad91.zip
Add checkbox for variable training dims
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 99483130..4e709a71 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1343,6 +1343,7 @@ def create_ui():
template_file = gr.Textbox(label='Prompt template file', value=os.path.join(script_path, "textual_inversion_templates", "style_filewords.txt"), elem_id="train_template_file")
training_width = gr.Slider(minimum=64, maximum=2048, step=8, label="Width", value=512, elem_id="train_training_width")
training_height = gr.Slider(minimum=64, maximum=2048, step=8, label="Height", value=512, elem_id="train_training_height")
+ varsize = gr.Checkbox(label="Ignore dimension settings and do not resize images", value=False, elem_id="train_varsize")
steps = gr.Number(label='Max steps', value=100000, precision=0, elem_id="train_steps")
with FormRow():
@@ -1449,6 +1450,7 @@ def create_ui():
log_directory,
training_width,
training_height,
+ varsize,
steps,
clip_grad_mode,
clip_grad_value,
@@ -1480,6 +1482,7 @@ def create_ui():
log_directory,
training_width,
training_height,
+ varsize,
steps,
clip_grad_mode,
clip_grad_value,