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
52.46k stars 5.54k forks source link

Support swapping the I/O connection placement/direction #3855

Open rhdunn opened 3 months ago

rhdunn commented 3 months ago

Use Case

When generating an image it can be useful to show the image next to the input parameters of the workflow. This requires sending the data right-to-left (backwards).

This is currently doable but the pipeline connections are not optimally positioned.

Having nodes (specifically the Reroute node, but also and N I/O channel variants from #3851 and the various pipe extension nodes) that can swap the side the inputs and outputs are located would make these workflow graphs cleaner.

Maybe have an arrow in the middle of the inputs/outputs to show the direction, e.g.:

  | o model      model o |
  | o clip   <=   clip o |
  | o vae          vae o |
rhdunn commented 3 months ago

For example, this is a workflow of mine where it will be helpful (see the top output line):

workflow-with-reversing-nodes