[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!