Skip to content

Commit f529cec

Browse files
Modify how the mask is handled to reduce its negative effect on SSIM loss
1 parent 2462ce1 commit f529cec

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
@@ -694,9 +694,7 @@ def train(self):
694694
)
695695

696696
if masks is not None:
697-
colors[~masks] = 0
698-
pixels[~masks] = 0
699-
697+
colors[~masks] = pixels[~masks]
700698

701699
# loss
702700
l1loss = F.l1_loss(colors, pixels)

0 commit comments

Comments
 (0)