🎬 ResTool 64x (Hunyuan)
Hunyuan Video resolution with the 1280x720 training floor baked in
- width
- height
- debug_info
- log
Hunyuan Video is the model that made local video generation feel real - a 13B release that people loved for its cinematic look - even as its VRAM appetite (45-60GB for the original) kept it firmly out of reach for most rigs. When you do get to run it, you don't want to burn that scarce render time on a resolution the model was never trained on. ResTool64x is the Hunyuan member of the pack's ResTool family, and it's the one that enforces the 1280x720 training floor the author picked for it.
The name is the constraint: everything it outputs snaps to a multiple of 64. The floor is 921,600 pixels - the area of 1280x720. So if you ask for a 16:9 canvas smaller than that, the tool scales it up proportionally until the pixel count clears 720p territory, and only then snaps both sides to clean multiples of 64. You get dimensions that are both geometry-friendly and safely above the model's native training area.
How it works
The same three-step machine every ResTool shares. Compute the other dimension from aspect_ratio and base_resolution (the longest side), check the total area against the floor, scale up if it's under, then round to the nearest multiple of 64. debug_info returns a one-line WxH (Div 64) summary and the log output carries the full decision trail - including the alert it logs when it had to rescue a below-floor request.
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, height (into your Hunyuan latent node), plus debug_info and log. Wire the two INTs and ignore the strings unless something looks off.
Installing it
It's bundled 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. No downloads - it's math.
Common issues
Keep the real constraint in mind: Hunyuan's problem was never resolution, it was memory. The 13B original wanted 45-60GB; even the leaner 1.5 wants a serious card. This tool will happily enforce a 1080p+ canvas for you - and then your GPU will laugh at you. Decide your resolution by what fits, not by what the floor allows. And if you're actually running Hunyuan, you already know the pack's other advice applies double: don't launch ComfyUI with --highvram, or the chunked rendering this tool feeds will OOM on the first real batch.
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 | — |