ComfyUI - Getting Started : Episode 2 - Custom Nodes Everyone Should Have

Scott Detweiler
15 Jul 202309:28

TLDRThe video script discusses advanced setup techniques for Comfortable UI (Comfy UI) to efficiently manage and grow complex graphs. It emphasizes the importance of organizing models through a YAML file to avoid duplication and minimize storage footprint. The script introduces the Comfy UI Manager, a tool for installing extensions and custom nodes, and demonstrates its installation. It also covers the use of efficiency nodes to streamline graph creation, the nested node builder for combining multiple nodes, and the 'Dirty' undo-redo feature. The video provides practical advice on troubleshooting missing nodes and encourages the use of the manager for future custom node installations.


  • 📁 Efficiently manage models by using a YAML file to point to local installations, reducing drive space usage.
  • 🔄 Utilize the 'git pull' command to update and manage repositories, keeping your files organized and up-to-date.
  • 🔧 Install the Comfy UI Manager for streamlined extension and custom node installations, as well as updates to Comfy itself.
  • 🎣 Use custom nodes like Efficiency Nodes to minimize the number of nodes in your graph by combining functionalities.
  • 🛠️ Employ the Nested Node Builder to create a single node from multiple ones, enhancing graph organization and workflow.
  • 🔄 Familiarize yourself with 'git pull' for updating individual directories with the latest changes from the repository.
  • 🔍 Access the GitHub page for a specific node by clicking on its name for more information and learning opportunities.
  • 🔗 The Dirty Undo/Redo custom node provides an effective way to manage changes in the application, overcoming limitations in the base application's undo functionality.
  • 🔑 The Manager button in Comfy UI offers several options, including fetching updates and installing additional models and custom nodes.
  • 🚀 Boost productivity by installing essential custom nodes at the outset, such as the Manager, Efficiency Nodes, Nested Node Builder, and Dirty Undo/Redo for a more streamlined workflow.

Q & A

  • What is the primary focus of the video?

    -The primary focus of the video is to provide instructions on how to set up and manage a more advanced and efficient graph interface in a UI application, specifically by using custom nodes and extensions.

  • How can one avoid having duplicate models in their project?

    -To avoid duplicate models, one can utilize a yaml file named 'extra_modelpaths.yaml' in the base directory of the UI application. This file allows users to point to their local installation of models, ensuring that the application looks in that directory and prevents unnecessary duplication.

  • What is the role of the 'Comfy UI Manager' in the application?

    -The 'Comfy UI Manager' acts as an overall manager for the UI application. It simplifies the process of installing extensions and custom nodes, as well as updating the application itself.

  • How can a user install the 'Comfy UI Manager' and other custom nodes?

    -Users can install the 'Comfy UI Manager' and other custom nodes by navigating to the 'custom nodes' folder and using a command window to execute a 'git pull' command. This method assumes that the user has 'git' installed on their system.

  • What is the benefit of using 'git pull' for managing custom nodes?

    -Using 'git pull' allows users to update custom nodes directly from their git repository. This is a convenient way to ensure that the nodes are always up-to-date and synchronized with the latest versions available.

  • What are 'Efficiency Nodes' and how do they help in organizing the graph?

    -Efficiency Nodes are pre-built nodes that help reduce the number of unnecessary nodes in a graph by combining multiple functions into one. They streamline the workflow by minimizing the need to drag extra nodes out to see previews or manage multiple processes.

  • What is a 'Nested Node Builder' and how does it function?

    -A 'Nested Node Builder' allows users to combine multiple individual nodes into a single node. This is particularly useful for nodes that are frequently used together, enabling a more organized and efficient graph layout.

  • What is the 'Dirty Undo/Redo' node and why is it useful?

    -The 'Dirty Undo/Redo' node is a tool that stores the entire graph in memory, allowing users to undo and redo actions. Despite its 'ugly' development approach, it is a valuable addition because it provides a more reliable way to reverse actions compared to the base application's undo/redo functionality.

  • How can users identify and fix missing custom nodes in their graph?

    -Users can identify missing custom nodes by the red color indication on the graph. They can then use the 'Install Missing Custom Nodes' button to bring up a search dialog, which will list the required nodes for installation to fix the graph.

  • What is the main advantage of using custom nodes like Efficiency Nodes and Nested Node Builder?

    -The main advantage of using custom nodes like Efficiency Nodes and Nested Node Builder is that they help to keep the graph organized and efficient by reducing the number of nodes and connections, making the workflow more streamlined and easier to manage.

  • How does the video script suggest using the custom nodes to improve the overall workflow?

    -The video script suggests using custom nodes to improve the overall workflow by reducing clutter in the graph, enabling more efficient management of processes, and providing shortcuts for common tasks such as undoing and redoing actions, thus enhancing productivity and ease of use.



🛠️ Setting Up and Managing Your Graph Environment

This paragraph discusses the process of setting up and managing a graph environment for more advanced use. It begins by addressing the issue of duplicate models and how to avoid them by utilizing a yaml file in the base directory. The video then introduces the concept of the Comfy UI Manager, a tool that simplifies the installation of extensions and custom nodes, as well as updating the Comfy environment. The importance of using git for pulling updates and managing the graph is emphasized, and a method for installing custom nodes is provided. The paragraph concludes with an overview of essential custom nodes that can enhance the user's workflow, such as the Efficiency nodes, Nested Node Builder, and Dirty Undo/Redo, and their respective functions in streamlining the graph creation process.


🎨 Enhancing Your Workflow with Custom Nodes

The second paragraph delves into the practical application of custom nodes to enhance the user's workflow. It starts by discussing the installation and use of the Efficiency nodes, which help reduce clutter in the graph by combining multiple functions into one. The paragraph then introduces the Nested Node Builder, which allows users to combine frequently used nodes into a single, reusable control. Lastly, the Dirty Undo/Redo node is presented as a useful tool for overcoming limitations in the base application's undo/redo functionality. The video also touches on the potential for customizing and reusing nested nodes for greater efficiency in graph management and creation.



💡Comfy UI

Comfy UI refers to a user interface designed for ease of use and efficiency, which is the central focus of the video. It is a system that allows for the management and organization of complex data or processes in a more streamlined manner. In the context of the video, Comfy UI is used to manage and grow graphs, making it easier for users to work with and expand their projects.

💡YAML file

A YAML file is a human-readable data serialization format that is often used for configuration files and data exchange between languages. In the video, the YAML file named 'extra modelpaths.yaml' is used to define the paths for model files, which helps in avoiding duplication of models and managing resources efficiently.


Git is a distributed version control system that allows developers to track changes in the code and collaborate on projects. In the context of the video, Git is used for managing and updating the custom nodes and extensions within the Comfy UI environment, enabling users to pull the latest versions of nodes and keep their setup up-to-date.

💡Custom Nodes

Custom nodes are user-defined components or building blocks within a UI system that can be created to streamline and organize specific tasks or workflows. In the video, custom nodes such as the manager, efficiency nodes, and nested node builder are discussed as tools to enhance the functionality and efficiency of the Comfy UI.

💡Efficiency Nodes

Efficiency nodes are specialized custom nodes designed to reduce complexity and clutter within a UI graph by combining multiple functions or steps into a single node. They help in minimizing the number of nodes required for a task, making the workflow more streamlined and easier to manage.

💡Nested Node Builder

Nested Node Builder is a custom node that enables users to combine multiple individual nodes into a single, more comprehensive node. This tool promotes efficiency by reducing the number of nodes used in a graph and helps in creating a cleaner, more organized workflow.

💡Dirty Undo/Redo

Dirty Undo/Redo refers to a feature or node that allows users to revert or redo changes made within a UI system, even if the traditional undo/redo functions are not reliable or efficient. Despite its 'ugly' implementation, as mentioned in the video, it is a practical tool for users to correct mistakes or experiment with different options without affecting the overall stability of the application.

💡Model Situation

The term 'model situation' refers to the management and organization of model files within a UI system. In the context of the video, it involves ensuring that there are no duplicate models and that the system is set up to efficiently locate and utilize these models, which is crucial for optimizing storage and performance.

💡Graph Expansion

Graph expansion is the process of growing or extending the complexity and capabilities of a UI graph. This involves adding more nodes, connections, and functionalities to create a more comprehensive and efficient workflow. In the video, graph expansion is a key goal, with the focus on doing so in a way that minimizes resource usage and improves organizational efficiency.

💡Housekeeping Video

A 'housekeeping video' is a tutorial or guide that focuses on the maintenance and organization aspects of a software or system. It typically covers tips and techniques for keeping the environment clean, efficient, and well-organized. In the context of the video, the housekeeping aspect involves setting up the Comfy UI system to be more efficient and easier to manage in the long run.

💡Resource Management

Resource management refers to the efficient and effective allocation and use of resources, such as storage space and processing power, within a software or system. In the video, resource management is a key theme, with an emphasis on avoiding unnecessary duplication of large model files and ensuring that the system operates with minimal overhead.


Building upon the comfy UI episode one to explore more advanced setup for graph growth and efficiency.

Managing model duplication by utilizing a yaml file to point to local installs and minimize drive footprint.

Introducing the custom nodes folder and its importance in organizing and expanding the UI functionality.

Installation of the Comfy UI Manager for easier extension and custom node installation, as well as updating Comfy.

Demonstration of installing custom nodes using Git and the command line, emphasizing the versatility of Git for node management.

Highlighting the efficiency nodes that reduce the number of nodes in graphs by combining functionalities.

Explanation of how efficiency nodes expose both inputs and outputs, allowing for seamless graph continuation.

The Nested Node Builder's introduction, which allows users to combine multiple nodes into a single node for better organization.

Discussion of the Dirty Undo/Redo node, which stores the entire graph in memory for more reliable command functionality.

Addressing the installation of missing custom nodes and the search dialog's role in identifying and fixing missing components.

Demonstration of the Efficiency Nodes in action, showcasing how they streamline the graph and preview capabilities.

Explanation of how the Nested Node Builder works and its application in combining frequently used nodes for streamlined workflows.

The ability to reuse custom nested nodes by storing them in the custom nodes directory for future projects.

Emphasis on the practical use of the manager for installing custom nodes as the series progresses, ensuring a smooth learning curve.

Encouragement for viewers to explore and utilize the discussed tools and nodes for their own projects and future episodes.