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

# 重设Latent批次（RebatchLatents）

<div class="node-meta"><code>RebatchLatents</code><span>model/latent/batch</span><span>角色：潜空间处理</span></div>

RebatchLatents 节点旨在根据指定的批次大小，将一批潜在表示重新组织为新的批次配置。该节点确保潜在样本被适当分组，并处理维度与尺寸的变化，以支持后续处理或模型推理。

## 参数

| 参数           | 类型           | 默认 / 范围   | 说明                  |
| ------------ | ------------ | --------- | ------------------- |
| `latents`    | LATENT · 潜空间 | —（连线输入）   | —                   |
| `batch_size` | INT          | 1 \~ 4096 | 一次生成的图片数量，显存占用线性增长。 |

## 输出

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

## 怎么接

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

## 使用案例

属于「潜空间处理」类节点，向下游提供潜空间数据，通常进采样器或解码器。从 `latents`、`batch_size`（1） 开始填就能跑起来。典型接法：`EmptyLatentImage` → 本节点 → `VAEDecode`。注意：批量出图显存占用线性增长，爆显存时优先降 batch 而不是降分辨率。

## 端口与连线示意

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

## 实战提示

- 批量出图显存占用线性增长，爆显存时优先降 batch 而不是降分辨率。

## 同类节点

[组合Latent批次](/nodes/04/LatentBatch.md) · [从批次获取Latent](/nodes/04/LatentFromBatch.md) · [复制Latent批次](/nodes/04/RepeatLatentBatch.md) · [批量latent](/nodes/04/BatchLatentsNode.md) · [替换视频Latent](/nodes/04/ReplaceVideoLatentFrames.md)
