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

# LatentBlend - ComfyUI Built-in Node Documentation

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

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

## 输入

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

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

## 输出

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

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

***

**Source fingerprint (SHA-256):** `a19808c5b606a8c05f2685fcd78d9f08c1ba51613a4029b36cf0ce5305618c2f`
