-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
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
pdb at line 51 in the file metric_calculators.py #19
Comments
Hi, I am facing the same problem. Did you find the solution? |
Hi all, Are you still facing this issue? If so, is it with models from our experiment settings? Or from new ones that you have implemented? |
Hi, I met same issue, the model is from your experiment settings(resnet20), nothing changed, but found cov has 1 element <0, can you tell me how can covariance<0 happen? And what's the problem may be. |
What's the value of the element that is < 0? Is it near zero? I'm wondering if it's because of numerical precision. |
Really close, about 1e-6 or -7, I agree with numerical precision problem, thx a lot |
hi can you please expline why you put this condition at line 51 in the file metric_calculators.py, I'm getting this error a lot and im not sure what is the resaon for that
def finalize(self, numel, eps=1e-4):
self.outer /= numel
self.mean /= numel
self.std /= numel
cov = self.outer - torch.outer(self.mean, self.mean)
if torch.isnan(cov).any():
breakpoint()
if (torch.diagonal(cov) < 0).sum():
pdb.set_trace()
return cov
The text was updated successfully, but these errors were encountered: