Nodes/ComfyUI_agilly1989_motorway/LoadImageOutput_motorway_edition
ComfyUI Node

LoadImageOutput_motorway_edition

Pull an image out of the pipe and stash it as IMAGE + MASK

By agilly1989Β·Created 2 years agoΒ·Updated about a year agoΒ· 7
LoadImageOutput_motorway_edition
  • MOTORWAY πŸšŒπŸ’¨
  • MOTORWAY πŸšŒπŸ’¨
β—„INPUT_image_keyimageβ–Ί
β—„OUTPUT_IMAGE_keyIMAGEβ–Ί
β—„OUTPUT_MASK_keyMASKβ–Ί

Every once in a while a node shows up that's basically a remap: take an image that's already in the Motorway pipe, and write it back under fresh keys - IMAGE and MASK. That's LoadImageOutput_motorway_edition in a sentence.

It reads one key (image, by default) out of the pipe and stores it under both IMAGE and MASK keys. Why would you want that? Because a lot of nodes, including most of the Motorway-ed clones, expect their inputs at conventional key names. If some upstream node wrote your pixels under an offbeat key, this node is the bridge that re-labels them to the names the rest of your graph assumes - the IMAGE/MASK pairing in particular, since plenty of nodes take an image and a mask together. It's the pipe-world equivalent of a reroute node: nothing clever happens, but the plumbing suddenly lines up.

It's a genuinely thin utility. That's fine - a thin utility that saves you from renaming keys across a dozen nodes is still worth having in the toolbox.

The wrapper

  • MOTORWAY πŸšŒπŸ’¨ - the pipe. Required.
  • INPUT_image_key (default image) - which key holds the image you want remapped.
  • OUTPUT_IMAGE_key (default IMAGE) - where the image gets re-stored.
  • OUTPUT_MASK_key (default MASK) - where the mask gets re-stored.

Both outputs land in the same pipe you fed in, and the only output port is the pipe itself. If you want to hand the result to a normal (non-pipe) node, pull either key back out with a Motorway AxB ramp.

Installing

Part of the Motorway pack:

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

Or ComfyUI Manager β†’ search ComfyUI_agilly1989_motorway β†’ Install. No model downloads, no extra pip dependencies.

Gotchas

  • You need a MotorwayStart upstream to create the pipe, and something upstream that wrote the image key.
  • Keys are exact strings - Key: 'image' doesn't exist in motorway means nothing upstream stored that key.
  • Don't expect this node to do anything to the pixels. It's a re-label, not a transform. If you came here looking for a resize or a color op, this isn't it.
  • Beta pack, as always: author's README says "IF THINGS BREAK ITS BECAUSE I BROKE IT," and generated clones have been toggled off in some releases. Missing from the menu after install is a version thing.

A node whose whole job is "put this here and also here" sounds silly until you're ten nodes deep and every key name is load-bearing. That's this node's moment.

Categoryagilly1989 Nodes/Motorway-ed/image

Inputs (4)

NameTypeDefaultDescription
MOTORWAY πŸšŒπŸ’¨MOTORWAY πŸšŒπŸ’¨β€”
INPUT_image_keySTRINGimageβ€”
OUTPUT_IMAGE_keySTRINGIMAGEβ€”
OUTPUT_MASK_keySTRINGMASKβ€”

Outputs (1)

NameTypeDescription
MOTORWAY πŸšŒπŸ’¨MOTORWAY πŸšŒπŸ’¨β€”