https://pastebin.com/dn2GpiJ9 workflow

I figured out how to do Flux2 klein inpainting on massive images without needing to upscale. It’s using old inpainting stitching nodes that have been around for a while - it prevents the rest of the image from changing at all, and allows you to do multiple inpaints of different areas without running into compounding artifacts from the edit model changing the whole image.

Using some custom timer nodes (not included in my workflow to avoid the “you use too many custom nodes” complaint) I show the edit time for Flux2 klein 9B distilled to do a 6 step inpaint using Lanpaint Ksampler (which is technically optional, but it does improve the results. I also used a color matcher to improve the integration of the inpainting into the main image, also optional.

You can delete the sizer block in the far upper left without consequence, too. That’s just a little quality of life thing there.

I am using this to touch up old photos for a friend’s wedding. My friend’s ex is in a bunch of of photos from years’ past, but now I can easily just remove the ex, keep the likeness of my friend and the other people in the photos, and boom they have a great wedding slideshow!

Happy to hear any other tweaks to the workflow to improve it further.


💬 Discussion r/StableDiffusion (120 points, 22 commentaires) 🔗 Source