⭐ Star Qwen / WAN Ratio
One latent node for the whole Qwen-Image → Wan pipeline
- image
- latent
- width
- height
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, orWan 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
imagein 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.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| model | COMBO | Qwen | 3 options: Qwen, Wan HD, Wan Full HD |
| qwen_ratio | COMBO | 1: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_ratio | COMBO | 1: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_ratio | COMBO | 1: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_ratio | BOOLEAN | false | — |
| batch_size | INT | 11–64 | — |
| custom_width | INT | 102416–8192 | — |
| custom_height | INT | 102416–8192 | — |
| imageopt | IMAGE | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| latent | LATENT | — |
| width | INT | — |
| height | INT | — |