引自https://
www.bilibili.com/video/BV1894y1v7G6/?sp ... 7e8a2ec641
# 1.克隆项目仓库
代码: 全选
git clone https://github.com/comfyanonymous/ComfyUI
# 2.创建python3虚拟环境,避免环境污染
代码: 全选
virtualenv -p python3 ComfyUI
# 3.进入ComfyUI目录
# 4.进入python3虚拟环境
代码: 全选
source ./bin/activate
# 5.安装ComfyUI项目依赖
# 因为我用的是NVIDIA显卡
代码: 全选
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 xformers
pip install -r requirements.txt
# 5.然后就可以运行主程序了
# 6.用软连接与stableDiffusion共享模型
# ComfyUI的模型目录在 /home/jianbo/桌面/ComfyUI/models/checkpoints
# SD 的模型目录在 /home/jianbo/桌面/stable-diffusion-webui/models/Stable-diffusion
# 创建软链接的命令为
# ln -s /path/to/shared_file /path/to/symlink
# 其中,/path/to/shared_file 是共享的原始文件的路径,
# /path/to/symlink 是软链接的路径和名称。
ln -s /home/jianbo/桌面/stable-diffusion-webui/models/Stable-diffusion /home/jianbo/桌面/ComfyUI/models/checkpoints
代码: 全选
ln -s /media/yuzh/ZhiTai1T/aisd/yuzhmodels/lora Lora
ln -s /media/yuzh/ZhiTai1T/aisd/yuzhmodels/stable-diffusion Stable-diffusion
# 到这里就全部完成了,可以看到启动是非常快的
一台电脑装多套Stable Diffusion时共享模型文件的方法
https://www.bilibili.com/read/cv27218597/
—————————————————2024.3.3补充—————————————————————————
ComfyUI : NEW Official ControlNet Models are released! Here is my tutorial on how to use them.
https://www.youtube.com/watch?v=DMxnf4WXMsY
It's official! Stability.ai has now released the first of our official stable diffusion SDXL Control Net models. In this ComfyUI tutorial we will quickly cover how to install them as well as how to use the preprocessors to get things all set for the Control Net node. We will also cover installing the manager, since it makes things a lot easier going forward. I did cover that in Episode 2 in-depth, so if you need a refresher, check out that video as well. Please note, these are now the official models, not the ones released by others.
Want to help support the channel and get this graph? WOOT!
/ @sedetweiler
You can grab the official Control Net LoRA (OFFICIAL) files from here:
https://huggingface.co/stabilityai/co... (Remember, these are Control Net files and are LoRA in name only!)
代码: 全选
git lfs install
git clone https://huggingface.co/stabilityai/control-lora
Grab the manager custom node from here:
https://github.com/ltdrdata/ComfyUI-M...
Installation[method3] (Installation for linux+venv: ComfyUI + ComfyUI-Manager)
To install ComfyUI with ComfyUI-Manager on Linux using a venv environment, you can follow these steps: prerequisite: python-is-python3, python3-venv
Download scripts/install-comfyui-venv-linux.sh into empty install directory
ComfyUI will be installed in the subdirectory of the specified directory, and the directory will contain the generated executable script.
chmod +x install-comfyui-venv-linux.sh
./install-comfyui-venv-linux.sh
SDXL model from here (OFFICIAL): (bonus LoRA also here)
https://huggingface.co/stabilityai/st...
Control Net Preprocessors are available here:
https://github.com/Fannovel16/comfyui...
Remember, you will have to restart the ComfyUI interface for these to start loading, and the models will also download as they are requested from the Controlnet processor.
Twitter:
/ sedetweiler
Threads:
https://www.threads.net/sedetweiler