2024 ComfyUI Guide: Get started with Stable Diffusion NOW

Incite AI
18 Jan 202413:07

TLDRThis video guide walks you through setting up and mastering Comfy UI, a powerful tool for creating art with Stable Diffusion. It covers installation, model downloading, and launching the UI. Learn to navigate the interface, connect nodes, and customize your workflow for stunning image generation. Discover how to upscale images and combine models for unique creations, all within an intuitive and user-friendly environment.


  • 😀 Comfy UI is a powerful tool for creating art with stable diffusion, but it can be intimidating at first glance.
  • 🛠️ Installing Comfy UI requires having Python and git installed, with an optional automatic install video provided for assistance.
  • 📦 Downloading Comfy UI involves getting it from GitHub as a zip file and extracting it to a preferred location.
  • 💾 Be aware of disk space when downloading checkpoint models, as many may be needed for different functionalities.
  • 💻 The portable Windows version of Comfy UI is usable on an Nvidia GPU or CPU, but AMD users need to refer to GitHub documentation.
  • 🔧 Launching Comfy UI is done through batch files named 'run CPU' and 'run Nvidia GPU' within the extracted folder.
  • 🔄 An 'update comfy UI' batch file is included for keeping the software up to date with the latest releases.
  • 📁 The 'custom nodes' directory is where the Comfy UI manager tool is installed to simplify the workflow within the UI.
  • 🔍 Stable diffusion models are essential and can be downloaded from sources like hugging face or CivitAI, then placed in the 'checkpoint' folder.
  • 🔄 If using Automatic1111, existing models can be utilized by editing the 'extra model paths.yml' file to point to the Automatic1111 install location.
  • 🎨 The Comfy UI interface includes a control panel with options for batch count, viewing history, saving, and loading workflows, and refreshing the workflow.

Q & A

  • What is ComfyUI and why is it considered powerful?

    -ComfyUI is a user interface for creating art with stable diffusion models. It is considered powerful due to its ability to facilitate the generation of high-quality images through a customizable and user-friendly interface.

  • What are the prerequisites for installing ComfyUI?

    -To install ComfyUI, you need to have Python and git installed on your system. Additionally, it is recommended to have a good amount of disk space available for downloading checkpoint models.

  • Where can I find the ComfyUI GitHub page to download the zip file?

    -You can find the ComfyUI GitHub page by heading to 'com's GitHub page' as mentioned in the transcript. The exact URL is not provided, so you would need to search for 'ComfyUI GitHub' online.

  • Is ComfyUI compatible with all types of GPUs?

    -ComfyUI is compatible with Nvidia GPUs and CPUs for generations. For AMD GPUs, additional steps and information from the GitHub documentation are required.

  • How do you launch ComfyUI?

    -ComfyUI can be launched by running either the 'run CPU' or 'run Nvidia GPU' batch files located in the extracted ComfyUI folder, depending on the type of processor you are using.

  • What is the purpose of the 'update comfy UI' file?

    -The 'update comfy UI' file is used to update the installed version of ComfyUI to the latest release. It's good practice to check the GitHub page periodically for updates.

  • What is the ComfyUI Manager and how is it installed?

    -The ComfyUI Manager is a tool that simplifies the process of working within the UI. It is installed by opening the command prompt, typing 'git clone' followed by the GitHub link for the ComfyUI Manager, or by copying and pasting it from the video notes.

  • Where can I find stable diffusion models to use with ComfyUI?

    -Stable diffusion models can be downloaded from sources like hugging face or CivitAI, as mentioned in the transcript. There is also a link to the base stable diffusion XL model provided in the video notes.

  • How can I use my existing models from automatic 1111 with ComfyUI?

    -To use existing models from automatic 1111, you need to edit the 'extra model paths.yml' file in the ComfyUI folder to point to your automatic 1111 install location, then remove 'example' from the file name and restart ComfyUI.

  • What is the function of the 'load checkpoint' node in the ComfyUI workflow?

    -The 'load checkpoint' node allows you to select the base checkpoint model for your image generation. It is the starting point of the workflow chain and only has an output.

  • Can you explain the role of the 'CLIP text' nodes in ComfyUI?

    -The 'CLIP text' nodes, where CLIP stands for Contrastive Language-Image Pre-training, convert text prompts into a form that stable diffusion can understand and use to guide the image generation process.

  • What does the 'empty latent image' node do in ComfyUI?

    -The 'empty latent image' node is used to set the image size and batch size for the generation. It determines how many images are generated at the same time and the starting point for image dimensions.

  • How does the 'K sampler' node work in ComfyUI?

    -The 'K sampler' node is where the image generation process takes place. It uses the seed, steps, and other parameters to generate the image based on the input from the previous nodes.

  • What is the purpose of the 'vae decode' and 'save image' nodes?

    -The 'vae decode' node, where VAE stands for Variational Autoencoder, decodes the information from previous nodes into the final image. The 'save image' node is the final step where the generated image is saved.

  • How can I customize my ComfyUI workflow?

    -You can customize your ComfyUI workflow by adding new nodes, rearranging existing nodes, and connecting them in different ways to create a personalized workspace.

  • What is the benefit of the workflow being stored in the image itself in ComfyUI?

    -Storing the workflow in the image allows you to recreate the same workflow if you find an image you like, provided it was generated by stable diffusion. You can simply drag the image into ComfyUI to retrieve the workflow.

  • How can I use the ComfyUI Manager to install missing custom nodes?

    -If you encounter errors due to missing custom nodes, you can use the ComfyUI Manager by clicking the 'manager' button and selecting the missing nodes to install. After installation, restart ComfyUI to apply the changes.

  • Can I install models directly from within ComfyUI?

    -Yes, you can install models directly from within ComfyUI using the ComfyUI Manager, which also allows for one-click updates to ComfyUI.

  • What is an example of a complex workflow in ComfyUI?

    -An example of a complex workflow in ComfyUI is generating an image from three different checkpoint models, using two Lura models, and then upscaling the image all in one workflow, as demonstrated in the script.



🎨 Getting Started with Comfy UI for Art Generation

This paragraph introduces the Comfy UI, a powerful tool for creating art with stable diffusion UI. It explains that while installing Comfy UI is not difficult, having Python and git installed is a prerequisite. The video provides guidance on downloading Comfy UI from GitHub, extracting it, and preparing for the download of various checkpoint models. It also mentions the portable Windows version's compatibility with Nvidia GPUs and the availability of instructions for AMD users on GitHub. The paragraph concludes with instructions on launching Comfy UI using the provided batch files and updating it through the update file.


🔧 Setting Up and Understanding Comfy UI Nodes

The second paragraph delves into the setup process of Comfy UI, starting with the extraction of files and the installation of the Comfy UI manager via the command prompt. It explains the importance of having the right models for stable diffusion and provides a step-by-step guide on how to integrate them into the Comfy UI. The paragraph also covers the basic nodes and their functions within the UI, such as the load checkpoint node, CLIP text nodes, the empty latent image node, and the sampler node. It discusses the process of setting up prompts, image size, batch size, and generation parameters like seed, steps, and CFG scale. The paragraph concludes with an overview of additional nodes and features, such as the save image node and the ability to store the workflow within the image file itself.


🚀 Advanced Workflow Techniques in Comfy UI

The final paragraph showcases the advanced capabilities of Comfy UI by demonstrating how to create complex workflows. It guides the user through the process of adding nodes to the workflow, such as loaders for Luras, an upscaling latent node, and additional samplers. The paragraph explains how to connect these nodes to create a multi-stage generation process, including the use of different models and Luras for various effects. It also highlights the ability to modify the workflow on-the-fly and the ease of replicating workflows from existing images. The paragraph concludes with an invitation for viewers to share their tips and tricks with Comfy UI and an encouragement to subscribe for more content.



💡Comfy UI

Comfy UI refers to a user interface that is designed for ease of use and comfort, often characterized by its intuitive layout and accessibility. In the context of the video, Comfy UI is a specific interface for the Stable Diffusion AI model, which allows users to create art with AI. The video script mentions installing and using Comfy UI to generate images, indicating its importance in the video's theme of AI art creation.

💡Stable Diffusion

Stable Diffusion is a term used to describe a type of AI model capable of generating images from textual descriptions. It is a significant concept in the video as the entire tutorial is focused on using Comfy UI to work with Stable Diffusion models. The script discusses downloading models and using them within the Comfy UI to create art, showcasing the practical application of Stable Diffusion in AI-generated imagery.


Python is a high-level programming language known for its readability and versatility, often used in scripting and developing applications. The video script assumes that the viewer has Python installed, as it is a prerequisite for running the Comfy UI, indicating its fundamental role in setting up the environment for AI art generation.


Git is a version control system used for tracking changes in source code during software development. In the script, it is mentioned as another prerequisite for using Comfy UI, suggesting that it might be used for managing the source code or updates related to the Stable Diffusion models or the Comfy UI itself.

💡Checkpoint Models

In the context of AI and machine learning, checkpoint models refer to saved states of a model at certain points during training, which can be used for inference or further training. The video script instructs viewers on downloading and using checkpoint models within the Comfy UI, emphasizing their role in the Stable Diffusion process for generating images.

💡Nvidia GPU

Nvidia GPU refers to a graphics processing unit manufactured by Nvidia, which is optimized for handling complex graphical and computational tasks. The script specifies that the portable Windows version of Comfy UI works with an Nvidia GPU, highlighting the importance of having the right hardware for efficient AI image generation.

💡Batch Files

Batch files are scripts in DOS, OS/2, and Windows that perform a series of commands. In the video, batch files named 'run CPU' and 'run Nvidia GPU' are mentioned as the method to launch Comfy UI, demonstrating their utility in automating the process of starting the AI art generation interface.


CLIP stands for Contrastive Language–Image Pre-training, a neural network model that connects an image to the text that describes it. In the script, CLIP text nodes are discussed as part of the workflow for converting text prompts into a form that Stable Diffusion can understand, illustrating its role in the image generation process.


VAE stands for Variational Autoencoder, a type of generative model that learns to compress data and then reconstruct it. The script mentions the VAE decode node, which is responsible for decoding the information from previous nodes into the final image output in the Stable Diffusion process.


In the context of Stable Diffusion, a sampler is a node that determines how the AI generates the image based on the input prompts and model. The video script describes different sampler options and their effects on the final image, showing the sampler's critical role in shaping the outcome of the AI-generated art.


A workflow in this context refers to a sequence of steps or nodes in the Comfy UI that work together to generate an image. The script explains how to set up and modify workflows, including adding nodes and connecting them, to create customized image generation processes with Stable Diffusion.


Comfy UI is a powerful and complex tool for creating art with stable diffusion.

Installing Comfy UI requires Python and git, with an automatic install video provided for assistance.

Comfy UI's GitHub page is the starting point for downloading and extracting the software.

Users need to manage disk space for downloading checkpoint models.

Comfy UI is portable and can be used on an Nvidia GPU or CPU.

AMD users can find specific instructions on the GitHub documentation.

Batch files 'run CPU' and 'run Nvidia GPU' are used to launch Comfy UI.

An 'update comfy UI' file is included for keeping the software up to date.

The 'custom nodes' folder is where the Comfy UI manager is installed for ease of use.

Stable diffusion models can be downloaded from sources like hugging face or CivitAI.

Existing models from automatic 1111 can be used in Comfy UI.

The control panel in Comfy UI includes options for batch count and generation control.

The workflow in Comfy UI is visualized as interconnected nodes for image generation.

Nodes have specific inputs and outputs, and users can connect them in a workflow.

The 'load checkpoint' node selects the base model for image generation.

The 'CLIP text' nodes convert text prompts into a format understandable by stable diffusion.

Image size and batch size are set in the 'empty latent image' node.

The 'K sampler' node is where the image generation process takes place.

The 'VAE decode' and 'save image' nodes finalize and save the generated image.

Comfy UI allows users to see the stages of generation and rearrange nodes for customization.

The Comfy UI manager can install missing custom nodes and update the software.

Comfy UI stores the workflow within the image, allowing for easy replication.

The video demonstrates a complex workflow combining multiple models and upscaling.

A PNG file of the demonstrated workflow is provided for users to try themselves.