Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows10 Installation Guide #14

Closed
zhanghongyong123456 opened this issue Dec 14, 2023 · 3 comments
Closed

Windows10 Installation Guide #14

zhanghongyong123456 opened this issue Dec 14, 2023 · 3 comments

Comments

@zhanghongyong123456
Copy link

zhanghongyong123456 commented Dec 14, 2023

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
image

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 依赖
image

#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
image
2.1 install node env: path\to\you\extern\viser\src\viser_client_autobuild.py
image
image
when i run ,i find this error(运行时发现这个错误):
02
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

image
image
image

2.2 build yarn file (构建yarn文件夹)

image
image

2.3 Source code modification(需要修改源码的地方)
path\to\you\GaussianEditor\extern\viser\src\viser_client_autobuild.py replace this script

_client_autobuild.txt

  1. run webui.py, It's OK
@buaacyw
Copy link
Owner

buaacyw commented Dec 20, 2023

Thanks a lot for your guide!

@buaacyw buaacyw closed this as completed Dec 29, 2023
@GluttonK
Copy link

感谢实践经验的分享

@TonyDua
Copy link

TonyDua commented May 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@TonyDua @zhanghongyong123456 @buaacyw @GluttonK and others