Project

General

Profile

Actions

ComfyUI Setup

The following describes how to setup "https://www.comfy.org/":ComfyUI on Ubuntu 24.04. Note that a modern GPU is required.

Install ComfyUI

ComfyUI will be installed into a Python virtual environment which keeps it somewhat isolated from the rest of the system.

  1. Install virtualenv if it is not already installed:
    $ sudo apt  install python3.12-venv
    
  2. Create virtualenv at /opt/comfyui and then update pip:
    $ sudo python3 -m venv /opt/comfyui/
    $ cd /opt/
    $ sudo chown -R dsorber:dsorber comfyui
    $ /opt/comfyui/bin/pip install --upgrade pip
    
  3. Install pytorch into the virtualenv (NOTE: this assumes an NVidia GPU and the appropriate drivers must already be installed):
    $ cd /opt/comfyui/bin
    $ ./pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130
    
  4. Install ComfyUI within the virtualenv:
    $ cd /opt/comfyui
    $ mkdir comfyui
    $ cd comfyui/
    $ git clone https://github.com/comfyanonymous/ComfyUI.git .
    $ /opt/comfyui/bin/pip install -r requirements.txt 
    
  5. Download and install Flux model
  6. Copy model to models/checkpoints directory:
    mv ~/Downloads/flux1-dev-fp8.safetensors /opt/comfyui/comfyui/models/checkpoints
    
  7. Base ComfyUI and Flux model is now installed. To run:
    $ cd /opt/comfyui/comfyui
    $ ../bin/python3 main.py 
    

Install ComfyUI Manager

ComfyUI Manager adds some nice features to the UI. The most useful feature is the one that will list unknown nodes from a workflow graph along with links to where to install the node.

  1. Install ComfyUI Manager:
    $ cd /opt/comfyui/comfyui/custom_nodes
    $ git clone https://github.com/ltdrdata/ComfyUI-Manager
    $ cd ComfyUI-Manager
    $ sudo /opt/comfyui/bin/pip install -r requirements.txt
    
  2. Restart ComfyUI to use.

Resources

Install Guides

Nodes

Updated by 7 months ago · 3 revisions