Skip to content
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

FID is a negative value #105

Open
santiago-parodi opened this issue Feb 3, 2024 · 2 comments
Open

FID is a negative value #105

santiago-parodi opened this issue Feb 3, 2024 · 2 comments

Comments

@santiago-parodi
Copy link

I'm attempting to compute the FID between two datasets, each containing 192 samples. I used the following command:

python -m pytorch_fid --dims 192 ./real/ ./fake/

However, I'm getting a negative FID value:

FID: -4.808164533187664e-09

Any ideas of what might be happening? Thanks in advance!

@dome272
Copy link

dome272 commented Mar 19, 2024

I saw this sometimes as well. I think its numerical instabilities. When your ground_truth and fake_data are super close it would end up as 0 in theory, but due to limited numerical precision it goes slightly negative. You can see its -4e-8, which is super small.

@egoist945402376
Copy link

I saw this sometimes as well. I think its numerical instabilities. When your ground_truth and fake_data are super close it would end up as 0 in theory, but due to limited numerical precision it goes slightly negative. You can see its -4e-8, which is super small.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants