Nodes/ComfyUI_tinyterraNodes/pipeKSamplerAdvanced
ComfyUI Node Runs on cloud

pipeKSamplerAdvanced

PipeKSamplerAdvanced with prompts built in

By TinyTerraΒ·Created 3 years agoΒ·Updated 3 months agoΒ· 605
pipeKSamplerAdvanced
  • pipe
  • optional_model
  • optional_positive
  • optional_negative
  • optional_latent
  • optional_vae
  • optional_clip
  • input_image_override
  • adv_xyPlot
  • pipe
  • model
  • positive
  • negative
  • latent
  • vae
  • clip
  • images
  • seed
  • plot_image
β—„lora_nameβ–Ύβ–Ί
β—„lora_strength1.00β–Ί
β—„upscale_methodNoneβ–Ί
β—„upscale_model_nameβ–Ύβ–Ί
β—„factor2.00β–Ί
β—„rescaleβ–Ύβ–Ί
β—„percent50β–Ί
β—„width1024β–Ί
β—„height1024β–Ί
β—„longer_side1024β–Ί
β—„cropβ–Ύβ–Ί
β—„add_noiseβ–Ύβ–Ί
β—„noise1.00β–Ί
β—„steps20β–Ί
β—„start_at_step0β–Ί
β—„end_at_step10000β–Ί
β—„cfg8.00β–Ί
β—„sampler_nameβ–Ύβ–Ί
β—„schedulerβ–Ύβ–Ί
β—„return_with_leftover_noiseβ–Ύβ–Ί
β—„image_outputβ–Ύβ–Ί
β—„save_prefixComfyUIβ–Ί
β—„file_typepngβ–Ί
β—„embed_workflowtrueβ–Ί
β—„noise_seed0β–Ί

pipeKSamplerAdvanced_v2 (ttN pipeKSamplerAdvanced_v2, displayed as pipeKSamplerAdvanced) is the workhorse of the tinyterra pipe system: the one node that samples, upscales, saves, and even writes its own prompts, all inside a ttN pipe. It's the v2 of the legacy advanced sampler, and the upgrade list is exactly what you'd want - embedded Advanced CLIP text encoding, a proper hires-fix path, and full XY-plot support.

If you're doing multi-stage SD1.5/SDXL work with tinyterra, this is the node you'll reach for most. It's the pipe counterpart of ComfyUI's KSamplerAdvanced, but instead of raw wires it eats and emits a PIPE_LINE, which keeps the graph small when you're chaining two or three passes.

How it works

The node pulls model, conditioning, latent and VAE from the incoming pipe (overridable via optional_model, optional_positive, optional_negative, optional_latent, optional_vae, optional_clip), applies an optional LoRA, runs the step window you specify, decodes through the VAE, and pushes the result through preview/save and back into a fresh pipe.

The two features that separate it from the v1:

  • Embedded prompt boxes. positive and negative text fields with token_normalization and weight_interpretation dropdowns (comfy / A1111 / compel / comfy++ / down_weight) - the vendored ADV_CLIP_emb encoding, so (keyword:1.3) syntax works if you flip interpretation to A1111.
  • A real hires path. upscale_method offers [latent] modes and [hiresFix] modes (the latter with an upscale_model_name), plus a rescale block to push the decoded result to a target size. The classic two-stage recipe - sample at low res, [latent]-upscale with a factor, then run a second pass over just the top of the schedule with add_noise disabled - all lives in one node.

The inputs that matter

  • steps, start_at_step, end_at_step - the sampling window. First pass 0β†’20, then a hires continuation 16β†’20 with add_noise off.
  • add_noise + noise - noise is a 0–1 float; drop it below 1 for a partially-denoised continuation.
  • return_with_leftover_noise - enable when a later pass continues from this latent.
  • lora_name + lora_strength - single strength here (the v1 split model/clip strengths into two).
  • cfg, sampler_name, scheduler (includes AYS SD1/SDXL/SVD presets), denoise-adjacent controls.
  • image_output, save_prefix, file_type, embed_workflow - preview/save with full format control and the pack's %date%/%widget% prefix parsing.

Outputs: pipe, model, positive, negative, latent, vae, clip, images, seed, and plot_image (activated when you connect an adv_xyPlot - the pack's grid engine, which the community leans on heavily for LoRA weight testing). There's also input_image_override for img2img-style runs.

Install and gotchas

One-time pack install - ComfyUI Manager β†’ search ComfyUI_tinyterraNodes, or clone into ComfyUI/custom_nodes, restart. No deps, no model downloads.

Gotchas: the default positive/negative boxes contain the literal strings "Positive"/"Negative" - clear them or you'll bake the word into every render. And remember this is an SD1.5/SDXL-era node; the [latent]/[hiresFix] split doesn't map cleanly onto the newest architectures, the pack's known weak spot. For old v1 workflows, the node will version-flag on load - that's by design, and migrating just means moving your prompts into the node.

Category🌏 tinyterra/pipe

Inputs (34)

NameTypeDefaultDescription
pipePIPE_LINEβ€”
lora_nameCOMBO1 options: None
lora_strengthFLOAT1.00-10–10β€”
upscale_methodCOMBONone13 options: None, [latent] nearest-exact, [latent] bilinear, [latent] area, [latent] bicubic, [latent] lanczos, +7
upscale_model_nameCOMBO1 options: None
factorFLOAT2.000–10β€”
rescaleCOMBO4 options: by percentage, to Width/Height, to longer side - maintain aspect, None
percentINT500–1000β€”
widthINT102464–16384β€”
heightINT102464–16384β€”
longer_sideINT102464–16384β€”
cropCOMBO2 options: disabled, center
add_noiseCOMBO2 options: enable, disable
noiseFLOAT1.000–1β€”
stepsINT201–10000β€”
start_at_stepINT00–10000β€”
end_at_stepINT100000–10000β€”
cfgFLOAT8.000–100β€”
sampler_nameCOMBO44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38
schedulerCOMBO13 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +7
return_with_leftover_noiseCOMBO2 options: disable, enable
image_outputCOMBO5 options: Hide, Preview, Save, Hide/Save, Disabled
save_prefixSTRINGComfyUIβ€”
file_typeCOMBOpng7 options: png, jpg, jpeg, tiff, tif, webp, +1
embed_workflowBOOLEANtrueβ€”
noise_seedoptINT00–18446744073709550000β€”
optional_modeloptMODELβ€”
optional_positiveoptCONDITIONINGβ€”
optional_negativeoptCONDITIONINGβ€”
optional_latentoptLATENTβ€”
optional_vaeoptVAEβ€”
optional_clipoptCLIPβ€”
input_image_overrideoptIMAGEβ€”
adv_xyPlotoptADV_XYPLOTβ€”

Outputs (10)

NameTypeDescription
pipePIPE_LINEβ€”
modelMODELβ€”
positiveCONDITIONINGβ€”
negativeCONDITIONINGβ€”
latentLATENTβ€”
vaeVAEβ€”
clipCLIPβ€”
imagesIMAGEβ€”
seedINTβ€”
plot_imageIMAGEβ€”