We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddbd188 commit 5190667Copy full SHA for 5190667
ignite/metrics/gan/fid.py
@@ -37,7 +37,7 @@ def fid_score(
37
diff = mu1 - mu2
38
39
# Product might be almost singular
40
- covmean, _ = scipy.linalg.sqrtm(sigma1.mm(sigma2), disp=False)
+ covmean, _ = scipy.linalg.sqrtm(sigma1.mm(sigma2).cpu(), disp=False)
41
# Numerical error might give slight imaginary component
42
if np.iscomplexobj(covmean):
43
if not np.allclose(np.diagonal(covmean).imag, 0, atol=1e-3):
0 commit comments