demobook

ComfyUI: Selective inpainting with crop and stitch

Demo summary

Using the 'ComfyUI inpaint crop and stitch' nodes, the user demonstrates masking a specific window area to insert a glowing LED digital facade.

Step-by-step

  1. Install the 'easy use RG3' and 'ComfyUI inpaint crop and stitch' custom nodes via the ComfyUI Manager
  2. Right-click your uploaded image and select 'Open in Mask Editor'
  3. Adjust the brush size and paint over the object you want to remove
  4. Save the selection
  5. Enter a simple, specific prompt describing the addition
  6. Connect the 'Inpaint Stitch' node to paste the generated section back into the original image
  7. Run the workflow to generate the media screen in the masked area

Options

  • Adjust blending pixel edges in the Inpaint Crop node
  • Use prompts alone for selective editing instead of inpainting

Watch out for

  • Requires specific custom nodes (RG3 and Inpaint Crop and Stitch) to be installed first
  • The workflow requires an Inpaint Condition node for the KSampler

Tips

  • Make the mask slightly bigger than the object so that it can be blended in with the generation
  • Keep the prompt very simple and specific for better results
  • Use this workflow for iteratively making changes while maintaining the surrounding areas

Highlights

this is great for iteratively making changes. You see it maintains the same areas.

All demos from “Flux Kontext – 10 Creative AI Use Cases EXPLAINED for Design and Architecture

  1. 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.ComfyUIAI Inpainting
  2. 3:241:56Combine image references for furniture placementUsing the image stitch node in ComfyUI, the creator demonstrates how to take an empty room and populate it with furniture from a second reference image using Flux Kontext.ComfyUIAI Image Combiner
  3. 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.ComfyUIAI Inpainting
  4. 6:130:34Day to night time-of-day transformationThe creator shows how to prompt Flux Kontext to change a daytime architectural shot into an evening scene with ambient lighting.ComfyUIAI Relighting
  5. 6:471:52Selective inpainting with crop and stitchCurrentUsing the 'ComfyUI inpaint crop and stitch' nodes, the user demonstrates masking a specific window area to insert a glowing LED digital facade.ComfyUIAI Inpainting
  6. 8:540:42Style transfer to watercolor paintingThe video shows how to use a reference image to transform a realistic house photo into a watercolor painting style using Flux Kontext.ComfyUIAI Style Transfer
  7. 11:001:54Applying LoRAs for line drawings and Lego stylesThe user demonstrates stacking LoRA models in ComfyUI to transform buildings into line drawings or Lego-style structures using Flux Kontext.ComfyUIAI Style Transfer
  8. 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.ComfyUIAI Inpainting
  9. 14:250:55Applying texture references to 3D objectsThe video demonstrates applying a tiled pattern texture from one image onto a white sofa in another image, effectively performing AI-based UV mapping.ComfyUIAI Texture Generator
  10. Watch “Flux Kontext – 10 Creative AI Use Cases EXPLAINED for Design and Architecture” →

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 stitchCurrentUsing 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