Site icon DigiAlps LTD

Stable Diffusion SDXL v1.0 and ComfyUI: How to Install and Use

Stable Diffusion SDXL v1.0 and ComfyUI Together: How to Install and Use

Stable Diffusion SDXL v1.0 and ComfyUI Together: How to Install and Use

In the world of advanced AI image generation, the convergence of technology reaches new heights with the fusion of Stable Diffusion SDXL v1.0 and the revolutionary ComfyUI interface. ComfyUI provides a user-friendly interface to use the advanced image generation capabilities of SDXL 1.0, allowing users to create more realistic and detailed images with improved ease and efficiency.

The combination of SDXL v1.0 and ComfyUI together enables users to experiment with various parameters and create custom workflows for different use cases. So, when SDXL 1.0 and ComfyUI team up, it’s like they open the door to a world of creativity where anyone can make their own awesome pictures without any hard stuff.

In this article, we will delve into how these two amazing things work together to create fantastic images and how to install and use them together. But firstly, we will have a look at their short introduction and how they are powerful together. So without any further wait, let’s get started!

Learn How to Install and Use Stable Diffusion SDXL v1.0 and ComfyUI Together in our Comprehensive Guide

SDXL v1.0 and ComfyUI: Basic Intro

SDXL v1.0

ComfyUI

How ComfyUI is Different Than Other Stable Diffusion UIs

Unlike other Stable Diffusion interfaces, ComfyUI offers a node-based workflow builder, which provides more flexibility and control over the creation and execution of workflows.

ComfyUI also supports a wider range of operations and models, including the latest SDXL 1.0, which can be seamlessly integrated into the workflows.

So, by using ComfyUI with/in SDXL 1.0, users can save and reload their entire layout of nodes in ComfyUI, enabling them to reuse complex workflows across multiple images.

SDXL Generated Image through the fusion of SDXL v1.0 and ComfyUI together

How to Install and Use Stable Diffusion SDXL v1.0 and ComfyUI Together? Complete Step-by-Step Guide

To install and use ComfyUI and SDXL 1.0 together, you will need to follow these steps:

Step 1: Download SDXL v1.0

You will need to download both the base and the refiner models. These models are essential for the two-step process of generating the image and then refining it. The base model generates noisy latents that are processed by the refiner model to denoise and enhance the image’s detail and sharpness. Links are given below

https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/main

https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/tree/main

After opening these links, scroll down until you find the file names I mentioned in brackets. 

Step 2: Download ComfyUI

Now, you need to download ComfyUI. Go to the GitHub page for ComfyUI. Scroll down until you find WINDOWS under installing and these click the “Direct link to download.” 

Downloading ComfyUI Using GitHub Download Link

ComfyUI is a node-based user interface created to understand how Stable Diffusion works, and it closely follows the underlying mechanics of generation. After the download is finished, extract or unzip the ComfyUI file using WinRAR or 7-Zip.

Note: Direct download only works for NVIDIA GPUs. For AMD (Linux only) or Mac, check the beginner’s guide to ComfyUI.

Step 3: Install Dependencies

After downloading ComfyUI, you need to install its dependencies. Open your terminal in the ComfyUI folder and install the dependencies. If you have another UI installed and working with its own python venv, you can use that venv to run ComfyUI without installing any dependencies.

Step 4: Copy SDXL 0.1 Base and Refiner Models to the ComfyUI file

Copy the sd_xl_base_1.0.safetensors and sd_xl_refiner_1.0.safetensors files to the ComfyUI file which is present with name ComfyUI_windows_portable file. Locate this file, then follow the following path:

Now paste these models into the “Checkpoints” subfolder

Step 5: Choose and Run GPU or CPU Version

When you are done copying and pasting the models, then inside the “ComfyUI” folder, locate the batch files for running the software.

Depending on your hardware, choose the appropriate version:

After this, a ComfyUI environment will open itself, but it does not contain workflow yet. It is shown in the following figure:

Step 4: Download and Use SDXL Workflow

Instead of creating a workflow from scratch, you can download a workflow optimised for SDXL v1.0. You can use the popular Sytan SDXL workflow or any other existing ComfyUI workflow with SDXL. The workflow is provided as a .json file which is easily loadable into the ComfyUI environment.

https://github.com/SytanSD/Sytan-SDXL-ComfyUI

Downloading Sytan SDXL Workflow from GitHub

Step 5: Load the Workflow

After downloading, you can load the workflow into ComfyUI. This can be done by dragging and dropping the downloaded .json file into the ComfyUI environment or using the “Load button.”

Sytan SDXL Workflow After loading into ComfyUI

Step 6: Select Models in Load Model Nodes

Once the workflow is loaded, make sure to select your base and refiner models from the dropdowns in the Load Model nodes.

Setting SDXL v1.0 Base and Refiner models into Load Model Nodes of ComfyUI

Step 7: Generate Images

After all the above steps are completed, you should be able to generate SDXL images with one click. Open the ComfyUI software. Familiarise yourself with the UI and the available settings.

Set Up Prompts

Click Quene Prompt to Start Generating Images

Review and Edit Images

Fusion of SDXL v1.0 and ComfyUI Generated Images for Both Base and Refiner Together

Save and Share

Remember, ComfyUI is extensible, and many people have written some great custom nodes for it. You can explore and use these custom nodes/extensions as needed.

Refiner Image

Final Verdict

Now that you know how to install SDXL v1.0 and use it with ComfyUI, you’re all set to make amazing artwork. With these tools, you can create artworks that are so good you might even want to sell them! SDXL v1.0 makes cool pictures, and ComfyUI helps you use it easily. So, whether you’re just having fun or thinking about selling your art, these tools help you make awesome stuff that people will love. Try it out, and see what incredible art you can make!

Also, Check out some of the amazing artworks below:

Image 1
Image 2

If you want to learn more about SDXL, do check our following articles below:

We hope you enjoyed reading this article. For more, you can stay tuned with us because we DigiAlps LTD, are providing you with the latest information through our articles on AI and more trending topics.

Exit mobile version