> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-custom-nodes-sdk-v2-frontend.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# HitPawVideoEnhance - ComfyUI Built-in Node Documentation

> HitPaw Video Enhance 节点使用外部 API 来提高视频质量。

HitPaw Video Enhance 节点使用外部 API 来提高视频质量。它将低分辨率视频放大到更高分辨率，消除视觉伪影，并减少噪声。处理费用按输入视频的每秒时长计算。

## 输入

### 通用输入

| 参数   | 描述                                                           | 数据类型           | 必需 | 范围                                                                                                                                                                                                                                           |
| ---- | ------------------------------------------------------------ | -------------- | -- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `模型` | 用于视频增强的 AI 模型。选择模型后会显示嵌套的 `resolution` 参数。可用的模型及其支持的分辨率各不相同。 | DYNAMIC\_COMBO | 是  | `"Portrait Restore Model (1x)"`<br />`"Portrait Restore Model (2x)"`<br />`"General Restore Model (1x)"`<br />`"General Restore Model (2x)"`<br />`"General Restore Model (4x)"`<br />`"Ultra HD Model (2x)"`<br />`"Generative Model (1x)"` |
| `视频` | 要增强的输入视频文件。                                                  | VIDEO          | 是  | N/A                                                                                                                                                                                                                                          |

### Portrait Restore、General Restore 和 Ultra HD Model 输入

以下分辨率选项由 Portrait Restore Model (1x)、Portrait Restore Model (2x)、General Restore Model (1x)、General Restore Model (2x)、General Restore Model (4x) 和 Ultra HD Model (2x) 共用。

| 参数    | 描述                                      | 数据类型  | 必需 | 范围                                                                                    |
| ----- | --------------------------------------- | ----- | -- | ------------------------------------------------------------------------------------- |
| `分辨率` | 增强视频的目标分辨率。选择 `"original"` 会保持输入视频的分辨率。 | COMBO | 是  | `"original"`<br />`"720p"`<br />`"1080p"`<br />`"2K/QHD"`<br />`"4K/UHD"`<br />`"8K"` |

### Generative Model (1x) 输入

| 参数    | 描述                                                       | 数据类型  | 必需 | 范围                                                                        |
| ----- | -------------------------------------------------------- | ----- | -- | ------------------------------------------------------------------------- |
| `分辨率` | 增强视频的目标分辨率。选择 `"original"` 会保持输入视频的分辨率。此模型不支持 `"8K"` 选项。 | COMBO | 是  | `"original"`<br />`"720p"`<br />`"1080p"`<br />`"2K/QHD"`<br />`"4K/UHD"` |

**注意：**

* 输入 `video` 的时长必须在 0.5 秒到 60 分钟（3600 秒）之间。
* 所选的 `resolution` 必须至少与输入视频的尺寸一样大。对于正方形视频，它必须至少与视频的宽度和高度一样大。对于非正方形视频，它必须至少与视频的较短边一样大。如果目标分辨率较小，则会引发错误。选择 `"original"` 会保持输入视频的分辨率。
* 选择除 `"original"` 之外的分辨率时，非正方形视频会按比例缩放，使其较短边与所选分辨率匹配，同时保持宽高比。正方形视频会缩放，使两个维度都与所选分辨率的正方形目标尺寸匹配（例如，`"4K/UHD"` 生成 2048×2048）。

## 输出

| 输出名称    | 描述        | 数据类型  |
| ------- | --------- | ----- |
| `video` | 增强后的视频文件。 | VIDEO |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/HitPawVideoEnhance/zh.md)

***

**Source fingerprint (SHA-256):** `42803c7137d62dbce5021cd2bd9b9fba1a89c80e7b3f237f8a0eb03858c49967`
