Skip to content

Commit

Permalink
Add depth loss
Browse files Browse the repository at this point in the history
  • Loading branch information
ingra14m committed Aug 2, 2023
1 parent 9da0c16 commit 3ce0b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def training(dataset, opt, pipe, testing_iterations, saving_iterations):
Ll1 = l1_loss(image, gt_image)
loss = (1.0 - opt.lambda_dssim) * Ll1 + opt.lambda_dssim * (1.0 - ssim(image, gt_image))
depth_loss = l1_loss(depth, gt_depth) * 0.1
# loss = loss + depth_loss
loss = loss + depth_loss
loss.backward()

iter_end.record()
Expand Down

0 comments on commit 3ce0b41

Please sign in to comment.