版本:0.2.2
官网安装教程
1.前提conda已经安装好了,如果没有用过conda安装环境,得先了解conda;创建nerfstudio安装环境
conda create --name nerfstudio -y python=3.8
conda activate nerfstudio
python -m pip install --upgrade pip
2.安装版本对应的torch和CUDA;一定要看你自己cuda版本对应的torch:
pip install torch==1.13.1 torchvision functorch --extra-index-url https://download.pytorch.org/whl/cu117
3.安装 tinycudann
pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
会出现下面这个错误;
Failed to build tinycudann
ERROR: Could not build wheels for tinycudann, which is required to install pyproject.toml-based projects pytorch官网
解决方案:
git clone https://github.com/NVlabs/tiny-cuda-nn.git
cd tiny-cuda-nn
cmake . -B build
cmake --build build --config RelWithDebInfo -j
git checkout 466aa1c
cd bindings/torch
python setup.py install
安装成功显示:
4.安装nerfstudio
git clone https://github.com/nerfstudio-project/nerfstudio.git
cd nerfstudio
pip install --upgrade pip setuptools
pip install -e .