Position Pascal Parts Batch v5.1.0
The PASCAL-VOC-flavored sibling of Position Parts Batch
- batch_images
- batch_segs
- batch_handimgs
- IMAGE
This is the second half of a pair. The pack's other tri3d-position-parts-batch pastes parts back using ATR human-parsing colors; this one does the identical job using the PASCAL-Parts segmentation color scheme instead. Same paste-the-warped-bit-back-onto-the-person idea, different color vocabulary, seven part toggles instead of sixteen. If your pipeline's segmentation map comes out of a PASCAL-Parts-trained parser rather than an ATR one, this is the node you want.
It's a genuinely thin utility node - don't expect more than its sibling offers. You get it because your seg maps are PASCAL-colored.
How it works
Identical machinery to Position Parts Batch. For each image in the batch it builds a color list from the toggles you've switched on, finds the bounding box of those colors in the segmentation map, resizes the matching part image to that box, sharpens it with an unsharp mask, and blits it into the photo. The PASCAL-Parts palette is coarser than ATR - seven body regions rather than a full clothing catalog:
- background -
[0,0,0] - head -
[128,0,0] - torso -
[0,128,0] - upper_arms -
[128,128,0] - lower_arms -
[0,0,128] - upper_legs -
[128,0,128] - lower_legs -
[0,128,128]
All seven are off by default. Note there are no garment toggles here - PASCAL-Parts labels body regions, not clothing, so this is aimed at body-part compositing (arms, legs, torso) rather than warped clothing.
The inputs that matter
batch_images- the person photos.batch_segs- PASCAL-Parts segmentation maps, matching batch size.batch_handimgs- the part images to paste, indexed to match the batch.margin(INT, default 15) - padding around the paste box.- The seven part toggles - flip on only what you're actually pasting.
Output is a single IMAGE batch: photos with the selected parts composited.
Installing it
Same pack, same one-time install:
cd ComfyUI/custom_nodes
git clone https://github.com/TRI3D-LC/tri3d-comfyui-nodes
cd tri3d-comfyui-nodes
pip install -r requirements.txt
or ComfyUI Manager → "tri3d-comfyui-nodes", restart, look under TRI3D.
Common issues
Everything from the ATR sibling applies: if nothing pastes, your seg map almost certainly isn't PASCAL-colored or the toggle is off. The two nodes are easy to mix up, and pasting ATR colors through the PASCAL node produces nothing because the RGB lookups simply never match. If you're swapping between parsers, double-check which color scheme your batch_segs actually uses before debugging anything else.
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| batch_images | IMAGE | — | |
| batch_segs | IMAGE | — | |
| batch_handimgs | IMAGE | — | |
| margin | INT | 15 | — |
| background | BOOLEAN | false | — |
| head | BOOLEAN | false | — |
| torso | BOOLEAN | false | — |
| upper_arms | BOOLEAN | false | — |
| lower_arms | BOOLEAN | false | — |
| upper_legs | BOOLEAN | false | — |
| lower_legs | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |