SDXL Empty Latent Image MXD
SDXL resolutions, in a dropdown, for once
- LATENT
SDXL has exactly five resolutions it was trained on, and everyone who's spent real time in ComfyUI knows them by heart: 1024², 1152x896, 1216x832, 1344x768, 1536x640. You've typed them a thousand times. SDXL Empty Latent Image MXD exists so you never have to type them again - it's the core Empty Latent node with those five resolutions baked into a dropdown, plus a vertical toggle and a batch size.
What it is
A drop-in replacement for the standard Empty Latent Image, with a preset menu instead of free-form width/height boxes. Pick a resolution, decide if you want it portrait, and out comes a LATENT. It's the SDXL member of the MaxedOut pack's family of "model-correct resolution preset" nodes - the same idea as its Flux, Flux 2, Z-Image, and WAN siblings.
Why the presets matter
SDXL output quality degrades noticeably away from its training buckets - that's a well-worn lesson in the community, and it's why "which SDXL resolution should I use" has such a boring, consistent answer: use one of the five. The node encodes that answer so you can't get it wrong. It's also a workflow hygiene thing: dropdowns self-document. Open someone's shared workflow and resolution: "Widescreen (16:9) 1344x768" tells you the intent in a way two magic numbers don't.
How it works
Mechanically it's the same as the core node: it allocates a zeros tensor at [batch, 4, h//8, w//8] - SDXL's 4-channel latent with 8x compression - on ComfyUI's intermediate device and hands it back as a {"samples": ...} latent for the sampler. The vertical toggle swaps width and height before that division. Nothing fancy, which is exactly the point.
Inputs and outputs
- resolution - the five presets, default 1024x1024.
- vertical - swaps to portrait. Default off.
- batch_size - 1 to 4096. Keep it at 1 unless you're deliberately generating a batch.
- Output: LATENT - into your KSampler's
latent_imageinput.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/Maxed-Out-99/ComfyUI-MaxedOut.git
Restart ComfyUI, or use ComfyUI Manager → search "Maxed Out" → install. No model downloads, no extra dependencies.
Troubleshooting
Honestly, there's not much to trip over here - which is the appeal.
- "KeyError" on an odd resolution - you can't type arbitrary sizes into this node by design. If you need a non-standard resolution for SDXL (hires passes, img2img at custom sizes), use the core Empty Latent Image instead. This node is a strict preset menu.
- Portrait output isn't "portrait" - flip
vertical. The dropdown only lists landscape-orientation labels; the toggle does the swapping. - Latent shape mismatch with an SD 1.5 model - don't use this node with 1.5 checkpoints; 1.5 expects different resolutions entirely. It's named SDXL for a reason.
It's a tiny node, but it's the kind of tiny node that quietly removes a daily annoyance. If you live in SDXL, it'll be in your template within a week.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| resolution | COMBO | 5 options: Square (1:1) 1024x1024, Standard (4:3) 1152x896, Landscape (3:2) 1216x832, Widescreen (16:9) 1344x768, Ultra-Wide (21:9) 1536x640 | |
| vertical | BOOLEAN | false | — |
| batch_size | INT | 11–4096 | The number of latent images in the batch. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LATENT | LATENT | The empty latent image batch. |