VideoTriangleCFGGuidance_motorway_edition
CFG that breathes — down, up, down, up over the clip
- MOTORWAY 🚌💨
- MOTORWAY 🚌💨
Linear CFG ramps up and stays up. VideoTriangleCFGGuidance does something weirder and more interesting: it ramps CFG up from a minimum to full strength, then back down to the minimum, then up again - a triangle wave across the frames of your clip. The stock node was built for the SVD family of video models, where a constant high CFG can make every frame snap to the prompt and kill the sense of motion. This _motorway_edition clone applies the same patch through the agilly1989 Motorway pipe.
Motorway, quickly: start with MotorwayStart, then each _motorway_edition node swaps data wires for key strings, reading and writing a shared dict that flows down one MOTORWAY connection. The clones are generated from ComfyUI's own registry, so the patch underneath is stock.
What it does. It clones your model and installs a custom CFG function where the scale oscillates: frame 0 at min_cfg, climbing to the sampler's full CFG at a quarter of the way through, back down to min_cfg at the halfway point, and so on across the whole clip. The practical effect is that prompt adherence breathes through the video - some frames render tightly to the text, others run looser - which is a trick some people use to get more dynamic motion and less "frozen prompt-locked frames." The single knob is min_cfg (default 1.0, range 0–100), the floor of the wave.
The inputs that matter. MOTORWAY is required. INPUT_model_key (default model) is where the base model lives in the dict - retype to MODEL if your loader stored it uppercase, the usual trap. min_cfg is the only real choice. OUTPUT_MODEL_key (default MODEL) is where the patched model is stored for the sampler. Output: the MOTORWAY port only.
Common issues. Triangle CFG is an experimental lever with no guaranteed win - on some video models it loosens motion nicely, on others it just makes frames visibly inconsistent. Start with min_cfg near 1 and judge by eye. The Motorway's key/case traps are the recurring mechanical failure ('MotorwayClass' object has no attribute 'hash_' = key not found), and the standing caveat applies: the pack's current main branch has the clone registration commented out in __init__.py, so a missing node usually means a version where the clones aren't enabled.
Install via ComfyUI Manager (search "ComfyUI_agilly1989_motorway") or clone into custom_nodes, restart, no models to download. Solo-dev beta pack - a sandbox-friendly place for experimental sampling tricks like this one.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — | |
| INPUT_model_key | STRING | model | — |
| min_cfg | FLOAT | 1.00–100 | — |
| OUTPUT_MODEL_key | STRING | MODEL | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — |