Home

How to Install and Use ComfyUI on Windows - Complete Guide

· 2 min read
img of How to Install and Use ComfyUI on Windows - Complete Guide

What is ComfyUI?

While Stable Diffusion WebUI has been the go-to tool for text-to-image generation, requiring configuration of multiple settings across different modules, ComfyUI offers a more intuitive approach. It uses a visual node-based workflow that makes the text-to-image process more efficient and user-friendly.

ComfyUI Interface

Basic Installation Guide for Windows

Required Downloads

Installation Steps

  1. Download and extract the package using 7-Zip Extraction Process

Pre-launch Configuration

If you need external access after launch, right-click and edit either run_cpu.bat (for CPU) or run_nvidia_gpu.bat (for GPU) and add the parameter --listen 0.0.0.0 Example of modified run_nvidia_gpu.bat :

    .\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --listen 0.0.0.0
pause  

Launching ComfyUI

Double-click either run_cpu.bat (CPU) or run_nvidia_gpu.bat (GPU) to start. If successful, your default browser will open to http://127.0.0.1:8188 , displaying the ComfyUI interface. Launch Command Window

Setting Up Models

ComfyUI stores models in ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\models\checkpoints

Download your preferred models (refer to our Stable Diffusion Models Overview for recommendations) and place them in the checkpoints folder. Restart the service to see your models in the dropdown menu:

Model Selection

Getting Started

Basic Workflow Setup

  1. Add your prompt text in the designated fields
  2. Connect the nodes as shown in the diagram below
  3. Configure the Empty latent image settings for output size and batch count Basic Workflow

Generate Images

Click the Queue Prompt button in the rightmost panel or press Ctrl + Enter

Essential Keyboard Shortcuts

ShortcutFunction
Ctrl + EnterQueue current workflow
Ctrl + Shift + EnterQueue current workflow as first priority
Ctrl + Z/Ctrl + YUndo/Redo
Ctrl + SSave workflow
Ctrl + OLoad workflow
Ctrl + ASelect all nodes
Alt + CCollapse/Expand selected nodes
Ctrl + MMute/Unmute selected nodes
Ctrl + BBypass selected nodes
Delete/BackspaceDelete selected nodes
Ctrl + BackspaceClear current workflow
SpaceHold to pan canvas
Ctrl/Shift + ClickAdd node to selection
Ctrl + C/Ctrl + VCopy/Paste selected nodes (breaks connections)
Ctrl + C/Ctrl + Shift + VCopy/Paste with maintained connections
Shift + DragMove multiple selected nodes
Ctrl + DLoad default workflow
Alt + +Zoom in
Alt + -Zoom out
Ctrl + Shift + Left Click + Vertical DragZoom canvas
QToggle queue visibility
HToggle history visibility
RRefresh workflow
Double Left ClickOpen quick node search