2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00
2023-08-15 00:44:23 -04:00

rgthree's ComfyUi Nodes

These are a bunch of comfort and power nodes I created when messing around with Stable Diffusion. I made them for myself to make my workflow easier and cleaner. You're welcome to try them out, but do so at your own risk. Since I made them for myself, I didn't battle test them much outside of my specific use cases.

Install

  1. Install ComfyUi.
  2. Clone this repo into custom_modules:
    cd ComfyUI/custom_nodes
    git clone https://github.com/rgthree/rgthree-comfy.git
    
  3. Start up ComfyUI.

Comfort Nodes

Seed

Finally, an intuitive seed control node for ComfyUI that works very much like Automatic1111's seed control.

  • Set the seed value to "-1" to use a random seed every time
  • Set any other number in there to use as a static/fixed seed
  • Quick actions to randomize, or (re-)use the last queued seed.
  • Images metadata will store the seed value (so dragging an image in, will have the seed field already fixed to its seed).
  • Note, since we can randomize each time, and quickly grab previous ones

Router Node

Reroute (but, like, for real)

I wasn't a fan of how the original re-route wouldn't let me route in different directions (like, upwards, or to the left), so I made my own that can with each direction covered and pre-fixed small sizes.

Router Node

Context

Allows you to keep a current context of general flow properties, merging in new data. Similar to some other node suites "pipes" but easier merging, is more easily interoperable with standard nodes by both combining and exploding all in a single node.

Context Node

Display Int

Shows an int after execution.

Lora Loader Stack

A simplified Lora Loader stack. Much like other suites, but more interoperable with standard inputs/outputs.

Power Nodes

With the following nodes, you can make your ComfyUI experience more streamlined using the Context Switch to choose the first non-null Context input powered by the Fast Muter as a one-press dashboard of toggles to enable and disabled your workflows.

Context Node

Context Switch

(In aqua blue above) Chooses the first non-null context.

Fast Muter

(In purple above) A collection of all connected nodes allowing a single-spot "dashbaord" to quickly enable and disable nodes.

Also, you can use the Node Combiner as UI-only virtual node that allows you to connect any number of nodes as an input, into a single output. As of right now, this is only useful for cleaning up noodles to the Muter node and any other use will likely not work at all.

Putting it together

  1. Using the Context Switch feed context inputs in order of preference. In the workflow above, the Upscale Out context is first so, if that one is enabled, it will be chosen for the output. If not, the second input slot which comes from the context rerouted from above (before the Upscaler booth) will be chosen.

    • Notice the Upscale Preview is after the Upscale Out context node, using the image from it instead of the image from the upscale VAE Decoder. This is on purpose so, when we disable the Upscale Out context, none of the Upscaler nodes will run, saving precious GPU cycles. If we had the preview hooked up directly to the VAE Decoder the upscaler would always run to generate the preview, even if we had the Upscale Out context node disabled.
  2. We can now disable the Upscale Out context node by muting it. Highlighting it and pressing ctrl + m will work. By doing so, it's output will be None, and it will not pass anthing onto the further nodes. In the diagram you can see the Upscale Preview is red, but that's OK; there are no actual errors to stop execution.

  3. Now, let's hook it up to the Fast Muter node. The Fast Muter node works as dashboard by adding quick toggles for any connected node (ignoring reroutes). In the diagram, we have both the Upscaler Out context node, and the Save File context node hooked up. So, we can quickly enable and disable those.

    • The workflow seen here would be a common one where we can generate a handful of base previews cheaply with a random seed, and then choose one to upscale and save to disk.
  4. Lastly, and optionally, you can see the Node Combiner. Use it to clean up noodles if you want and connect it to the muter. You can connect anything to it, but doing so may break your workflow's execution.

S
Description
No description provided
Readme MIT
6.9 MiB
Languages
JavaScript 47.5%
TypeScript 39.8%
Python 8.3%
CSS 2.2%
SCSS 1.7%
Other 0.5%