Make PixelSampler the depth-nerfacto default (#3454)

* Make PixelSampler the depth-nerfacto default

* Add note about PairPixelSampler and DepthLossType.SPARSENERF_RANKING
This commit is contained in:
Nicholas Pfaff authored and GitHub committed 2024-10-01 16:59:31 +00:00
1 parent 56556d22fa
commit 334a1c8afe
2 files changed
+2 -3

No files matched your search

-2
View File
@@ -40,7 +40,6 @@ from nerfstudio.data.dataparsers.sitcoms3d_dataparser import Sitcoms3DDataParser
from nerfstudio.data.datasets.depth_dataset import DepthDataset
from nerfstudio.data.datasets.sdf_dataset import SDFDataset
from nerfstudio.data.datasets.semantic_dataset import SemanticDataset
from nerfstudio.data.pixel_samplers import PairPixelSamplerConfig
from nerfstudio.engine.optimizers import AdamOptimizerConfig, RAdamOptimizerConfig
from nerfstudio.engine.schedulers import (
CosineDecaySchedulerConfig,
@@ -222,7 +221,6 @@ method_configs["depth-nerfacto"] = TrainerConfig(
pipeline=VanillaPipelineConfig(
datamanager=VanillaDataManagerConfig(
_target=VanillaDataManager[DepthDataset],
pixel_sampler=PairPixelSamplerConfig(),
dataparser=NerfstudioDataParserConfig(),
train_num_rays_per_batch=4096,
eval_num_rays_per_batch=4096,
+2 -1
View File
@@ -49,7 +49,8 @@ class DepthNerfactoModelConfig(NerfactoModelConfig):
sigma_decay_rate: float = 0.99985
"""Rate of exponential decay."""
depth_loss_type: DepthLossType = DepthLossType.DS_NERF
"""Depth loss type."""
"""Depth loss type. Note that `PairPixelSampler` has to be used for `DepthLossType.SPARSENERF_RANKING`
to work as expected."""
class DepthNerfactoModel(NerfactoModel):