> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 缩放Latent（LatentUpscale）

<div class="node-meta"><code>LatentUpscale</code><span>model/latent</span><span>角色：潜空间处理</span><span class="star">★ 常用节点</span></div>

LatentUpscale 节点用于对图像的潜在表示进行放大。它允许调整输出图像的尺寸和放大方法，为提升潜在图像的分辨率提供了灵活性。

## 参数

| 参数               | 类型           | 默认 / 范围                                    | 说明                                           |
| ---------------- | ------------ | ------------------------------------------ | -------------------------------------------- |
| `samples`        | LATENT · 潜空间 | —（连线输入）                                    | LATENT。采样器的输入/输出，需 VAE 解码才能看图。               |
| `upscale_method` | COMBO        | nearest-exact、bilinear、area、bicubic …共 5 项 | nearest-exact 最快、lanczos 最锐、bicubic 最均衡。     |
| `width`          | INT          | 0 \~ 16384，步长 8                            | 像素。必须为 8 的倍数（SD1.5 512、SDXL 1024、Flux 1024）。 |
| `height`         | INT          | 0 \~ 16384，步长 8                            | 像素。必须为 8 的倍数，非正方形建议保持总像素与原模型训练分辨率一致。         |
| `crop`           | COMBO        | disabled、center                            | disabled 拉伸变形；center 居中裁切保持比例。               |

## 输出

| 输出  | 类型     | 说明  |
| --- | ------ | --- |
| 潜空间 | LATENT | 潜空间 |

## 怎么接

- **上游**：EmptyLatentImage / VAEEncode / KSampler
- **下游**：VAEDecode / 下一段采样
- **接线**：接在 EmptyLatentImage / VAEEncode / 上一次采样之后，输出接着进 KSampler 或 VAEDecode；潜空间操作比像素空间快得多，放大和拼接优先在这一层做。

## 使用案例

在潜空间里放大，比像素级放大更省显存，也比直接拉分辨率更不容易崩。

高清放大的标准两段式：首轮出图 → `LatentUpscale` 放 1.5 倍 → 第二个 `KSampler` 用 `denoise` 0.5 重采样一遍。这一轮才是真正加细节的地方。

倍率一次别超过 2 倍，`upscale_method` 用 `bicubic` 或 `lanczos` 都行。

## 端口与连线示意

![LatentUpscale 端口与连线示意](/svg/LatentUpscale.svg)

## 实战提示

- 宽高必须是 8 的倍数；SDXL 建议总像素约 1024²，Flux 建议 1MP 左右。

## 同类节点

[空Latent图像](/nodes/04/EmptyLatentImage.md) · [合成Latent](/nodes/04/LatentComposite.md) · [合成Latent遮罩](/nodes/04/LatentCompositeMasked.md) · [缩放Latent（比例）](/nodes/04/LatentUpscaleBy.md) · [加载Latent](/nodes/04/LoadLatent.md) · [保存Latent](/nodes/04/SaveLatent.md) · [设置Latent噪波遮罩](/nodes/04/SetLatentNoiseMask.md) · [VAE解码](/nodes/04/VAEDecode.md) · [VAE解码（分块）](/nodes/04/VAEDecodeTiled.md) · [VAE编码](/nodes/04/VAEEncode.md) · [VAE编码（局部重绘）](/nodes/04/VAEEncodeForInpaint.md) · [空Latent音频](/nodes/04/EmptyLatentAudio.md)
