ComfyUI > Nodes > ComfyUI Nodes for External Tooling

ComfyUI Extension: ComfyUI Nodes for External Tooling

Repo Name

comfyui-tooling-nodes

Author
Acly (Account age: 3813 days)
Nodes
View all nodes(14)
Latest Updated
2024-08-09
Github Stars
0.24K

How to Install ComfyUI Nodes for External Tooling

Install this extension via the ComfyUI Manager by searching for ComfyUI Nodes for External Tooling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Nodes for External Tooling 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

ComfyUI Nodes for External Tooling Description

ComfyUI Nodes for External Tooling offers nodes like Load Image (Base64), Load Mask (Base64), Send Image (WebSocket), Crop Image, and Apply Mask to Image, enabling ComfyUI to function as a backend for external tools.

ComfyUI Nodes for External Tooling Introduction

The comfyui-tooling-nodes extension is designed to enhance the functionality of ComfyUI by providing specialized nodes and an API that facilitate the integration of ComfyUI as a backend for external tools. This extension is particularly useful for AI artists who work with image generation and manipulation, as it simplifies the process of sending and receiving images, applying masks, and inspecting models. By using this extension, you can streamline your workflow, reduce inefficiencies, and avoid potential issues related to image handling and model compatibility.

How ComfyUI Nodes for External Tooling Works

The comfyui-tooling-nodes extension operates by adding new nodes to ComfyUI that handle specific tasks related to image processing and model inspection. These nodes allow you to load images and masks, send images over WebSocket connections, and apply masks to images. Additionally, the extension provides an API endpoint for inspecting and categorizing different types of models, ensuring that you can easily identify and use the appropriate models for your projects.

To put it simply, think of these nodes as specialized tools in a toolbox, each designed to perform a specific function. For example, one tool might be used to load an image, another to apply a mask, and yet another to send the image to an external tool. By using these tools, you can efficiently manage your image processing tasks without having to worry about the underlying technical details.

ComfyUI Nodes for External Tooling Features

Load Image (Base64)

This node allows you to load an image from a PNG file that is embedded into the prompt as a base64 string.

  • Inputs: Base64 encoded binary data of a PNG image.
  • Outputs: The image in RGB format and a mask (alpha channel) if present.

Load Mask (Base64)

This node is used to load a mask from a PNG file that is embedded into the prompt as a base64 string.

  • Inputs: Base64 encoded binary data of a PNG image.
  • Outputs: The first channel of the image as a mask.

Send Image (WebSocket)

This node sends an output image over a client WebSocket connection as PNG binary data.

  • Inputs: The image in RGB or RGBA format. The process involves sending a binary message for each image in the batch via WebSocket, followed by a JSON message that contains metadata about the image and the prompt.

Apply Mask to Image

This node copies a mask into the alpha channel of an image, effectively applying the mask to the image.

  • Inputs: The image and the mask.
  • Outputs: An RGBA image with the mask used as transparency.

ComfyUI Nodes for External Tooling Models

The extension provides an API endpoint for inspecting and categorizing different types of models. This is particularly useful for AI artists who need to work with various models such as checkpoints, LoRA, and ControlNet.

/api/etn/model_info

This API endpoint lists available models along with additional classification information.

  • Parameters: None.
  • Output: A list of model files with details such as base model type, whether the model is for inpainting, and whether it is a refiner. Example output:
{
  "checkpoint_file.safetensors": {
    "base_model": "sd15"|"sd20"|"sd21"|"sd3"|"sdxl"|"ssd1b"|"svd"|"cascade-b"|"cascade-c",
    "is_inpaint": true|false,
    "is_refiner": true|false
  },
  ...
}

Models that are not in safetensors format or do not match any known base models will be listed with {"base_model": "unknown"}.

Troubleshooting ComfyUI Nodes for External Tooling

Here are some common issues you might encounter while using the comfyui-tooling-nodes extension, along with their solutions:

Issue: Images are not loading correctly

  • Solution: Ensure that the base64 string is correctly formatted and that the PNG file is valid. Double-check the input data for any errors.

Issue: WebSocket connection fails

  • Solution: Verify that the WebSocket server is running and that the connection details are correct. Check for any network issues that might be affecting the connection.

Issue: Masks are not applied correctly

  • Solution: Make sure that the mask image is in the correct format and that it is properly aligned with the image to which it is being applied.

Frequently Asked Questions

  • Q: Can I use this extension with any version of ComfyUI?
  • A: The extension is designed to work with the latest version of ComfyUI. Ensure that you have updated ComfyUI to the latest version before using the extension.
  • Q: Do I need any additional software to use this extension?
  • A: No additional software is required. The extension works within the ComfyUI environment.

Learn More about ComfyUI Nodes for External Tooling

To learn more about the comfyui-tooling-nodes extension and how to use it effectively, you can explore the following resources:

  • ComfyUI Documentation
  • Community Forums
  • Tutorials and Guides
    These resources provide valuable information, tutorials, and community support to help you get the most out of the comfyui-tooling-nodes extension.

ComfyUI Nodes for External Tooling 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.