Nodes/ComfyUI_StarBetaNodes/⭐ Star Qwen / WAN Ratio
ComfyUI Node

⭐ Star Qwen / WAN Ratio

One latent node for the whole Qwen-Image → Wan pipeline

By Starnodes2024·Created about a year ago·Updated 7 months ago· 19
⭐ Star Qwen / WAN Ratio
  • image
  • latent
  • width
  • height
modelQwen
qwen_ratio1:1 (1328x1328)
wan_hd_ratio1:1 (960x960)
wan_fhd_ratio1:1 (1440x1440)
use_nearest_image_ratiofalse
batch_size1
custom_width1024
custom_height1024

The most common local image-to-video pipeline in 2026 looks like this: generate a still with Qwen-Image (or edit one with Qwen-Image-Edit), then feed that latent into Wan to animate it. Both models are Alibaba, both have their own native resolutions, and neither shares them with the other. Qwen wants 1328×1328; Wan HD wants 960×960; Wan Full HD wants 1440×1440 at 1:1 and 1920×1080 at 16:9. Memorizing two resolution tables so your still doesn't get mangled on the way to video is exactly the kind of bookkeeping a node should do for you.

StarQwenWanRatio is that node: an empty-latent generator that knows the native resolutions for all three targets and picks the right set based on a model dropdown.

What you set

  • model - Qwen, Wan HD, or Wan Full HD. This switches which ratio presets apply. It's the most important field, and the one to check first when the latent comes out the wrong size.
  • qwen_ratio, wan_hd_ratio, wan_fhd_ratio - ten options each, from 1:1 through 16:9, 9:16, 4:3, 3:2, 5:7, 7:5, down to Free Ratio (custom) with custom_width/custom_height (16–8192, stepped by 16). Each dropdown's labels carry the exact pixel dimensions, so you can't misremember them.
  • use_nearest_image_ratio - feed an optional image in and it snaps to the closest preset ratio to that image's aspect. This is the "match my source" convenience: drop in your Qwen still and it sizes the Wan latent to the nearest matching preset instead of you doing the math.
  • batch_size - 1–64.

Outputs: latent (for your sampler), width, height (integers for downstream nodes). Wire latent into Wan's sampler and you're done.

Why you'd bother

Two reasons, both practical. First, the obvious one: a single node that covers both halves of a Qwen→Wan graph removes a whole class of "why is my video squished" errors - the resolution tables are in the dropdown labels, not in your head. Second, the model switcher is the honest core: Wan is where open video consolidated (the family froze at Wan 2.2 - the numbered series went API-only, so 2.1/2.2 checkpoints are what everyone actually runs), and its resolutions genuinely differ from Qwen's. One node, both families, zero table lookups.

Install & gotchas

Pack standard: ComfyUI_StarBetaNodes is the retired beta repo; the nodes now ship in ComfyUI_StarNodes - install via ComfyUI Manager (search Starnodes) or git clone https://github.com/Starnodes2024/ComfyUI_StarNodes into custom_nodes, then restart. No deps, no models.

The gotcha is the model dropdown itself: it only changes the preset table, not your loaded checkpoint. If you set model to Wan Full HD but your workflow is actually running the HD checkpoint, you've made a 1440×1440 latent the 960-model has opinions about. Match the dropdown to what you loaded - that's the entire trick to this node.

Category⭐StarNodes/Image And Latent

Inputs (9)

NameTypeDefaultDescription
modelCOMBOQwen3 options: Qwen, Wan HD, Wan Full HD
qwen_ratioCOMBO1:1 (1328x1328)10 options: 1:1 (1328x1328), 16:9 (1664x928), 9:16 (928x1664), 4:3 (1472x1104), 3:4 (1104x1472), 3:2 (1584x1056), +4
wan_hd_ratioCOMBO1:1 (960x960)10 options: 1:1 (960x960), 16:9 (1280x720), 9:16 (720x1280), 4:3 (1104x832), 3:4 (832x1104), 3:2 (1168x784), +4
wan_fhd_ratioCOMBO1:1 (1440x1440)10 options: 1:1 (1440x1440), 16:9 (1920x1080), 9:16 (1080x1920), 4:3 (1664x1248), 3:4 (1248x1664), 3:2 (1760x1168), +4
use_nearest_image_ratioBOOLEANfalse
batch_sizeINT11–64
custom_widthINT102416–8192
custom_heightINT102416–8192
imageoptIMAGE

Outputs (3)

NameTypeDescription
latentLATENT
widthINT
heightINT