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

Imaginary Component Error #13

Open
jonatelintelo opened this issue Nov 7, 2023 · 1 comment
Open

Imaginary Component Error #13

jonatelintelo opened this issue Nov 7, 2023 · 1 comment

Comments

@jonatelintelo
Copy link

jonatelintelo commented Nov 7, 2023

I am trying to calculate the FID Infinity for 2000 images. I adjusted the assertion. Now the resulting error is as follows:

File "/ceph/csedu-scratch/project/jlintelo/stargan/get_scores.py", line 39, in evaluate_metrics_matrix
    FID_infinity = calculate_FID_infinity_path('/ceph/csedu-scratch/project/jlintelo/stargan/results/output_statistics.npz', os.path.join(root, model, 'eval', b), 50)
File "/ceph/csedu-scratch/project/jlintelo/stargan/score_infinity.py", line 163, in calculate_FID_infinity_path
    FID = numpy_calculate_frechet_distance(m, s, real_m, real_s)
File "/ceph/csedu-scratch/project/jlintelo/stargan/score_infinity.py", line 425, in numpy_calculate_frechet_distance
    raise ValueError('Imaginary component {}'.format(m))
ValueError: Imaginary component 4.791716326434472e+116

Is this error due to the fact I changed it to 2000 fake images and 2000 real ones? Or is this an issue on the scipy end?(as I have read this can be the case for other FID calculations.)

@vaishnavejp
Copy link

pip install scipy==1.11.1

This seems to solve the issue.

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

2 participants