
nerf_pytorch_NeRF
3D and point clouds26 ops595.8K params
The original NeRF MLP: position and view direction in, color and density out, rendered by ray marching.
3D and point clouds · 44 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
This is the original NeRF network, the vanilla MLP that NerfAcc ships as its example radiance field: it takes a 3D position and a viewing direction and returns a color and a volume density. A neural radiance field represents a scene as a fully-connected, non-convolutional deep network whose input is a single continuous 5D coordinate, spatial location plus viewing direction, and whose output is the volume density and view-dependent emitted radiance there. Images are synthesized by querying 5D coordinates along camera rays and projecting the colors and densities into an image with classic volume rendering. Since volume rendering is differentiable, the only input needed is a set of images with known camera poses.
The network first processes the 3D coordinate with 8 fully-connected layers of 256 channels with ReLU activations, outputting the density and a 256-dimensional feature vector. That feature is concatenated with the viewing direction and passed through one more 128-channel layer that outputs the view-dependent RGB color. Two additions make the basic idea work on complex scenes: a positional encoding of the input coordinates so the MLP can represent higher frequency functions, and a hierarchical sampling procedure that reduces the number of queries per ray.
NerfAcc, the toolbox this copy comes from, is a Python library for plugging advanced sampling methods into NeRF-style methods; its paper reports 1.5x to 20x faster training for several NeRF methods.
Key idea. A scene can be stored as an MLP mapping a 5D position and view direction to density and color, fit from posed images through differentiable volume rendering.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{mildenhall2020nerfrepresentingscenesneural,
title={NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis},
author={Ben Mildenhall and Pratul P. Srinivasan and Matthew Tancik and Jonathan T. Barron and Ravi Ramamoorthi and Ren Ng},
year={2020},
eprint={2003.08934},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2003.08934},
}