fix img2img resize

This commit is contained in:
Vladimir Mandic
2023-08-13 09:54:09 +00:00
parent c5c817f482
commit d4b5c487fe
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ def process_diffusers(p: StableDiffusionProcessing, seeds, prompts, negative_pro
sd_samplers.create_sampler(sampler.name, shared.sd_model) # TODO(Patrick): For wrapped pipelines this is currently a no-op
cross_attention_kwargs={}
if p.init_images is not None and len(p.init_images) > 0:
if len(getattr(p, 'init_images', [])) > 0:
while len(p.init_images) < len(prompts):
p.init_images.append(p.init_images[-1])
if lora_state['active']: