How to Install the Stable Diffusion Model in ComfyUI?

Below is a guide on installing and using the Stable Diffusion model in ComfyUI.

Step One: Download the Stable Diffusion Model

There are many channels to download the Stable Diffusion model, such as Hugging Face, Civitai, etc. Here, I recommend using the Civitai website, which is rich in content and offers many models to download.

  1. Open the Civitai model section at https://civitai.com/models (opens in a new tab)
  2. Click on the Filters option in the page menu.
  3. In the Filters pop-up window, select Checkpoint under Model types.
  4. If you need a specific model version, you can choose it under the Base model category.
  5. Browse the page; usually, the cover is a preview of the effect, and you can choose a model you need.
  6. Click on the model card to enter the details page, where you can see the blue Download button, click to download.
  7. Wait for the download to complete and proceed to the next step.

Step Two: Install the Corresponding Model in ComfyUI

πŸ“ ComfyUI_windows_portable       // Official portable version of ComfyUI
β”œβ”€β”€ πŸ“ ComfyUI                    // Main folder of Comfy UI
β”‚  β”œβ”€β”€πŸ“ models                   // Model installation folder
β”‚  |  β”œβ”€β”€ πŸ“ checkpoints          // πŸ’‘ You need to put the downloaded model files in this folder
β”‚  β”‚  └── ...                  
β”‚  └── ...                    
└── ...                         

Due to different versions of the Stable diffusion model using other models such as LoRA, CotrlNet, Embedding models, etc., their model versions need to correspond, so I highly recommend creating a new folder to distinguish between model versions when installing. For example, a structure like the following:

πŸ“ ComfyUI_windows_portable      
β”œβ”€β”€ πŸ“ ComfyUI                   
β”‚  β”œβ”€β”€πŸ“ models                     
β”‚  |  └── πŸ“ checkpoints         
β”‚  β”‚       β”œβ”€β”€ πŸ“ SD1.5                
β”‚  β”‚       β”œβ”€β”€ πŸ“ SD2.0           
β”‚  β”‚       β”œβ”€β”€ πŸ“ SDXL        
β”‚  β”‚       β”œβ”€β”€ πŸ“ FLUX   
β”‚  β”‚       └── ...      
β”‚  └── ...                  
└── ...                         

Store your model files in the corresponding folders. Rest assured, ComfyUI can recognize your file hierarchy, making it easier to distinguish in daily use.

If you are also using A1111's WebUI, you can install the model in the corresponding directory of the WebUI and set it up according to the following article:

How to link models between ComfyUI and A1111 WebUI

Step Three: Verify Successful Installation

  1. Start or refresh your ComfyUI service.
  2. Select the Load Checkpoint node and check if the options have added the corresponding model files. If not, please check your installation path and configuration.

Note: Some custom nodes like ComfyUI Manager (opens in a new tab) support download models in one click, those plugins will auto install models in the corresponding folder, so you can also use them to install models.