Skip to content

ComfyUI-cpu is a trimmed down version of ComfyUI that uses the cpu only. AI text to image generation with no GPU. it can be used on CPU only servers, laptops, and older computers.

License

Notifications You must be signed in to change notification settings

ArdeniusAI/ComfyUI-cpu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComfyUI-cpu

ComfyUI-cpu is a trimmed down version of ComfyUI that only uses the cpu. I hope someone finds this useful. I needed to run comfyui on cpu only device so I created this fork of ComfyUI optimized for cpu usage. The most powerful and modular diffusion model GUI and backend.

Use Cases:

Any Computer with a cpu and ram.

-- cpu only web server

-- laptop with no gpu

-- older PCs

-- weak onboard gpus

Docker install

docker pull ardenius/comfyui-cpu

Fast installation

(Linux and MacOS for windows see below instructions)

includes comfyui manager

git clone https://github.com/ArdeniusAI/ComfyUI-cpu.git

cd ComfyUI-cpu

./install_comfyui-cpu.sh

once installed then run the following to start:

./start_comfyui-cpu.sh

Manual installation

1. Git clone this repo

git clone https://github.com/ArdeniusAI/ComfyUI-cpu.git

2. cd into ComfyUI folder

cd ComfyUI

3. download and copy your models and vae into

Recommended for SD1.5 LCM for 3-step generation and good images download the below workflow and models you can replace the sgm-uniform with lcm scheduler for faster generations. You can download the needed models and workflow from here or in any other place. I just added them for easier download here. Download SD1.5 LCM models, lora, and workflow for ComfyUI-cpu

4. create a virtual environment

python3 -m venv venv

5. install torch

pip3 install torch==2.4.1+cpu torchvision==0.19.1+cpu torchaudio==2.4.1+cpu --index-url https://download.pytorch.org/whl/cpu

And install it again with the command above.

6. install Dependencies

Install the dependencies by opening your terminal inside the ComfyUI folder and:

pip3 install -r requirements.txt

After this you should have everything installed and can proceed to running ComfyUI.

7. in ComfyUI folder then Run

python3 main.py --cpu --cpu-vae --auto-launch

8. open it in your browser

http://localhost:8188

Windows installation:

require installing Git Bash on Windows then run the above instructions:

  1. Download Git for Windows from the official website: https://gitforwindows.org/

  2. Run the downloaded installation file

  3. Follow the installation wizard instructions

  4. During the installation process, you can choose the components you want to install. Make sure to select "Git Bash Here" option if you want the context menu integratios.

  5. Complete the installation by following the on-screen instructions

  6. After the installation is complete, you can launch Git Bash by searching for it in the Windows search bar.

Once Git Bash is installed, you can use it to run Git commands and execute shell scripts on your Windows system.

Shortcuts

Keybind Explanation
Ctrl + Enter Queue up current graph for generation
Ctrl + Shift + Enter Queue up current graph as first for generation
Ctrl + Alt + Enter Cancel current generation
Ctrl + Z/Ctrl + Y Undo/Redo
Ctrl + S Save workflow
Ctrl + O Load workflow
Ctrl + A Select all nodes
Alt + C Collapse/uncollapse selected nodes
Ctrl + M Mute/unmute selected nodes
Ctrl + B Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through)
Delete/Backspace Delete selected nodes
Ctrl + Backspace Delete the current graph
Space Move the canvas around when held and moving the cursor
Ctrl/Shift + Click Add clicked node to selection
Ctrl + C/Ctrl + V Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes)
Ctrl + C/Ctrl + Shift + V Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes)
Shift + Drag Move multiple selected nodes at the same time
Ctrl + D Load default graph
Alt + + Canvas Zoom in
Alt + - Canvas Zoom out
Ctrl + Shift + LMB + Vertical drag Canvas Zoom in/out
P Pin/Unpin selected nodes
Ctrl + G Group selected nodes
Q Toggle visibility of the queue
H Toggle visibility of history
R Refresh graph
Double-Click LMB Open node quick search palette
Shift + Drag Move multiple wires at once
Ctrl + Alt + LMB Disconnect all wires from clicked slot

Ctrl can also be replaced with Cmd instead for macOS users

About

ComfyUI-cpu is a trimmed down version of ComfyUI that uses the cpu only. AI text to image generation with no GPU. it can be used on CPU only servers, laptops, and older computers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Other 1.0%