ComfyUI  >  Nodes  >  KJNodes for ComfyUI

ComfyUI Extension: KJNodes for ComfyUI

Repo Name

ComfyUI-KJNodes

Author
kijai (Account age: 2192 days)
Nodes
View all nodes (114)
Latest Updated
8/15/2024
Github Stars
0.5K

How to Install KJNodes for ComfyUI

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

KJNodes for ComfyUI Description

KJNodes for ComfyUI enhances usability with various quality-of-life nodes, primarily focusing on visual improvements.

KJNodes for ComfyUI Introduction

ComfyUI-KJNodes is an extension designed to enhance the functionality and usability of ComfyUI, a user interface for AI-based applications. This extension provides a variety of nodes and scripts that improve the quality of life for users, particularly in the areas of masking and combining functionalities of existing nodes. By integrating these nodes, AI artists can streamline their workflows, reduce repetitive tasks, and achieve more complex operations with ease.

How KJNodes for ComfyUI Works

ComfyUI-KJNodes works by adding new nodes and scripts to the ComfyUI environment. These nodes are designed to perform specific tasks, such as setting and getting constants, converting colors to masks, and combining conditions. Each node has a specific function and can be connected to other nodes to create a workflow that suits your needs. The extension simplifies complex operations by breaking them down into smaller, manageable tasks that can be easily configured and combined.

For example, if you need to create a mask from an RGB color value, you can use the ColorToMask node. This node takes an RGB value as input and outputs a mask that can be used in further processing. Similarly, the ConditioningMultiCombine node allows you to combine multiple conditions into a single node, saving space and reducing the complexity of your workflow.

KJNodes for ComfyUI Features

Set/Get Nodes

These nodes allow you to set and get constants, reducing unnecessary lines in your workflow. They are purely visual and can take in and return any type of data. You can visualize the paths and jump to the corresponding node on the other end through the right-click menu.

Known limitations:

  • Will not work with nodes that dynamically set their output, such as reroute or other Set/Get nodes.
  • Will not work when directly connected to a bypassed node.
  • Possible conflicts with other JavaScript-based nodes.

ColorToMask

This node converts an RGB color value to a mask. It works with batches and AnimateDiff, making it versatile for various applications.

ConditioningMultiCombine

This node allows you to combine any number of conditions into a single node, saving space and simplifying your workflow.

ConditioningSetMaskAndCombine

This node lets you mask and combine two sets of conditions, further reducing the complexity of your workflow.

GrowMaskWithBlur

This node grows or shrinks a mask (with negative values) and has an option to invert the input. It returns both the mask and the inverted mask. Additionally, it can blur the mask, although this operation can be slow, especially with large batches.

RoundMask

This node creates a round mask. Here is an example image:

WidgetToString

This node outputs the value of a widget on any node as a string. To use it, you need to enable node ID display from the Manager menu to get the ID of the node you want to read a widget from. Here are some example images to guide you:

Recreating or reloading the target node will change its ID, and the WidgetToString node will no longer be able to find it until you update the node ID value with the new ID.

Troubleshooting KJNodes for ComfyUI

Common Issues and Solutions

  1. Node Not Working as Expected:
  • Ensure that the node is not connected to a bypassed node.
  • Check if the node is dynamically setting its output, which may cause conflicts.
  1. WidgetToString Node Not Finding Target Node:
  • Verify that the node ID is correct.
  • If the target node has been recreated or reloaded, update the node ID in the WidgetToString node.
  1. Slow Performance with GrowMaskWithBlur:
  • This is expected behavior, especially with large batches. Consider reducing the batch size or simplifying the mask.

Frequently Asked Questions

Q: How do I enable the node ID display? A: Go to the Manager menu and enable the node ID display option.

Q: Why is my Set/Get node not working? A: Ensure it is not connected to a dynamically setting output node or a bypassed node.

Learn More about KJNodes for ComfyUI

For additional resources, tutorials, and community support, you can visit the following links:

  • ComfyUI Community Forum
  • These resources will help you get the most out of ComfyUI-KJNodes and connect with other AI artists who are using the extension.

KJNodes for ComfyUI 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.