diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-14 14:03:03 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-14 14:03:03 +0000 |
commit | e644b5a80beb54b6df4caa63fb19d889dd4ceff6 (patch) | |
tree | 09b6db4f6aecaeba7f79925604ee341d71b382c7 /modules/ui.py | |
parent | b382de2d77c653c565840ce92d27aa668a1934d7 (diff) | |
download | stable-diffusion-webui-gfx803-e644b5a80beb54b6df4caa63fb19d889dd4ceff6.tar.gz stable-diffusion-webui-gfx803-e644b5a80beb54b6df4caa63fb19d889dd4ceff6.tar.bz2 stable-diffusion-webui-gfx803-e644b5a80beb54b6df4caa63fb19d889dd4ceff6.zip |
remove scale latent and no-crop options from hires fix
support copy-pasting new parameters for hires fix
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/modules/ui.py b/modules/ui.py index f2d81f68..d66ddc14 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -540,16 +540,9 @@ def create_ui(wrap_gradio_gpu_call): enable_hr = gr.Checkbox(label='Highres. fix', value=False)
with gr.Row(visible=False) as hr_options:
- with gr.Column(scale=1.0):
- firstphase_width = gr.Slider(minimum=64, maximum=1024, step=64, label="First pass width", value=512)
- firstphase_height = gr.Slider(minimum=64, maximum=1024, step=64, label="First pass height", value=512)
-
- with gr.Column(scale=1.0):
- with gr.Row():
- crop_scale = gr.Checkbox(label='Crop when scaling', value=False)
- scale_latent = gr.Checkbox(label='Scale latent', value=False)
- with gr.Row():
- denoising_strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='Denoising strength', value=0.7)
+ firstphase_width = gr.Slider(minimum=64, maximum=1024, step=64, label="First pass width", value=512)
+ firstphase_height = gr.Slider(minimum=64, maximum=1024, step=64, label="First pass height", value=512)
+ denoising_strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='Denoising strength', value=0.7)
with gr.Row(equal_height=True):
batch_count = gr.Slider(minimum=1, step=1, label='Batch count', value=1)
@@ -610,11 +603,9 @@ def create_ui(wrap_gradio_gpu_call): height,
width,
enable_hr,
- scale_latent,
denoising_strength,
firstphase_width,
firstphase_height,
- crop_scale,
] + custom_inputs,
outputs=[
txt2img_gallery,
@@ -679,8 +670,8 @@ def create_ui(wrap_gradio_gpu_call): (denoising_strength, "Denoising strength"),
(enable_hr, lambda d: "Denoising strength" in d),
(hr_options, lambda d: gr.Row.update(visible="Denoising strength" in d)),
- (firstphase_width, "First pass width"),
- (firstphase_height, "First pass height"),
+ (firstphase_width, "First pass size-1"),
+ (firstphase_height, "First pass size-2"),
]
modules.generation_parameters_copypaste.connect_paste(paste, txt2img_paste_fields, txt2img_prompt)
token_button.click(fn=update_token_counter, inputs=[txt2img_prompt, steps], outputs=[token_counter])
|