ComfyUI Node
Optimal Empty Latent
Choose optimal WxH for a given aspect ratio & MP target. Supports exact resolution input when optimized resolution is disabled.
Optimal Empty Latent
- Latent
- Width
- Height
- Block Size
- Details
◄dimensions1:1►
◄latent_alignmentSDXL (1024px)►
◄optimizationtrue►
◄invertfalse►
◄batch_size1►
CategoryFens_Simple_Nodes/Latent
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| dimensions | STRING | 1:1 | Formats: W:H (e.g. 16:9), WxH (e.g. 1280x720), or decimal (e.g. 1.777). Use WxH when 'Optimization' is FALSE. |
| latent_alignment | COMBO | SDXL (1024px) | Optimization preset for model type. |
| optimization | BOOLEAN | true | TRUE: Automatically calculates best resolution for your aspect ratio. FALSE: Use your own resolution (WxH format). |
| invert | BOOLEAN | false | Swap width and height (invert aspect ratio, e.g. 16:9 > 9:16). |
| batch_size | INT | 11–4096 | Number of latent images in batch (VRAM usage increases with batch size). |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| Latent | LATENT | Latent tensor |
| Width | INT | Width |
| Height | INT | Height |
| Block Size | INT | Block size used for the calculation. |
| Details | STRING | Details about the calculation |