mseitzer / pytorch-fid

Compute FID scores with PyTorch.
Apache License 2.0
3.22k stars 497 forks source link

Imaginary component 3.1913775165377e+114 #100

Open Mei0211 opened 10 months ago

Mei0211 commented 10 months ago
raise ValueError('Imaginary component {}'.format(m))

ValueError: Imaginary component 3.1913775165377e+114

zero-nnkn commented 9 months ago

I have met the same problem. Have you found the solution yet?

zero-nnkn commented 9 months ago

After I downgraded the scipy version from 1.11.2 to 1.11.1, everything worked well.

jgvinholi commented 9 months ago

Same problem for me. @zero-nnkn 's suggestion solved temporarily the issue.

jonatelintelo commented 8 months ago

After I downgraded the scipy version from 1.11.2 to 1.11.1, everything worked well.

This also worked for me, but I am wondering why downgrading scipy does the trick. Also, as per the authors comments, the base size required 2048 images, changing this might result in scores no longer correlating with visual quality. So even if it works it might not be desirable to actually have less than 2048 images.