divamgupta / divamgupta/diffusionbee-stable-diffusion-ui
Out/Inpainting affects image outside mask
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 727
- PR merge metrics
- No merged PRs in 30d
Description
This issue may be inherent to StableDiffusion – I have not tried other inpainting UI's to know if they also exhibit this behavior.
Inpainting causes the parts _not_ under the mask to still change. This makes Inpainting in DiffusionBee quickly degrade input images, losing detail even in the first pass – and causing multiple passes to dramatically erode quality.
This might be naive, but couldn't we composite the masked inpainted result against the original to fix this?
**Tests**
| Original | 1 Run | 5 Runs |
|------------------------------------------------------------------------------------------------------------------------------ |------------------------------------------------------------------------------------------------------------------------------ |-------------------------------------------------------------------------------------------------------------------------- |
|  |  |  |
|
|
|  |
**Masks:**

Source: stock images from Google, I do not own these images.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.