> ## 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.

# HitPawGeneralImageEnhance - ComfyUI Built-in Node Documentation

> 此节点通过将低分辨率图像放大到超分辨率来增强图像，并去除伪影和噪声。

此节点通过将低分辨率图像放大到超分辨率来增强图像，并去除伪影和噪声。它使用外部 API 处理图像，并可自动调整输入大小以保持在处理限制内。允许的最大输出大小为 32 兆像素。

## 输入

| 参数     | 描述                                                               | 数据类型    | 是否必需 | 范围                                          |
| ------ | ---------------------------------------------------------------- | ------- | ---- | ------------------------------------------- |
| `模型`   | 要使用的增强模型。`generative_portrait` 模型针对人像进行了优化，而 `generative` 是通用模型。 | COMBO   | 是    | `"generative_portrait"`<br />`"generative"` |
| `图像`   | 要增强的输入图像。                                                        | IMAGE   | 是    | -                                           |
| `放大倍数` | 图像尺寸的放大倍数。倍数为 1 表示不放大，2 表示尺寸加倍，4 表示尺寸变为四倍。                       | COMBO   | 是    | `1`<br />`2`<br />`4`                       |
| `自动缩小` | 如果输出将超过限制，自动缩小输入图像。（默认值：`False`）                                 | BOOLEAN | 否    | -                                           |

**注意：** 如果计算出的输出大小（输入宽度 × `upscale_factor` × 输入高度 × `upscale_factor`）超过 32,000,000 像素（32MP），且 `auto_downscale` 处于禁用状态，节点将引发错误。当 `auto_downscale` 启用时，节点会自动减小输入图像尺寸或放大倍数（或两者都减小），以使输出符合 32MP 限制。

## 输出

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

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

***

**Source fingerprint (SHA-256):** `eb9adc1ac94c5fb943e3dd8f6617b21c5d3203f0d9ddb93ba1c9d4b4e63bd421`
