Rename to nerfstudio (#589)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-09-29 23:42:15 -07:00
1 parent fae01d3ca6
commit 1f83ad03db
210 files changed
+3400 -3413

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# Models
We provide a set of pre implemented nerfactory models. One of the goals of nerfactory is to modularize the various NeRF techniques as much as possible. As a result, many of the techniques from these pre-implemented models can be mixed.
We provide a set of pre implemented nerfstudio models. 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 models can be mixed.
## Running a model
+7 -7
View File
@@ -70,10 +70,10 @@ NeRFs are a volumetric representation encoded into a neural network. They are no
:width: 400
```
The associated NeRF fields can be instantiated with the following Nerfactory code (encoding described in next section):
The associated NeRF fields can be instantiated with the following nerfstudio code (encoding described in next section):
```python
from nerfactory.fields.nerf_field import NeRFField
from nerfstudio.fields.nerf_field import NeRFField
field_coarse = NeRFField(position_encoding=pos_enc, direction_encoding=dir_enc)
field_fine = NeRFField(position_encoding=pos_enc, direction_encoding=dir_enc)
@@ -84,7 +84,7 @@ field_fine = NeRFField(position_encoding=pos_enc, direction_encoding=dir_enc)
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).
```python
from nerfactory.fields.modules.encoding import NeRFEncoding
from nerfstudio.fields.modules.encoding import NeRFEncoding
pos_enc = NeRFEncoding(
in_dim=3, num_frequencies=10, min_freq_exp=0.0, max_freq_exp=8.0, include_input=True
@@ -110,10 +110,10 @@ Now that we have a representation of space, we need some way to render new image
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/renderers/index.rst).
Associated Nerfactory code:
Associated nerfstudio code:
```python
from nerfactory.renderers.renderers import RGBRenderer
from nerfstudio.renderers.renderers import RGBRenderer
renderer_rgb = RGBRenderer(background_color=colors.WHITE)
# Ray samples discussed in the next section
@@ -142,7 +142,7 @@ How we sample points along rays in space is an important design decision. Variou
Associated code:
```python
from nerfactory.models.modules.ray_sampler import PDFSampler, UniformSampler
from nerfstudio.models.modules.ray_sampler import PDFSampler, UniformSampler
sampler_uniform = UniformSampler(num_samples=num_coarse_samples)
ray_samples_uniform = sampler_uniform(ray_bundle)
@@ -167,6 +167,6 @@ For all sampling, we use _Stratified_ samples during optimization and unmodified
| Implementation | Mic | Ficus | Chair | Hotdog | Materials | Drums | Ship | Lego | Average |
| --------------------------------------------------------------------------------- | :-------: | --------- | :-------: | --------- | --------- | --------- | --------- | --------- | --------- |
| nerfactory | 33.76 | **31.98** | **34.35** | 36.57 | **31.00** | **25.11** | 29.87 | **34.46** | **32.14** |
| nerfstudio | 33.76 | **31.98** | **34.35** | 36.57 | **31.00** | **25.11** | 29.87 | **34.46** | **32.14** |
| [TF NeRF](https://github.com/bmild/nerf) | 32.91 | 30.13 | 33.00 | 36.18 | 29.62 | 25.01 | 28.65 | 32.54 | 31.04 |
| [JaxNeRF](https://github.com/google-research/google-research/tree/master/jaxnerf) | **34.53** | 30.43 | 34.08 | **36.92** | 29.91 | 25.03 | **29.36** | 33.28 | 31.69 |