All models

nerf_pytorch_NeRF

A fully-connected network that maps a 3D location and viewing direction to color and volume density.

3D and point clouds · 26 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (29 KB)

Open in a new tab

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.

At a glance

Family
NeRF
Parameters
595.8K
Operations
26
Framework
PyTorch
Recurrent
No
Published
ECCV 2020
Cited by
524 (as of 22 October 2026)
Authors
Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m7647
Graph hash
e4a3b6f7d5dc2ea23775a03915c8fb8a3f37fe750cad9a32c174e2ed6187bc2e
Skeleton hash
6957444967f3b4df17969ab57d8cbdb177566a669590e1313ae01c9bcc1961af
Architecture hash
659cc86c4f25e9a9d4f9f7f559ec1bf75904f2335a18d61e29d839498a9542b3
Diagram SHA-256
c014eb65503f10cfdd04965ca11ec4032c219025e27bca93107b68c7c0e5eee3
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

NeRF represents a scene as a fully-connected (non-convolutional) deep network whose input is a single continuous 5D coordinate, a spatial location and a viewing direction, and whose output is the volume density and view-dependent emitted radiance there. Views are synthesized by querying 5D coordinates along camera rays and projecting the output colors and densities into an image with classic volume rendering. Because volume rendering is differentiable, optimizing the representation requires only a set of images with known camera poses.

The encoded input location passes through 8 fully-connected ReLU layers of 256 channels, with a skip connection that concatenates the input to the fifth layer's activation. It then outputs the volume density and a 256-dimensional feature vector, which is concatenated with the encoded viewing direction and passed through one more ReLU layer with 128 channels before a final layer outputs the RGB radiance. Density is thus predicted from location only, while color depends on both location and viewing direction. A positional encoding of the inputs, the paper says, enables the MLP to represent higher frequency functions.

For rendering efficiency the paper optimizes two networks at once, one coarse and one fine, and uses the coarse network to allocate samples in the fine network. This model follows a PyTorch implementation whose code is based on the authors' Tensorflow implementation and has been tested to match it numerically.

Key idea. NeRF represents a scene as a fully-connected network mapping a 5D coordinate to volume density and view-dependent radiance, rendered into novel views with differentiable volume rendering.

  • nerf
  • neural radiance fields
  • neural radiance field
  • nerf mlp
  • nerf-pytorch
  • novel view synthesis
  • view synthesis
  • volume rendering
  • radiance field
  • positional encoding

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}