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

# ResolutionSelector - ComfyUI Built-in Node Documentation

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

分辨率选择器节点根据选定的宽高比和目标总分辨率（以百万像素为单位）计算图像的像素宽度和高度。它有助于为其他节点（如空潜像节点）生成一致的尺寸。输出尺寸始终四舍五入到最接近的8的倍数。

## 输入

| 参数     | 描述                                             | 数据类型  | 是否必填 | 范围                                                                                                                                                  |
| ------ | ---------------------------------------------- | ----- | ---- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `宽高比`  | 输出尺寸的宽高比（默认值：`"SQUARE"`）。                      | COMBO | 是    | `"SQUARE"`<br />`"PORTRAIT_2_3"`<br />`"PORTRAIT_3_4"`<br />`"PORTRAIT_9_16"`<br />`"LANDSCAPE_3_2"`<br />`"LANDSCAPE_4_3"`<br />`"LANDSCAPE_16_9"` |
| `百万像素` | 目标总百万像素数。对于正方形宽高比，1.0 MP ≈ 1024×1024（默认值：1.0）。 | FLOAT | 是    | 0.1 - 16.0                                                                                                                                          |

## 输出

| 输出名称 | 描述              | 数据类型 |
| ---- | --------------- | ---- |
| `宽度` | 计算出的像素宽度，为8的倍数。 | INT  |
| `高度` | 计算出的像素高度，为8的倍数。 | INT  |

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

***

**Source fingerprint (SHA-256):** `221d38fa72c9989e06b706d33fd3e0dc4caa0f741dd2931864c58a6bd7f52613`
