mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 02:19:47 +08:00
Experimental autocompletion setup scripts (#378)
* Working completion scripts * generate.py => install.py * Uninstall for completions, docs/README updates * Tune emojis, improve concurrency for completion install * wip * Cleanup * Permissions, shebang checks
This commit is contained in:
1 parent
61022f7dbe
commit
86a805c88c
17 files changed
+386
-32
No files matched your search
Regular → Executable
+4
-8
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
run_train_nerf.py
|
||||
"""
|
||||
@@ -18,6 +19,7 @@ import yaml
|
||||
from rich.console import Console
|
||||
|
||||
from nerfactory.configs import base as cfg
|
||||
from nerfactory.configs.base_configs import AnnotatedBaseConfigUnion
|
||||
from nerfactory.engine.trainer import train_loop
|
||||
from nerfactory.utils import comms, profiler
|
||||
|
||||
@@ -209,11 +211,5 @@ def main(config: cfg.Config) -> None:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
from nerfactory.configs.base_configs import base_configs
|
||||
|
||||
# Create a subcommand for each base config.
|
||||
SubcommandType = dcargs.extras.subcommand_type_from_defaults(base_configs)
|
||||
instantiated_config = dcargs.cli(SubcommandType)
|
||||
|
||||
main(config=instantiated_config)
|
||||
# Choose a base configuration and override values.
|
||||
main(dcargs.cli(AnnotatedBaseConfigUnion))
|
||||
Reference in new issue
Block a user