From 901a277959d65156a3652015335c2271c1458335 Mon Sep 17 00:00:00 2001 From: user1 Date: Sat, 29 Apr 2023 00:43:21 -0700 Subject: [PATCH] Core implementation of ControlNet and MultiControlNet. --- invokeai/backend/stable_diffusion/diffusers_pipeline.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/invokeai/backend/stable_diffusion/diffusers_pipeline.py b/invokeai/backend/stable_diffusion/diffusers_pipeline.py index ec2902e4d6..1fe20e6361 100644 --- a/invokeai/backend/stable_diffusion/diffusers_pipeline.py +++ b/invokeai/backend/stable_diffusion/diffusers_pipeline.py @@ -699,7 +699,6 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline): for samples_prev, samples_curr in zip(down_block_res_samples, down_samples) ] mid_block_res_sample += mid_sample - # predict the noise residual noise_pred = self.invokeai_diffuser.do_diffusion_step( latent_model_input, @@ -1031,7 +1030,6 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline): dtype=torch.float16, do_classifier_free_guidance=True, ): - if not isinstance(image, torch.Tensor): if isinstance(image, PIL.Image.Image): image = [image]