Remove dataparser

This commit is contained in:
Matt Tancik committed 2023-02-27 12:36:01 -08:00
1 parent 57736cfafc
commit a83d443dc3
9 files changed
+124 -57

No files matched your search

+4 -2
View File
@@ -72,7 +72,9 @@ class ExperimentConfig(InstantiateConfig):
vis: Literal["viewer", "wandb", "tensorboard", "viewer+wandb", "viewer+tensorboard"] = "wandb"
"""Which visualizer to use."""
data: Optional[Path] = None
"""Alias for --pipeline.datamanager.dataparser.data"""
"""Alias for --pipeline.datamanager.data"""
prompt: Optional[str] = None
"""Alias for --pipeline.model.prompt"""
relative_model_dir: Path = Path("nerfstudio_models/")
"""Relative path to save all checkpoints."""
@@ -96,7 +98,7 @@ class ExperimentConfig(InstantiateConfig):
def set_experiment_name(self) -> None:
"""Dynamically set the experiment name"""
if self.experiment_name is None:
self.experiment_name = str(self.pipeline.datamanager.dataparser.data).replace("../", "").replace("/", "-")
self.experiment_name = str(self.pipeline.datamanager.data).replace("../", "").replace("/", "-")
def get_base_dir(self) -> Path:
"""Retrieve the base directory to set relative paths"""
+1 -3
View File
@@ -338,6 +338,7 @@ method_configs["phototourism"] = TrainerConfig(
method_configs["dreamfusion"] = TrainerConfig(
method_name="dreamfusion",
experiment_name="",
steps_per_eval_batch=50,
steps_per_eval_image=50,
steps_per_save=200,
@@ -346,9 +347,6 @@ method_configs["dreamfusion"] = TrainerConfig(
pipeline=VanillaPipelineConfig(
generative=True,
datamanager=DreamFusionDataManagerConfig(
dataparser=NerfstudioDataParserConfig(),
train_num_rays_per_batch=4096,
eval_num_rays_per_batch=4096,
horizontal_rotation_warmup=4000,
),
model=DreamFusionModelConfig(