> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-matt-router-pricing-pika-and-guard.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LatentCutToBatch - ComfyUI Built-in Node Documentation

> LatentCutToBatch 节点将 latent 表示沿所选维度（时间、宽度或高度）切分为指定大小的切片，并将这些切片堆叠成一个新批次。

LatentCutToBatch 节点将 latent 表示沿所选维度（时间、宽度或高度）切分为指定大小的切片，并将这些切片堆叠成一个新批次。每个切片成为批次中的独立项，因此 latent 样本的不同部分可以独立处理。

## 输入

| 参数 | 描述 | 数据类型 | 必需 | 范围 |
| - | - | - | - | - |
| `Latent` | 要拆分并批处理的 latent 表示。 | LATENT | 是 | - |
| `维度` | 沿其切割 latent 样本的维度。`"t"` 表示时间（帧）维度，`"x"` 表示宽度，`"y"` 表示高度。 | COMBO | 是 | `"t"`<br />`"x"`<br />`"y"` |
| `碎片大小` | 从指定维度切割的每个切片的大小。如果该维度的尺寸不能被此值整除，则丢弃余数。（默认值：1） | INT | 是 | 1 到 16384（最大分辨率） |

注意：`"t"` 选项仅在 latent 包含时间维度时生效。如果所选维度映射到批次或通道位置，或者不存在（例如，在没有帧的 latent 上选择 `"t"`），则节点将原样返回输入。如果 `slice_size` 大于所选维度的尺寸，则整个维度将用作单个切片。当维度尺寸不能被 `slice_size` 整除时，末尾剩余部分将被丢弃。输出批次大小是输入批次大小乘以切片数量，而切片维度本身会减小为 `slice_size`。

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `samples` | 生成的 latent 批次，包含已切片并堆叠的样本。 | LATENT |

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

***

**Source fingerprint (SHA-256):** `873c9bc8391971887f1ab636c086cab86f5504a9c653bc80b54120ee53980bdf`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.