> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 自定义采样器（高级）（SamplerCustomAdvanced）

<div class="node-meta"><code>SamplerCustomAdvanced</code><span>model/sampling/custom</span><span>角色：采样器</span><span class="star">★ 常用节点</span></div>

SamplerCustomAdvanced 节点使用自定义噪声、引导和采样配置执行高级潜空间采样。它通过带有可自定义噪声生成器和 sigma 调度表的引导采样流程来处理潜空间图像，在可用时同时输出最终采样结果和去噪版本。

## 参数

| 参数             | 类型              | 默认 / 范围 | 说明                                              |
| -------------- | --------------- | ------- | ----------------------------------------------- |
| `noise`        | NOISE · 噪声      | —（连线输入） | 需接入 RandomNoise / DisableNoise 等噪声节点，自定义采样流程必填。 |
| `guider`       | GUIDER · 引导器    | —（连线输入） | CFGGuider / BasicGuider 等，负责把正负条件施加到模型上。        |
| `sampler`      | SAMPLER · 采样器对象 | —（连线输入） | 由 KSamplerSelect 提供。                            |
| `sigmas`       | SIGMAS · 调度表    | —（连线输入） | 由 BasicScheduler / KarrasScheduler 等输出，决定步数曲线。  |
| `latent_image` | LATENT · 潜空间    | —（连线输入） | 采样起点；图生图时来自 VAEEncode。                          |

## 输出

| 输出              | 类型     | 说明  |
| --------------- | ------ | --- |
| output          | LATENT | 潜空间 |
| denoised_output | LATENT | 潜空间 |

## 怎么接

- **上游**：RandomNoise / DisableNoise
- **下游**：VAEDecode / 下一段采样
- **接线**：采样是整条链的核心：把 `latent_image`、`guider`、`sampler`、`sigmas`、`noise` 全部接齐，输出 `output`(LATENT) 交给 VAEDecode；想分两段精修时，把第一段的输出接给第二段的 latent 输入。

## 使用案例

属于「采样器」类节点，向下游提供潜空间数据，通常进采样器或解码器。从 `noise`、`guider`、`sampler` 开始填就能跑起来。典型接法：`RandomNoise` → 本节点 → `VAEDecode`。输出类型是 LATENT，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

![SamplerCustomAdvanced 端口与连线示意](/svg/SamplerCustomAdvanced.svg)

## 同类节点

[自定义采样器](/nodes/02/SamplerCustom.md) · [自适应投影引导](/nodes/02/APG.md)
