mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-14 03:44:02 +08:00
temp changes to depth nerfacto
This commit is contained in:
1 parent
0555132d40
commit
526da869b9
2 files changed
+6
-1
No files matched your search
@@ -222,7 +222,7 @@ method_configs["depth-nerfacto"] = TrainerConfig(
|
||||
_target=VanillaDataManager[DepthDataset],
|
||||
pixel_sampler=PairPixelSamplerConfig(),
|
||||
dataparser=NerfstudioDataParserConfig(),
|
||||
train_num_rays_per_batch=4096,
|
||||
train_num_rays_per_batch=32768,
|
||||
eval_num_rays_per_batch=4096,
|
||||
),
|
||||
model=DepthNerfactoModelConfig(
|
||||
|
||||
@@ -29,6 +29,7 @@ from nerfstudio.model_components import losses
|
||||
from nerfstudio.model_components.losses import DepthLossType, depth_loss, depth_ranking_loss
|
||||
from nerfstudio.models.nerfacto import NerfactoModel, NerfactoModelConfig
|
||||
from nerfstudio.utils import colormaps
|
||||
from nerfstudio.model_components.scene_colliders import AABBBoxCollider
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -70,6 +71,10 @@ class DepthNerfactoModel(NerfactoModel):
|
||||
else:
|
||||
self.depth_sigma = torch.tensor([self.config.depth_sigma])
|
||||
|
||||
# self.collider = NearFarCollider(near_plane=self.config.near_plane, far_plane=self.config.far_plane)
|
||||
# import pdb; pdb.set_trace();
|
||||
self.collider = AABBBoxCollider(scene_box=self.scene_box)
|
||||
|
||||
def get_outputs(self, ray_bundle: RayBundle):
|
||||
outputs = super().get_outputs(ray_bundle)
|
||||
if ray_bundle.metadata is not None and "directions_norm" in ray_bundle.metadata:
|
||||
|
||||
Reference in new issue
Block a user