Reduced tyro overhead + helptext formatting (#719)

* `ns-train` helptext formatting for tyro 0.3.23

* Remove unused import
This commit is contained in:
Brent Yi authored and GitHub committed 2022-10-06 13:33:42 -07:00
1 parent eaa16e535a
commit 05d264a335
4 files changed
+46 -18

No files matched your search

+3 -7
View File
@@ -23,7 +23,6 @@ from typing import Dict
import tyro
from nerfstudio.configs.base_config import Config, TrainerConfig, ViewerConfig
from nerfstudio.configs.config_utils import convert_markup_to_ansi
from nerfstudio.data.datamanagers import VanillaDataManagerConfig
from nerfstudio.data.dataparsers.blender_dataparser import BlenderDataParserConfig
from nerfstudio.data.dataparsers.friends_dataparser import FriendsDataParserConfig
@@ -40,15 +39,12 @@ from nerfstudio.pipelines.dynamic_batch import DynamicBatchPipelineConfig
method_configs: Dict[str, Config] = {}
descriptions = {
"nerfacto": "[bold green]Recommended[/bold green] Real-time model tuned for real captures. "
+ "This model will be continually updated.",
"nerfacto": "Recommended real-time model tuned for real captures. This model will be continually updated.",
"instant-ngp": "Implementation of Instant-NGP. Recommended real-time model for bounded synthetic data.",
"mipnerf": "High quality model for bounded scenes. [red]*slow*",
"mipnerf": "High quality model for bounded scenes. (slow)",
"semantic-nerfw": "Predicts semantic segmentations and filters out transient objects.",
"vanilla-nerf": "Original NeRF model. [red]*slow*",
"vanilla-nerf": "Original NeRF model. (slow)",
}
descriptions = {k: convert_markup_to_ansi(v) for k, v in descriptions.items()}
method_configs["nerfacto"] = Config(
method_name="nerfacto",