aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorwinterspringsummer <linoo@naver.com>2022-10-16 04:50:55 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-16 06:47:31 +0000
commit2ce27728f6433911274efa67856315d22df56629 (patch)
tree5307cf5cbe978d357730e05d0930f9af1f9fa55c /modules/ui.py
parent0c5fa9a681672508adadbe1e10fc16d7fe0ed6dd (diff)
downloadstable-diffusion-webui-gfx803-2ce27728f6433911274efa67856315d22df56629.tar.gz
stable-diffusion-webui-gfx803-2ce27728f6433911274efa67856315d22df56629.tar.bz2
stable-diffusion-webui-gfx803-2ce27728f6433911274efa67856315d22df56629.zip
added extras batch work from directory
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index b867d40f..08fa72c6 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1016,6 +1016,15 @@ def create_ui(wrap_gradio_gpu_call):
with gr.TabItem('Batch Process'):
image_batch = gr.File(label="Batch Process", file_count="multiple", interactive=True, type="file")
+ with gr.TabItem('Batch from Directory'):
+ extras_batch_input_dir = gr.Textbox(label="Input directory", **shared.hide_dirs,
+ placeholder="A directory on the same machine where the server is running."
+ )
+ extras_batch_output_dir = gr.Textbox(label="Output directory", **shared.hide_dirs,
+ placeholder="Leave blank to save images to the default path."
+ )
+ show_extras_results = gr.Checkbox(label='Show result images', value=True)
+
with gr.Tabs(elem_id="extras_resize_mode"):
with gr.TabItem('Scale by'):
upscaling_resize = gr.Slider(minimum=1.0, maximum=4.0, step=0.05, label="Resize", value=2)
@@ -1060,6 +1069,9 @@ def create_ui(wrap_gradio_gpu_call):
dummy_component,
extras_image,
image_batch,
+ extras_batch_input_dir,
+ extras_batch_output_dir,
+ show_extras_results,
gfpgan_visibility,
codeformer_visibility,
codeformer_weight,