mirror of
https://github.com/hanzoui/workflow-templates-broken-zap-2026-06-08.git
synced 2026-10-30 20:44:35 +00:00
1.4 KiB
1.4 KiB
HunyuanVideo15LatentUpscaleWithModel
Category: latent
Display Name: Hunyuan Video 15 Latent Upscale With Model
Description
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The Hunyuan Video 15 Latent Upscale With Model node increases the resolution of a latent image representation. It first upscales the latent samples to a specified size using a chosen interpolation method, then refines the upscaled result using a specialized Hunyuan Video 1.5 upscale model to improve quality.
Inputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| model | LatentUpscaleModel | ā | |
| samples | Latent | ā | |
| upscale_method | Combo | bilinear | |
| width | Int | 1280 | |
| height | Int | 720 | |
| crop | Combo | ā |
Outputs
| Output | Type |
|---|---|
| ), | |
| ], | |
| ) |
@classmethod
def execute(cls, model, samples, upscale_method, width, height, crop) -> io.NodeOutput:
if width == 0 and height == 0:
return io.NodeOutput(samples)
else:
if width == 0:
height = max(64, height | Latent |
Source: comfy_extras/nodes_hunyuan.py
Used in 2 template(s)