AC_Super_KSampler
A KSampler that takes prompts straight from a text box
- model
- clip
- LATENT
- Positive
- Negative
AC_Super_KSampler is the compact way to sample: one node that takes a model, a clip, and two plain-text prompts, and does the text encoding, the latent creation, and the sampling itself. No Empty Latent node, no CLIP Text Encode nodes, no conditioning wires flying around - type your prompt, hit go.
How it works
Read the source and you'll see it's three stock operations fused: it builds an empty latent with torch.zeros (sized by your resolution choice), runs clip.tokenize + encode_from_tokens on both prompt strings using the clip you wired in, then hands everything to the standard KSampler loop. The mechanism is identical to a hand-built chain - it's just all inside one node, with the same comfy.sample.sample call under the hood.
The inputs that matter
modelandclip- from a checkpoint loader, likeAC_Super_Checkpoint,AC_Super_CKPT&LCM, or the core Load Checkpoint. Note the clip is required: unlike a normal KSampler, this node encodes text itself, so it needs aCLIP, not conditioning.positive/negative- multiline prompt strings, not conditioning. This is the biggest difference from the core KSampler.dispatch(Custom / All_ready) -Customuseswidth/height/batch_size;All_readypulls size from the 37-entryresolutiondropdown.seed,steps,cfg,sampler_name,scheduler,denoise- the standard knobs, defaulting to 10 steps, cfg 1.4,lcm.
The outputs
LATENT (the sampled result), plus Positive and Negative as CONDITIONING. Those two are the useful bonus: they're the encodings the node already computed, so you can feed them into a second-pass node like AC_Super_UpKSampler without re-encoding the prompts.
Installing it
Ships in ComfyUI_AC_FUNV8Beta1 by Cc啊程 (Bilibili ComfyUI teacher; README is Chinese). ComfyUI Manager (search "AC_FUN") or:
cd ComfyUI/custom_nodes
git clone https://github.com/A719689614/ComfyUI_AC_FUNV8Beta1
Restart ComfyUI. No downloads.
Where people get burned
The defaults are LCM-flavored: lcm sampler, cfg 1.4, 10 steps. Those numbers only look good with an LCM LoRA on the model. Point it at a normal SDXL or SD 1.5 checkpoint and you'll get a washed-out smudge - raise steps to 25+ and cfg to 5–7. Second, because encoding happens inside, you can't interpose a ControlNet between encode and sample; for that, use AC_Super_CLIPEN + a core KSampler (or AC_Super_Controlnet on the conditioning) instead. And keep in mind denoise below 1.0 on a freshly made empty latent does nothing useful - it's there for when you feed it pre-existing latents.
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| seed | INT | 00–18446744073709550000 | — |
| steps | INT | 101–10000 | — |
| cfg | FLOAT | 1.40–100 | — |
| sampler_name | COMBO | lcm | 44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38 |
| scheduler | COMBO | 9 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +3 | |
| clip | CLIP | — | |
| denoise | FLOAT | 1.000–1 | — |
| positive | STRING | 1girl, skirt, hair ornament, long hair, glasses, solo, twin braids, braid, sitting, purple eyes, looking at viewer, page number, shirt, brown hair, white shirt, collarbone, ahoge, simple background, pleated skirt, navel, open clothes, cardigan, school uniform, flower, plaid, bangs, breasts, very long hair, long sleeves, pink cardigan, plaid skirt, hair flower, clock, blush, open cardigan, hairclip, closed mouth, collared shirt, off shoulder, buttons, smile, groin, white background, medium breasts, miniskirt, twintails, ribbon, unbuttoned, artist name, shiny hair, shiny, red ribbon, bow,blond hair, long blond hair, curly hair, dressed in armor, | — |
| negative | STRING | lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry | — |
| resolution | COMBO | 37 options: 512*512, 576*576, 640*640, 640*480, 480*640, 512*768, +31 | |
| dispatch | COMBO | 2 options: Custom, All_ready | |
| width | INT | 51216–5277 | — |
| height | INT | 76816–5277 | — |
| batch_size | INT | 11–4096 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| LATENT | LATENT | — |
| Positive | CONDITIONING | — |
| Negative | CONDITIONING | — |