🎞️ ResTool 32x (WanVideo)
WanVideo dimensions that respect the DiT's geometry rules
- width
- height
- debug_info
- log
WanVideo is the current local-video workhorse - Wan 2.1/2.2's 14B DiT put open video generation on the map - but it's also exactly the kind of model where you can't just type in any resolution and hope. Its 3D causal VAE and transformer want dimensions that divide cleanly, and going too small produces mushy output or outright failures. ResTool32x is the WanVideo member of the pack's ResTool family, and it's the one you'll actually reach for if you're running the sequential-batcher workflow with a Wan checkpoint.
The 32x is the divisibility constraint: outputs snap to multiples of 32, which keeps the spatial latent geometry happy. The training floor is 399,360 pixels - the area of 832x480, the resolution the author picked as WanVideo's safe reference. If your requested canvas is smaller than that, it gets scaled up proportionally before the 32-snapping happens, so you never land below the model's comfort zone.
How it works
Standard three-step machine shared by all five ResTools. Take your aspect_ratio and base_resolution (the longest side), derive the other dimension, check the total pixel count against the floor, scale up if needed, then snap both sides to a strict multiple of 32. The debug_info output hands you back a one-line WxH (Div 32) so you can see what it decided without reading the full log.
Inputs and outputs
aspect_ratio- 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 3:2, 2:3.base_resolution(INT, default 1024) - longest side in pixels.
Outputs: width and height - feed these into whatever latent-creation node your Wan flow uses (they want INT width/height inputs) - plus debug_info and log strings. In the pack's own wiring you'll typically pair this with the Wan Auto Loop Calculator, since both are enforcing the same DiT geometry from different angles.
Installing it
It ships in comfyui-sequential-batcher:
cd ComfyUI/custom_nodes
git clone https://github.com/Meisoftcoltd/comfyui-sequential-batcher
or ComfyUI Manager, search "comfyui-sequential-batcher", restart. Pure arithmetic - no models to download.
Common issues
The reminder that applies to every ResTool: this protects the floor and enforces divisibility, it does not budget VRAM for you. WanVideo's real constraint is memory - a 14B transformer at 832x480 is already heavy, and the floor will happily scale a tiny request up into something your card can't hold. If you OOM, that's not the tool lying to you; it's the resolution being physically too big for the GPU. Pick a base_resolution you know fits, and let the tool handle the divisibility.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 8 options: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, +2 | |
| base_resolution | INT | 1024128–8192 | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| debug_info | STRING | — |
| log | STRING | — |