pre_guide
A one-parameter guidance patch for Apt_Preset's context pipeline
- context
- context
pre_guide is about as small as a node in this pack gets: it takes a context (RUN_CONTEXT - the pipeline object Apt_Preset's loader nodes like sum_load_adv and load_Nanchaku produce), lets you set one thing on it - guidance, default 3.5 - and hands the same context type back out with that value patched in.
guidance here is the Flux-family CFG-distillation embed value, the same kind of setting you'd normally set directly on a loader node's own guidance field (both sum_load_adv and load_Nanchaku in this pack expose it themselves, also defaulting to 3.5). What pre_guide gives you is a way to adjust that value after the fact, mid-pipeline, without going back to re-touch the loader node itself - useful if you're chaining several context-consuming nodes together and want to override guidance at a specific point in the chain rather than at the source.
Worth being upfront about: this node's own category path in the pack is literally chx_tool/šbackup - a facepalm emoji next to the word "backup," in the author's own folder naming. That's the pack telling you, in its own organizational scheme, that this is a secondary/utility-tier node rather than a core piece of the workflow - likely something the author kept around as a fallback or leftover from an earlier iteration of the guidance-control system, rather than something built and promoted as a primary tool. Nothing about that means it doesn't work; it's just a signal about how central it is to the pack's current design, which is worth knowing before you build a workflow that leans on it as a load-bearing piece.
Output. context (RUN_CONTEXT) - the same pipeline object you fed in, carrying your updated guidance value forward to whatever consumes the context next (typically one of the pack's sampler-stack nodes).
Where this fits, practically. If your guidance value is fine as set on your loader node, you don't need this node at all - it exists for the specific case of wanting to tweak guidance somewhere downstream of loading without rewiring back to the source, which is a narrow enough need that most workflows won't reach for it.
Installing it. Standard for the whole pack - search "ComfyUI-Apt_Preset" in ComfyUI Manager, or clone it directly:
cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset.git
Run install.bat on Windows for dependencies, then restart ComfyUI. No models or GPU dependency for this node itself - it's a lightweight pipeline patch, so it should work the moment the pack loads.
Troubleshooting. If the node errors, the most likely cause is that whatever you're feeding into context isn't actually a RUN_CONTEXT object - this node expects the specific pipeline type Apt_Preset's own loaders produce, not a raw MODEL or a generic connection, so make sure it's sitting downstream of sum_load_adv, load_Nanchaku, or another node in this pack that outputs context. If the guidance change doesn't seem to be taking effect on your final render, double-check that nothing later in your chain (another loader, or a second pre_guide) is overwriting the value again before it reaches the sampler. And if the node's missing from your install altogether, that's most likely the documented pack-wide IMPORT FAILED issue from a missing dependency elsewhere - check your ComfyUI console log at startup and reinstall via Manager's "install missing custom nodes" rather than assuming this specific node is broken.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| context | RUN_CONTEXT | ā | |
| guidanceopt | FLOAT | 3.50ā100 | ā |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| context | RUN_CONTEXT | ā |