generated

RgthreeKSamplerConfig

Some basic config stuff I started using for SDXL, but useful in other spots too.

Rgthree K Sampler Config

STEPS
REFINER_STEP
CFG
SAMPLER
SCHEDULER
steps_total
INT
refiner_step
INT
cfg
8.0
sampler_name
COMBO
scheduler
COMBO
rgthree comfy

Description

RgthreeKSamplerConfig is a small convenience node that collects the core KSampler settings in one place and exposes them as outputs. The author describes it as "some basic config stuff I started using for SDXL, but useful in other spots too." It does not sample anything itself; instead it centralizes the values you would otherwise repeat on every KSampler (total steps, refiner step, CFG, sampler, and scheduler) so that a single node can feed several sampling nodes at once.

This is especially handy in SDXL base-plus-refiner workflows, where you often want the base sampler and the refiner sampler to share the same seed/steps/sampler configuration but switch at a chosen step. By wiring a single RgthreeKSamplerConfig into both samplers, you avoid keeping duplicate widgets in sync by hand.

Inputs

steps_total

The total number of sampling steps to run. Connect this to the steps input of a KSampler (or equivalent).

refiner_step

The step at which to hand off from the base model to the refiner model. In an SDXL refiner workflow this is the cutoff point between the two sampling passes; use it to control how much of the schedule each model contributes.

cfg

The classifier-free guidance scale, as a float. Defaults to 8, with a minimum of 0, a maximum of 100, and a step of 0.5.

sampler_name

The sampler algorithm to use (for example euler, dpmpp_2m, and so on). The available options are the same samplers ComfyUI exposes on its KSampler node.

scheduler

The noise scheduler to use (for example normal, karras, exponential). The available options match ComfyUI's scheduler list.

Outputs

The node has five outputs that mirror its inputs in the same order, so you can route each setting to whichever downstream node needs it:

  1. INT: the total steps value.
  2. INT: the refiner step value.
  3. FLOAT: the CFG value.
  4. UNKNOWN: the sampler name value (typed to match the sampler combo).
  5. UNKNOWN: the scheduler value (typed to match the scheduler combo).

The UNKNOWN types are ComfyUI's dynamic combo types; they simply pass through the selected sampler and scheduler selections.

Usage Notes

  • RgthreeKSamplerConfig is purely a routing/passthrough node. It computes nothing on its own; changing a widget here changes only what downstream nodes receive.
  • A common pattern is to feed the outputs into both a base-model KSampler and a refiner-model KSampler, keeping steps, CFG, sampler, and scheduler identical across the two passes while refiner_step decides where the handoff happens.
  • Because the CFG widget allows values from 0 to 100 in 0.5 increments, you can dial in precise guidance values rather than being limited to whole numbers.
  • The node is not SDXL-specific despite its origins; any workflow that wants a single shared configuration for multiple samplers can use it.

Comments

Sign in with GitHub to join the discussion.

Loading comments…