# 1、老师的nerf仓库.....
1、克隆仓库: git clone https://github.com/yenchenlin/nerf-pytorch # 要求pytorch>1.80
2、cd nerf-pytorch 3、pip install -r requirement.txt
# pytoch官网地址::: (有一个坑,要先装,pip install -r requirement.txt ,再装pytorch .........)
# torch 1.8.1 cuda 11.1
pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html # 用这个!!!
# torch 2.0 cuda 11.8
# pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 #### 选择这一个....
# 2、下载数据集.....
1、下载命令.....(Windows可能不适用,直接到下面的地址下载....)
bash download_example_data.sh
2、下载地址.....再进行解压....
# 1、压缩包地址.... (挂梯子....)
http://cseweb.ucsd.edu/~viscomp/projects/LF/papers/ECCV20/nerf/tiny_nerf_data.npz
# 2、解压....
cd data
### 地址........
http://cseweb.ucsd.edu/~viscomp/projects/LF/papers/ECCV20/nerf/nerf_example_data.zip
## 解压命令...
unzip nerf_example_data.zip
### 3、重装高版本的pytorch,要求>1.8.0
pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html # 用这个!!!
# 3、训练测试 nerf.....
python run_nerf.py --config configs/lego.txt # 根据不同的数据集、更改lego.txt的名字即可!!!...