mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-15 06:21:34 +03:00
Can't run batches more than 10 after latest commits #218
This commit is contained in:
parent
e1d08e7a87
commit
decd31ca92
@ -31,7 +31,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x,imgproc=lambda
|
||||
value=txt2img_defaults['cfg_scale'], elem_id='cfg_slider')
|
||||
txt2img_seed = gr.Textbox(label="Seed (blank to randomize)", lines=1, max_lines=1,
|
||||
value=txt2img_defaults["seed"])
|
||||
txt2img_batch_count = gr.Slider(minimum=1, maximum=10, step=1,
|
||||
txt2img_batch_count = gr.Slider(minimum=1, maximum=50, step=1,
|
||||
label='Number of images to generate',
|
||||
value=txt2img_defaults['n_iter'])
|
||||
|
||||
@ -202,19 +202,14 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x,imgproc=lambda
|
||||
value=img2img_defaults["width"])
|
||||
img2img_height = gr.Slider(minimum=64, maximum=2048, step=64, label="Height",
|
||||
value=img2img_defaults["height"])
|
||||
|
||||
img2img_cfg = gr.Slider(minimum=-40.0, maximum=30.0, step=0.5,
|
||||
label='Classifier Free Guidance Scale (how strongly the image should follow the prompt)',
|
||||
value=img2img_defaults['cfg_scale'], elem_id='cfg_slider')
|
||||
|
||||
img2img_seed = gr.Textbox(label="Seed (blank to randomize)", lines=1, max_lines=1,
|
||||
value=img2img_defaults["seed"])
|
||||
img2img_batch_count = gr.Slider(minimum=1, maximum=250, step=1,
|
||||
img2img_batch_count = gr.Slider(minimum=1, maximum=50, step=1,
|
||||
label='Batch count (how many batches of images to generate)',
|
||||
value=img2img_defaults['n_iter'])
|
||||
img2img_batch_size = gr.Slider(minimum=1, maximum=8, step=1,
|
||||
label='Batch size (how many images are in a batch; memory-hungry)',
|
||||
value=img2img_defaults['batch_size'])
|
||||
img2img_dimensions_info_text_box = gr.Textbox(label="Aspect ratio (4:3 = 1.333 | 16:9 = 1.777 | 21:9 = 2.333)")
|
||||
with gr.Column():
|
||||
img2img_steps = gr.Slider(minimum=1, maximum=250, step=1, label="Sampling Steps",
|
||||
@ -288,7 +283,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x,imgproc=lambda
|
||||
img2img,
|
||||
[img2img_prompt, img2img_image_editor_mode, img2img_image_mask, img2img_mask,
|
||||
img2img_mask_blur_strength, img2img_steps, img2img_sampling, img2img_toggles,
|
||||
img2img_realesrgan_model_name, img2img_batch_count, img2img_batch_size, img2img_cfg,
|
||||
img2img_realesrgan_model_name, img2img_batch_count, img2img_cfg,
|
||||
img2img_denoising, img2img_seed, img2img_height, img2img_width, img2img_resize,
|
||||
img2img_embeddings],
|
||||
[output_img2img_gallery, output_img2img_seed, output_img2img_params, output_img2img_stats]
|
||||
@ -297,7 +292,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x,imgproc=lambda
|
||||
return (img2img,
|
||||
[img2img_prompt, img2img_image_editor_mode, img2img_image_editor, img2img_mask,
|
||||
img2img_mask_blur_strength, img2img_steps, img2img_sampling, img2img_toggles,
|
||||
img2img_realesrgan_model_name, img2img_batch_count, img2img_batch_size, img2img_cfg,
|
||||
img2img_realesrgan_model_name, img2img_batch_count, img2img_cfg,
|
||||
img2img_denoising, img2img_seed, img2img_height, img2img_width, img2img_resize,
|
||||
img2img_embeddings],
|
||||
[output_img2img_gallery, output_img2img_seed, output_img2img_params, output_img2img_stats])
|
||||
|
Loading…
Reference in New Issue
Block a user