ComfyUISetup » History » Revision 2
Revision 1 (Anonymous, 10/06/2024 09:48 AM) → Revision 2/3 (Anonymous, 10/06/2024 09:59 AM)
h1. ComfyUI Setup The following describes how to setup "https://www.comfy.org/":ComfyUI on Ubuntu 24.04. Note that a modern GPU is required. h2. Install ComfyUI ComfyUI will be installed into a Python virtual environment which keeps it somewhat isolated from the rest of the system. # Install virtualenv if it is not already installed: <pre> $ sudo apt install python3.12-venv </pre> # Create virtualenv at @/opt/comfyui@ and then update pip: <pre> $ sudo python3 -m venv /opt/comfyui/ $ sudo /opt/comfyui/bin/pip install --upgrade pip </pre> # Install pytorch into the virtualenv (NOTE: this assumes an NVidia GPU and the appropriate drivers must already be installed): <pre> $ sudo /opt/comfyui/bin/pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121 </pre> # Install ComfyUI within the virtualenv: <pre> $ cd /opt/comfyui $ sudo mkdir comfyui $ sudo chown -R dsorber:dsorber comfyui/ $ cd comfyui/ $ git clone https://github.com/comfyanonymous/ComfyUI.git . $ sudo /opt/comfyui/bin/pip install -r requirements.txt </pre> # Download and install Flux model ** https://huggingface.co/Comfy-Org/flux1-schnell/blob/main/flux1-schnell-fp8.safetensors # Copy model to @models/checkpoints@ directory: <pre> mv ~/Downloads/flux1-dev-fp8.safetensors /opt/comfyui/comfyui/models/checkpoints </pre> # Base ComfyUI and Flux model is now installed. To run: <pre> $ cd /opt/comfyui/comfyui $ ../bin/python3 main.py </pre> h2. 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. # Install ComfyUI Manager: <pre> $ 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 </pre> # Restart ComfyUI to use. h2. Resources h3. Install Guides * https://comfyui-wiki.com/install/install-comfyui/install-comfyui-on-linux * https://comfyui-wiki.com/tutorial/advanced/flux1-comfyui-guide-workflow-and-examples h3. Nodes * https://github.com/ltdrdata/ComfyUI-Impact-Pack * https://github.com/city96/ComfyUI-GGUF * https://github.com/pythongosssss/ComfyUI-Custom-Scripts * https://github.com/ssitu/ComfyUI_UltimateSDUpscale * https://github.com/SeargeDP/ComfyUI_Searge_LLM * https://github.com/rgthree/rgthree-comfy * https://github.com/cubiq/ComfyUI_essentials * https://github.com/chrisgoringe/cg-image-picker * https://github.com/nkchocoai/ComfyUI-SaveImageWithMetaData * https://github.com/Smirnov75/ComfyUI-mxToolkit * https://github.com/edelvarden/ComfyUI-ImageMetadataExtension