ComfyUI > Nodes > Floodgate

ComfyUI Extension: Floodgate

Repo Name

comfyui-floodgate

Author
Haoming02 (Account age: 1445 days)
Nodes
View all nodes(1)
Latest Updated
2024-08-02
Github Stars
0.03K

How to Install Floodgate

Install this extension via the ComfyUI Manager by searching for Floodgate
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Floodgate in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Floodgate Description

Floodgate is a ComfyUI extension node enabling dynamic switching between execution flows. It enhances workflow flexibility by allowing conditional branching, optimizing process control within the user interface.

Floodgate Introduction

Welcome to comfyui-floodgate, an extension for ComfyUI designed to simplify and enhance your workflow management. ComfyUI is a powerful and modular diffusion model GUI and backend that allows you to create complex workflows using a graph/nodes/flowchart-based interface. comfyui-floodgate extends this functionality by providing an easy way to control the logic flow within your workflows.

What Does Floodgate Do?

comfyui-floodgate allows you to toggle between different logic paths in your workflow without the need to manually connect and disconnect multiple nodes. This can be particularly useful when working with high-resolution fixes or similar workflows that require significant processing time. By using comfyui-floodgate, you can streamline your workflow, save time, and focus more on your creative process.

How Floodgate Works

Imagine you have a workflow with multiple paths, and you need to switch between them based on certain conditions. Normally, you would have to manually connect and disconnect nodes to change the path, which can be tedious and error-prone. comfyui-floodgate solves this problem by introducing a "gate" that you can open or close to control which path is taken.

Basic Principles

  1. Source Node: Connect the output of a node (e.g., LATENT) to the source of the Floodgate node.
  2. Paths: Connect each path to the desired remaining workflow.
  3. Toggle: Simply click on gate_open to toggle between the paths. The path not chosen will not be executed. Since ComfyUI caches intermediate results, opening the Floodgate will not require the preceding nodes to be processed again, making the process efficient and quick.

Floodgate Features

1. Connect Any Arbitrary Types

You can connect any types of nodes, as long as the input and output types match. This flexibility allows you to create highly customized workflows tailored to your specific needs.

2. Multiple Floodgates in One Workflow

You can use multiple Floodgates within a single workflow, each controlling different parts of the logic flow. This enables you to create complex, multi-path workflows with ease.

3. Individual Control

Each Floodgate can be controlled individually, allowing you to toggle different parts of your workflow independently. This granular control helps you manage complex workflows more effectively.

Example

Suppose you have a workflow for image processing that includes a high-resolution fix. You can use a Floodgate to toggle between the base resolution and the high-resolution path. This way, you can quickly switch to the high-resolution path once you are satisfied with the base resolution output.

Floodgate Models

Currently, comfyui-floodgate does not include different models. It is a utility extension designed to enhance the functionality of your existing ComfyUI workflows.

What's New with Floodgate

Version 1.0

  • Initial Release: Introduced the basic functionality of toggling between different logic paths in a workflow.
  • Multiple Floodgates: Added support for using multiple Floodgates in a single workflow.
  • Individual Control: Enabled individual control for each Floodgate. These updates make it easier for AI artists to manage complex workflows, saving time and reducing the potential for errors.

Troubleshooting Floodgate

Common Issues and Solutions

  1. Floodgate Not Toggling:
  • Solution: Ensure that the boolean value for gate_open is determined before you press Queue Prompt. The logic flow is parsed during the queuing stage, not the execution stage.
  1. Incorrect Path Execution:
  • Solution: Double-check the connections to ensure that the input and output types match. Also, verify that the correct path is selected by toggling the gate_open value.

Frequently Asked Questions

  • Q: Can I use Floodgate with any type of node?
  • A: Yes, as long as the input and output types match.
  • Q: Do I need to reprocess preceding nodes when I open the Floodgate?
  • A: No, ComfyUI caches intermediate results, so you do not need to reprocess preceding nodes.

Learn More about Floodgate

For more information, tutorials, and community support, you can visit the following resources:

  • ComfyUI Examples: Explore various workflow examples to see what ComfyUI can do.
  • ComfyUI Discord: Join the community to ask questions and get support.
  • ComfyUI Matrix Space: An open-source alternative to Discord for community discussions. By leveraging these resources, you can get the most out of comfyui-floodgate and enhance your AI artistry with more efficient and manageable workflows.

Floodgate Related Nodes

RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.