Skip to content

Commit

Permalink
Add minimal doc and a checkpoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
hangg7 committed Mar 25, 2023
1 parent 26a72a8 commit 77c8ac3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions examples/8_nerfacc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## NerfAcc visualization example

The majority of code is copy-pasted from the [nerfacc](https://github.com/KAIR-BAIR/nerfacc) repo

```
# Setup.
cd <PATH/TO/8_nerfacc>
pip install -r requirements.txt
git submodule update --init
# Train models with train_ngp_nerf*.py...
# python train_ngp_nerf.py --data_root <PATH/TO/BLENDER> --scene lego
# python train_ngp_nerf_prop.py --data_root <PATH/TO/360> --scene garden
# ... Or use provided checkpoints.
bash ../assets/download_nerfacc_checkpoints.sh
# Visualize using viser!
python visualize_ngp_nerf.py --data_root <PATH/TO/BLENDER> --scene lego
python visualize_ngp_nerf_prop.py --data_root <PATH/TO/360> --scene garden
```
2 changes: 1 addition & 1 deletion examples/assets/download_nerfacc_checkpoints.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set -e -x

gdown "https://drive.google.com/uc?id=1uRDvoS_l2Or8g8YDDPYV79K6_RfFYBeF"
gdown "https://drive.google.com/drive/folders/19PHrAmjWTfXUzFFcFpKUjO5Vwja6iIUz" --folder

0 comments on commit 77c8ac3

Please sign in to comment.