Upload folder using huggingface_hub
Browse files1167 unmodified lines11681169117011711172117311741175117611771178117963 unmodified lines12431244124512461247124812491167 unmodified linesgenerator,)mask_imagee = self.mask_processor.preprocess(mask_image, height=height, width=width)masked_imagee = init_image * (1 - mask_imagee)masked_imagee = masked_imagee.to(dtype=self.vae.dtype, device=device)maskkk, masked_image_latentsss = self.prepare_mask_latents_fill(mask_imagee,masked_imagee,batch_size,num_channels_latents,num_images_per_prompt,63 unmodified lineselse:guidance = Nonemasked_image_latents_fill = torch.cat((masked_image_latentsss, maskkk), dim=-1)latent_model_input = torch.cat([latents, masked_image_latents_fill], dim=2)noise_pred = self.transformer(1167 unmodified lines11681169117011711172117311741175117611771178117963 unmodified lines12431244124512461247124812491167 unmodified linesgenerator,)mask_image_fill = self.mask_processor.preprocess(mask_image, height=height, width=width)masked_image_fill = init_image * (1 - mask_image_fill)masked_image_fill = masked_image_fill.to(dtype=self.vae.dtype, device=device)mask_fill, masked_latents_fill = self.prepare_mask_latents_fill(mask_image_fill,masked_image_fill,batch_size,num_channels_latents,num_images_per_prompt,63 unmodified lineselse:guidance = Nonemasked_image_latents_fill = torch.cat((masked_latents_fill, mask_fill), dim=-1)latent_model_input = torch.cat([latents, masked_image_latents_fill], dim=2)noise_pred = self.transformer(
main/pipline_flux_fill_controlnet_Inpaint.py+7-7