Nodes/Fens-Simple-Nodes/Optimal Empty Latent
ComfyUI Node

Optimal Empty Latent

Choose optimal WxH for a given aspect ratio & MP target. Supports exact resolution input when optimized resolution is disabled.

By Taithrah·Created about a year ago·Updated about a month ago· 6
Optimal Empty Latent
    • Latent
    • Width
    • Height
    • Block Size
    • Details
    dimensions1:1
    latent_alignmentSDXL (1024px)
    optimizationtrue
    invertfalse
    batch_size1
    CategoryFens_Simple_Nodes/Latent

    Inputs (5)

    NameTypeDefaultDescription
    dimensionsSTRING1:1Formats: W:H (e.g. 16:9), WxH (e.g. 1280x720), or decimal (e.g. 1.777). Use WxH when 'Optimization' is FALSE.
    latent_alignmentCOMBOSDXL (1024px)Optimization preset for model type.
    optimizationBOOLEANtrueTRUE: Automatically calculates best resolution for your aspect ratio. FALSE: Use your own resolution (WxH format).
    invertBOOLEANfalseSwap width and height (invert aspect ratio, e.g. 16:9 > 9:16).
    batch_sizeINT11–4096Number of latent images in batch (VRAM usage increases with batch size).

    Outputs (5)

    NameTypeDescription
    LatentLATENTLatent tensor
    WidthINTWidth
    HeightINTHeight
    Block SizeINTBlock size used for the calculation.
    DetailsSTRINGDetails about the calculation