Skip to content

Commit af7cf33

Browse files
authored
fix: solves issue, that opacity is reset at iteration 0 (#735)
1 parent 0b4dddf commit af7cf33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gsplat/strategy/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def step_post_backward(
192192
state["radii"].zero_()
193193
torch.cuda.empty_cache()
194194

195-
if step % self.reset_every == 0:
195+
if step % self.reset_every == 0 & step > 0:
196196
reset_opa(
197197
params=params,
198198
optimizers=optimizers,

0 commit comments

Comments
 (0)