diff --git a/README.md b/README.md index 5006032..391bc3a 100644 --- a/README.md +++ b/README.md @@ -31,16 +31,47 @@ Simply start ComfyUI and drag the example [workflow.json](./assets/workflow.json 启动 ComfyUI 并拖入示例 [workflow.json](./assets/workflow.json) 即可。 +## Windows 指南 + +Windows 除了需要参照上面的配置教程,还需要额外配置 MSVC: + +首先是 nvcc 安装(确保 VIRTUAL_ENV/bin/nvcc 存在): + +``` +conda install cuda-nvcc -c conda-forge +``` + +![](./assets/tutorial_windows_install.png) +![](./assets/tutorial_windows_install_1.png) +![](./assets/tutorial_windows_install_2.png) +![](./assets/tutorial_windows_install_3.png) + +根据自己系统选择 Windows 10 SDK / Windows 11 SDK. + +**注意:不要从 Installer 点击启动 terminal** + +进入 `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build` 目录, +右击进入 terminal,注意要用 CMD 不要 powershell。 + +启动 native x64 target x64 的编译环境变量(兼容环境下 nvcc 编译会报错): + +``` +vcvars64.bat +``` + +![](./assets/tutorial_windows_install_4.png) + +编译完成,成功启动。 + ## FAQ 常见错误 > OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root. > -> 解决方法:`conda install -c conda-forge cudatoolkit-dev`。 > 参照:https://github.com/conda/conda/issues/7757 > subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1. > -> 解决办法:仅在 Windows 下出现,可能需要配置一下 MSVC 编译器。 +> 解决办法:仅在 Windows 下出现,根据 [Windows 配置教程](#Windows-指南) ## Node 节点 @@ -68,6 +99,10 @@ OOTDiffusion 本体依赖于 `diffusers==0.24.0` 实现,所以假如有其他 ## 更新日志 Release Note +2024-03-01: + +添加 Windows 安装教程 + 2024-02-25: 移除 git lfs 下载教程,提供 Load OOTDiffusion from Hub 节点 diff --git a/assets/tutorial_windows_install.png b/assets/tutorial_windows_install.png new file mode 100644 index 0000000..2233d99 Binary files /dev/null and b/assets/tutorial_windows_install.png differ diff --git a/assets/tutorial_windows_install_1.png b/assets/tutorial_windows_install_1.png new file mode 100644 index 0000000..7aa5c1a Binary files /dev/null and b/assets/tutorial_windows_install_1.png differ diff --git a/assets/tutorial_windows_install_2.png b/assets/tutorial_windows_install_2.png new file mode 100644 index 0000000..6f667ca Binary files /dev/null and b/assets/tutorial_windows_install_2.png differ diff --git a/assets/tutorial_windows_install_3.png b/assets/tutorial_windows_install_3.png new file mode 100644 index 0000000..6138feb Binary files /dev/null and b/assets/tutorial_windows_install_3.png differ diff --git a/assets/tutorial_windows_install_4.png b/assets/tutorial_windows_install_4.png new file mode 100644 index 0000000..d46fcf1 Binary files /dev/null and b/assets/tutorial_windows_install_4.png differ