-
Notifications
You must be signed in to change notification settings - Fork 172
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
Why do I always encounter the error: 'ValueError: Imaginary component 89928690.58258057' #31
Comments
@BlackAngel-511. I received the same error. Were you able to solve this error? My command was:
|
Could you pls post the min/max/mean values of both sigma1 and sigma2? |
i have a same problem number of images: 8189 (same for real and generated directory) Traceback (most recent call last): how to solve it? |
I guess that the problem was caused by system environment. When I recreate a new evironment in anconda, the problem magically disappeared. |
@BlackAngel-511 thank you very much |
I trid to execute in tensorflow 1.11 or 1.14 and it worked |
thank you i will try it |
i create a new anaconda environment and install tensorflow version 1.14 |
Shall I ask your python version? |
python 3.7.6 |
I installed python=3.7.6 and tensorflow-gpu=1.14.0. But I received the same error. Could you please export your environment into .yml file and share it with me? |
hello |
Hello, I have the same error.The problem may not comes from the version of Tensorflow. It is from the code. In https://github.com/bioinf-jku/TTUR/blob/master/fid.py#L88, It is even worse when the To fix this, we may rewrite |
The same question and I cannot fix it with creating new environments. |
should be fixed with last commit please test |
I use the fid.py to measure fid score of my images datasets, I generated 10000 images in tImages directory and used the command 'python fid.py ./tImages fid_stats_celeba.npz' or 'python fid.py ./tImages ./sImages ' (sImages directory is another images datasets), but waiting a while, I always get a ValueError. e.g. 'ValueError: Imaginary component 89928690.58258057' or
'ValueError: Imaginary component 1.376687186290827e+24'. I don't know which step I did wrong. Could anyone tell me what the problem is, thanks!
error information:
Traceback (most recent call last):
File "fid.py", line 334, in
fid_value = calculate_fid_given_paths(args.path, args.inception, low_profile=args.lowprofile)
File "fid.py", line 317, in calculate_fid_given_paths
fid_value = calculate_frechet_distance(m1, s1, m2, s2)
File "fid.py", line 155, in calculate_frechet_distance
raise ValueError("Imaginary component {}".format(m))
ValueError: Imaginary component 1.376687186290827e+24
The text was updated successfully, but these errors were encountered: