Skip to content

Commit

Permalink
fix bug in issue #88
Browse files Browse the repository at this point in the history
  • Loading branch information
JiantengChen authored Oct 24, 2023
1 parent 9552167 commit 2666917
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nsg/models/scene_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,9 @@ def get_loss_dict(self, outputs, batch, metrics_dict=None):
assert "depth_mask" in batch
depth_gt = batch["depth_image"].to(self.device).float()
depth_mask = batch["depth_mask"].to(self.device)
if not self.config.is_euclidean_depth:
depth_gt = depth_gt * outputs["directions_norm"]
# depth_gt multipled by directions_norm is excuted in the depth loss function
# if not self.config.is_euclidean_depth:
# depth_gt = depth_gt * outputs["directions_norm"]
depth_gt[~depth_mask] = 0.0 # to make it compatible with the automask of the depth loss
predicted_depth = outputs["depth"].float()
depth_loss = 0
Expand Down

0 comments on commit 2666917

Please sign in to comment.