Skip to content

Commit dde8754

Browse files
authored
Fix variable naming typos in community FluxControlNetFillInpaintPipeline (#12701)
- Fixed variable naming typos (maskkk -> mask_fill, mask_imagee -> mask_image_fill, masked_imagee -> masked_image_fill, masked_image_latentsss -> masked_latents_fill) These changes improve code readability without affecting functionality.
1 parent fbcd3ba commit dde8754

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/community/pipline_flux_fill_controlnet_Inpaint.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,12 +1168,12 @@ def __call__(
11681168
generator,
11691169
)
11701170

1171-
mask_imagee = self.mask_processor.preprocess(mask_image, height=height, width=width)
1172-
masked_imagee = init_image * (1 - mask_imagee)
1173-
masked_imagee = masked_imagee.to(dtype=self.vae.dtype, device=device)
1174-
maskkk, masked_image_latentsss = self.prepare_mask_latents_fill(
1175-
mask_imagee,
1176-
masked_imagee,
1171+
mask_image_fill = self.mask_processor.preprocess(mask_image, height=height, width=width)
1172+
masked_image_fill = init_image * (1 - mask_image_fill)
1173+
masked_image_fill = masked_image_fill.to(dtype=self.vae.dtype, device=device)
1174+
mask_fill, masked_latents_fill = self.prepare_mask_latents_fill(
1175+
mask_image_fill,
1176+
masked_image_fill,
11771177
batch_size,
11781178
num_channels_latents,
11791179
num_images_per_prompt,
@@ -1243,7 +1243,7 @@ def __call__(
12431243
else:
12441244
guidance = None
12451245

1246-
masked_image_latents_fill = torch.cat((masked_image_latentsss, maskkk), dim=-1)
1246+
masked_image_latents_fill = torch.cat((masked_latents_fill, mask_fill), dim=-1)
12471247
latent_model_input = torch.cat([latents, masked_image_latents_fill], dim=2)
12481248

12491249
noise_pred = self.transformer(

0 commit comments

Comments
 (0)