mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
fix doc error
This commit is contained in:
1 parent
7851dfa9db
commit
9932b0fecf
1 file changed
+1
-7
@@ -95,24 +95,20 @@ MyDataparser = DataParserSpecification(config=CustomDataparserConfig)
|
|||||||
|
|
||||||
Then add the following lines in the `pyproject.toml` file, where the entrypoint to the new dataparser is set.
|
Then add the following lines in the `pyproject.toml` file, where the entrypoint to the new dataparser is set.
|
||||||
|
|
||||||
|
```python
|
||||||
"""pyproject.toml"""
|
"""pyproject.toml"""
|
||||||
|
|
||||||
[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
|
||||||
@@ -120,9 +116,7 @@ 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
|
||||||
|
|||||||
Reference in new issue
Block a user