Skip to content

Commit 3ce0b41

Browse files
committed
Add depth loss
1 parent 9da0c16 commit 3ce0b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def training(dataset, opt, pipe, testing_iterations, saving_iterations):
8282
Ll1 = l1_loss(image, gt_image)
8383
loss = (1.0 - opt.lambda_dssim) * Ll1 + opt.lambda_dssim * (1.0 - ssim(image, gt_image))
8484
depth_loss = l1_loss(depth, gt_depth) * 0.1
85-
# loss = loss + depth_loss
85+
loss = loss + depth_loss
8686
loss.backward()
8787

8888
iter_end.record()

0 commit comments

Comments
 (0)