Sign In

Simple Kontext Inpaint Cropping workflow

Updated: Aug 20, 2025

tool

Download

1 variant available

Archive Other

9.51 KB

Verified:

Type

Workflows

Stats

366

Reviews

Published

Aug 16, 2025

Base Model

Flux.1 Kontext

Hash

AutoV2
20FE662141

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.

This workflow is designed to focus on a specific region of an image when prompting for changes in the image. You simply open the mask editor and mask the part you want to use. (right click on the "load image" node and select open mask editor")

Version 2 adds better upscaling of the masked portion for much better end results. It also adds both a nunchaku and non nunchaku version. (If you were one of the first 10 people to download version 2, please re-download it or at least replace the Load Image (from outputs) with a regular Load Image node. Comfy somehow automatically changed it during an update).

You can install sage attention and nunchaku by following this person's guide:

www.youtube.com/watch?v=CgLL5aoEX-s


You can mess with the inpaint crop node settings a little, but I found better results by upscaling using an upscaler model after it is cropped, right before it gets resized for flux kontext. The final upscalers don't do as much, just make it bigger. You could probably rescale again here with a model if you wanted to.

Kontext often changes the resolution slightly which results in the final image not matching up correctly. This workflow works best for lora that only change one small part of the image.