mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 06:49:13 +08:00
Update cli docs (#674)
This commit is contained in:
1 parent
a6ad3a40c4
commit
e01206f728
7 files changed
+67
-17
No files matched your search
@@ -0,0 +1,25 @@
|
|||||||
|
# CLI
|
||||||
|
|
||||||
|
We provide a command line interface for training your own NeRFs (no coding necessary). You can learn more about each command by using the `--help` argument.
|
||||||
|
|
||||||
|
## Commands
|
||||||
|
|
||||||
|
| Command | Description |
|
||||||
|
| ---------------- | ------------------------------------------------ |
|
||||||
|
| ns_process_data | Generate a dataset from your own photos or video |
|
||||||
|
| ns_download_data | Download existing captures |
|
||||||
|
| ns_train | Generate a NeRF |
|
||||||
|
| ns_render | Render out a video of your NeRF |
|
||||||
|
| ns_eval | Run evaluation metrics for your Model |
|
||||||
|
| ns_install_cli | Install tab completion for all scripts |
|
||||||
|
|
||||||
|
```{toctree}
|
||||||
|
:maxdepth: 1
|
||||||
|
:hidden:
|
||||||
|
|
||||||
|
ns_process_data
|
||||||
|
ns_download_data
|
||||||
|
ns_train
|
||||||
|
ns_render
|
||||||
|
ns_eval
|
||||||
|
```
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
.. _cli:
|
|
||||||
|
|
||||||
CLI
|
|
||||||
============
|
|
||||||
|
|
||||||
.. toctree::
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
ns_process_data
|
|
||||||
ns_download_data
|
|
||||||
ns_render
|
|
||||||
ns_eval
|
|
||||||
@@ -4,6 +4,6 @@
|
|||||||
.. argparse::
|
.. argparse::
|
||||||
:module: scripts.downloads.download_data
|
:module: scripts.downloads.download_data
|
||||||
:func: get_parser_fn
|
:func: get_parser_fn
|
||||||
:prog: ns-process-data
|
:prog: ns-download-data
|
||||||
:nodefault:
|
:nodefault:
|
||||||
```
|
```
|
||||||
@@ -4,6 +4,6 @@
|
|||||||
.. argparse::
|
.. argparse::
|
||||||
:module: scripts.eval
|
:module: scripts.eval
|
||||||
:func: get_parser_fn
|
:func: get_parser_fn
|
||||||
:prog: ns-process-data
|
:prog: ns-eval
|
||||||
:nodefault:
|
:nodefault:
|
||||||
```
|
```
|
||||||
@@ -9,6 +9,6 @@ Make sure to have [FFmpeg](https://ffmpeg.org/download.html) installed.
|
|||||||
.. argparse::
|
.. argparse::
|
||||||
:module: scripts.render
|
:module: scripts.render
|
||||||
:func: get_parser_fn
|
:func: get_parser_fn
|
||||||
:prog: ns-process-data
|
:prog: ns-render
|
||||||
:nodefault:
|
:nodefault:
|
||||||
```
|
```
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
# ns-train
|
||||||
|
|
||||||
|
Primary interface for training a NeRF model. `--help` is your friend when navigating command arguments. We also recommend installing the tab completion `ns-install-cli`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
usage: ns-train {method} [method args] {dataparser} [dataparser args]
|
||||||
|
```
|
||||||
|
|
||||||
|
If you are using a nerfstudio data set, the minimal command is:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ns-train nerfacto --data YOUR_DATA
|
||||||
|
```
|
||||||
|
|
||||||
|
To learn about the available methods:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ns-train --help
|
||||||
|
```
|
||||||
|
|
||||||
|
To learn about a methods parameters:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ns-train {method} --help
|
||||||
|
```
|
||||||
|
|
||||||
|
By default the nerfstudio dataparser is used. If you would like to use a different dataparser it can be specified after all of the method arguments. For a list of dataparser options:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ns-train {method} {dataparser} --help
|
||||||
|
```
|
||||||
@@ -55,7 +55,6 @@ def grab_file_id(zip_url: str) -> str:
|
|||||||
return s.split("/")[0]
|
return s.split("/")[0]
|
||||||
|
|
||||||
|
|
||||||
# https://drive.google.com/drive/folders/1Wh66z3qQTZ8o2MwPPwYOrdwQtXUEQFyq?usp=sharing
|
|
||||||
nerfstudio_file_ids = {
|
nerfstudio_file_ids = {
|
||||||
"bunny": grab_file_id("https://drive.google.com/file/d/1oVytSgd1gQclF0CybJ6JdXDmaqKOx7Wg/view?usp=sharing"),
|
"bunny": grab_file_id("https://drive.google.com/file/d/1oVytSgd1gQclF0CybJ6JdXDmaqKOx7Wg/view?usp=sharing"),
|
||||||
"bww_entrance": grab_file_id("https://drive.google.com/file/d/1ylkRHtfB3n3IRLf2wplpfxzPTq7nES9I/view?usp=sharing"),
|
"bww_entrance": grab_file_id("https://drive.google.com/file/d/1ylkRHtfB3n3IRLf2wplpfxzPTq7nES9I/view?usp=sharing"),
|
||||||
@@ -105,7 +104,14 @@ def main(
|
|||||||
capture_name: Optional[DatasetName] = None, # type: ignore
|
capture_name: Optional[DatasetName] = None, # type: ignore
|
||||||
save_dir: Path = Path("data/"),
|
save_dir: Path = Path("data/"),
|
||||||
):
|
):
|
||||||
"""Main download script to download all data.
|
"""Script to download existing datasets.
|
||||||
|
|
||||||
|
We currently support the following datasets:
|
||||||
|
|
||||||
|
- nerfstudio: Growing collection of real-world scenes. Use the `capture_name` argument to specify
|
||||||
|
which capture to download.
|
||||||
|
- blender: Blender synthetic scenes realeased with NeRF.
|
||||||
|
- friends: Friends TV show scenes.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
dataset: The dataset to download (from).
|
dataset: The dataset to download (from).
|
||||||
|
|||||||
Reference in new issue
Block a user