Skip to content

Commit 50c9009

Browse files
authored
Update pipeline_controlnet_img2img.py
1 parent 613e77f commit 50c9009

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class StableDiffusionControlNetImg2ImgPipeline(
185185
model_cpu_offload_seq = "text_encoder->unet->vae"
186186
_optional_components = ["safety_checker", "feature_extractor", "image_encoder"]
187187
_exclude_from_cpu_offload = ["safety_checker"]
188-
_callback_tensor_inputs = ["latents", "prompt_embeds", "negative_prompt_embeds"]
188+
_callback_tensor_inputs = ["latents", "prompt_embeds", "negative_prompt_embeds", "control_image"]
189189

190190
def __init__(
191191
self,
@@ -1294,6 +1294,7 @@ def __call__(
12941294
latents = callback_outputs.pop("latents", latents)
12951295
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
12961296
negative_prompt_embeds = callback_outputs.pop("negative_prompt_embeds", negative_prompt_embeds)
1297+
control_image = callback_outputs.pop("control_image", control_image)
12971298

12981299
# call the callback, if provided
12991300
if i == len(timesteps) - 1 or ((i + 1) > num_warmup_steps and (i + 1) % self.scheduler.order == 0):

0 commit comments

Comments
 (0)