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

# LatentConcat - ComfyUI Built-in Node Documentation

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

LatentConcat 节点通过沿选定维度拼接两个潜在样本来将其合并。该节点接收两个潜在输入，并沿 x、y 或 t 轴进行拼接，同时提供控制哪个样本排在前面的选项。在执行拼接前，节点会自动调整第二个输入的批次大小以匹配第一个输入。

## 输入

| 参数    | 描述                                                                                                                      | 数据类型   | 是否必填 | 取值范围                                                            |
| ----- | ----------------------------------------------------------------------------------------------------------------------- | ------ | ---- | --------------------------------------------------------------- |
| `样本1` | 要拼接的第一个潜在样本                                                                                                             | LATENT | 是    | -                                                               |
| `样本2` | 要拼接的第二个潜在样本                                                                                                             | LATENT | 是    | -                                                               |
| `维度`  | 拼接潜在样本的维度。正值（x、y、t）表示结果中 samples1 排在 samples2 之前。负值（-x、-y、-t）表示 samples2 排在 samples1 之前。维度映射关系为：x = 宽度，y = 高度，t = 时间/帧数 | COMBO  | 是    | `"x"`<br />`"-x"`<br />`"y"`<br />`"-y"`<br />`"t"`<br />`"-t"` |

**注意：** 第二个潜在样本（`samples2`）会在拼接前自动调整，以匹配第一个潜在样本（`samples1`）的批次大小。

## 输出

| 输出名称     | 描述                      | 数据类型   |
| -------- | ----------------------- | ------ |
| `output` | 沿指定维度拼接两个输入样本后得到的拼接潜在样本 | LATENT |

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

***

**Source fingerprint (SHA-256):** `46514ef85887279ec577ad88ac46f1c20f428903ee63b076888d7d5df09fde77`
