Skip to content

Commit 6a0abdb

Browse files
authored
Update pipeline_flux_controlnet_inpainting.py
1 parent 4b48d2c commit 6a0abdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class FluxControlNetInpaintPipeline(DiffusionPipeline, FluxLoraLoaderMixin, From
200200

201201
model_cpu_offload_seq = "text_encoder->text_encoder_2->transformer->vae"
202202
_optional_components = []
203-
_callback_tensor_inputs = ["latents", "prompt_embeds"]
203+
_callback_tensor_inputs = ["latents", "prompt_embeds", "control_image"]
204204

205205
def __init__(
206206
self,
@@ -1178,6 +1178,7 @@ def __call__(
11781178

11791179
latents = callback_outputs.pop("latents", latents)
11801180
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
1181+
control_image = callback_outputs.pop("control_image", control_image)
11811182

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

0 commit comments

Comments
 (0)