Closed LonglongaaaGo closed 3 years ago
BTW, I want to know if fake data numbers and real data numbers are not equal, will it affect the calculation of FID?
It is hard to debug this from afar because it can depend on many different factors. In general, I don't see an intrinsic reason why it should get stuck at some points (computation should be equally fast over time). You can install tqdm to get a better overview how the computation progresses. You could also try to profile the code using cProfile.
I don't understand your second question, can you clarify?
Sorry for reply late. I found when I am running the codes. It will get stuck in the "calculate_frechet_distance" can you give me some insights to solve this problem? Thanks again for your consideration!
I am running these codes in the SLURM cluster.
@LonglongaaaGo Hi, I faced the similar problem and I found that the program got stuck in scipy.linalg.sqrtm. Reinstalling Scipy with newest version works for me.
@LonglongaaaGo Hi, I faced the similar problem and I found that the program got stuck in scipy.linalg.sqrtm. Reinstalling Scipy with newest version works for me.
I update it to 1.7.1, it's still very slow ...
I also met the same problem ...
oh then I solved it by changing a virtual environment ...
I wonder the right version of scipy
I wonder the right version of scipy
spicy 1.5.4 worked for me.
I wonder the right version of scipy
spicy 1.5.4 worked for me.
also worked for me. Thanks!
If anyone else already still has the problem after installing the newest scipy version:
In https://github.com/scipy/scipy/issues/14594#issuecomment-906145042 the issue was found by setting the environment variable MKL_NUM_THREADS=1
using export MKL_NUM_THREADS=1
I met the same issue. I have a server with 4 gpus, and I ran 4 programs on each gpu on parallel. Each program will compute FID. I found that all cpus will be occupied when running multi process with FID computing in the same time, but one process ran well. I think there might be some threads conflicts between torch, scipy.linalg.sqrtm (in FID) and multi-process/threads.
Setting "export MKL_NUM_THREADS=1" didn't help. But I found that setting "export OPENBLAS_NUM_THREADS=1" or "export OMP_NUM_THREADS=1" does help for me. So anyone who has the same issue can give a try.
Related Issue: https://github.com/numpy/numpy/issues/8120#issuecomment-252058015 Related Blog: https://pythonspeed.com/articles/concurrency-control/
time-consuming of the FID computation Hi, I want to know why the FID computation is very slow. When I calculate the FID of 28000 images, it sometimes got stuck and spent almost one day or more to calculate once! Is there any idea to help me fix this problem? Thanks!