To download and install ComfyUI, a modular GUI for Stable Diffusion, you can follow these steps for a quick setup:
For Windows:
- Download the Standalone Installer: Visit the ComfyUI GitHub releases page and download the
comfyui-windows.zip
file. - Extract the Files: Use tools like WinRAR or 7-Zip to extract the downloaded zip file to your desired location.
- Get a base model from Civ AI (like Juggernaut XEL).
- Add Stable Diffusion Models: Place the necessary Stable Diffusion model files (
.ckpt
or.safetensors
) into themodels/checkpoints
directory. - Python Installation: Using Python 3.12 ensures optimal performance with ComfyUI, making the setup smoother and reducing potential compatibility issues.
- Launch ComfyUI: Double-click the
comfyui.exe
file to start the web application Executing the correct batch run file based on your GPU or CPU
For Linux:
- Clone the Repository: Open a terminal and execute:bashCopy code
git clone https://github.com/comfyanonymous/ComfyUI.git cd ComfyUI
- Install Dependencies:bashCopy code
pip install -r requirements.txt
- Add Stable Diffusion Models: Download the model files and place them in the
models/checkpoints
directory. - Launch ComfyUI: Run:bashCopy code
python main.py
If you encounter GPU compatibility issues, you may need to use specific flags, such as:bashCopy codeHSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py
Additional Notes:
- Templates: If you’re new to the node-based interface, consider downloading ready-made templates from creators like Monzon Media to help you get started.
- System Requirements: Ensure your system meets GPU and Python version requirements for smooth operation.
- Extract ComfyUI and run the appropriate file for your GPU.
- Input positive and negative prompts in the interface.
- Fine-tune parameters for better image quality.
- Save your generated images easily with ComfyUI.