Unify dataparser and method discovery (#2398)

* Unify external dataparser registration

* Unify dataparser and method discovery
This commit is contained in:
Jonáš Kulhánek authored and GitHub committed 2023-09-08 08:26:41 +00:00
1 parent 85ef567682
commit 6af0bcfbf8
4 files changed
+127 -4

No files matched your search

+9
View File
@@ -132,6 +132,15 @@ finally run the following to register the dataparser.
pip install -e .
```
Similarly to the method develomement, you can also use environment variables to register dataparsers.
Use the `NERFSTUDIO_DATAPARSER_CONFIGS` environment variable:
```
export NERFSTUDIO_DATAPARSER_CONFIGS="my-dataparser=my_package.my_config:MyDataParser"
```
Same as with custom methods, `NERFSTUDIO_DATAPARSER_CONFIGS` environment variable additionally accepts a function or derived class to temporarily register your custom method.
## Running custom method
After registering your method you should be able to run the method with,