Input your desired output final resolution, it will automaticaly set the initial recommended SDXL ratio/size and its Upscale Factor to reach that output final resolution, also there's an option for 2x/4x reverse Upscale Factor. These all to avoid using bad/arbitary initial ratio/resolution.
It's also available to install it via ComfyUI Manager (Search: Recommended Resolution Calculator)
A simple script (also a Custom Node in ComfyUI thanks to CapsAdmin), to calculate and automatically set the recommended initial latent size for SDXL image generation and its Upscale Factor based on the desired Final Resolution output.
According to SDXL paper references (Page 17), it's advised to avoid arbitrary resolutions and stick to those initial resolution, as SDXL was trained using those specific resolution.
TL;DR : Basicaly, you are typing your desired target FINAL resolution, it will gives you :
Usage Showcase In ComfyUI
Example Workflow of usage in ComfyUI : JSON / PNG
To install it as ComfyUI custom node using ComfyUI Manager (Easy Way)
To install it as ComfyUI custom node using manual Git Clone Operation :
As standalone (Not Using ComfyUI):
Usage Showcase As Standalone
References SDXL Paper: https://arxiv.org/abs/2307.01952 | https://arxiv.org/pdf/2307.01952.pdf | Page 17