π³ CR SD1.5 Aspect Ratio
The 512-based preset picker, without the SDXL clutter
- width
- height
- upscale_factor
- batch_size
- empty_latent
- show_help
Comfyroll actually ships three different aspect-ratio nodes that all do roughly the same thing, and CR SD1.5 Aspect Ratio is the one scoped to a single model family: it only offers the 512-based ratios SD 1.5 was actually trained on, so you're never scrolling past SDXL presets that would give you a mangled image if you picked them by mistake. If you only ever generate on SD 1.5 checkpoints, this is the tidier version of the general CR Aspect Ratio node.
Why the resolution actually matters
SD 1.5 was trained at 512x512 and doesn't extrapolate gracefully - push it to an unfamiliar resolution or aspect ratio and you get the classic failure modes: duplicated limbs, a second head creeping in at the top of a tall canvas, stretched anatomy on a wide one. The presets here (square, portrait, landscape, a couple of cinema ratios) are all built around 512 as the short edge, which is the range SD 1.5 actually handles cleanly. Pick one instead of typing dimensions by hand and you sidestep the guesswork entirely.
How it works
Choose aspect_ratio from the dropdown - options range from 1:1 square 512x512 up through cinema ratios like 2.39:1 anamorphic 1224x512 - and the node sets width/height to match. custom falls back to whatever you typed into the width/height fields yourself. swap_dimensions flips the chosen ratio between portrait and landscape without you having to swap the numbers by hand, and the node bundles an empty_latent sized to match, so you skip wiring up a separate Empty Latent Image node.
The inputs and outputs that matter
aspect_ratio- the preset dropdown. This is the field you're here for.swap_dimensions(Off/On) - portrait β landscape.upscale_factor- a pass-through float for a later upscale stage; it doesn't resize anything itself, it's a value you route downstream.batch_size- how many latents to generate.width/height- only meaningful whenaspect_ratiois set tocustom.
Outputs: width, height (INT), upscale_factor (FLOAT), batch_size (INT), and empty_latent (LATENT) - wire that straight into your KSampler and you're done sizing. Plus the standard show_help link.
How to install it
Part of Comfyroll Studio (Suzie1 and RockOfFire) - no models, no heavy dependencies.
- ComfyUI Manager - search "Comfyroll Studio," install, restart.
- Manual -
cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, then restart.
Common issues & troubleshooting
You picked this node but you're running SDXL (or vice versa). This is the whole reason the pack splits the aspect-ratio node in three: CR SD1.5 Aspect Ratio only lists 512-scale presets, and feeding those to an SDXL checkpoint means generating well below its native 1024 training resolution - soft, under-detailed output. If your checkpoint is SDXL, use CR SDXL Aspect Ratio instead; if you genuinely want both families' presets in one dropdown, the general CR Aspect Ratio node covers both.
Why not just use the general CR Aspect Ratio node for everything? You can - it has both SD 1.5 and SDXL presets in one list. This split version exists purely so the dropdown stays short and you can't accidentally pick a wrong-model preset while scrolling fast. Pure convenience, not a capability difference.
The pack doesn't load at all. If no Comfyroll nodes appear after install, check your ComfyUI startup log for Comfyroll Studio: Failed to load Graphics nodes ending in NameError: name 'CR_HalftoneGrid' is not defined. That's a symptom of an import failing earlier in the pack - usually a Pillow version conflict pulled in by another custom node - that takes the whole load down. Force-reinstall Pillow (pip install --upgrade --force-reinstall pillow) or do a clean reinstall of the folder and restart.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 51264β8192 | β |
| height | INT | 51264β8192 | β |
| aspect_ratio | COMBO | 11 options: custom, 1:1 square 512x512, 1:1 square 1024x1024, 2:3 portrait 512x768, 3:4 portrait 512x682, 3:2 landscape 768x512, +5 | |
| swap_dimensions | COMBO | 2 options: Off, On | |
| upscale_factor | FLOAT | 1.00.1β100 | β |
| batch_size | INT | 11β64 | β |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| width | INT | β |
| height | INT | β |
| upscale_factor | FLOAT | β |
| batch_size | INT | β |
| empty_latent | LATENT | β |
| show_help | STRING | β |