Optimal SDXL Resolutions
Fooocus is a web UI created by lllyasviel (Lvmin Zhang), the co-developer of the original control net research, which fundamentally changed Stable Diffusion tech forever.
Fooocus borrows ideas from Midjourney’s ease of use with an open source philosophy, backed by SDXL rendering. But what caught my eye was the list of resolution config that came with the app. It’s a very specific list of values.
SDXL was trained at a base resolution of 1024x1024, but was further fine-tuned on multiple aspect ratios. By targeting these aspect ratios for your renders, you will then have the most optimal results — and hence why you should absolutely follow this table of values when make your renders.
List of Values
Width | Height | Ratio (W:H) | Fraction | Std |
---|---|---|---|---|
704 | 1408 | 0.500 | 1:2 | S |
704 | 1344 | 0.524 | 11:21 | |
768 | 1344 | 0.571 | 4:7 | S |
768 | 1280 | 0.600 | 3:5 | S |
832 | 1216 | 0.684 | 13:19 | |
832 | 1152 | 0.722 | 13:18 | |
896 | 1152 | 0.778 | 7:9 | S |
896 | 1088 | 0.824 | 14:17 | S |
960 | 1088 | 0.882 | 15:17 | |
960 | 1024 | 0.938 | 15:16 | S |
1024 | 1024 | 1.000 | 1:1 | |
1024 | 960 | 1.067 | 16:15 | |
1088 | 960 | 1.133 | 17:15 | |
1088 | 896 | 1.214 | 17:14 | S |
1152 | 896 | 1.286 | 9:7 | S |
1152 | 832 | 1.385 | 18:13 | |
1216 | 832 | 1.462 | 19:13 | |
1280 | 768 | 1.667 | 5:3 | S |
1344 | 768 | 1.750 | 7:4 | S |
1344 | 704 | 1.909 | 21:11 | |
1408 | 704 | 2.000 | 2:1 | S |
1472 | 704 | 2.091 | 23:11 | |
1536 | 640 | 2.400 | 12:5 | |
1600 | 640 | 2.500 | 5:2 | S |
1664 | 576 | 2.889 | 26:9 | |
1728 | 576 | 3.000 | 3:1 | S |
Images
Config Source
These values were generated as part of the user_path_config
file which were created dynamically by script. Source
{
"available_aspect_ratios": [
"704*1408",
"704*1344",
"768*1344",
"768*1280",
"832*1216",
"832*1152",
"896*1152",
"896*1088",
"960*1088",
"960*1024",
"1024*1024",
"1024*960",
"1088*960",
"1088*896",
"1152*896",
"1152*832",
"1216*832",
"1280*768",
"1344*768",
"1344*704",
"1408*704",
"1472*704",
"1536*640",
"1600*640",
"1664*576",
"1728*576"
],
"default_aspect_ratio": "1152*896"
}