Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

LCM Inpaint Diffuser #22

Merged
merged 8 commits into from
Nov 17, 2023
Merged

LCM Inpaint Diffuser #22

merged 8 commits into from
Nov 17, 2023

Conversation

saddam213
Copy link
Member

@saddam213 saddam213 commented Nov 11, 2023

PR to implement Inpaint for LCM

It will use the InpaintLegacy process as it does not have a specific Inpiant model

  • Create Diffuser based on Image2Image
  • Create Mask image
  • Add noise to Mask after Step has run

In theory it should be

var noiseLatentTensor = scheduler.AddNoise(imageLatents, noise, timestep);
latents = (1f - maskTensor) * noiseLatentTensor + (maskTensor * latents)

@Amin456789
Copy link

nice!!!

@saddam213 saddam213 marked this pull request as ready for review November 17, 2023 09:18
@saddam213 saddam213 merged commit fa71a4e into master Nov 17, 2023
@saddam213 saddam213 deleted the LCM_Inpaint branch November 17, 2023 09:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants