langbrain/ComfyUI.md

1.3 KiB

Manual Install on Linux with NVIDIA GPU

Clone the repo

git clone git@github.com:comfyanonymous/ComfyUI.git

Install dependencies

Make sure you have cuda12+ installed.

Follow instruction on NVIDIA's website

wget https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda-repo-debian11-12-6-local_12.6.1-560.35.03-1_amd64.deb
sudo dpkg -i cuda-repo-debian11-12-6-local_12.6.1-560.35.03-1_amd64.deb
sudo cp /var/cuda-repo-debian11-12-6-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo add-apt-repository contrib
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-6

And install the driver

sudo apt-get install -y cuda-drivers

Install Miniconda. This will help you install the correct versions of Python and other libraries needed by ComfyUI.

Create an environment with Conda.

conda create -n comfyenv

And activate it

conda activate comfyenv

Install python dependencies

conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia