Nodes/ComfyUI-TJ_NODE/Enhanced KSampler (TJ)
ComfyUI Node

Enhanced KSampler (TJ)

A ComfyUI node in ✨ TJ_Node/Sampling with 21 inputs and 2 outputs.

By designloves2·Created 3 months ago·Updated 3 days ago· 11
Enhanced KSampler (TJ)
  • model
  • positive
  • negative
  • latent_image
  • latent
  • enhance_info
seed0
steps20
cfg8.0
sampler_name
scheduler
denoise1.00
enhance_enabledtrue
enhance_archkrea2
enhance_strength1.00
enhance_debugfalse
adv_text_scale1.00
adv_active_scale1.00
adv_per_token_whiten0.00
adv_norm_equalize0.00
adv_early_layer_scale1.00
adv_mid_layer_scale1.00
adv_late_layer_scale1.00
Category ✨ TJ_Node/Sampling

Inputs (21)

NameTypeDefaultDescription
modelMODEL
seedINT00–18446744073709550000
stepsINT201–10000
cfgFLOAT8.00–100
sampler_nameCOMBO44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38
schedulerCOMBO9 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +3
positiveCONDITIONING
negativeCONDITIONING
latent_imageLATENT
denoiseFLOAT1.000–1
enhance_enabledBOOLEANtrueMaster switch. When off, every enhance option below is hidden and this behaves exactly like a standard KSampler.
enhance_archCOMBOkrea2Which architecture's enhancer to use. Must match the loaded model — Krea2 patches the model's text-fusion adapter, while Klein and Z-Image operate on the positive conditioning. A mismatch is detected and skipped.
enhance_strengthFLOAT1.000–2Overall enhancement amount. 0 = no effect, 1.0 = default, 2.0 = maximum. Drives the built-in per-architecture profile; any Advanced knob you change below overrides that profile for this run.
enhance_debugBOOLEANfalsePrint detection, applied architecture and tensor deltas to the console.
adv_text_scaleoptFLOAT1.000.25–4[Krea2 only] Scale the whole text-MLP output, independently of Enhance strength (which only re-weights specific text chunks). 1.0 = unchanged. Raise it to push overall text influence up, lower it to let the base model speak more. Works even at strength 0.
adv_active_scaleoptFLOAT1.000–10[Klein / Z-Image] Multiplier on every active-token embedding. 1.0 = unchanged. The model was trained on the text encoder's natural distribution, so values far from 1.0 push it off-distribution.
adv_per_token_whitenoptFLOAT0.00-1–5[Klein / Z-Image] Amplify each token's deviation from the sequence mean: (x - mean) * (1 + w) + mean. Above 0 widens the spread (more contrast between tokens), below 0 compresses it. 0 = off.
adv_norm_equalizeoptFLOAT0.000–1[Klein / Z-Image] Blend each token toward the sequence's mean L2 norm. Flattens magnitude variance, countering the text encoder's natural emphasis. 0 = off, 1.0 = fully equalized.
adv_early_layer_scaleoptFLOAT1.000–5[Klein only] Scale the first Qwen3 layer slice (low-level / structural features). Klein conditioning stacks 3 layers along the embed dim.
adv_mid_layer_scaleoptFLOAT1.000–5[Klein only] Scale the middle Qwen3 layer slice (intermediate semantic features).
adv_late_layer_scaleoptFLOAT1.000–5[Klein only] Scale the last Qwen3 layer slice (high-level semantics). Raising this is usually what strengthens prompt adherence.

Outputs (2)

NameTypeDescription
latentLATENT
enhance_infoSTRING