Skip to content

Commit 4478ea7

Browse files
authored
Update pipeline_flux_controlnet_inpainting.py
1 parent 6a0abdb commit 4478ea7

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

205205
def __init__(
206206
self,
@@ -1179,6 +1179,7 @@ def __call__(
11791179
latents = callback_outputs.pop("latents", latents)
11801180
prompt_embeds = callback_outputs.pop("prompt_embeds", prompt_embeds)
11811181
control_image = callback_outputs.pop("control_image", control_image)
1182+
mask = callback_outputs.pop("mask", mask)
11821183

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

0 commit comments

Comments
 (0)