ComfyUI Node
HWP Aspect Size
A ComfyUI node in HWP with 6 inputs and 3 outputs.
HWP Aspect Size
- model
- width
- height
- latent
◄model_type▾►
◄aspect_ratio_width1►
◄aspect_ratio_height1►
◄downscale_factor32►
◄batch_size1►
CategoryHWP
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| model_type | COMBO | Base pixel budget (width × height at 1:1) — the aspect ratio only changes the shape, the total stays constant. | |
| aspect_ratio_width | INT | 1 | Aspect ratio, width part (free integer, e.g. 5 for 5:2). |
| aspect_ratio_height | INT | 1 | Aspect ratio, height part (free integer, e.g. 2 for 5:2). |
| downscale_factor | INT | 321–128 | Both dimensions are rounded UP to multiples of this — pick what the model's VAE/patch size requires (8: SD 1.5 / 2.1 / SDXL, 16: FLUX.1 / SD3 / Qwen-Image 1.x, 32: Qwen-Image 2.x). |
| batch_size | INT | 11–4096 | Batch size of the latent output (1–4096). |
| modelopt | MODEL | Optional — the model the latent will be sampled with (same MODEL chain as your sampler). Connect it to get the latent in that model's native layout; needed for custom samplers (e.g. RES4LYF ClownsharKSampler) that do not rescale empty latents themselves. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| latent | LATENT | — |