comfy-ui windows 部署

322 阅读1分钟

**项目地址

**教程地址

**下载项目

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

**下载依赖

cd ComfyUI
pip install -r requirements.txt
pip install torch torchvision torchaudio --extra-index-url    https://download.pytorch.org/whl/nightly/cu124

**确保 CUDA 和 PyTorch 已经正确安装并兼容

  • 检查
python -c "import torch; print(torch.__version__, torch.cuda.is_available())"
  • 如果不兼容,先卸载 pytorch
pip uninstall torch
  • 重新安装 pytorch
pip install --pre torch torchvision torchaudio --index-url   https://download.pytorch.org/whl/nightly/cu124

**启动

python main.py

**中文插件

cd custom_nodes
git clone https://github.com/AIGODLIKE/AIGODLIKE-COMFYUI-TRANSLATION.git
  • 重启应用
  • Settings > AGC > Locale
  • 切换成功

**ComfyUI Manager

**模型位置配置

  • 参考 下载 & 导入模型 – Comflowy
  • 已安装过 SD WebUI - 修改 extra_model_paths.yaml.example - base_path: path/to/stable-diffusion-webui/ - 将文件重命名为 extra_model_paths.yaml
  • 未安装过 SD WebUI - 模型文件都在项目 models 目录下