Freak-ppa's picture
Upload 56 files
6ffd0b5 verified

A newer version of the Gradio SDK is available: 5.5.0

Upgrade

Deprecated Nodes

This is the old documentation, in case you have a workflow still using the deprecated nodes.

UE nodes are "Use Everywhere". Put a UE node into your workflow, connect its input, and every node with an unconnected input of the same type will act as if connected to it.

CLIP, IMAGE, MODEL, VAE, CONDITIONING, or LATENT (want something else? Edit __init__.py line 3.)

Update: added INT, MASK, and CHECKPOIMNT - which combines MODEL, CLIP, and VAE, and a special node for SEEDs.

Model, clip, vae, latent and image are all being automagically connected. Drop this image into ComfyUI to get a working workflow.
workflow portrait

UE? Nodes

UE? nodes are like UE Nodes, but add two widgets, 'title' and 'input'. These are Regular Expressions, and the node will only send to nodes where the node Title and the unconnected input name match.

It doesn't need to be a complete match - the logic is regex.match(name) || regex.match(title), so if you want to match the exact name seed, you'll need something like ^seed$ as your regex.

Regex 101 - ^ means 'the start', $ means 'the end', '.' matches anything, '.*' matches any number of anything. For more than that, visit regex101 (the flavour you want is ECMAScript, though that probably won't matter).

So you can do things like: Drop this image into ComfyUI to get a working workflow.
this drop

Widget?

A UE or UE? node with just one output can have the output converted to a widget. But the combination ones can't. Also note that if you convert it to a widget, you can't then change the title

Why not? because the code gets the data type from the input (weirdly the prompt doesn't contain the data type on outputs), and it's not available if it's a widget, because reasons, so the hack is to get the data type from what comes after UE in the title...