numpy

Unlock precision and convenience when generating empty latents for your favourite models in ComfyUI!
CASNodes (Custom ASpect Ratio Nodes) lets you select popular aspect ratio and resolution presets—optimized for Stable Diffusion 1.5, Stable Diffusion XL, Flux, Chroma, and HiDream—or define your own by axis and ratio.
Choose from a wide range of common image aspect ratios and sizes.
Fully compatible with SD 1.5, SDXL, Flux, Chroma, and HiDream.
Appears under the standard latent category—no clutter, pure utility.
comfyui-aspect-ratio-presetscd YOUR_COMFYUI/custom_nodes
git clone https://github.com/budihartono/comfyui-aspect-ratio-presets.git
latent group:Select a resolution and aspect ratio like:
1024x1024 1:1 Square - SDXL912x512 16:9 Landscape - SD151216x832 3:2 Landscape - Flux*The output is a ready-to-use empty latent tensor, correctly sized for your model.*
3:2 Landscape).graph LR
A[CAS Empty Latent Node] --> B(KSampler) --> C(VAEDecode) --> D(Output)
presets.py!Developed by @budihartono
Open source for the benefit of the community.
Contributions are welcome, but please note: this project is provided as-is, and active support or responses to issues/pull requests may be limited or unavailable.
Enjoy supercharged workflows, perfectly matched to your favourite diffusion models!