From 43ab3616f1a8d78f5cbace847dbe7946b8dac165 Mon Sep 17 00:00:00 2001 From: Congrong Xu <50019703+KevinXu02@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:29:26 -0700 Subject: [PATCH] Update installation guide for Windows (tcnn+gsplat) (#3212) * Update installation.md * Update installation.md --- docs/quickstart/installation.md | 48 +++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/docs/quickstart/installation.md b/docs/quickstart/installation.md index b7d2580ef..691454b58 100644 --- a/docs/quickstart/installation.md +++ b/docs/quickstart/installation.md @@ -14,6 +14,8 @@ Install [Git](https://git-scm.com/downloads). Install Visual Studio 2022. This must be done before installing CUDA. The necessary components are included in the `Desktop Development with C++` workflow (also called `C++ Build Tools` in the BuildTools edition). +Install Visual Studio Build Tools. If MSVC 143 does not work (usually will fail if your version > 17.10), you may also need to install MSVC 142 for Visual Studio 2019. Ensure your CUDA environment is set up properly. + Nerfstudio requires `python >= 3.8`. We recommend using conda to manage dependencies. Make sure to install [Conda](https://docs.conda.io/en/latest/miniconda.html) before proceeding. ::::: @@ -76,14 +78,56 @@ conda install -c "nvidia/label/cuda-11.7.1" cuda-toolkit ::: :::: -### tiny-cuda-nn +### Installing tinycudann/gsplat + +::::::{tab-set} +:::::{tab-item} Linux After pytorch and ninja, install the torch bindings for tiny-cuda-nn: - +@@ -84,6 +85,46 @@ After pytorch and ninja, install the torch bindings for tiny-cuda-nn: ```bash pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch ``` +::::: +:::::{tab-item} Windows + +Activate your Visual C++ environment: +Navigate to the directory where `vcvars64.bat` is located. This path might vary depending on your installation. A common path is: + +``` +C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build +``` + +Run the following command: +```bash +./vcvars64.bat +``` + +If the above command does not work, try activating an older version of VC: +```bash +./vcvarsall.bat x64 -vcvars_ver= +``` +Replace `` with the version of your VC++ compiler toolset. The version number should appear in the same folder. + +For example: +```bash +./vcvarsall.bat x64 -vcvars_ver=14.29 +``` + +Install `gsplat` from source: +```bash +pip install git+https://github.com/nerfstudio-project/gsplat.git +``` + +Install the torch bindings for tiny-cuda-nn: +```bash +pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch +``` + +::::: +:::::: + ## Installing nerfstudio **From pip**