comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
53.66k stars 5.69k forks source link

[Feature Request] "Custom Node" creation by bundling multiple nodes in its own subspace #2087

Open FaRihr opened 10 months ago

FaRihr commented 10 months ago

Heyho, I couldn't find a request like that, so I do it now: how about adding a feature similar to Matlab/Simulink graph nodes, where you can select multiple nodes and combine them into a "custom node"? If you then double click this custom node it opens up a subspace where you only see the formerly selected nodes together with their connections.

The in- and output of that custom node simply could be defined by any unconnected in- and output of the selected nodes. I think it could be quite helpful for more "static" workflows like hires-fix or upscaling. I blieve it's usually like that one sets those up and keeps those settings mostly the same for different creations afterwards. If you could merge this setup into one node and name it "HiresFix" or whatever, this really could help to clean up the workflow

ltdrdata commented 10 months ago

There are multiple implementation. And this PR will be merged soon or later.

https://github.com/comfyanonymous/ComfyUI/pull/1776

Mozoloa commented 10 months ago

came here to search/say exactly this, kinda node groups in blender, and you can choose which inputs and outputs you display in the group node by just wiring them to a group input and a group output node

Chaoses-Ib commented 9 months ago

1776 is already merged.