moving around files (#616)

moved around files
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-10-02 16:54:34 -07:00
1 parent 9d15ba6a2a
commit c20fed83bb
61 files changed
+226 -332

No files matched your search

+3 -3
View File
@@ -73,7 +73,7 @@ NeRFs are a volumetric representation encoded into a neural network. They are no
The associated NeRF fields can be instantiated with the following nerfstudio code (encoding described in next section):
```python
from nerfstudio.fields.nerf_field import NeRFField
from nerfstudio.fields.vanilla_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 nerfstudio.field_components.encoding import NeRFEncoding
from nerfstudio.field_components.encodings import NeRFEncoding
pos_enc = NeRFEncoding(
in_dim=3, num_frequencies=10, min_freq_exp=0.0, max_freq_exp=8.0, include_input=True
@@ -142,7 +142,7 @@ How we sample points along rays in space is an important design decision. Variou
Associated code:
```python
from nerfstudio.model_components.ray_sampler import PDFSampler, UniformSampler
from nerfstudio.model_components.ray_samplers import PDFSampler, UniformSampler
sampler_uniform = UniformSampler(num_samples=num_coarse_samples)
ray_samples_uniform = sampler_uniform(ray_bundle)
@@ -3,6 +3,6 @@
Encodings
===================
.. automodule:: nerfstudio.field_components.encoding
.. automodule:: nerfstudio.field_components.encodings
:members:
:show-inheritance:
@@ -1,8 +0,0 @@
.. _field_losses:
Field Losses
===================
.. automodule:: nerfstudio.field_components.field_losses
:members:
:show-inheritance:
@@ -10,6 +10,5 @@ TODO: High level description of field modules and how they connect together.
encodings
embeddings
field_heads
field_losses
mlp
spatial_distortions
+2 -2
View File
@@ -17,9 +17,9 @@ Instant NGP
:members:
:show-inheritance:
NeRF
Vanilla NeRF
----------------
.. automodule:: nerfstudio.fields.nerf_field
.. automodule:: nerfstudio.fields.vanilla_nerf_field
:members:
:show-inheritance:
@@ -1,12 +1,10 @@
.. _graph_modules:
Graph Modules
Model Components
===================
TODO: High level description of graph modules and how they are used.
.. toctree::
ray_sampler
ray_losses
losses
renderers
@@ -0,0 +1,8 @@
.. _losses:
Losses
===================
.. automodule:: nerfstudio.model_components.losses
:members:
:show-inheritance:
@@ -1,8 +0,0 @@
.. _ray_losses:
Ray Losses
===================
.. automodule:: nerfstudio.model_components.ray_losses
:members:
:show-inheritance:
@@ -3,6 +3,6 @@
Ray Sampler
===================
.. automodule:: nerfstudio.model_components.ray_sampler
.. automodule:: nerfstudio.model_components.ray_samplers
:members:
:show-inheritance:
+2 -2
View File
@@ -1,12 +1,12 @@
.. _graphs:
Graphs
Models
============
Base
----------------
.. automodule:: nerfstudio.models.base
.. automodule:: nerfstudio.models.base_model
:members:
:show-inheritance:
+8
View File
@@ -0,0 +1,8 @@
.. _colormaps:
Colormaps
----------------
.. automodule:: nerfstudio.utils.colormaps
:members:
:show-inheritance:
+1 -1
View File
@@ -7,5 +7,5 @@ Utils
colors
math
visualization
colormaps
tensor_dataclass
@@ -1,8 +0,0 @@
.. _visualization:
Visualization
----------------
.. automodule:: nerfstudio.utils.visualization
:members:
:show-inheritance:
@@ -120,7 +120,7 @@
"from nerfstudio.data.base import DataManager\n",
"from nerfstudio.data.structs import DatasetInputs\n",
"from nerfstudio.models.base import Model\n",
"from nerfstudio.pipelines.base import Pipeline\n",
"from nerfstudio.pipelines.base_pipeline import Pipeline\n",
"from nerfstudio.models.instant_ngp import NGPModel\n",
"from nerfstudio.cameras.rays import RayBundle"
]
@@ -292,7 +292,7 @@
"pprint.pprint(pipeline_config)\n",
"print(\"----------------------------------------------------\")\n",
"\n",
"# from nerfstudio.pipelines.base import setup_pipeline\n",
"# from nerfstudio.pipelines.base_pipeline import setup_pipeline\n",
"# pipeline = setup_pipeline(pipeline_config, device=\"cuda\")\n",
"pipeline = pipeline_config.setup()"
]