Linux系统安装ComfyUI

环境:Ubuntu 22.04.1 LTS +  NVIDIA GeForce RTX 3090

一、 安装显卡驱动

  访问NVIDIA官方网站(https://developer.nvidia.com/cuda-downloads)获取对应安装命令

https://developer.nvidia.com/cuda-downloads

安装完成后执行nvidia-smi检测安装是否成功

二、 安装Miniconda3,安装Pytorch

  在Index of /下载miniconda Linux系统安装包,运行安装包,按提示安装即可

  安装Python环境miniconda3

wget https://repo.anaconda.com/miniconda/Miniconda3-py310_24.5.0-0-Linux-x86_64.sh

sh Miniconda3-py310_24.5.0-0-Linux-x86_64.sh

  安装Pytorch

  

# 换清华源
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

pip install --pre torch torchvision torchaudio
三、下载ComfyUI,安装依赖

  安装ComfyUI

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

cd ComfyUI

pip install -r requirements.txt

  大模型放置目录:ComfyUI/models/checkpoints/

      插件放置目录:ComfyUI/models/checkpoints/

      放大模型目录:ComfyUI/models/upscale_models

  

  常用模型下载地址:

        国内: LiblibAI-哩布哩布AI - 中国领先的AI创作平台

        国外: https://civitai.com/

  常用工作流下载地址:https://openart.ai/workflows/home

  常用插件:

     基础管理插件:https://github.com/ltdrdata/ComfyUI-Manager.git

            翻译插件:https://github.com/AIGODLIKE/AIGODLIKE-ComfyUI-Translation.git

  ControlNet插件:https://github.com/Kosinkadink/ComfyUI-Advanced-ControlNet.git

     图像放大插件:https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git

四、启动ComfyUI
# 配置下载模型走镜像站
export HF_ENDPOINT="https://hf-mirror.com"

python3 main.py --listen 0.0.0.0 --port 8188

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值