Resolution and aspect ratio

Picture and video sizes each family was trained at, and what goes wrong far from them.

In plain words

Every model was trained at certain sizes. Near them it composes well. Far above them it starts to repeat things: two heads, doubled bodies, a second horizon. Far below them it loses detail. The aspect ratio (width to height) can change freely within the trained area: keep the total number of pixels about the same and swap width and height for an upright picture.

Where you meet it in a graph

width and height on the empty latent node (Empty Latent Image, EmptySD3LatentImage, EmptyHunyuanLatentVideo and others), and on video start nodes (WanImageToVideo, WanVideo Image To Video Encode). In image to image the size comes from the loaded picture.

Sizes per family

FamilyTrained aroundGood sizes (W×H)
SD 1.5512 px512×512, 512×768, 768×512
SDXL, Pony, Illustrious1 megapixel1024×1024, 832×1216, 896×1152, 1216×832, 1344×768, 768×1344
SD 3.5, Flux.1, Chroma, Krea 2about 1 megapixel, flexible1024×1024, 832×1216, 1216×832; Flux handles up to about 2 megapixels
Qwen-Imageabout 1.6 megapixels1328×1328, 1664×928, 928×1664
Z-Imageabout 1 megapixel1024×1024 and the same ratios as SDXL
Wan 2.1 / 2.2 14B480p or 720p832×480, 480×832, 1280×720
Wan 2.2 5B720p1280×704, 704×1280

Sides must divide by 8; most families prefer multiples of 16 (Wan, Flux) or 64 (SDXL). Check the model's page: fine-tuned models sometimes prefer other sizes.

What size changes

Doubling width and height means four times the pixels, about four times the time and much more memory. For video, length multiplies it again. To get a large result, generate at the trained size and upscale.

Typical mistakes

  • SD 1.5 at 1024: doubled figures. SDXL at 512: mushy, low-detail pictures.
  • A start picture of other proportions in video from a picture: the start node crops or stretches it.
  • Out of memory: lower the size first.

How the app helps

The two-models lesson gives exact frame sizes for SDXL and SD 1.5 next to an 832×480 clip, and SDXL done properly checks the SDXL size. The first lesson advises the size of the chosen model. The family of a model is on its card in the Models tab. In Properties, a field with a built-in note has a button What this field does next to its name; it opens the note under the field: what the field does and what to put in it.

See also

This page is imported from the application repository's wiki (docs/wiki/concepts/Resolution.md, revision b8e3f71). The same guide is built into the app: Help ▸ User guide.

To refresh it, run npm run import and then npm run build in the website folder.