mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
adding viewer video + other doc related updates (#688)
This commit is contained in:
1 parent
9cc50132c5
commit
917d02c695
13 files changed
+142
-50
No files matched your search
@@ -1,13 +1,17 @@
|
||||
# Methods
|
||||
|
||||
We provide a set of pre implemented nerfstudio methods. One of the goals of nerfstudio is to modularize the various NeRF techniques as much as possible. As a result, many of the techniques from these pre-implemented methods can be mixed.
|
||||
We provide a set of pre implemented nerfstudio methods.
|
||||
|
||||
**The goal of nerfstudio is to modularize the various NeRF techniques as much as possible.**
|
||||
|
||||
As a result, many of the techniques from these pre-implemented methods can be mixed 🎨.
|
||||
|
||||
## Running a method
|
||||
|
||||
It's easy!
|
||||
|
||||
```bash
|
||||
ns-train METHOD_NAME
|
||||
ns-train {METHOD_NAME}
|
||||
```
|
||||
|
||||
To list the available methods run:
|
||||
|
||||
@@ -13,3 +13,8 @@ Paper Website
|
||||
```bash
|
||||
ns-train instant-ngp
|
||||
```
|
||||
|
||||
|
||||
```{admonition} Coming Soon
|
||||
This guide is coming soon.
|
||||
```
|
||||
@@ -8,17 +8,17 @@
|
||||
Paper Website
|
||||
```
|
||||
|
||||
### Running the Model
|
||||
### Running the model
|
||||
|
||||
```bash
|
||||
ns-train vanilla-nerf
|
||||
```
|
||||
|
||||
## Method
|
||||
## Method overview
|
||||
|
||||
### Overview
|
||||
If you have arrived to this site, it is likely that you have at least heard of NeRFs. This page will discuss the original NeRF paper, _"NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis"_ by Mildenhall, Srinivasan, Tancik et al. (2020).
|
||||
|
||||
If you have arrived to this site, it is likely that you have at least heard of NeRFs. This page will discuss the original NeRF paper, _"NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis"_ by Mildenhall, Srinivasan, Tancik et al. (2020). For most tasks, using the original NeRF model is likely not a good choice and hence we provide implementations of various other NeRF related models. It is however useful to understand how NeRF's work as most follow ups follow a similar structure.
|
||||
For most tasks, using the original NeRF model is likely not a good choice and hence we provide implementations of various other NeRF related models. It is however useful to understand how NeRF's work as most follow ups follow a similar structure.
|
||||
|
||||
The goal is to optimize a volumetric representation of a scene that can be rendered from novel viewpoints. This representation is optimized from a set of images and associated camera poses.
|
||||
|
||||
@@ -44,7 +44,7 @@ If any of the following assumptions are broken, the reconstructions may fail com
|
||||
|
||||
Here is an overview pipeline for NeRF, we will walk through each component in this guide.
|
||||
|
||||
### Field Representation
|
||||
### Field representation
|
||||
|
||||
```{image} imgs/models_nerf-pipeline-field-light.png
|
||||
:align: center
|
||||
@@ -56,7 +56,7 @@ Here is an overview pipeline for NeRF, we will walk through each component in th
|
||||
:class: only-dark
|
||||
```
|
||||
|
||||
NeRFs are a volumetric representation encoded into a neural network. They are not 3D meshes and they are not voxels. For each point in space the NeRF represents a view dependent radiance. More concretely each point has a density which describes how transparent or opaque a point in space is. They also have a view dependent color that changes depending on the angle the point is viewed.
|
||||
NeRFs are a volumetric representation encoded into a neural network. They are not 3D meshes and they are not voxels. **For each point in space the NeRF represents a view dependent radiance.** More concretely each point has a density which describes how transparent or opaque a point in space is. They also have a view dependent color that changes depending on the angle the point is viewed.
|
||||
|
||||
```{image} imgs/models_nerf-field-light.png
|
||||
:align: center
|
||||
@@ -79,7 +79,7 @@ field_coarse = NeRFField(position_encoding=pos_enc, direction_encoding=dir_enc)
|
||||
field_fine = NeRFField(position_encoding=pos_enc, direction_encoding=dir_enc)
|
||||
```
|
||||
|
||||
#### Positional Encoding
|
||||
#### Positional encoding
|
||||
|
||||
An extra trick is necessary to make the neural network expressive enough to represent fine details in the scene. The input coordinates $(x,y,z,\theta,\phi)$ need to be encoded to a higher dimensional space prior to being input into the network. You can learn more about encodings [here](../model_components/visualize_encoders.ipynb).
|
||||
|
||||
@@ -106,7 +106,9 @@ dir_enc = NeRFEncoding(
|
||||
:class: only-dark
|
||||
```
|
||||
|
||||
Now that we have a representation of space, we need some way to render new images of it. To accomplish this, we are going to _project_ a ray from the target pixel and evaluate points along that ray. We then rely on classic volumetric rendering techniques [[Kajiya, 1984]](https://dl.acm.org/doi/abs/10.1145/964965.808594) to composite the points into a predicted color. This compositing is similar to what happens in tools like Photoshop when you layer multiple objects of varying opacity on top of each other. The only difference is that NeRF takes into account the differences in spacing between points.
|
||||
Now that we have a representation of space, we need some way to render new images of it. To accomplish this, we are going to _project_ a ray from the target pixel and evaluate points along that ray. We then rely on classic volumetric rendering techniques [[Kajiya, 1984]](https://dl.acm.org/doi/abs/10.1145/964965.808594) to composite the points into a predicted color.
|
||||
|
||||
This compositing is similar to what happens in tools like Photoshop when you layer multiple objects of varying opacity on top of each other. The only difference is that NeRF takes into account the differences in spacing between points.
|
||||
|
||||
Rending RGB images is not the only type of output render supported. It is possible to render other output types such as depth and semantics. Additional renderers can be found [Here](../../reference/api/model_components/renderers.rst).
|
||||
|
||||
@@ -137,7 +139,11 @@ rgb = renderer_rgb(
|
||||
:class: only-dark
|
||||
```
|
||||
|
||||
How we sample points along rays in space is an important design decision. Various sampling strategies can be used which are discussed in detail in the [Ray Samplers](../model_components/visualize_samplers.ipynb) guide. In NeRF we take advantage of a hierarchical sampling scheme that first uses a _uniform sampler_ and is followed by a _PDF sampler_. The uniform sampler distributes samples evenly between a predefined distance range from the camera. These are then used to compute an initial render of the scene. The renderer optionally produces _weights_ for each sample that correlate with how important each sample was to the final renderer. The PDF sampler uses these _weights_ to generate a new set of samples that are biased to regions of higher weight. In practice, these regions are near the surface of the object.
|
||||
How we sample points along rays in space is an important design decision. Various sampling strategies can be used which are discussed in detail in the [Ray Samplers](../model_components/visualize_samplers.ipynb) guide. In NeRF we take advantage of a hierarchical sampling scheme that first uses a _uniform sampler_ and is followed by a _PDF sampler_.
|
||||
|
||||
The uniform sampler distributes samples evenly between a predefined distance range from the camera. These are then used to compute an initial render of the scene. The renderer optionally produces _weights_ for each sample that correlate with how important each sample was to the final renderer.
|
||||
|
||||
The PDF sampler uses these _weights_ to generate a new set of samples that are biased to regions of higher weight. In practice, these regions are near the surface of the object.
|
||||
|
||||
Associated code:
|
||||
|
||||
@@ -163,7 +169,7 @@ For all sampling, we use _Stratified_ samples during optimization and unmodified
|
||||
|
||||
## Benchmarks
|
||||
|
||||
##### Blender Synthetic
|
||||
##### Blender synthetic
|
||||
|
||||
| Implementation | Mic | Ficus | Chair | Hotdog | Materials | Drums | Ship | Lego | Average |
|
||||
| --------------------------------------------------------------------------------- | :-------: | --------- | :-------: | --------- | --------- | --------- | --------- | --------- | --------- |
|
||||
|
||||
@@ -12,7 +12,7 @@ ns-train nerfacto --help
|
||||
|
||||
### Overview
|
||||
|
||||
```{admonition} Note
|
||||
```{admonition} Coming Soon
|
||||
This guide is coming soon. This is our flagship method that we encourage creators to use when making videos. It uses techniques from [Mip-NeRF 360](https://jonbarron.info/mipnerf360/) and [Instant-NGP](https://nvlabs.github.io/instant-ngp/).
|
||||
```
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ Paper Website
|
||||
Paper Website
|
||||
```
|
||||
|
||||
```{admonition} Notice
|
||||
```{admonition} Coming Soon
|
||||
The transient embeddings are still under development. Please stay tuned.
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user