mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
1 parent
531f9d0c4c
commit
415a037880
6 files changed
+59
-56
No files matched your search
@@ -73,14 +73,17 @@ pip install -e .
|
|||||||
|
|
||||||
When developing a new method you don't always want to install your code as a package.
|
When developing a new method you don't always want to install your code as a package.
|
||||||
Instead, you may use the `NERFSTUDIO_METHOD_CONFIGS` environment variable to temporarily register your custom method.
|
Instead, you may use the `NERFSTUDIO_METHOD_CONFIGS` environment variable to temporarily register your custom method.
|
||||||
|
|
||||||
```
|
```
|
||||||
export NERFSTUDIO_METHOD_CONFIGS="my-method=my_method.my_config:MyMethod"
|
export NERFSTUDIO_METHOD_CONFIGS="my-method=my_method.my_config:MyMethod"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Registering custom dataparser with nerfstudio
|
## Registering custom dataparser with nerfstudio
|
||||||
|
|
||||||
We also support adding new dataparsers in a similar way. In order to extend the NeRFstudio and register a customized dataparser, you can register it with Nerfstudio as a `nerfstudio.dataparser_configs` entrypoint in the `pyproject.toml` file. Nerfstudio will automatically look for all registered dataparsers and will register them to be used by methods such as `ns-train`.
|
We also support adding new dataparsers in a similar way. In order to extend the NeRFstudio and register a customized dataparser, you can register it with Nerfstudio as a `nerfstudio.dataparser_configs` entrypoint in the `pyproject.toml` file. Nerfstudio will automatically look for all registered dataparsers and will register them to be used by methods such as `ns-train`.
|
||||||
|
|
||||||
You can declare the dataparser in the same config file:
|
You can declare the dataparser in the same config file:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
"""my_method/my_config.py"""
|
"""my_method/my_config.py"""
|
||||||
|
|
||||||
@@ -97,16 +100,19 @@ Then add the following lines in the `pyproject.toml` file, where the entrypoint
|
|||||||
[project]
|
[project]
|
||||||
name = "my_method"
|
name = "my_method"
|
||||||
|
|
||||||
# ...
|
```
|
||||||
|
|
||||||
[project.entry-points.'nerfstudio.dataparser_configs']
|
[project.entry-points.'nerfstudio.dataparser_configs']
|
||||||
custom-dataparser = 'my_method.my_config:MyDataparser'
|
custom-dataparser = 'my_method.my_config:MyDataparser'
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
finally run the following to register the dataparser.
|
finally run the following to register the dataparser.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running custom method
|
## Running custom method
|
||||||
@@ -114,7 +120,9 @@ pip install -e .
|
|||||||
After registering your method you should be able to run the method with,
|
After registering your method you should be able to run the method with,
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
ns-train my-method --data DATA_DIR
|
ns-train my-method --data DATA_DIR
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Adding to the _nerf.studio_ documentation
|
## Adding to the _nerf.studio_ documentation
|
||||||
|
|||||||
+15
-8
@@ -99,16 +99,23 @@ This documentation is organized into 3 parts:
|
|||||||
|
|
||||||
## Supported Methods
|
## Supported Methods
|
||||||
|
|
||||||
- [**Nerfacto**](https://github.com/nerfstudio-project/nerfstudio/blob/master/nerfstudio/models/nerfacto.py): our de facto NeRF method combines modules focused on quality with modules focused on faster rendering. Nerfstudio easily lets us experiment with the best of both worlds!
|
### Included Methods
|
||||||
- [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](https://jonbarron.info/mipnerf/): A Multiscale Representation for Anti-Aliasing Neural Radiance Fields
|
|
||||||
- [NerfW](https://nerf-w.github.io/): Neural Radiance Fields for Unconstrained Photo Collections
|
|
||||||
- [Semantic NeRF](https://shuaifengzhi.com/Semantic-NeRF/): In-Place Scene Labelling and Understanding with Implicit Scene Representation
|
|
||||||
|
|
||||||
We'll be constantly growing this list! So make sure to check back in to see our updates.
|
- [**Nerfacto**](nerfology/methods/nerfacto.md): Recommended method, integrates mutiple methods into one.
|
||||||
|
- [Instant-NGP](nerfology/methods/instant_ngp.md): Instant Neural Graphics Primitives with a Multiresolution Hash Encoding
|
||||||
|
- [NeRF](nerfology/methods/nerf.md): OG Nerual Radiance Fields
|
||||||
|
- [Mip-NeRF](nerfology/methods/mipnerf.md): A Multiscale Representation for Anti-Aliasing Neural Radiance Fields
|
||||||
|
- [TensoRF](nerfology/methods/tensorf.md): Tensorial Radiance Fields
|
||||||
|
|
||||||
**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!
|
(third_party_methods)=
|
||||||
|
|
||||||
|
### Third-party Methods
|
||||||
|
|
||||||
|
- [Instruct-NeRF2NeRF](nerfology/methods/in2n.md): Editing 3D Scenes with Instructions
|
||||||
|
- [LERF](nerfology/methods/lerf.md): Language Embedded Radiance Fields
|
||||||
|
- [Tetra-NeRF](nerfology/methods/tetranerf.md): Representing Neural Radiance Fields Using Tetrahedra
|
||||||
|
|
||||||
|
**Eager to contribute a method?** We'd love to see you use nerfstudio in implementing new (or even existing) methods! Please view our {ref}`guide<own_method_docs>` for more details about how to add to this list!
|
||||||
|
|
||||||
## Quicklinks
|
## Quicklinks
|
||||||
|
|
||||||
|
|||||||
@@ -26,14 +26,14 @@ The following methods are supported in nerfstudio:
|
|||||||
|
|
||||||
```{toctree}
|
```{toctree}
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
NeRF<nerf.md>
|
|
||||||
Mip-NeRF<mipnerf.md>
|
|
||||||
Nerfacto<nerfacto.md>
|
|
||||||
Instant-NGP<instant_ngp.md>
|
Instant-NGP<instant_ngp.md>
|
||||||
Instruct-NeRF2NeRF<in2n.md>
|
Instruct-NeRF2NeRF<in2n.md>
|
||||||
LERF<lerf.md>
|
LERF<lerf.md>
|
||||||
Semantic NeRF-W<semantic_nerfw.md>
|
Mip-NeRF<mipnerf.md>
|
||||||
Tetra-NeRF <tetranerf.md>
|
NeRF<nerf.md>
|
||||||
|
Nerfacto<nerfacto.md>
|
||||||
|
Tetra-NeRF<tetranerf.md>
|
||||||
|
TensoRF<tensorf.md>
|
||||||
```
|
```
|
||||||
|
|
||||||
(own_method_docs)=
|
(own_method_docs)=
|
||||||
@@ -42,7 +42,13 @@ The following methods are supported in nerfstudio:
|
|||||||
|
|
||||||
If you're a researcher looking to develop new NeRF-related methods, we hope that you find nerfstudio to be a useful tool. We've provided documentation about integrating with the nerfstudio codebase, which you can find [here](../../developer_guides/new_methods.md).
|
If you're a researcher looking to develop new NeRF-related methods, we hope that you find nerfstudio to be a useful tool. We've provided documentation about integrating with the nerfstudio codebase, which you can find [here](../../developer_guides/new_methods.md).
|
||||||
|
|
||||||
We also welcome additions to the list of methods above. To do this, simply create a pull request that adds a markdown file describing the model to the docs/nerfology/methods folder, and update the list in this file. For reference on the layout, you can check out the [Instruct-NeRF2NeRF](in2n) page. Please try to include the following information:
|
We also welcome additions to the list of methods above. To do this, simply create a pull request with the following changes,
|
||||||
|
|
||||||
|
1. Add a markdown file describing the model to the `docs/nerfology/methods` folder
|
||||||
|
2. Update the above list of implement methods in this file.
|
||||||
|
3. Add the method to the {ref}`this<third_party_methods>` list in `docs/index.md`.
|
||||||
|
|
||||||
|
For the method description, please refer to the [Instruct-NeRF2NeRF](in2n) page as an example of the layout. Please try to include the following information:
|
||||||
|
|
||||||
- Installation instructions
|
- Installation instructions
|
||||||
- Instructions for running the method
|
- Instructions for running the method
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
Paper Website
|
Paper Website
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
<video id="teaser" muted autoplay playsinline loop controls width="100%">
|
<video id="teaser" muted autoplay playsinline loop controls width="100%">
|
||||||
<source id="mp4" src="https://nvlabs.github.io/instant-ngp/assets/teaser.mp4" type="video/mp4">
|
<source id="mp4" src="https://nvlabs.github.io/instant-ngp/assets/teaser.mp4" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
@@ -48,7 +47,8 @@ The speedups at each level are multiplicative. With all their improvements, Inst
|
|||||||
```{image} imgs/ingp/hash_figure.png
|
```{image} imgs/ingp/hash_figure.png
|
||||||
:align: center
|
:align: center
|
||||||
```
|
```
|
||||||
One contribution of Instant-NGP is the multi-resolution hash encoding. In the traditional NeRF pipelines, input coordinates are mapped to a higher dimensional space using a positional encoding function, which is described [here](https://docs.nerf.studio/en/latest/nerfology/methods/nerf.html#positional-encoding). Instant-NGP proposes a trainable hash-based encoding. The idea is to map coordinates to trainable feature vectors which can be optimized in the standard flow of NeRF training.
|
|
||||||
|
One contribution of Instant-NGP is the multi-resolution hash encoding. In the traditional NeRF pipelines, input coordinates are mapped to a higher dimensional space using a positional encoding function, which is described [here](../model_components/visualize_encoders.ipynb). Instant-NGP proposes a trainable hash-based encoding. The idea is to map coordinates to trainable feature vectors which can be optimized in the standard flow of NeRF training.
|
||||||
|
|
||||||
The trainable features are F-dimensional vectors and are arranged into L grids which contain up to T vectors, where L represents the number of resolutions for features and T represents the number of feature vectors in each hash grid. The steps for the hash grid encoding, as shown in the figure provided by the authors, are as follows:
|
The trainable features are F-dimensional vectors and are arranged into L grids which contain up to T vectors, where L represents the number of resolutions for features and T represents the number of feature vectors in each hash grid. The steps for the hash grid encoding, as shown in the figure provided by the authors, are as follows:
|
||||||
|
|
||||||
@@ -64,6 +64,6 @@ An important note is that hash collisions are not explicitly handled. At each ha
|
|||||||
|
|
||||||
This encoding structure creates a tradeoff betweewn quality, memory, and performance. The main parameters which can be adjusted are the size of the hash table (T), the size of the feature vectors (F), and the number of resolutions (L).
|
This encoding structure creates a tradeoff betweewn quality, memory, and performance. The main parameters which can be adjusted are the size of the hash table (T), the size of the feature vectors (F), and the number of resolutions (L).
|
||||||
|
|
||||||
For other inputs such as the viewing direction, Instant-NGP encodes them using the traditional positional encoding from the original NeRF paper.
|
Instant-NGP encodes the vieweing direction using spherical harmonic encodings.
|
||||||
|
|
||||||
Our [`nerfacto`](https://docs.nerf.studio/en/latest/nerfology/methods/nerfacto.html) model uses both the fully-fused MLP and the hash encoder, which were inspired by Instant-NGP. Lastly, our implementation covers the major ideas from Instant-NGP, but it doesn't strictly follow every detail. Some known differences include learning rate schedulers, hyper-parameters for sampling, and how camera gradients are calculated if enabled.
|
Our [`nerfacto`](./nerfacto.md) model uses both the fully-fused MLP and the hash encoder, which were inspired by Instant-NGP. Lastly, our implementation covers the major ideas from Instant-NGP, but it doesn't strictly follow every detail. Some known differences include learning rate schedulers, hyper-parameters for sampling, and how camera gradients are calculated if enabled.
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
# Semantic NeRF-W
|
|
||||||
|
|
||||||
<h4>Semantic NeRF</h4>
|
|
||||||
|
|
||||||
```{button-link} https://shuaifengzhi.com/Semantic-NeRF/
|
|
||||||
:color: primary
|
|
||||||
:outline:
|
|
||||||
Paper Website
|
|
||||||
```
|
|
||||||
|
|
||||||
<h4>NeRF in the Wild</h4>
|
|
||||||
|
|
||||||
```{button-link} https://nerf-w.github.io/
|
|
||||||
:color: primary
|
|
||||||
:outline:
|
|
||||||
Paper Website
|
|
||||||
```
|
|
||||||
|
|
||||||
```{admonition} Coming Soon
|
|
||||||
The transient embeddings are still under development. Please stay tuned.
|
|
||||||
```
|
|
||||||
|
|
||||||
### Running Model
|
|
||||||
|
|
||||||
Download the sitcoms3D Dataset
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ns-download-data sitcoms3d
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ns-train semantic-nerfw
|
|
||||||
```
|
|
||||||
|
|
||||||
This model defaults to using the "sitcoms3D" dataset from the paper ["The One Where They Reconstructed 3D Humans and Environments in TV Shows"](https://ethanweber.me/sitcoms3D/).
|
|
||||||
|
|
||||||
<video src="https://ethanweber.me/sitcoms3D/media/trimmed_from_supplementary/sfm_and_nerf.mp4" width=300></video>
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# TensoRF
|
||||||
|
|
||||||
|
<h4>Tensorial Radiance Fields</h4>
|
||||||
|
|
||||||
|
```{button-link} https://apchenstu.github.io/TensoRF/
|
||||||
|
:color: primary
|
||||||
|
:outline:
|
||||||
|
Paper Website
|
||||||
|
```
|
||||||
|
|
||||||
|
### Running Model
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ns-train tensorf
|
||||||
|
```
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
🚧 Guide under construction 🚧
|
||||||
Reference in new issue
Block a user