CivArchive
    SDXL Compositing Images Workflow (ComfyUI) - v4.0
    Preview 2200712
    Preview 2200717

    While we're waiting for SDXL ControlNet Inpainting for ComfyUI, here's a decent alternative. It allows you to create a separate background and foreground using basic masking. Works VERY well!.

    Version 4 includes 4 different workflows based on your needs!

    Also if you want a tutorial teaching you how to do copying/pasting/blending, here's a video:

    PRE-REQUISITES

    • WAS Node Suite

    • Impact Pack

    • Node Nesting module

    • Masquerade Nodes

    • Mile High Styler

    INSTALLATION

    • Go to Comfy Manager -> Fetch Updates -> Install Custom Nodes for any missing custom nodes

    • Copy the nested_nodes JSON files into the nested_nodes folder under the nested nodes module

    • Enter Prompt for Subject 1

    • Enter prompt for Subject 2 that will be pasted into Subject 1's scene

    • In the preview box "Mask LOCATION for Subject 2" mask out the area where you want your second subject to be pasted (it will automatically be resized to fit the area you mask

    • In the preview box "Mask Cut out Subject 2", use SAM Detector or mask out the area you want to cut and paste into other image's scene

    • Enter prompt that describes the full scene under the "Check Placement" area

    • You may want to cancel the render a few times while you tweak your settings, but this is a VERY quick/efficient workflow

    Description

    Additional workflow to allow you to quickly bring 2 subjects together and blend them into a single scene

    FAQ

    Comments (6)

    POWNPEGAug 30, 2023
    CivitAI

    Sorry for this stupid question, I just added nesting, I just updated every custom nodes, but I'm still getting an error I can't solve. The button "Install missing nodes" is not working on my setup.

    When loading the graph, the following node types were not found:

    Base_Model

    Prompt_Prep_2

    Prompt_Prep

    Mask_Operations

    Nodes that have failed to load will show as red on the graph.

    The failing nodes are :

    - Cut subject out

    - Paste subject to brackground

    Grockster
    Author
    Aug 30, 2023· 1 reaction

    Hi there - you'll want to make sure you have the following custom nodes loaded (via Comfy Manager):

    WAS Node Suite

    Impact Pack

    Node Nesting module

    Masquerade Nodes

    Mile High Styler

    Can you confirm that you have those installed (or install them) and then restart Comfy and it should resolve any errors/missing modules that it's noting)

    POWNPEGAug 31, 2023· 1 reaction

    @Grockster thank you for this answer, everything is fine with all these nodes installed

    fafdkDec 14, 2023· 1 reaction

    @Grockster Node Nesting module?

    Grockster
    Author
    Dec 14, 2023· 1 reaction

    @fafdk yup, you can find that here: https://github.com/ssitu/ComfyUI_NestedNodeBuilder . A word of caution though that when you create nested nodes, it is VERY useful for you, but it's a pain to share the workflow with others since they need those nested files that are created when you nest (essentially every nest you create creates a JSON file that you'd have to send over with your workflow to others)

    fafdkDec 16, 2023

    @Grockster thank you.

    Other
    SDXL 1.0

    Details

    Downloads
    236
    Platform
    CivitAI
    Platform Status
    Available
    Created
    8/25/2023
    Updated
    5/13/2026
    Deleted
    -

    Files

    sdxlCompositingImages_v40.zip

    Mirrors