mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
Add exporting docs (#940)
This commit is contained in:
1 parent
4cf13857d0
commit
d4119d4086
3 files changed
+27
-4
No files matched your search
@@ -14,6 +14,7 @@ Here are the popular commands that we offer. If you've cloned the repo, you can
|
|||||||
| ns-train | Generate a NeRF | scripts/train.py |
|
| ns-train | Generate a NeRF | scripts/train.py |
|
||||||
| ns-eval | Run evaluation metrics for your Model | scripts/eval.py |
|
| ns-eval | Run evaluation metrics for your Model | scripts/eval.py |
|
||||||
| ns-render | Render out a video of your NeRF | scripts/render.py |
|
| ns-render | Render out a video of your NeRF | scripts/render.py |
|
||||||
|
| ns-export | Export a NeRF into other formats | scripts/exporter.py |
|
||||||
|
|
||||||
```{toctree}
|
```{toctree}
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
@@ -23,5 +24,6 @@ ns_process_data
|
|||||||
ns_download_data
|
ns_download_data
|
||||||
ns_train
|
ns_train
|
||||||
ns_render
|
ns_render
|
||||||
|
ns_export
|
||||||
ns_eval
|
ns_eval
|
||||||
```
|
```
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# ns-export
|
||||||
|
|
||||||
|
```{eval-rst}
|
||||||
|
.. argparse::
|
||||||
|
:module: scripts.exporter
|
||||||
|
:func: get_parser_fn
|
||||||
|
:prog: ns-export
|
||||||
|
:nodefault:
|
||||||
|
```
|
||||||
+16
-4
@@ -31,7 +31,7 @@ class Exporter:
|
|||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ExportPointCloud(Exporter):
|
class ExportPointCloud(Exporter):
|
||||||
"""Class to export meshes with the poisson algorithm."""
|
"""Export NeRF as a point cloud."""
|
||||||
|
|
||||||
num_points: int = 1000000
|
num_points: int = 1000000
|
||||||
"""Number of points to generate. May result in less if outlier removal is used."""
|
"""Number of points to generate. May result in less if outlier removal is used."""
|
||||||
@@ -84,7 +84,10 @@ class ExportPointCloud(Exporter):
|
|||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ExportTSDFMesh(Exporter):
|
class ExportTSDFMesh(Exporter):
|
||||||
"""Class to export meshes with the poisson algorithm."""
|
"""
|
||||||
|
NOT YET IMPLEMENTED
|
||||||
|
Export a mesh using TSDF processing.
|
||||||
|
"""
|
||||||
|
|
||||||
def main(self) -> None:
|
def main(self) -> None:
|
||||||
"""Export mesh"""
|
"""Export mesh"""
|
||||||
@@ -93,7 +96,10 @@ class ExportTSDFMesh(Exporter):
|
|||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ExportPoissonMesh(Exporter):
|
class ExportPoissonMesh(Exporter):
|
||||||
"""Exports a mesh using poisson mesh reconstruction."""
|
"""
|
||||||
|
NOT YET IMPLEMENTED
|
||||||
|
Export a mesh using poisson surface reconstruction.
|
||||||
|
"""
|
||||||
|
|
||||||
def main(self) -> None:
|
def main(self) -> None:
|
||||||
"""Export mesh"""
|
"""Export mesh"""
|
||||||
@@ -102,7 +108,10 @@ class ExportPoissonMesh(Exporter):
|
|||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ExportMarchingCubesMesh(Exporter):
|
class ExportMarchingCubesMesh(Exporter):
|
||||||
"""Exports a mesh using marching cubes."""
|
"""
|
||||||
|
NOT YET IMPLEMENTED
|
||||||
|
Export a mesh using marching cubes.
|
||||||
|
"""
|
||||||
|
|
||||||
def main(self) -> None:
|
def main(self) -> None:
|
||||||
"""Export mesh"""
|
"""Export mesh"""
|
||||||
@@ -125,3 +134,6 @@ def entrypoint():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
entrypoint()
|
entrypoint()
|
||||||
|
|
||||||
|
# For sphinx docs
|
||||||
|
get_parser_fn = lambda: tyro.extras.get_parser(Commands) # noqa
|
||||||
Reference in new issue
Block a user