跳转至

ComfyUI Ubuntu

一、安装ComfyUI

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda create -n comfyui pyhton=3.10
conda init zsh
source ~/.zshrc
conda activate comfyui
git clone https://github.com/comfyanonymous/ComfyUI.git && cd ComfyUI
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu121
pip install -r requirements.txt

二、启动ComfyUI

python main.py --listen

启动成功,浏览器访问 公网ip:端口

alt text

三、下一次运行

cd ComfyUI
conda init zsh
source ~/.zshrc
conda activate comfyui
python main.py --listen