Installation ComfyUI
Before installing Allor, you need to have Python and ComfyUI installed.
How to get ComfyUI
For Windows systems, you can download portable version and go straight to the Allor installation step.
Also, you can get ComfyUI from a direct download link.
And finally, you can get ComfyUI using Git by typing this command into the terminal.
How to get Python
Python comes preinstalled on most Linux distributions, and is available as a package on all others.
You can check if Python is installed on your system from the terminal with the following command:
python3 --version
If Python is not installed on your system, you can also install it via the terminal.
For Arch Linux
pacman -S pythonFor macOS with Homebrew
brew install python
On macOS, you can also download the Python installer from the official site.
On Windows systems, you can get Python in a number of ways.
The easiest way to install Python for Windows is to download it from the official site.
You can also install Python using the Microsoft Store.
Through Powershell you can install it by Windows Package Manager.
winget install pythonAnd finally, you will be able to install Python through the terminal using Chocolatey.
choco install python
After installation, you need to verify that Python is running correctly.
Open the terminal and type this command:
python3 --version
You can do this by pressing Win+R and typing cmd
.
Setup Python Environment
Of course, you can skip this step and go straight to installing the dependencies, but I still recommend you create a virtual environment specifically for ComfyUI.
This will allow you to create an isolated space that has its own independent set of installed Python packages.
This will prevent a system pollution, eliminate dependency conflicts, and exclude the possibility of other projects affecting the operation of ComfyUI.
See how to Work with Terminal.
Open Terminal: Navigate to the
ComfyUI
root directory.Create Virtual Environment: You can do it by typing the following command.
python -m venvActivate new Environment: You can do this by writing this command to your terminal.
source venv/bin/activate
See how to Work with Terminal.
Open Command Prompt: Navigate to the
ComfyUI
root folder.Create Virtual Environment: You can do it by typing the following command.
python -m venvActivate new Environment: You can do this by writing this command to your terminal.
.\venv\Scripts\activate
After activating the virtual environment, all commands applicable to Python will be intercepted. This means that they will use the Python version from the virtual environment, not the system version.
It's also worth noting that the Python version in the virtual environment may differ from the system one, as well as the installed packages.
If you need to return to the system Python version and exit the virtual environment, enter this command:
Install Dependencies
One of the most important steps in installing ComfyUI is installing dependencies.
Dependencies are external modules or libraries that ComfyUI uses to perform its functions.
See how to Work with Terminal.
Open Terminal: Navigate to the
ComfyUI
root directory.Install PyTorch Dependencies:
For AMD:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.6For NVIDIA:
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121For Apple Mac silicon:
pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
Install ComfyUI Dependencies: You can install it by typing the following command.
pip install -r requirements.txt
See how to Work with Terminal.
Open Command Prompt: Navigate to the
ComfyUI
root folder.Install PyTorch Dependencies:
For AMD:
pip install torch-directmlFor NVIDIA:
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
Install ComfyUI Dependencies: You can install it by typing the following command.
pip install -r requirements.txt
Run ComfyUI
The hardest part is behind, now you can launch ComfyUI and start generating your first images.
See how to Work with Terminal.
Type into Terminal: Now you can finally run ComfyUI by following command.
Run on Linux:
python main.pyRun on macOS:
python main.py --force-fp16
For your convenience, you can create a bash script, such as a
run.sh
file, to avoid manually activating the virtual environment and running ComfyUI from the terminal each time you want to use it.#!/bin/bash source venv/bin/activate if [[ "$OSTYPE" == "linux-gnu"* ]]; then python main.py elif [[ "$OSTYPE" == "darwin"* ]]; then python main.py --force-fp16 fiAfter creating a script file, you can run it by command:
bash run.sh
See how to Work with Terminal.
Open Command Prompt: Now you can finally run ComfyUI by following command.
Run on AMD:
python main.py --directmlRun on NVIDIA:
python main.py
For your convenience, you can create a script, such as a
run.bat
file, to avoid manually activating the virtual environment and running ComfyUI from the terminal each time you want to use it.
After launching ComfyUI, it will be accessible at the local address 127.0.0.1:8188 in your browser.