Skip to content

Commit 52b36df

Browse files
authored
Update pipeline_controlnet.py
1 parent 989a8e7 commit 52b36df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/controlnet/pipeline_controlnet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class StableDiffusionControlNetPipeline(
207207
model_cpu_offload_seq = "text_encoder->image_encoder->unet->vae"
208208
_optional_components = ["safety_checker", "feature_extractor", "image_encoder"]
209209
_exclude_from_cpu_offload = ["safety_checker"]
210-
_callback_tensor_inputs = ["latents", "prompt_embeds", "negative_prompt_embeds"]
210+
_callback_tensor_inputs = ["latents", "prompt_embeds", "negative_prompt_embeds", "image"]
211211

212212
def __init__(
213213
self,
@@ -1323,6 +1323,7 @@ def __call__(
13231323
latents = callback_outputs.pop("latents", latents)
13241324
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
13251325
negative_prompt_embeds = callback_outputs.pop("negative_prompt_embeds", negative_prompt_embeds)
1326+
image = callback_outputs.pop("image", image)
13261327

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

0 commit comments

Comments
 (0)