Skip to content

Commit 989a8e7

Browse files
authored
Update pipeline_controlnet_inpaint.py
1 parent 50c9009 commit 989a8e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py

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

189189
def __init__(
190190
self,
@@ -1476,6 +1476,7 @@ def __call__(
14761476
latents = callback_outputs.pop("latents", latents)
14771477
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
14781478
negative_prompt_embeds = callback_outputs.pop("negative_prompt_embeds", negative_prompt_embeds)
1479+
control_image = callback_outputs.pop("control_image", control_image)
14791480

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

0 commit comments

Comments
 (0)