Skip to content

Commit

Permalink
Merge pull request #67 from uncbiag/nanfix
Browse files Browse the repository at this point in the history
Update losses.py
  • Loading branch information
HastingsGreer authored Feb 3, 2024
2 parents 50d2cba + 8dee552 commit f23a698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/icon_registration/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ def __call__(self, image_A, image_B):
1
- (self.blur(I * J) - (self.blur(I) * self.blur(J)))
/ torch.sqrt(
(self.blur(I * I) - self.blur(I) ** 2 + 0.00001)
* (self.blur(J * J) - self.blur(J) ** 2 + 0.00001)
(torch.relu(self.blur(I * I) - self.blur(I) ** 2) + 0.00001)
* (torch.relu(self.blur(J * J) - self.blur(J) ** 2) + 0.00001)
)
)

Expand Down

0 comments on commit f23a698

Please sign in to comment.