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.
Any Computer with a cpu and ram.
-- cpu only web server
-- laptop with no gpu
-- older PCs
-- weak onboard gpus
docker pull ardenius/comfyui-cpu
(Linux and MacOS for windows see below instructions)
git clone https://github.com/ArdeniusAI/ComfyUI-cpu.git
cd ComfyUI-cpu
./install_comfyui-cpu.sh
./start_comfyui-cpu.sh
git clone https://github.com/ArdeniusAI/ComfyUI-cpu.git
cd ComfyUI
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
python3 -m venv venv
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.
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.
python3 main.py --cpu --cpu-vae --auto-launch
http://localhost:8188
-
Download Git for Windows from the official website: https://gitforwindows.org/
-
Run the downloaded installation file
-
Follow the installation wizard instructions
-
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.
-
Complete the installation by following the on-screen instructions
-
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.
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