NVIDIA Instant NeRF Installation & Creation Tutorial

NVIDIA Instant NeRF (Neural Radiance Fields) is an exciting new way to quickly create 3D objects and environments. Drone pilots can capture 2D photos and then quickly create detailed and accurate 3D NeRF. Let’s get started with my installation tutorial and NeRF creation tutorial.

The Drone Trainer

NVIDIA Instant NeRF Installation & Creation Tutorial

NVIDIA Instant NeRF (Neural Radiance Fields) is an exciting new way to quickly create 3D objects and environments. Drone pilots can capture 2D photos and then quickly create detailed and accurate 3D NeRF. Let’s get started with my installation tutorial and NeRF creation tutorial.

The Drone Trainer

NVIDIA Instant NeRF Installation & Creation Tutorial

NVIDIA Instant NeRF (Neural Radiance Fields) is an exciting new way to quickly create 3D objects and environments. Drone pilots can capture 2D photos and then quickly create detailed and accurate 3D NeRF. Let’s get started with my installation tutorial and NeRF creation tutorial.

The Drone Trainer

NVIDIA Instant NeRF Installation & Creation Tutorial

NVIDIA Instant NeRF (Neural Radiance Fields) is an exciting new way to quickly create 3D objects and environments. Drone pilots can capture 2D photos and then quickly create detailed and accurate 3D NeRF. Let’s get started with my installation tutorial and NeRF creation tutorial.

The Drone Trainer

NVIDIA Instant NeRF Installation Tutorial

The installation process can be troublesome, so I’ve tried to simplify things as much as possible with this tutorial. During the tutorial, I reference several websites and commands, which I have prepared in sequence for you below.

Links to Required Tools

https://visualstudio.microsoft.com/vs/community

https://developer.nvidia.com/cuda-toolkit-archive

https://www.lfd.uci.edu/~gohlke/pythonlibs/#openexr

https://www.anaconda.com/products/distribution

https://developer.nvidia.com/rtx/ray-tracing/optix

https://git-scm.com/download/win

https://github.com/colmap/colmap/releases/tag/3.7

https://www.lfd.uci.edu/~gohlke/pythonlibs/#openexr


Terminal / PowerShell

nvcc --version

Environment Variables

OptiX_INSTALL_DIR

Terminal / PowerShell

cd\
mkdir ngp
cd ngp

Git

cd\
cd ngp
git clone --recursive https://github.com/nvlabs/instant-ngp

Terminal / PowerShell

cd instant-ngp
python --version

Anaconda Prompt (anaconda3)

cd\
cd ngp
cd instant-ngp
conda install python=3.9
python --version

Developer Command Prompt

cd\
cd ngp
cd instant-ngp
cmake . -B build
cmake --build build --config RelWithDebInfo -j 16

Anaconda Prompt (anaconda3)

cd\
cd ngp
cd intant-ngp
conda create -n ngp python=3.9
conda activate ngp
pip install -r requirements.txt
pip install OpenEXR-1.3.2-cp39-cp39-win_amd64.whl

Anaconda Prompt (anaconda3)

cd/
cd ngp
cd instant-ngp
conda activate ngp
python scripts/colmap2nerf.py --colmap_matcher exhaustive --run_colmap --aabb_scale 16 --images data/<name>

Anaconda Prompt (anaconda3)

cd/
cd ngp
cd instant-ngp
conda activate ngp
C:\ngp\instant-ngp\build\testbed.exe --scene data/<name>

Anaconda Prompt (anaconda3)

cd/
cd ngp
cd instant-ngp
conda activate ngp
python scripts/run.py --mode nerf --scene data/<name> --load_snapshot data/<name>/base.msgpack --video_camera_path data/<name>/base_cam.json --video_n_seconds 15 --video_fps 30 --video_output <name>.mp4 --height 1080 --width 1920

Anaconda Prompt (anaconda3)

cd/
cd ngp
cd instant-ngp
conda activate ngp
conda install -c conda-forge ffmpeg
pip install tqdm scipy pillow opencv-python
python scripts/run.py --mode nerf --scene data/<name> --load_snapshot data/<name>/base.msgpack --video_camera_path data/<name>/base_cam.json --video_n_seconds 15 --video_fps 30 --video_output <name>.mp4 --height 720 --width 1280

Thanks for watching my NeRF installation tutorial!

I hope this was helpful and saved you a lot of time during the Instant NeRF installation process. I initially chipped away at it over a couple of days, but now you can complete this in about an hour via this installation and creation tutorial.

Now get out there and fly, and create something awesome! I’d love to see what you create, so shoot me a link or tag me on twitter!

3 Comments

    1. Hi Lemie, thank you for that!

      I didn’t realize that they weren’t showing up right. I’ve changed it now so that they show up properly, with a horizontal scroll bar for the longer lines.

      What do you think?

Leave a Reply

Your email address will not be published.

*