> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/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/zh.md)

此节点通过将低分辨率图像放大至超分辨率来增强图像质量，同时去除伪影和噪声。它使用外部 API 处理图像，并能自动调整输入尺寸以确保不超过处理限制。最大允许输出尺寸为 400 万像素。

## 输入参数

| 参数名              | 数据类型    | 必填 | 取值范围                                        | 描述                                   |
| ---------------- | ------- | -- | ------------------------------------------- | ------------------------------------ |
| `model`          | STRING  | 是  | `"generative_portrait"`<br />`"generative"` | 要使用的图像增强模型。                          |
| `image`          | IMAGE   | 是  | -                                           | 待增强的输入图像。                            |
| `upscale_factor` | INT     | 是  | `1`<br />`2`<br />`4`                       | 图像尺寸的放大倍数。                           |
| `auto_downscale` | BOOLEAN | 否  | -                                           | 如果输出尺寸将超过限制，则自动缩小输入图像。(默认值: `False`) |

**注意：** 如果计算出的输出尺寸（输入高度 × upscale\_factor × 输入宽度 × upscale\_factor）超过 4,000,000 像素（4MP）且 `auto_downscale` 被禁用，节点将引发错误。当启用 `auto_downscale` 时，节点将尝试在应用请求的放大倍数之前，先缩小输入图像以使其符合尺寸限制。

## 输出

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