[安装环境 | nerfstudio]

版本: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

安装成功显示:tinycudann
4.安装nerfstudio

git clone https://github.com/nerfstudio-project/nerfstudio.git
cd nerfstudio
pip install --upgrade pip setuptools
pip install -e .
  • 6
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值