Nodes/ComfyUI_agilly1989_motorway/GLIGENLoader_motorway_edition
ComfyUI Node

GLIGENLoader_motorway_edition

GLIGEN on the Motorway

By agilly1989·Created 2 years ago·Updated about a year ago· 7
GLIGENLoader_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
gligen_name
OUTPUT_GLIGEN_keyGLIGEN

GLIGEN (Grounded Language-Image Generation) is the old trick for telling a model where to put something: you give it a text prompt plus a bounding box, and it draws that thing inside that box. It was the closest thing to regional prompting before the current wave of layout-aware models, and it's still around in ComfyUI because the workflow ecosystem never fully let it go. This node is the first half of that pipeline - it loads a GLIGEN model file so a later node can actually apply your boxes. The _motorway_edition version from agilly1989/ComfyUI_agilly1989_motorway parks the loaded model on the Motorway pipe under a key.

The inputs

  • gligen_name - a dropdown of GLIGEN model files in models/gligen. That's the whole input set on the "payload" side. You need the actual model file there or the dropdown is empty and the node is unusable.
  • OUTPUT_GLIGEN_key (default GLIGEN) - the key the loaded model is written to on the Motorway.
  • MOTORWAY 🚌💨 (optional) - the pipe it joins.

Output is the MOTORWAY pipe. The node reads nothing from the bus - like any loader, it's a pure writer.

How it fits

GLIGEN in ComfyUI is a two-node dance: this loader, then GLIGENTextBoxApply, which takes your text, your box, and the loaded GLIGEN model, and produces grounded conditioning. On the Motorway the choreography is: load GLIGEN under GLIGEN, encode your clip under some key, and let the motorway-ed GLIGENTextBoxApply read both via its key inputs.

Two honest notes on era. First, GLIGEN's boxes are approximate - the community called it a usable interface but the adherence is "good enough for composition, not for pixel-precise layout." Second, on 2025+ LLM-encoded models, box-grounded conditioning has largely been superseded by models trained to respect layout directly, so GLIGEN now lives mostly in SD 1.5/SDXL workflows and historical ones. Fine if that's your territory; don't retrofit it onto modern checkpoints and expect miracles.

Install and the real dependency

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

Restart ComfyUI, or install via ComfyUI Manager under "ComfyUI_agilly1989_motorway." No extra Python deps. The actual dependency is the GLIGEN model itself: download it into ComfyUI/models/gligen (the standard one is the ~1.5GB "gligen_sd14_textbox_pruned" file), and it'll appear in the gligen_name dropdown.

Standing pack caveat: v1.1.7's pyproject.toml reads "HOTFIX - REMOVED MONKEYPATCH AND GENERATED NODES," and the generated clones are commented out of __init__.py. Core Motorway nodes work; the _motorway_edition clones may not be in your menu until the author re-enables them. Missing? Core GLIGENLoader does the identical load, and a ramp can park its output on the bus by hand.

Categoryagilly1989 Nodes/Motorway-ed/loaders

Inputs (3)

NameTypeDefaultDescription
gligen_nameCOMBO0 options:
OUTPUT_GLIGEN_keySTRINGGLIGEN
MOTORWAY 🚌💨optMOTORWAY 🚌💨

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨