Skip to content

Commit 4b48d2c

Browse files
authored
Update pipeline_flux_controlnet_image_to_image.py
1 parent cca6f25 commit 4b48d2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class FluxControlNetImg2ImgPipeline(DiffusionPipeline, FluxLoraLoaderMixin, From
198198

199199
model_cpu_offload_seq = "text_encoder->text_encoder_2->transformer->vae"
200200
_optional_components = []
201-
_callback_tensor_inputs = ["latents", "prompt_embeds"]
201+
_callback_tensor_inputs = ["latents", "prompt_embeds", "control_image"]
202202

203203
def __init__(
204204
self,
@@ -973,6 +973,7 @@ def __call__(
973973

974974
latents = callback_outputs.pop("latents", latents)
975975
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
976+
control_image = callback_outputs.pop("control_image", control_image)
976977

977978
if i == len(timesteps) - 1 or ((i + 1) > num_warmup_steps and (i + 1) % self.scheduler.order == 0):
978979
progress_bar.update()

0 commit comments

Comments
 (0)