ComfyUI 和 SURIR 图片高清修复+放大
魔法在线体验地址 https://supir.xpixel.group/
有人基于 SUPIR 封装了 ComfyUI 的节点,可以让我们更方便地使用模型 https://github.com/kijai/ComfyUI-SUPIR
安装 ComfyUI
方式 1:集成包 https://github.com/comfyanonymous/ComfyUI/releases
方式 2:源码安装 https://github.com/comfyanonymous/ComfyUI
这里着重讲方式 2
1:先把 ComFyUi 下载到本地, 下载依赖包. 这里创建 3.9 版本是因为 ComfyUI-SUPIR 这个包不能大于 3.10
git clone https://github.com/comfyanonymous/ComfyUI.gi
cd ComfyUI
conda create --name py39 python=3.9
conda acticate py39
pip install -r requirements.txt
2: 安装对应版本的 pytorch https://pytorch.org/
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
3: 安装对应版本的 xformers https://github.com/facebookresearch/xformers#installing-xformers
pip install -U xformers --index-url https://download.pytorch.org/whl/cu118
4: 下载 https://github.com/kijai/ComfyUI-SUPIR 到目录 custom_nodes。这一步开始集成包也要做
cd custom_nodes
git clone https://github.com/kijai/ComfyUI-SUPIR.git
5: 安装依赖
cd ComfyUI-SUPIR
pip install -r requirements.txt