Nodes/CFE_comfyui/CFE FLUX Sampler (Pipe)
ComfyUI Node

CFE FLUX Sampler (Pipe)

Steps, denoise and cfg with nothing but a bus line

By CpreForEver·Created 2 years ago·Updated 2 years ago· 0
CFE FLUX Sampler (Pipe)
  • pipe
  • noise
  • latent_image
  • pipe
  • latent
  • vae
cfg1.0
denoise1.00
steps20

CFE FLUX Sampler (Pipe) is the convenience version of the pack's CFE FLUX Sampler. Where the plain node makes you wire model, conditioning, sampler, and sigmas in by hand, this one pulls all of that off the FLUX_PIPE bus and lets you just set the three knobs you actually care about: steps, denoise, and cfg.

Think of it as the pack's answer to the stock KSampler - the node that sits in the middle of a text-to-image workflow and does the actual denoising - but designed to live between a CFE Flux In Pipe and a CFE Flux Out Pipe. One wire in from the left, one wire out to the right, and the sampler is just a box you tweak.

How it works

The execute function unpacks the pipe, discarding the parts it doesn't need for the sample itself:

model, _, vae, cond, sampler, scheduler = pipe
sigmas = build_sigmas(model, steps, scheduler, denoise)
out = _flux_sampler(model, noise, cfg, cond, sampler, sigmas, latent_image)
return (pipe, out, vae)

That build_sigmas call is the interesting bit. It computes sigmas for steps / denoise total steps and then slices off the last steps + 1 of them - which is exactly how a partial-denoise img2img run works in standard ComfyUI, just hidden inside the node. Set denoise to 0.5 and you're starting halfway through the noise schedule, preserving the structure of whatever latent you fed in. The scheduler name that travels on the pipe (it's a string in this pack, by design) drives which schedule those sigmas follow.

The inputs you set

  • pipe - the FLUX_PIPE carrying model, cond, sampler, and the scheduler string.
  • noise - ComfyUI's stock RandomNoise node; your seed lives here.
  • latent_image - a LATENT, usually from an empty-latent or aspect-ratio node, or an encoded image for img2img.
  • cfg - default 1.0. Remember this is Flux guidance, not classic CFG. On Flux Dev bump it to ~3.5; on guidance-distilled variants 1.0 is correct. The default is chosen for the distilled case.
  • denoise - default 1.0 (full denoise). Drop it below 1 for img2img-style partial rework.
  • steps - default 20, which is the right neighborhood for Flux.

Outputs: pipe (the same pipe, passed through untouched), latent (the denoised result, straight into a VAE Decode), and vae (the VAE from the pipe, passed along for convenience).

Install

Same trivial story as the whole pack - no requirements, no weights to download:

cd ComfyUI/custom_nodes
git clone https://github.com/CpreForEver/CFE_comfyui

Restart ComfyUI, grab it from the CFE/flux menu. Or ComfyUI Manager → CFE_comfyui.

Where people trip up

The cfg default is the trap, same as in the plain sampler - 1.0 on a Flux Dev checkpoint gives you flat images. The other thing to remember is that this node inherits the pack's Flux-only assumption: single conditioning, no negatives, and the scheduler string comes from the pipe rather than from your own dropdown. If you're mid-graph without a pipe handy, use the non-pipe CFE FLUX Sampler instead - that's why both exist. And set your expectations accordingly: this is a personal, unmaintained-pack era node, not a supported library. It works, but the moment you want a feature it doesn't have, you're on your own.

CategoryCFE/flux

Inputs (6)

NameTypeDefaultDescription
pipeFLUX_PIPEThe bus line carrying the data.
noiseNOISENoise for generation
latent_imageLATENTThe latent image.
cfgFLOAT1.00–100The Classifier-Free Guidance scale balances creativity and adherence to the prompt. Higher values result in images more closely matching the prompt however too high values will negatively impact quality.
denoiseFLOAT1.000–1The amount of denoising applied, lower values will maintain the structure of the initial image allowing for image to image sampling.
stepsINT201–10000The number of steps used in the denoising process.

Outputs (3)

NameTypeDescription
pipeFLUX_PIPE
latentLATENT
vaeVAE