ComfyUI Node
Anima PiD Decode (4x SR)
A ComfyUI node in Anima/PiD with 10 inputs and 1 output.
Anima PiD Decode (4x SR)
- pid_model
- latent
- IMAGE
◄steps4►
◄sigma0.00►
◄seed0►
◄tile_latent64►
◄tile_overlap16►
◄compilefalse►
◄use_calibfalse►
◄attentionauto►
CategoryAnima/PiD
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| pid_model | ANIMA_PID | — | |
| latent | LATENT | — | |
| steps | INT | 41–8 | — |
| sigma | FLOAT | 0.000–1 | Latent degradation level PiD assumes. 0.0 = clean decode; higher lets PiD synthesize/hallucinate more detail. |
| seed | INT | 00–18446744073709550000 | — |
| tile_latent | INT | 640–256 | 0 = decode whole image at once (4K output may OOM on <=16GB). >0 = tile the latent (each tile -> tile*32 px) with feather blending. 64 -> 2048px tiles. |
| tile_overlap | INT | 160–64 | Latent-space overlap between tiles (pixels = overlap*32). Larger = fewer seams, slower. |
| compile | BOOLEAN | false | Per-block torch.compile of the PiD net: each transformer block is compiled as its own small graph (faster compile, fewer graph breaks than whole-net — mirrors Anima Block Compile). First run per output size is slow (compilation), then fast; with tiling on all tiles share one size so the blocks compile once. |
| use_calib | BOOLEAN | false | Apply the bundled PiD->native-VAE color-match transform after decode. It was fitted against the pre-v1.5 qwenimage checkpoint, which decoded flat and desaturated vs the native Qwen VAE. v1.5 fixes colour accuracy upstream, so this is OFF by default — applying it on v1.5 would over-correct. Turn on only for a hand-placed v1 checkpoint. |
| attention | COMBO | auto | Attention backend for the PiD net. 'auto' honors ComfyUI's --use-sage-attention / --use-flash-attention launch flags (sage wins), else plain SDPA. 'sdpa' already runs PyTorch's built-in flash kernel here, so 'flash' is ~identical; 'sage' (INT8) is the real speedup. Masked/fp32/CPU paths always fall back to SDPA. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |