Introduction to ComfyUI for Architecture | The Node Based Alternative to Automatic1111

Matt Hallett Visual
23 Oct 202316:23

TLDRIn this tutorial, Matt guides viewers through the installation and setup of Comfy UI, a node-based alternative to Stable Diffusion. He covers downloading and extracting the software, configuring paths, and using the interface to generate images with specific features like fog. Matt also demonstrates how to install the Comfy Manager add-on and work with control nets to maintain the composition of loaded images, offering a detailed walkthrough for users new to Comfy UI.


  • πŸ“ Matt presents a tutorial on installing Comfy UI, a node-based alternative to Stable Diffusion.
  • πŸ”— Visit the Comfy UI GitHub page to find the link and download the zip file for your operating system.
  • πŸ’» Extract the downloaded zip file to your desired location, such as the C drive.
  • πŸ›€οΈ Configure the paths by editing the 'extra model paths yaml' file to point to your Stable Diffusion checkpoints.
  • 🚫 Remove the 'example' extension from the file name after editing.
  • πŸ–₯️ Load Comfy UI using the GPU bat file for quick setup.
  • πŸ“‹ Check that your checkpoints are correctly loaded from the customized directory.
  • 🎨 Customize your image generation using positive and negative prompts, and color-code them for clarity.
  • 🌫️ Demonstrates the use of control net by adding fog to an image, showcasing its impact on the final render.
  • πŸ”„ Explains how to install additional features like the Comfy Manager using get clone.
  • πŸ”„ Discusses the process of connecting nodes for image processing, including the use of control net, pre-processors, and denoising.
  • ⏱️ Notes that the first image generation may take longer but subsequent ones should be faster.
  • πŸ”„ Emphasizes the importance of control nets in maintaining the composition of the image and the ability to stack them for complex tasks.

Q & A

  • What is the topic of the tutorial?

    -The tutorial covers the installation and use of Comfy UI, a node-based alternative to Stable Diffusion.

  • Where can the Comfy UI page on GitHub be found?

    -The Comfy UI page on GitHub is linked in the video description on YouTube.

  • What is the first step in configuring Comfy UI after installation?

    -The first step is to configure the paths, especially if you are transitioning from Automatic, to ensure your checkpoints are correctly set up.

  • What does the 'extra model paths yaml' file do in Comfy UI?

    -The 'extra model paths yaml' file is used to specify the base path to the drive where your other Stable Diffusion models are stored.

  • Why is the 'example' extension in the file name important?

    -The 'example' extension indicates that the file is a sample configuration file, which should be renamed or modified according to the user's needs.

  • What are the positive and negative prompts in Comfy UI?

    -Positive prompts are terms that you want the generated image to include, while negative prompts are terms you want to exclude from the image.

  • How does the denoising setting affect the image generation in Comfy UI?

    -The denoising setting determines how much the generated image will rely on the prompts and the base image. Higher values result in images more heavily influenced by the prompts, while lower values allow more of the base image to show through.

  • What is the purpose of the control net in image generation?

    -The control net helps maintain the composition and structure of the base image while incorporating the desired features from the prompts.

  • How can additional control nets be installed in Comfy UI?

    -Additional control nets can be installed through the 'Comfy Manager' add-on, which allows users to download and manage custom nodes and models.

  • What is the recommended method for installing Comfy Manager?

    -The recommended method is to use 'get clone', a command-line tool for downloading and installing software, which can be easily accessed by typing 'CMD' in the file path dialog.

  • How does the Comfy UI handle saving and loading of projects?

    -Comfy UI automatically saves every step, allowing users to close and reopen the program without losing progress. It also retains the setup for future use.



πŸ“¦ Installation and Configuration of Comfy UI

This paragraph introduces the tutorial on installing Comfy UI, a node-based alternative to Stable Diffusion. The process begins by navigating to the GitHub page to download the software. It emphasizes the need to configure paths, especially for users transitioning from Automatic, and details the extraction of the zip file to the desired drive. The tutorial then explains how to set up the extra model paths YAML file, including the removal of the 'example' extension. The importance of correctly loading checkpoints and the initial appearance of Comfy UI upon loading are also discussed, along with the default layout and the significance of the 'Epic photog gasm' and 'natural sin' checkpoints for Stable Diffusion 1.5.


πŸ–ΌοΈ Generating Images with Comfy UI and Control Net Installation

The second paragraph delves into the image generation process within Comfy UI. It highlights the use of positive and negative prompts to guide the image generation, with an example of creating a foggy modern house. The paragraph explains how to adjust denoising levels to combine prompts and base images, resulting in a customized output. It also covers the installation of the Comfy Manager add-on using 'get clone' and the integration of control net features to enhance the image generation process. The importance of pre-processors and the ability to stack multiple control nets for refined image generation is emphasized.


πŸ”„ Connecting and Utilizing Control Nets in Comfy UI

This paragraph focuses on the technical aspects of connecting and using control nets within Comfy UI. It explains the process of connecting the control net loader, applying advanced settings, and using pre-processors like the Lis pre-processor. The paragraph details the color-coordinated connections for prompts and the loading of a depth model through the 'install models' feature. It also discusses the automatic download and placement of models in the correct directory, as well as the generation of images with varying denoising levels to illustrate the impact of control nets on the final output.


🎨 Advanced Control Net Usage and Future Tutorial Plans

The final paragraph discusses the advanced usage of control nets, including the stacking of multiple control nets and the selection of pre-processors for each model. It explains how processed images can be loaded and how the system utilizes the control nets and pre-processors to generate images. The paragraph concludes with a brief mention of upcoming tutorials that will focus on 'fucus', a new tool being explored by the presenter, and encourages viewers to like, subscribe, and visit the website for more in-depth tutorials on incorporating AI into architectural workflows.



πŸ’‘Comfy UI

Comfy UI is a node-based alternative to Stable Diffusion, which is a tool used for image generation and manipulation. In the video, Matt guides viewers through the installation process of Comfy UI on Windows, highlighting its features and how it differs from other similar software.

πŸ’‘Stable Diffusion

Stable Diffusion is an AI model used for generating high-quality images from textual descriptions. It is mentioned as the basis for Comfy UI, indicating that Comfy UI is designed to work with similar AI models and provide an alternative interface for users.


Checkpoints in the context of AI models like Stable Diffusion refer to saved states of the model's training process. These are used to resume training or to use the model for inference. In the video, Matt talks about not copying over checkpoints from Automatic to Comfy UI, indicating that they are specific to the software they were created in.

πŸ’‘Control Net

Control Net is an add-on feature for Comfy UI that allows users to have more control over the generation process by using pre-trained models to influence specific aspects of the generated images. It is an important concept in the video as Matt demonstrates how to install and use it to achieve desired image outcomes.

πŸ’‘Custom Nodes

Custom nodes refer to additional features or functionalities that can be added to Comfy UI to extend its capabilities. In the video, Matt discusses installing custom nodes like the Comfy Manager to manage models and nodes more efficiently.


Denoising is a process in AI image generation that reduces noise or artifacts in the generated images to produce clearer, more realistic outputs. In the video, Matt talks about adjusting the denoising level to balance between the influence of prompts and the base image.

πŸ’‘YAML File

A YAML (YAML Ain't Markup Language) file is a human-readable data serialization format often used for configuration files. In the context of the video, Matt mentions a YAML file for configuring model paths in Comfy UI, which is essential for setting up the software correctly.

πŸ’‘Positive and Negative Prompts

Positive and negative prompts are terms used in AI image generation to describe the desired features (positive) and undesired features (negative) that the user wants the AI to include or exclude in the generated images. In the video, Matt uses these prompts to guide the AI in creating images with specific characteristics.

πŸ’‘Latent Image

A latent image in the context of AI image generation refers to an encoded representation of an image that is used as input for the AI model. It is the result of encoding a pixel bitmap image into a format that the AI can process. In the video, Matt discusses the process of converting images into latent images for use in Comfy UI.

πŸ’‘Sampling Settings

Sampling settings in AI image generation are parameters that control the process of generating images from the AI model. These settings can include the number of iterations, the type of sampler used, and other variables that affect the quality and characteristics of the generated images. In the video, Matt discusses adjusting sampling settings for photorealistic outputs.

πŸ’‘Architecture Channel

The term 'Architecture Channel' likely refers to a platform or community focused on architectural design and related topics. In the video, Matt mentions that as an architecture channel, they will demonstrate the creation of a modern house with fog using Comfy UI, indicating the application of the software in architectural visualization.


Introduction to Comfy UI, a node-based alternative to Stable Diffusion and Automatic 1111.

Instructions on navigating to the Comfy UI GitHub page for installation.

Downloading and extracting the Comfy UI zip file on the C drive.

Configuring paths and editing the extra model paths yaml file.

Details on the importance of not copying over checkpoints from Automatic.

Explanation of the default layout and checking the checkpoints are loaded correctly.

Demonstration of using positive and negative prompts in Comfy UI.

Setting up the image size and sampling settings for image generation.

Loading the Comfy UI using the GPU bat file for the first time.

Installing the Comfy Manager add-on for additional features.

Using the Comfy Manager to install custom nodes and check for updates.

Demonstrating the process of loading and encoding images for further processing.

Adjusting the denoising level to combine prompts and base images effectively.

Explanation of the control net's role in maintaining the composition of the image.

Guidance on how to stack multiple control nets and use pre-processors.

The impact of denoise levels on the final image generation.

Matt's recommendation for further tutorials on incorporating AI into architecture workflow.