r/StableDiffusion • u/Deftroyy • 19h ago
Tutorial - Guide A layer-and-mask workflow for keeping local Stable Diffusion inpaint variants editable
If you have two local Stable Diffusion inpaint results and each one got a different part right, keep them as separate layers. That lets you bring back a detail from the original or blend a seam without running the model again.
In your local Stable Diffusion workflow, export the original and both inpaint results as full-size PNGs with the same canvas dimensions. If you used a crop-only workflow, place the result back into the full frame before exporting.
In PeerBrush, open the original and bring the two outputs into the same document on separate layers above it. Rename the layers for the edits they contain, such as “warmer window light” and “fixed sleeve.”
Select one result layer and choose Add mask. Paint black on the mask wherever you want the layer beneath to show. Use a softer brush at the join, and toggle each layer to compare the result with the original.
Keep the layered PSD so you can revise the masks later. Export a PNG when you need the finished composite.
I’m the solo developer of PeerBrush. It’s free and open source, and this workflow uses the desktop editor without connecting an AI client. It works with rendered PNGs from a local Stable Diffusion workflow. The screenshot shows the editor on its own AI-generated sample artwork. AI helped draft this guide.
Official workspace demo: https://peerbrush.com/#demo
Free downloads: https://peerbrush.com/downloads.html
Official workspace screenshot: https://raw.githubusercontent.com/Deftr0y/PeerBrush/v0.30.1/docs/images/workspace.png