AV ComfyUI Manual
47 / 64
Files
47
PREPARATION

Background cleanup and scene matching

After crop, the figure is cleaned with Inspyrenet, receives a mask, is color-matched to the scene, and becomes a ready-to-composite cutout.

CONFIRMEDThe 420 → 422 / 475 → 477 → 449 chain is visible in topology
PREPARATION CHAIN

Cutout is matched to the environment before paste

01Crop420 → 781
02RemBg422 · Inspyrenet
04Cut449 + mask 430
01 · BACKGROUND REMOVAL

Node 422 creates person + alpha

easy imageRemBg 422 receives crop 781 from 420 and uses Inspyrenet. The stored prefix is ph_ppl. Its image output goes to 475, while its mask passes through MaskToImage 430 to Cut By Mask 449 and diagnostic consumers.

NodeInputOutput / purpose
420Main image + mask 146Crop 781
422Crop 781Cleaned person + mask
430Mask from 422Mask image for 449 / previews
475Person from 422Image preparation for ColorMatch
02 · COLOR MATCH

Node 477 aligns the figure with the scene

ColorMatch 477 uses the hm-mvgd-hm method. Its widget stores 0.6, but strength is linked to control 717, whose current value is 0.44. The reference environment comes from node 779.

CONFIRMED

Effective strength

Linked control 717 = 0.44 drives node 477 strength; local widget 0.6 should not be read as the runtime value.

INFERRED

Practical purpose

Reduce the pasted-on look by bringing temperature, brightness and overall color closer to the scene.

03 · SYMPTOMS

The image often tells you which preparation stage failed

SymptomLikely areaCheck
Light/dark haloMask edge144 GrowMask, 146 MaskBlur, output 430
Figure feels tonally disconnectedColorMatchReference 779 and effective strength 717
Part of the old background remainsRemBgCrop 781 and outputs 422
Figure is already soft before pasteResize / crop420, 475, 449