Verified: 7 days ago
Other
The FLUX.1 [dev] Model is licensed by Black Forest Labs. Inc. under the FLUX.1 [dev] Non-Commercial License. Copyright Black Forest Labs. Inc.
IN NO EVENT SHALL BLACK FOREST LABS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.
Here's an inpainting workflow for Flux that actually works without eating all your VRAM or messing up the original image colors (kinda)
Instead of processing your entire image, it isolates the exact area you want to change, inpaints it at high resolution, and stitches it back together. You can either draw a mask manually, or just type what you want to mask using the built-in SAM2 node.
* Flux Vae and Flux 2 Klein itself have a tendency to change the brightness (rare) and saturation (more often) of the inpaint areas. Therefore, I included a small workaround aimed at desaturating the output before compositing. (The approximate range is 0.05–0.20, which varies for each image.)
Requires: Crystools, KJNodes, InpaintEasy, ComfyUI_essentials, rgthree, and comfyui-rmbg (for SAM2).
