Nodes/ComfyUI_agilly1989_motorway/SamplerCustomAdvanced_motorway_edition
ComfyUI Node

SamplerCustomAdvanced_motorway_edition

The raw sampler on the bus — where custom sampling actually happens

By agilly1989·Created 2 years ago·Updated about a year ago· 7
SamplerCustomAdvanced_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
INPUT_noise_keynoise
INPUT_guider_keyguider
INPUT_sampler_keysampler
INPUT_sigmas_keysigmas
INPUT_latent_image_keylatent_image
OUTPUT_output_keyoutput
OUTPUT_denoised_output_keydenoised_output

If you've ever wondered what KSampler is hiding from you, SamplerCustomAdvanced is the answer: it's the raw innards. A KSampler bundles noise, a guider, a sampler, sigmas, and a latent together and runs them for you. SamplerCustomAdvanced makes you assemble all five yourself. That's intimidating, and it's also the point - it's the node that lets you mix a custom guider like PerpNeg or CFG++ with a custom scheduler and a custom noise generator in ways the stock sampler simply can't express.

For the Motorway pack, this is the sink node where most of the other _motorway_edition pieces eventually pour in. It's the destination of your guider, your noise, your sigmas, your sampler.

On the bus

Everything this node needs arrives by key from the MOTORWAY 🚌💨 bus:

  • INPUT_noise_key (default noise) - a noise generator, from RandomNoise_motorway_edition (OUTPUT_NOISE_key defaults to NOISE, so match the case).
  • INPUT_guider_key (default guider) - your guider, e.g. PerpNegGuider_motorway_edition's output.
  • INPUT_sampler_key (default sampler) - a sampler object, e.g. SamplerDPMAdaptative_motorway_edition's output.
  • INPUT_sigmas_key (default sigmas) - your schedule, from a scheduler node.
  • INPUT_latent_image_key (default latent_image) - the latent you're denoising.

There are no tuning widgets here - all the dials live on the nodes that produce the five pieces. Two outputs are written back to the bus:

  • OUTPUT_output_key (default output) - the final sampled latent.
  • OUTPUT_denoised_output_key (default denoised_output) - the model's own prediction of the clean image at the end of the run. Most workflows ignore it; it's there when you're doing advanced things like latent upscaling tricks.

Install

No dependencies, no models:

cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway

or ComfyUI Manager → search ComfyUI_agilly1989_motorway → install → restart.

The fine print

The pack is a beta project - "IF THINGS BREAK ITS BECAUSE I BROKE IT" is the README's opening - and the _motorway_edition clones were auto-generated by a cloner that build 1.1.7 disabled. A fresh install may not include this node; the stock SamplerCustomAdvanced in core is always available.

Bus debugging is genuinely easier here than with wires, in one sense: if you get KeyError: 'hash_...' doesn't exist in motorway, it names the exact key that was never stored. It's almost always one of the five inputs never being parked on the bus, or a case mismatch (NOISE vs noise again). Check the producing node's output key against this node's input key, in order.

And a beginner warning that has nothing to do with the bus: custom sampling is where people lose an afternoon. If you just want a picture, use KSampler. Reach for this node when you know why you want a custom guider or scheduler - otherwise you're assembling a chain whose failure modes you can't yet read.

Categoryagilly1989 Nodes/Motorway-ed/sampling/custom_sampling

Inputs (8)

NameTypeDefaultDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨
INPUT_noise_keySTRINGnoise
INPUT_guider_keySTRINGguider
INPUT_sampler_keySTRINGsampler
INPUT_sigmas_keySTRINGsigmas
INPUT_latent_image_keySTRINGlatent_image
OUTPUT_output_keySTRINGoutput
OUTPUT_denoised_output_keySTRINGdenoised_output

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨