From 9bcb3b1bf75620b31f45da94bfb38766bfa6902b Mon Sep 17 00:00:00 2001 From: Kevin Turner <83819+keturn@users.noreply.github.com> Date: Wed, 7 Dec 2022 18:26:08 -0800 Subject: [PATCH] fixup! refactor(diffusers): reduce some code duplication amongst the different tasks --- ldm/invoke/generator/txt2img2img.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ldm/invoke/generator/txt2img2img.py b/ldm/invoke/generator/txt2img2img.py index 35c6a39ca2..29a7106246 100644 --- a/ldm/invoke/generator/txt2img2img.py +++ b/ldm/invoke/generator/txt2img2img.py @@ -36,7 +36,7 @@ class Txt2Img2Img(Generator): def make_image(x_T): - pipeline_output = pipeline.latents_from_embeddings( + first_pass_latent_output = pipeline.latents_from_embeddings( latents=x_T, num_inference_steps=steps, text_embeddings=c, @@ -48,8 +48,6 @@ class Txt2Img2Img(Generator): # TODO: threshold = threshold, ) - first_pass_latent_output = pipeline_output.latents - print( f"\n>> Interpolating from {init_width}x{init_height} to {width}x{height} using DDIM sampling" )