We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contextualLoss/CX/CSFlow.py
Line 12 in 863af53
exp
The text was updated successfully, but these errors were encountered:
Same on me.
Sorry, something went wrong.
Try this [issue].
Add clamp() in compute_relative_distance() to prevent the exp index too large, which works for me.
clamp()
compute_relative_distance()
def compute_relative_distance(dist_raw): dist_min, _ = torch.min(dist_raw, dim=2, keepdim=True) dist_tilde = dist_raw / (dist_min + 1e-5) dist_tilde = torch.clamp(dist_tilde, max=10., min=-10) return dist_tilde
No branches or pull requests
contextualLoss/CX/CSFlow.py
Line 12 in 863af53
This op is very unstable, the value goes inf after
exp
, any solution?The text was updated successfully, but these errors were encountered: