Noxin Scaled Resolutions
512, 1024, or in between — one node for your latent size
- WIDTH
- HEIGHT
- RAW_WIDTH
- RAW_HEIGHT
- UPSCALEFACTOR
The classic ComfyUI dance: SD1.5 wants ~512px latents, SDXL wants ~1024px, and every generation flows through an Empty Latent Image that wants the numbers as plain ints. If you also generate low and let a hires pass fix it, you're multiplying a base size by a factor with a string of Int/Number nodes and converting between floats and ints along the way. That exact annoyance - "I hated having to multiply them with multiple nodes and convert between floats and ints" - is why this node exists. NoxinScaledResolution holds both base sizes, toggles between them, and hands you the scaled dimensions as clean ints, no arithmetic in the graph required.
Mechanism is deliberately boring. Flip SDXL_MODE to off and it uses SD15_WIDTH/SD15_HEIGHT (defaults 512×512); flip it on and it uses SDXL_WIDTH/SDXL_HEIGHT (defaults 1024×1024). Then it multiplies both dimensions by UPSCALEFACTOR (default 2.0) and truncates to ints. The outputs:
WIDTH,HEIGHT- the scaled values, what you feed into Empty Latent Image.RAW_WIDTH,RAW_HEIGHT- the unscaled base, handy for the low-res first pass in a hires-fix setup.UPSCALEFACTOR- passed through if anything downstream wants it.
So one node covers both the "base" and "multiplied" cases, and you get the raw numbers free for a second Empty Latent on the other end of a denoise ladder.
The trap to watch: it truncates with int(), it doesn't round. A factor of 2.3 on 512 gives 1177, not 1178, and anything that doesn't land on a multiple of 8 can hand your VAE a size it's grumpy about. The usual pattern that works: SD1.5 at 512 with factor 1.5 → 768×768, which sits in the usable range; factor 2 → 1024 is already pushing what SD1.5 was trained for, and generating well above native is exactly how you get tiling and duplicated anatomy (the troubleshooting rule that comes up in every r/comfyui thread). If your target factor produces a weird number, nudge it to one that lands on an 8-boundary.
Install is trivial - the whole pack is standard-library Python, no requirements.txt, no model files.
cd ComfyUI/custom_nodes
git clone https://github.com/noxinias/ComfyUI_NoxinNodes.git
Restart and look for "Noxin Scaled Resolutions" under NoxinNodes. The README's one honest warning: the pack updates often, so if you don't want a fresh commit silently changing your saved workflows, delete the .git folder after install.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| SD15_WIDTH | INT | 512 | — |
| SD15_HEIGHT | INT | 512 | — |
| SDXL_WIDTH | INT | 1024 | — |
| SDXL_HEIGHT | INT | 1024 | — |
| SDXL_MODE | COMBO | 2 options: off, on | |
| UPSCALEFACTOR | FLOAT | 2.00 | — |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| WIDTH | INT | — |
| HEIGHT | INT | — |
| RAW_WIDTH | INT | — |
| RAW_HEIGHT | INT | — |
| UPSCALEFACTOR | FLOAT | — |