linux下本地部署ComfyUI详细教程 :
sudo apt install git
git clone https://github.com/comfyanonymous/ComfyUI.git
sudo apt install pip
/home/user/.pip 没有就新建
打开 pip.comf 没有就新建
添加
【global】
PIP_INDEX_URL = https://pypi.mirrors.ustc.edu.cn/simple
index-url = https://pypi.mirrors.ustc.edu.cn/simple
EXTRA_INDEX_URL = https://download.pytorch.org/whl/cu124
trusted-host = pypi.mirrors.ustc.edu.cnpython3 -m venv venv
source venv/bin/activate
pip3 install torch torchvision torchaudio
pip install xformers
pip install -r requirements.txt
touch run.txt#!/bin/bash
echo 启动中
source ./venv/bin/activate
python main.py --disable-smart-memory --disable-cuda-malloc
read -n 1 -s
echo
保存为run.sh 使用chmod命令设为可执行:
bash chmod +x run.sh
运行脚本:
bash ./run.sh
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END