> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# HitPawGeneralImageEnhance - ComfyUI Built-in Node Documentation

> Complete documentation for the HitPawGeneralImageEnhance node in ComfyUI. Learn its inputs, outputs, parameters and usage.

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

此节点通过将低分辨率图像放大至超分辨率，并去除伪影和噪点来增强图像质量。它使用外部 API 处理图像，并可自动调整输入尺寸以保持在处理限制范围内。允许的最大输出尺寸为 4 百万像素。

## 输入

| 参数     | 描述                                                                                  | 数据类型    | 是否必填 | 范围                                          |
| ------ | ----------------------------------------------------------------------------------- | ------- | ---- | ------------------------------------------- |
| `模型`   | 要使用的增强模型。`generative_portrait` 模型针对人像进行了优化，而 `generative` 是通用模型。                    | STRING  | 是    | `"generative_portrait"`<br />`"generative"` |
| `图像`   | 要增强的输入图像。                                                                           | IMAGE   | 是    | -                                           |
| `放大倍数` | 图像尺寸的放大倍数。倍数为 1 表示不放大，2 表示尺寸加倍，4 表示尺寸变为四倍。                                          | INT     | 是    | `1`<br />`2`<br />`4`                       |
| `自动缩小` | 如果输出会超出限制，则自动降低输入图像的分辨率。启用后，节点会在应用请求的放大倍数之前，尝试减小输入图像尺寸以符合 4 百万像素的输出限制。（默认值：`False`） | BOOLEAN | 否    | -                                           |

**注意：** 如果计算出的输出尺寸（输入高度 × 放大倍数 × 输入宽度 × 放大倍数）超过 4,000,000 像素（4MP）且 `auto_downscale` 被禁用，节点将报错。当 `auto_downscale` 启用时，节点会尝试在应用请求的放大倍数之前降低输入图像分辨率以符合限制。如果需要将图像缩小超过 2 倍，节点将改为降低放大倍数。

## 输出

| 输出名称 | 描述           | 数据类型  |
| ---- | ------------ | ----- |
| `图像` | 增强并放大后的输出图像。 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `29f927d39777acdfba2aad107027672d281c202ec78e04942e405c2cc64fcee4`
