[docs] model to method naming (#652)

* renamed model to methods

* name change
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-10-04 11:53:16 -07:00
1 parent 305e0a9dab
commit 0695879673
32 files changed
+113 -190

No files matched your search

+34 -29
View File
@@ -5,7 +5,7 @@ and modify all parameters from a typed CLI supported by [dcargs](https://pypi.or
### Base components
All basic, reusable config components can be found in `nerfstudio/configs/base_config.py`. The `Config` class at the bottom of the file is the upper-most config level and stores all of the sub-configs needed to get started with training.
All basic, reusable config components can be found in `nerfstudio/configs/base_config.py`. The `Config` class at the bottom of the file is the upper-most config level and stores all of the sub-configs needed to get started with training.
You can browse this file and read the attribute annotations to see what configs are available and what each specifies.
@@ -19,7 +19,7 @@ Let's say you want to create a new model called Nerfacto. You can create a new `
:class: info
You can then enable type/auto complete on the config passed into the `NerfactoModel` by specifying the config type below the class definition.
:::
:::
```python
"""nerfstudio/models/nerfacto.py"""
@@ -48,18 +48,18 @@ The same logic applies to all other custom configs you want to create. For more
:class: seealso
For how to create the actual data and model classes that follow the configs, please refer to [pipeline overview](pipelines/index.rst).
:::
:::
### Updating model configs
### Updating method configs
If you are interested in creating a new model config, you will have to modify the `nerfstudio/configs/model_configs.py` file. This is where all of the configs for implemented models are housed. You can browse this file to see how we construct various existing models by modifying the `Config` class and specifying new or modified default components.
If you are interested in creating a new model config, you will have to modify the `nerfstudio/configs/method_configs.py` file. This is where all of the configs for implemented models are housed. You can browse this file to see how we construct various existing models by modifying the `Config` class and specifying new or modified default components.
For instance, say we created a brand new model called Nerfacto that has an associated `NerfactoModelConfig`, we can specify the following new Config by overriding the pipeline and optimizers attributes appropriately.
```python
"""nerfstudio/configs/model_configs.py"""
"""nerfstudio/configs/method_configs.py"""
model_configs["nerfacto"] = Config(
method_configs["nerfacto"] = Config(
method_name="nerfacto",
pipeline=VanillaPipelineConfig(
model=NerfactoModelConfig(eval_num_rays_per_chunk=1 << 14),
@@ -77,39 +77,44 @@ model_configs["nerfacto"] = Config(
)
```
After placing your new `Config` class into the `model_configs` dictionary, you can provide a description for the model by updating the `descriptions` dictionary at the top of the file.
After placing your new `Config` class into the `method_configs` dictionary, you can provide a description for the model by updating the `descriptions` dictionary at the top of the file.
### Modifying from CLI
Often times, you just want to play with the parameters of an existing model without having to specify a new one. You can easily do so via CLI. Below, we showcase some useful CLI commands.
- List out all existing models
```bash
ns-train --help
```
- List out all exist configurable parameters for `{MODEL_NAME}`
```bash
ns-train {MODEL_NAME} --help
```
```bash
ns-train --help
```
- List out all exist configurable parameters for `{METHOD_NAME}`
```bash
ns-train {METHOD_NAME} --help
```
- Change the train/eval dataset
```bash
ns-train {MODEL_NAME} --data DATA_PATH
```
```bash
ns-train {METHOD_NAME} --data DATA_PATH
```
- Enable the viewer
```bash
ns-train {MODEL_NAME} --vis viewer
```
```bash
ns-train {METHOD_NAME} --vis viewer
```
- See what options are available for the specified dataparser (e.g. blender-data)
```bash
ns-train {MODEL_NAME} {DATA_PARSER} --help
```
```bash
ns-train {METHOD_NAME} {DATA_PARSER} --help
```
- Run with changed dataparser attributes and viewer on
```bash
# NOTE: the dataparser and associated configurations go at the end of the command
ns-train {MODEL_NAME} --vis viewer {DATA_PARSER} --scale-factor 0.5
```
```bash
# NOTE: the dataparser and associated configurations go at the end of the command
ns-train {METHOD_NAME} --vis viewer {DATA_PARSER} --scale-factor 0.5
```
+6 -6
View File
@@ -34,11 +34,11 @@ In the following sections, we describe the Pipeline components and look at their
.. toctree::
:maxdepth: 1
dataparsers.md
datamanagers.md
models.md
fields.md
pipelines.md
dataparsers
datamanagers
models
fields
pipelines
Implementing NeRF Papers
@@ -47,4 +47,4 @@ Let's say you want to create a custom Pipeline that has a custom DataManager and
.. toctree::
:maxdepth: 1
creating_new_methods.ipynb
creating_new_methods
+1 -1
View File
@@ -14,7 +14,7 @@
## What is a Model?
A Model is probably what you think of when you think of a NeRF paper. Often the phrases "Model" and "Method" are used interchangeably and for this reason, our [implemented models](/nerfology/models/index) are actually methods. However, most of the implementations details of a method happen in the model code, as you'll see in this section.
A Model is probably what you think of when you think of a NeRF paper. Often the phrases "Model" and "Method" are used interchangeably and for this reason, our implemented [Methods](/nerfology/methods/index) typically only change the model code.
A model, at a high level, takes in regions of space described by RayBundle objects, samples points along these rays, and returns rendered values for each ray. So, let's take a look at what it takes to create your own model!
+4 -5
View File
@@ -48,9 +48,8 @@ Contributing<reference/contributing>
:hidden:
:caption: NeRFology
nerfology/models/index
nerfology/methods/index
nerfology/model_components/index
nerfology/dataloader_components/index
```
```{toctree}
@@ -78,9 +77,9 @@ This documentation is organized into 3 parts:
- **🤓 Developer Guides**: describes all of the components and additional support we provide to help you construct, train, and debug your NeRFs. Learn how to set up a model pipeline, use the viewer, create a custom config, and more.
- **📚 Reference**: describes each class and function. Develop a better understanding of the core of our technology and terminology. This section includes descriptions of each module and component in the codebase.
## Supported Models
## Supported Methods
- **Nerfacto**: our defacto NeRF model combines modules focused on quality with modules focused on faster rendering. Nerfstudio easily lets us experiment with the best of both worlds!
- [**Nerfacto**](https://github.com/nerfstudio-project/nerfstudio/blob/master/nerfstudio/models/nerfacto.py): our defacto NeRF method combines modules focused on quality with modules focused on faster rendering. Nerfstudio easily lets us experiment with the best of both worlds!
- [NeRF](https://www.matthewtancik.com/nerf): Representing Scenes as Neural Radiance Fields for View Synthesis
- [Instant NGP](https://nvlabs.github.io/instant-ngp/): Instant Neural Graphics Primitives with a Multiresolution Hash Encoding
- [Mipnerf-360](https://jonbarron.info/mipnerf360/): Unbounded Anti-Aliased Neural Radiance Fields
@@ -91,7 +90,7 @@ This documentation is organized into 3 parts:
We'll be constantly growing this list! So make sure to check back in to see our updates.
**Eager to contribute?** We'd love to see you use nerfstudio in implementing new (or even existing) models! Feel free to contact us directly or view our [Contributor's Guide](reference/contributing) to see how you can get your model on this list!
**Eager to contribute?** We'd love to see you use nerfstudio in implementing new (or even existing) methods! Feel free to contact us directly or view our [Contributor's Guide](reference/contributing) to see how you can get your model on this list!
## Quicklinks
@@ -1,45 +0,0 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Incrementally Add Cameras"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.13 ('nerfactory')",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "e691f033e0f2f1b9c0a11e7e81375a1e27aec87a71fd1b1eaa545f7a5e61b3f6"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
@@ -1,9 +0,0 @@
# Dataloader Components
Here we show how flexible our Dataloader can be with a series of dataloading guides.
```{toctree}
:maxdepth: 1
Pixel Sampling Stategies<pixel_sampling_strategies.ipynb>
Incrementally Add Cameras<incrementally_add_cameras.ipynb>
```
@@ -1,37 +0,0 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Pixel Sampling Strategies"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.13 ('nerfactory')",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.8.13"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "e691f033e0f2f1b9c0a11e7e81375a1e27aec87a71fd1b1eaa545f7a5e61b3f6"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

+30
View File
@@ -0,0 +1,30 @@
# 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.
## Running a method
It's easy!
```bash
ns-train METHOD_NAME
```
To list the available methods run:
```bash
ns-train --help
```
## Guides
In addition to their implementations, we have provided guides that walk through each of these method.
```{toctree}
:maxdepth: 1
NeRF<nerf.md>
Mip-NeRF<mipnerf.md>
Nerfacto<nerfacto.md>
Instant-NGP<instant_ngp.md>
Semantic NeRF-W<semantic_nerfw.md>
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
+25
View File
@@ -0,0 +1,25 @@
# Nerfacto
<h4>Our *defacto* method.</h4>
### Running the Method
```bash
ns-train nerfacto --help
```
## Method
### Overview
```{admonition} Note
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/).
```
Most of the code for this method takes place in the `NerfactoModel` class.
```{button-link} https://www.matthewtancik.com/nerf
:color: primary
:outline:
See the code!
```
-30
View File
@@ -1,30 +0,0 @@
# Models
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
It's easy!
```bash
ns-train MODEL_NAME
```
To list the available models run:
```bash
ns-train --help
```
## Guides
In addition to their implementations, we have provided guides that walk through each of these method.
```{toctree}
:maxdepth: 1
NeRF<nerf>
Mip-NeRF<mipnerf>
Mip-NeRF 360<mipnerf_360>
Instant-NGP<instant_ngp>
Semantic NeRF-W<semantic_nerfw>
```
-15
View File
@@ -1,15 +0,0 @@
# Mip-NeRF 360
<h4>Unbounded Anti-Aliased Neural Radiance Fields</h4>
```{button-link} https://jonbarron.info/mipnerf360/
:color: primary
:outline:
Paper Website
```
### Running Model
```bash
python scripts/train.py --config-name=graph_mipnerf_360.yaml
```