Nodes/ComfyUI-HWP-Nodes/HWP Aspect Size
ComfyUI Node

HWP Aspect Size

A ComfyUI node in HWP with 6 inputs and 3 outputs.

By hwprinz·Created 2 months ago·Updated about 18 hours ago· 2
HWP Aspect Size
  • model
  • width
  • height
  • latent
◄model_type▾►
◄aspect_ratio_width1►
◄aspect_ratio_height1►
◄downscale_factor32►
◄batch_size1►
CategoryHWP

Inputs (6)

NameTypeDefaultDescription
model_typeCOMBOBase pixel budget (width × height at 1:1) — the aspect ratio only changes the shape, the total stays constant.
aspect_ratio_widthINT1Aspect ratio, width part (free integer, e.g. 5 for 5:2).
aspect_ratio_heightINT1Aspect ratio, height part (free integer, e.g. 2 for 5:2).
downscale_factorINT321–128Both 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_sizeINT11–4096Batch size of the latent output (1–4096).
modeloptMODELOptional — 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)

NameTypeDescription
widthINT—
heightINT—
latentLATENT—