Skip to content

Commit cca6f25

Browse files
authored
Update pipeline_flux_controlnet.py
1 parent e031caf commit cca6f25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/flux/pipeline_flux_controlnet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class FluxControlNetPipeline(DiffusionPipeline, FluxLoraLoaderMixin, FromSingleF
202202

203203
model_cpu_offload_seq = "text_encoder->text_encoder_2->image_encoder->transformer->vae"
204204
_optional_components = ["image_encoder", "feature_extractor"]
205-
_callback_tensor_inputs = ["latents", "prompt_embeds"]
205+
_callback_tensor_inputs = ["latents", "prompt_embeds", "control_image"]
206206

207207
def __init__(
208208
self,
@@ -1149,6 +1149,7 @@ def __call__(
11491149

11501150
latents = callback_outputs.pop("latents", latents)
11511151
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
1152+
control_image = callback_outputs.pop("control_image", control_image)
11521153

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

0 commit comments

Comments
 (0)