Windows10 Installation Guide
zhanghongyong123456 opened this issue · 3 comments
windows10 CUDA 11.7 RTX 8000 VS2019
<1>. Installation of basic environment (基础环境安装)
1.1 Create a virtual environment and install torch 创建虚拟环境、安装 torch)
conda create -n GaussianEditor python=3.10
conda activate GaussianEditor
conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidia
1.2 pip install xformers==0.0.20
1.3 remove git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch in requirements_2.txt and pip install -r requirements_2.txt
1.4 Source code compilation 源码编译 tiny-cuda-nn
git clone --recursive https://github.com/nvlabs/tiny-cuda-nn
open x64 Native Tools Command Prompt for VS 2019
conda activate GaussianEditor
cd tiny-cuda-nn\bindings\torch
then run
python setup.py install
1.5 Source code compilation 源码编译 GroundingDINO:
git clone https://github.com/IDEA-Research/GroundingDINO.git
conda activate GaussianEditor
cd GroundingDINO
pip install -e .
1.6 Source code compilation 源码编译 lang-segment-anything
git clone https://github.com/luca-medeiros/lang-segment-anything && cd lang-segment-anything
去掉 pyproject.toml 中对于 groundingdino 依赖
#groundingdino = {git = "https://github.com/IDEA-Research/GroundingDINO.git"} line 26 remove
pip install -e .
1.7 install simple-knn diff-gaussian-rasterization
cd gaussiansplatting/submodules
pip install ./diff-gaussian-rasterization
pip install ./simple-knn
pip install kornia==0.7.0
<2>. Installation of Viser environment (Viser环境安装)
mkdir extern && cd extern
git clone https://github.com/heheyas/viser
pip install -e viser
Modified Viser source code for windows builds(接下来修改Viser 源代码用于windows构建)
path\to\you\extern\viser\src\viser_viser.py line 326
2.1 install node env: path\to\you\extern\viser\src\viser_client_autobuild.py
when i run ,i find this error(运行时发现这个错误):
Install cmd manually under administrator rights (管理员权限手动安装)
cd path\to\your\GaussianEditor\extern\viser\src\viser\client
conda activate GaussianEditor
python -m nodeenv --node=20.4.0 .nodeenv
2.2 build yarn file (构建yarn文件夹)
2.3 Source code modification(需要修改源码的地方)
path\to\you\GaussianEditor\extern\viser\src\viser_client_autobuild.py replace this script
- run webui.py, It's OK
Thanks a lot for your guide!
感谢实践经验的分享
Additional information:
If you encounter the error "from kornia.geometry.quaternion import Quaternion.ModuleNotFoundError: No module named 'kornia.geometry.quaternion" while running webui.py, please check your kornia version. If it is 0.5, uninstall it and install the latest version.
pip uninstall Kornia
Then
pip install Kornia