CreateHookModelAsLora_motorway_edition
Use a whole checkpoint like a scheduled LoRA, on the Motorway
- MOTORWAY 🚌💨
- MOTORWAY 🚌💨
Here's a party trick: take an entire checkpoint - a whole different base model - and apply it as if it were a LoRA on top of whatever you're currently generating, with a strength dial and, in the hooks world, a schedule. That's CreateHookModelAsLora. The _motorway_edition is the same core node running against agilly1989's Motorway bus.
How it works
The core node (from nodes_hooks.py) loads a checkpoint's weights, computes them as a LoRA-style patch against the active model, and hands you a HOOKS object instead of applying anything directly. In practice this is how you blend the character of another model into your current one without swapping bases - and because it's a hook, you can keyframe its strength over the sample, ramping a model's influence in and out. It's genuinely different from LoraLoader: that applies a small trained delta; this derives a delta from a full model on the fly.
Inputs and outputs
- MOTORWAY 🚌💨 - the bus, required.
- INPUT_prev_hooks_key - key of an existing HOOKS group to append to, default
prev_hooks. - ckpt_name - the checkpoint dropdown (files in
ComfyUI/models/checkpoints), set directly on the node. - strength_model / strength_clip - how hard the model and its CLIP side push, -20 to 20, both default 1.
- OUTPUT_HOOKS_key - key for the HOOKS object, default
HOOKS.
Only output: the Motorway.
Installing
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
Restart, or ComfyUI Manager → "ComfyUI_agilly1989_motorway". No pip deps; you supply the checkpoint files.
Caveats
Pack-wide: active beta, "BIG BROKEN WITH ASYNC" README banner, _motorway_edition clones commented out of __init__.py in the checked version (re-enable ClonedNodeMapping if missing), keys exact and case-sensitive. Honest takes: loading a full checkpoint to use as a patch is heavier than loading a LoRA - the weights get read and processed on load - and like every hook node this depends on your sampler actually honoring HOOKS (experimental in core ComfyUI). Also, the patch is derived at load time, so if the base model changes, reload. It's a fun trick, but reach for it deliberately, not as a default way to apply checkpoints.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — | |
| INPUT_prev_hooks_key | STRING | prev_hooks | — |
| ckpt_name | COMBO | 0 options: | |
| strength_model | FLOAT | 1.00-20–20 | — |
| strength_clip | FLOAT | 1.00-20–20 | — |
| OUTPUT_HOOKS_key | STRING | HOOKS | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — |