Nodes/ComfyUI_agilly1989_motorway/CheckpointLoaderSimple_motorway_edition
ComfyUI Node

CheckpointLoaderSimple_motorway_edition

The everyday loader, now keyed instead of wired

By agilly1989·Created 2 years ago·Updated about a year ago· 7
CheckpointLoaderSimple_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
ckpt_name
OUTPUT_MODEL_keyMODEL
OUTPUT_CLIP_keyCLIP
OUTPUT_VAE_keyVAE

This is the node that starts your workflow. CheckpointLoaderSimple is the everyday checkpoint loader - pick a .safetensors from the dropdown, and out come the MODEL, CLIP and VAE that everything else consumes. The _motorway_edition is the version built for agilly1989's Motorway pipe, which flips the flow: instead of dragging three wires off the loader to three separate nodes, you load the checkpoint into the Motorway under key names, and every downstream node pulls from there. One MOTORWAY 🚌💨 wire does all the work three used to.

How it works

The wrapper runs the real core CheckpointLoaderSimple and stores each of its three outputs in the Motorway under keys you name:

  • ckpt_name - the dropdown of your installed checkpoints (populated from models/checkpoints). The tooltip from the original node says it plainly: "The name of the checkpoint (model) to load." Your entire pick lives here.
  • OUTPUT_MODEL_key - key for the denoising model, default MODEL.
  • OUTPUT_CLIP_key - key for the text encoder, default CLIP.
  • OUTPUT_VAE_key - key for the VAE, default VAE.

The defaults are the pack's convention, and if you follow them the rest of your Motorway falls into place: CLIPTextEncode_motorway_edition reads the CLIP key, the sampler's INPUT_model_key reads MODEL, and a VAE decode pulls VAE. Change an output key here and you must change the matching input key downstream, or you'll get the pack's signature error, 'MotorwayClass' object has no attribute 'hash_' - that just means you asked for a key nobody has written yet.

The "optional" Motorway trap

The schema marks MOTORWAY 🚌💨 as optional, because the original node has no connection inputs, so the generator had nothing to convert into key fields. Don't trust the tag. Look at the wrapper code and it still calls MOTORWAY.update() and MOTORWAY.clone() - feed it nothing and it dies with AttributeError: 'NoneType' object has no attribute 'update'. Always wire it into a live Motorway (from a MotorwayStart or a primitive starter), even though the UI lets you leave it unplugged.

When you'd use it

Any Motorway workflow that starts from a checkpoint - which is most of them. It's the clone you'll reach for out of the twenty, honestly: it's the standard loader, just with the three fat wires replaced by three short text fields. The old config-based CheckpointLoader_motorway_edition exists if your checkpoint genuinely needs a YAML config; you probably don't.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway

Restart, or search "ComfyUI_agilly1989_motorway" in ComfyUI Manager. No pip dependencies, no model files to download - the pack is just the Motorway class and its generated wrappers.

Fine print

The pack is an explicitly-unfinished beta; the README opens with "BIG BROKEN WITH ASYNC WILL FIX WHEN I GET THE TIME/MOTIVATION." The bigger practical gotcha: the current hotfix release has the _motorway_edition clone generation commented out of __init__.py, so on the newest main these nodes may not register at all. If you loaded a workflow that uses them and they're missing, that's the reason, and it's the author's own flag - open a GitHub issue rather than trying to DM him.

Categoryagilly1989 Nodes/Motorway-ed/loaders

Inputs (5)

NameTypeDefaultDescription
ckpt_nameCOMBOThe name of the checkpoint (model) to load.
OUTPUT_MODEL_keySTRINGMODEL
OUTPUT_CLIP_keySTRINGCLIP
OUTPUT_VAE_keySTRINGVAE
MOTORWAY 🚌💨optMOTORWAY 🚌💨

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨