From 6a054b36151bbd49f77554c561847c236984300d Mon Sep 17 00:00:00 2001 From: Thomas Mello Date: Fri, 2 Sep 2022 00:03:12 +0300 Subject: [PATCH] remove batch_size from img2img (#468) --- webui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui.py b/webui.py index ecb68e3..b096e42 100644 --- a/webui.py +++ b/webui.py @@ -1135,12 +1135,14 @@ class Flagging(gr.FlaggingCallback): def img2img(prompt: str, image_editor_mode: str, init_info, mask_mode: str, mask_blur_strength: int, ddim_steps: int, sampler_name: str, - toggles: List[int], realesrgan_model_name: str, n_iter: int, batch_size: int, cfg_scale: float, denoising_strength: float, + toggles: List[int], realesrgan_model_name: str, n_iter: int, cfg_scale: float, denoising_strength: float, seed: int, height: int, width: int, resize_mode: int, fp): outpath = opt.outdir_img2img or opt.outdir or "outputs/img2img-samples" err = False seed = seed_to_int(seed) + batch_size = 1 + prompt_matrix = 0 in toggles normalize_prompt_weights = 1 in toggles loopback = 2 in toggles