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

# LatentBlend - ComfyUI Built-in Node Documentation

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

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

LatentBlend 节点通过使用指定的混合因子将两个潜在样本进行混合。该节点接收两个潜在输入，并创建一个新的输出，其中第一个样本按混合因子加权，第二个样本按反向权重加权。如果输入样本具有不同的形状，第二个样本会自动调整大小以匹配第一个样本的维度。

## 输入参数

| 参数名       | 数据类型   | 必填 | 取值范围  | 描述                     |
| --------- | ------ | -- | ----- | ---------------------- |
| `Latent1` | LATENT | 是  | -     | 要混合的第一个潜在样本            |
| `Latent2` | LATENT | 是  | -     | 要混合的第二个潜在样本            |
| `系数`      | FLOAT  | 是  | 0 到 1 | 控制两个样本之间的混合比例（默认值：0.5） |

**注意：** 如果 `samples1` 和 `samples2` 具有不同的形状，`samples2` 将使用双三次插值和中心裁剪自动调整尺寸以匹配 `samples1` 的维度。

## 输出结果

| 输出名称     | 数据类型   | 描述               |
| -------- | ------ | ---------------- |
| `latent` | LATENT | 混合两个输入样本后得到的潜在样本 |
