mseitzer / pytorch-fid

Compute FID scores with PyTorch.

Repository from Github https://github.commseitzer/pytorch-fidRepository from Github https://github.commseitzer/pytorch-fid

Imaginary component 3.1913775165377e+114

Mei0211 opened this issue · comments

raise ValueError('Imaginary component {}'.format(m))

ValueError: Imaginary component 3.1913775165377e+114

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

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

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

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.