Where person size, crop and coordinate space change
Generation and masking can be correct while the figure still disappears or lands in the wrong place if source image, mask bounds and destination canvas diverge across nodes 829, 780, 420, 449 and 429.
Size, crop and canvas must align before Paste By Mask
PPL latent, detection canvas and scene canvas do not share one size
| Stage | Nodes | Stored / derived space | Risk |
|---|---|---|---|
| PPL generation | 827 → 828 → 829 | 1312 × 1920, batch 1 | Figure framing differs from the scene |
| Detection input | 552 → 780 | Resize to 1920 × 1920 | Aspect ratio / padding changes |
| Mask crop | 146 + 780 → 420 → 781 | Bounds from people mask | Loose/tight crop or empty region |
| Prepared cutout | 422 → 477 → 449 | Cropped person + alpha | Image/mask mismatch |
| First paste | 779 + 449 + 451 → 429 | Selected SDXL scene canvas | Scale/location outside frame |
| Alternative return | 509 → 684 → 782 → 685 | Restored original/resized canvas | Wrong mode 693 |
| Runtime mask test | Florence2 → BBOX → SAM2 | Same 1280 × 720 source at both stages | Different images reproduce displaced/false masks |
Node 429 connects the base scene, prepared cutout and position source
Paste By Mask 429 receives the base image from Image Filter 779, prepared person 449 and image/mask representation 451. Stored mode keep_ratio_fit affects the scale of the inserted person.
Output 429 passes through Images to RGB 672 and enters image1 of selector 459 for PPL mode 1.
Topology
429 → 672 → image1 of 459.
Exact placement
Coordinates and figure visibility cannot be proven without runtime preview 480/459.
Verify positioning before looking for downstream errors
- Before selecting a BBOX, prove that Florence2 and SAM2 receive the same image at the same size.
- Compare actual dimensions of image 829 and resized image 780.
- Verify that 146 contains foreground with the correct polarity.
- Verify bounds/crop 420→781: the person is fully inside the region.
- Verify alpha from 422/430 and alignment with RGB 477/449.
- Verify first composite 429/672 before selector 459.
- Verify mode 693 when using alternative return 685.
A technically valid signal is not automatically a convincing composite
Perspective
Figure height and scale should match the horizon and architectural reference dimensions.
Grounding
Check foot contact, contact shadow and absence of floating.
Light / occlusion
Light direction, contrast and occlusions should agree with the environment.