mseitzer / pytorch-fid

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

ValueError: Imaginary component 4.082076360939105e+125 #103

Open khansharkhamnida opened 8 months ago

khansharkhamnida commented 8 months ago

image

Hello, I've encountered the problem above

vinesmsuic commented 7 months ago

scipy has to be 1.11.1 instead of 1.11.2 . Just downgrade it with:

pip install scipy==1.11.1
zc1023 commented 7 months ago

scipy has to be 1.11.1 instead of 1.11.2 . Just downgrade it with:

pip install scipy==1.11.1

Thank you!It works!

1LOVESJohnny commented 6 months ago

scipy has to be 1.11.1 instead of 1.11.2 . Just downgrade it with:

pip install scipy==1.11.1

It saves my day :)

ElysionHuang commented 6 months ago

scipy has to be 1.11.1 instead of 1.11.2 . Just downgrade it with:

pip install scipy==1.11.1

It does work lol !

lucascolley commented 5 months ago

It looks like the behaviour change comes from https://github.com/scipy/scipy/pull/17918 in 1.11.2. That was supposed to be a bugfix - does it look like a regression here, or is this repo just relying on the buggy implementation?

sh190128 commented 4 months ago

scipy has to be 1.11.1 instead of 1.11.2 . Just downgrade it with:

pip install scipy==1.11.1

niubi!

wxc522 commented 3 months ago

scipy has to be 1.11.1 instead of 1.11.2 . Just downgrade it with:

pip install scipy==1.11.1

666

lucascolley commented 3 months ago

This should be fixed now in SciPy 1.13.0, which was just released. Please try with that SciPy version and let us know if the issue persists.

davystrong commented 4 weeks ago

@lucascolley just to confirm, this seems to be fixed now.

lucascolley commented 4 weeks ago

thanks @davystrong !

lucascolley commented 4 weeks ago

@mseitzer I recommend closing this issue now. You may want to consider:

Or just making the recommended fix of upgrading SciPy more visible.

adil2414 commented 2 days ago

3 hr of looking for solution. it worked omagaaaa