From a1d75d40aad7678c461f6ee8145e34541ef4eab7 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 25 Nov 2022 23:36:43 +0530 Subject: [PATCH] Update runtime.py --- ui/sd_internal/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/sd_internal/runtime.py b/ui/sd_internal/runtime.py index b6479178..98e39692 100644 --- a/ui/sd_internal/runtime.py +++ b/ui/sd_internal/runtime.py @@ -822,7 +822,7 @@ def _img2img(init_latent, t_enc, batch_size, opt_scale, c, uc, opt_ddim_steps, o #samples = sampler.decode(z_enc, c, t_enc, unconditional_guidance_scale=opt.scale,unconditional_conditioning=uc, ) samples_ddim = sampler.sample( S=t_enc, - batch_size=opt_n_samples, + batch_size=batch_size, conditioning=c, x0=z_enc, unconditional_guidance_scale=opt_scale,