Home Creators Posts Import Register Favorites Logout

Content

With the Basic-Flux Inpainting workflow, you can use either a single start image or a start video to replace a character or object using inpainting.

This allows you to seamlessly replace a person or element in an image or video – giving you maximum flexibility and creative freedom.

🎨 Workflow Sections

🟡 Important Notes ⚪ Input / Output / Model Loaders 🟢 Prompt / Conditioning 🟠 Inpaint 🟣 ControlNets / Adapters 🔴 Latent / Sampling

Installation

Download the .json file and drag and drop it into your ComfyUI window. Install the missing custom nodes via the manager and restart ComfyUI.

Input LoRA

In this workflow, you can even use multiple LoRAs at once.

This is especially useful if you want to maintain a consistent character across multiple shots. It ensures that your character stays visually coherent throughout.

You can also use LoRAs to apply a specific style to your images or videos. In our example, we used a special LoRA to achieve the desired look.

Prompt + Mask

Here, you can input either a video or a single image.

If you choose to input a video, only the first frame will be used. This is useful for video workflows such as WanVideo Startimage + CN. That’s why the frame_load_cap is set to 1.

After loading the image, you’ll receive a message like:

Once you dismiss the message, you can draw a mask inside the Preview Bridge node. Right click on the image and select Open in MaskEditor

Then paint over the person you want to replace. It looks roughly like this:

In the Positive Prompt below, you describe what should be shown in the masked area. Don’t forget to click Save to store the mask.

If you are using a Consistent Character LoRA, be sure to include its trigger name in the prompt. For example, if you are using the a1mber LoRA, include a1mber in the prompt as you see in the image below.

Inpainting

In the inpainting step, the area you masked earlier will be cut out for image generation.

Through these inpainting process, only this masked region is modified — the rest of the image stays untouched. The regenerated part is then seamlessly blended back in, making the person replacement look natural.

ControlNet

ControlNet in this workflow uses both OpenPose and a Depth-ControlNet.

You can adjust the settings under Apply Advanced ControlNet as needed. Typically, I use OpenPose more strongly, as reflected in the values, but Depth-ControlNet is also important. Depending on the scene, I adjust the strength of the depth map individually — sometimes higher, sometimes lower — based on how well the pose is detected.

Sampler

The Sampler generates the replaced character in the masked area and stitches it back into the image.

If you're not satisfied with the initial result, you can adjust the noise_seed value in the RandomNoise node to generate different outcomes. This way, you can quickly explore variations until you find the one that fits your project best.

Files

Comments

No comments found for this post.