demobook

ComfyUI: Remove objects using Mask Editor and Inpainting

Demo summary

The user demonstrates precisely removing a necklace from a portrait by painting a mask in the ComfyUI Mask Editor and using an inpainting prompt.

Step-by-step

  1. Install the required inpainting node from the ComfyUI Manager
  2. Upload the image containing the object you want to remove
  3. Right-click on the photo and select 'Open in Mask Editor'
  4. Adjust the brush thickness and paint over the object
  5. Save the mask
  6. Enter a prompt starting with 'remove' followed by details of the object
  7. Run the workflow to generate the inpainted result

Options

  • Adjust the thickness of the brush in the Mask Editor

Watch out for

  • You must have the specific inpainting node installed from the manager for the workflow to function
  • Standard model-only removal (without inpainting) will regenerate and change the entire image

Tips

  • Make the mask slightly larger than the object itself to allow for mask blurring
  • The mask does not have to be perfectly precise
  • Use inpainting instead of the base model alone to ensure only the masked area is affected while the rest of the image remains original

Highlights

It removed the necklace really well. I like it a lot. So removing with inpaint seems to be a better way than removing with the model alone.

All demos from “ComfyUI Tutorial Series Ep 52: Master Flux Kontext – Inpainting, Editing & Character Consistency

  1. 2:432:38Generate and upscale images with Flux KontextThe creator demonstrates setting up a basic Flux Kontext workflow in ComfyUI, generating a character image, and then using a KSampler-based upscaler to increase resolution.ComfyUIAI Image Upscaler
  2. 7:201:48Edit image details with Flux KontextThe user shows how to load a reference image and use a text prompt to change specific features, such as changing a cartoon bunny's eye color to red.ComfyUIAI Inpainting
  3. 11:131:26Combine two images using Image StitchThe tutorial demonstrates using the Image Stitch node to combine two separate reference images (a woman and a bunny) into a single scene using Flux Kontext.ComfyUIAI Image Combiner
  4. 12:481:45Style transformation and line art conversionThe creator demonstrates transforming a portrait into a watercolor painting and converting a 3D-style bunny into a line art illustration using specific style prompts.ComfyUIAI Style Transfer
  5. 15:471:17Product branding and placementThe video shows how to take a logo or a product photo (perfume bottle) and use Flux Kontext to place it into a new, AI-generated environment with realistic reflections.ComfyUIAI Product Photography
  6. 17:062:04Background replacement with Inpaint CropThe user demonstrates a workflow using background removal and the Inpaint Crop node to swap a product's background while attempting to maintain the original item's integrity.ComfyUIAI Background Generator
  7. 19:191:08Modify hairstyles and facial featuresThe creator shows how to change a subject's hair color and style (e.g., to a blunt bob with bangs) while attempting to maintain facial consistency using Flux Kontext.ComfyUIAI Inpainting
  8. 21:030:26Edit text within an imageA demonstration of Flux Kontext's ability to change text on a 3D render from 'Welcome' to 'Pixaroma' while maintaining the original font style and perspective.ComfyUIAI Inpainting
  9. 23:191:55Remove objects using Mask Editor and InpaintingCurrentThe user demonstrates precisely removing a necklace from a portrait by painting a mask in the ComfyUI Mask Editor and using an inpainting prompt.ComfyUIAI Inpainting
  10. 25:461:20Apply LoRA models to Flux KontextThe creator shows how to use the Power Lora Loader to apply a 'Glass Prism' LoRA to a product image to transform its visual style.ComfyUIAI Style Transfer
  11. Watch “ComfyUI Tutorial Series Ep 52: Master Flux Kontext – Inpainting, Editing & Character Consistency” →

AI Inpainting

  1. 16:571:43Generate composite image with Flux 2The creator demonstrates image-to-image generation by uploading two reference photos and using a text prompt to replace a logo on a coffee can with his own headshot using the Flux model.WINBUSH
  2. 20:010:28Text-to-image manipulation in ComfyUIThe video shows how to use a text prompt to attempt to rotate an object in an image within a specific node-based workflow.WINBUSH
  3. 1:111:34Configure LTX Latent Anchor Aware nodeThe video shows how to set up the LTX Latent Anchor Aware node in a ComfyUI workflow, explaining how to connect the reference image and adjust strength parameters to prevent identity drift.The AI Girlie
  4. 0:361:56Creative replacement with Flux KontextThe user demonstrates how to change a specific part of an image, such as replacing a building entrance with a glass door, using the Flux Kontext model in ComfyUI while maintaining the original scene context.Urban Decoders
  5. 5:200:53Change season to winter in architectural scenesThe demonstration shows how to use a text prompt to transform a summer architectural shot into a winter scene with snow on rooftops and trees using Flux Kontext.Urban Decoders
  6. 6:471:52Selective inpainting with crop and stitchUsing the 'ComfyUI inpaint crop and stitch' nodes, the user demonstrates masking a specific window area to insert a glowing LED digital facade.Urban Decoders
  7. 12:540:41Editing text on shop frontsThe demonstration shows how to use Flux Kontext to change specific text on a shop sign while maintaining the original font style and position.Urban Decoders
  8. 15:063:12Transform 3D scenes with Qwen2-VL (Qwen-Edit)The creator uses the Qwen-Edit workflow to perform complex scene modifications, such as changing weather to rain or snow, while preserving the original 3D geometry and text.Matt Hallett Visual
  9. 20:221:07Fix text and faces using Crop and StitchA demonstration of a custom 'crop image' node to isolate specific areas like signs or faces, regenerate them at native resolution, and stitch them back into the high-res image.Matt Hallett Visual
  10. 7:201:48Edit image details with Flux KontextThe user shows how to load a reference image and use a text prompt to change specific features, such as changing a cartoon bunny's eye color to red.pixaroma
  11. 19:191:08Modify hairstyles and facial featuresThe creator shows how to change a subject's hair color and style (e.g., to a blunt bob with bangs) while attempting to maintain facial consistency using Flux Kontext.pixaroma
  12. 21:030:26Edit text within an imageA demonstration of Flux Kontext's ability to change text on a 3D render from 'Welcome' to 'Pixaroma' while maintaining the original font style and perspective.pixaroma