Flux1-schnell-Inpaint-Mask Guide

Community Article Published November 4, 2024

FluxInpaintPipeline doesn't seem to consider the entire image during inpainting.(I 'm not sure the problem is pipeline or my program) Adding more masks can improve the results by providing more context, Alternatively, consider using ControlNet (though I'm not familiar with it).

Example 1

Let's say your input image is this one, and your prompt is "a person with an open mouth"

image/png

maybe you will paint like this.

image/png

however result is poor .

image/png

After some trials I realized giving more masks get better images,so we have to paint mask almost like this.

image/png

Now we get better result but face are totally difference.

image/png

Mix Original Image with first standard mask.

image/png

After Fixing color almost best result,this case increse color x 1.5 with PIL-enhancer image/png

Tools

Images are generated with FLUX.1-schnell and licensed under the Apache 2.0 License