以下是ComfyUI在Windows上的安装步骤:
- 访问ComfyUI GitHub Releases页面,下载对应系统的整合包,如“Download Link with stable pytorch 2.1 cu121”。
- 解压文件到任意空白路径。
- 若有NVIDIA GPU,双击“run_nvidia_gpu.bat”启动;若用CPU,双击“run_cpu.bat”启动。
- 安装Python 3.10+、Git、CUDA和cuDNN(若用GPU)。
- 打开命令行,输入“git clone https://github.com/comfyanonymous/ComfyUI.git”克隆项目。
- 进入项目目录,创建并激活虚拟环境(可选)。
- 安装依赖:运行“pip install -r requirements.txt”。
- 下载Stable Diffusion模型并放到指定目录。
- 运行“python main.py”启动ComfyUI,通过浏览器访问http://127.0.0.1:8188使用。