diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-09 19:45:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 19:45:45 +0000 |
commit | bdd57ad073041a5051a7a0745c34e53bd9b50cd0 (patch) | |
tree | f43e79374dd7e74074dcbf48fc579f1b12b4d1a8 /modules/ui.py | |
parent | 2b94ec78869db7d2beaad23bdff47340416edf85 (diff) | |
parent | 18c001792a3f034245c2a9c38cb568d31c147fed (diff) | |
download | stable-diffusion-webui-gfx803-bdd57ad073041a5051a7a0745c34e53bd9b50cd0.tar.gz stable-diffusion-webui-gfx803-bdd57ad073041a5051a7a0745c34e53bd9b50cd0.tar.bz2 stable-diffusion-webui-gfx803-bdd57ad073041a5051a7a0745c34e53bd9b50cd0.zip |
Merge pull request #6481 from guaneec/varsize
Allow mixed image sizes in TI/HN training
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py index 719c26b3..9d6b141e 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1348,6 +1348,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():
@@ -1454,6 +1455,7 @@ def create_ui(): log_directory,
training_width,
training_height,
+ varsize,
steps,
clip_grad_mode,
clip_grad_value,
@@ -1485,6 +1487,7 @@ def create_ui(): log_directory,
training_width,
training_height,
+ varsize,
steps,
clip_grad_mode,
clip_grad_value,
|