Skip to content

Commit 41423d4

Browse files
authored
Update pipeline_flux_controlnet_inpainting.py
1 parent d5cfaf2 commit 41423d4

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", "control_image", "mask"]
203+
_callback_tensor_inputs = ["latents", "prompt_embeds", "control_image", "mask", "masked_image_latents"]
204204

205205
def __init__(
206206
self,
@@ -1180,6 +1180,7 @@ def __call__(
11801180
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
11811181
control_image = callback_outputs.pop("control_image", control_image)
11821182
mask = callback_outputs.pop("mask", mask)
1183+
masked_image_latents = callback_outputs.pop("masked_image_latents", masked_image_latents)
11831184

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

0 commit comments

Comments
 (0)