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

# LatentFromBatch - ComfyUI Built-in Node Documentation

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

此节点设计用于根据指定的批量索引和长度从给定的批量中提取特定子集的潜在样本。它允许对潜在样本进行选择性处理，便于对批量的较小段进行高效操作或针对性操作。

## 输入

| 参数名称     | 数据类型     | 作用                                          |
| -------- | -------- | ------------------------------------------- |
| `Latent` | `LATENT` | 将从中提取子集的潜在样本集合。此参数对于确定要处理的源批量样本至关重要。        |
| `批次索引`   | `INT`    | 指定批量中子集样本开始的起始索引。此参数使从批量中的特定位置提取样本成为可能。     |
| `长度`     | `INT`    | 定义从指定起始索引提取的样本数量。此参数控制要处理的子集的大小，允许灵活地操作批量段。 |

## 输出

| 参数名称     | 数据类型     | 作用                      |
| -------- | -------- | ----------------------- |
| `latent` | `LATENT` | 提取的潜在样本子集，现在可供进一步处理或分析。 |
