Skip to content

Commit cc22e66

Browse files
committed
recent hyperparam.: prune opacity thres, reset opacity, znear
1 parent ca58214 commit cc22e66

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scene/cameras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, resolution, colmap_id, R, T, FoVx, FoVy, depth_params, image,
7878
self.invdepthmap = torch.from_numpy(self.invdepthmap[None]).to(self.data_device)
7979

8080
self.zfar = 100.0
81-
self.znear = 0.01
81+
self.znear = 0.1 # 6DGS # 3DGS: 0.01
8282

8383
self.trans = trans
8484
self.scale = scale

scene/gaussian_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def save_ply(self, path):
394394
PlyData([el]).write(path)
395395

396396
def reset_opacity(self):
397-
opacities_new = self.inverse_opacity_activation(torch.min(self.get_opacity, torch.ones_like(self.get_opacity)*0.01))
397+
opacities_new = self.inverse_opacity_activation(torch.min(self.get_opacity, torch.ones_like(self.get_opacity)*0.02)) # 6DGS # 3DGS: 0.01
398398
optimizable_tensors = self.replace_tensor_to_optimizer(opacities_new, "opacity")
399399
self._opacity = optimizable_tensors["opacity"]
400400

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def training(dataset, opt, pipe, testing_iterations, saving_iterations, checkpoi
175175

176176
if iteration > opt.densify_from_iter and iteration % opt.densification_interval == 0:
177177
size_threshold = 20 if iteration > opt.opacity_reset_interval else None
178-
gaussians.densify_and_prune(opt.densify_grad_threshold, 0.01, scene.cameras_extent, size_threshold, radii) # min opacity threshold is hard-coded # 0.005
178+
gaussians.densify_and_prune(opt.densify_grad_threshold, 0.01, scene.cameras_extent, size_threshold, radii) # 6DGS # min opacity threshold is hard-coded # 3DGS: 0.005
179179

180180
if iteration % opt.opacity_reset_interval == 0 or (dataset.white_background and iteration == opt.densify_from_iter):
181181
# if dataset.white_background and iteration == opt.densify_from_iter: # 6DGS

0 commit comments

Comments
 (0)