-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Complex Inpaint Masks #8035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Complex Inpaint Masks #8035
Conversation
…InvokeAI into complex_inpaint_masks
Good addition (especially the noise!) I'm a bit fearful of complicating the Inpaint Mask UX in two ways:
Let us do some noodling on the UX here |
Update: The other architectures all share the same At least for flux dev, attempting to use denoise limits on masks is hit or miss since so much of the final image is decided in the first few steps. Adding noise helps that a bit, but the whole usable range is still somewhere between 0.7-0.9 |
Summary
This PR adds two new core features to inpaint masks on the canvas.
Now there is a reason to use more than one mask layer :)
Some back-end changes that were required to make it work:
Mask Noise Demonstration:
https://github.com/user-attachments/assets/c690ab72-b7ba-435e-b556-cd91ddf2d527
Inpaint Mask Noise improves Flux as well:

Multiple Denoise Limits Demonstration:
https://github.com/user-attachments/assets/d3e33229-2e83-4157-bb31-300057000597
Related Issues / Discussions
Denoise Limits do not work on flux because flux is not yet compatible with gradient masks. Currently it thresholds at 100% and 50% instead. It doesn't break anything, but using a limit below 100% has almost no effect on the image.Works now, but isn't super helpful because of how flux works.I am a neophyte at frontend code, and I had a lot of conversations with the Q Chat AI to add these features. So if anything in the code looks dumb, then that'd be because I'm dumb.
QA Instructions
I have tested inpaint/outpaint/both on SDXL/Flux at 1024/1536 resolutions with/without scaling, with/without mask noise, and with/without denoise limits. That should cover all the bases where this could break things, but be on the lookout for anyone reporting some new and slightly out of ordinary results on canvas.
Merge Plan
Checklist
What's New
copy (if doing a release after this PR)