Skip to content

Commit

Permalink
Fixed identity selection mask visualisation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mdfirman committed Sep 2, 2019
1 parent 1cc8b81 commit 3e263c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,8 @@ def compute_losses(self, inputs, outputs):
to_optimise, idxs = torch.min(combined, dim=1)

if not self.opt.disable_automasking:
outputs["identity_selection/{}".format(scale)] = (idxs > 1).float()
outputs["identity_selection/{}".format(scale)] = (
idxs > identity_reprojection_loss.shape[1] - 1).float()

loss += to_optimise.mean()

Expand Down

0 comments on commit 3e263c0

Please sign in to comment.