mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-17 05:14:15 +08:00
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:
1 parent
56556d22fa
commit
334a1c8afe
2 files changed
+2
-3
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user