Contact Us
Apps Page Background Image
Learn/Course/ComfyUI Chapter2 How to Create Custom Nodes

FeaturedComfyUI Chapter2 How to Create Custom Nodes

0
0
0
mimicpc
08/20/2024
ComfyUI
Custom nodes
Maximize your AI art workflow with ComfyUI's custom nodes. Learn how to create, install, and manage custom nodes to access advanced features and streamline your creative process.


Custom nodes in ComfyUI are similar to extensions in WebUI, allowing users to access advanced features beyond basic functionality. Additionally, custom nodes can enhance your experience. For example, using the original ComfyUI, you might need to create and connect loader nodes individually. However, some custom nodes offer a "bulk loading" function, streamlining the workflow and keeping it organized.

Custom Nodes Installation

First, download Git from https://git-scm.com/. Then, navigate to the folder where you want to install the custom nodes. Type "cmd" in the folder's URL bar and press Enter to open the command prompt in that location. Next, type git clone followed by the URL of the custom nodes repository. Press Enter again to start the download.


ComfyUI Manager Installation and Tutorial

ComfyUI Manager is a tool specifically designed for managing nodes in ComfyUI.

1.Install Git:

2.Open Command Prompt or Terminal:

  • Open the Command Prompt (Windows) or Terminal (Mac/Linux).

3.Navigate to Installation Directory:

  • Navigate to the directory where you want to install ComfyUI Manager. You can do this using the cd command. For example:

cd path/to/your/directory

4.Clone the Repository:

  • Use Git to clone the ComfyUI Manager repository. Replace repository-url with the actual URL of the ComfyUI Manager repository:

git clone repository-url

5.Navigate to the Cloned Directory:

  • Change into the newly cloned directory:

cd comfyui-manager

6.Install Dependencies:

  • Install any necessary dependencies. This step may vary depending on the specific setup of ComfyUI Manager. Commonly, this is done using a package manager like pip for Python. For example:

pip install -r requirements.txt

7.Run ComfyUI Manager:

  • Finally, start ComfyUI Manager. The command to run it will depend on the specific instructions provided by the repository. For instance:

python comfyui_manager.py

If you are using Mimicpc, you only need to follow step 7.


If the installation is successful, you will see a Manager section under Share. Click on it to open the ComfyUI Manager menu.

ComfyUI Manager has two main functions. The first is to install custom nodes. By clicking on "Install Custom Nodes" in the menu, you can access a comprehensive list of custom nodes developed by the community, similar to the extensions list in WebUI. You can search and install any nodes you want. Simply type the name of the node in the top right corner, click search, and a short description and install button will appear next to it. Click "Install," and once the installation is successful, an uninstall option will be available. Remember to restart ComfyUI after installing new nodes. You will also find the installed custom nodes by right click.


The other function is to automatically install missing custom nodes. When you import a workflow with many complex custom nodes, you might see lots of red areas indicating missing nodes. To resolve this, click on "Manager" and then "Install Missing Custom Nodes." The manager will automatically identify the names of the missing custom nodes in the workflow. You can then install the missing nodes one by one and restart ComfyUI.

Recommandation of Custom Node

The first one is ComfyUI-Custom-Scripts, which automatically fills in the prompt. To download this custom node, click on Manager, then Install Custom Nodes, and search for "ComfyUI-custom-scripts."

After that, you will find Text Autocomplete in settings, click enabled and manage custom words. Then click load to load custom list and click save.

After that, the custom node is ready to use. You can also use this custom node to automatically fill in embeddings. However, Lora is not supported for automatic filling with this method.

The second one is Tagger, which used to identify prompt from uploaded image. Type tagger in manager and click search, and then install.

Double left-click in the empty space to open the search tool, which helps you quickly find custom nodes. Next, create a node to upload the image. After that, right-click on the prompt node and choose "Convert Text to Input." This allows it to connect with the tagger.



Recommandation of Node Pack

Developers might intergreate a series of useful nodes into one pack, which be named as "Node Pack."

The first one is Impact Pack, including over 130 nodes with different function. For how to use, let's leave to the next session.

The second one is Efficiency Nodes, designed to offer a more effective workflow for users. For instance, the Efficient Loader combines checkpoint, VAE, and Lora into a single node, reducing the need for at least three separate nodes.


Now that you have learned how to install and use custom nodes, follow us to explore more features of ComfyUI together.



Catalogue