Skip to content

Commit 51d0b1b

Browse files
Modify how the mask is handled to reduce its negative effect on SSIM loss
1 parent 22e448a commit 51d0b1b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

gsplatInterface/trainer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,7 @@ def train(self):
709709
)
710710

711711
if masks is not None:
712-
colors[~masks] = 0
713-
pixels[~masks] = 0
714-
712+
colors[~masks] = pixels[~masks]
715713

716714
# loss
717715
l1loss = F.l1_loss(colors, pixels)

0 commit comments

Comments
 (0)