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

Faster computation for FID #96

Open
jaywu109 opened this issue Apr 23, 2023 · 0 comments
Open

Faster computation for FID #96

jaywu109 opened this issue Apr 23, 2023 · 0 comments

Comments

@jaywu109
Copy link

As previously reported in issues #67 and #83, computing the FID is time-consuming. Upon investigation, I discovered that the current implementation uses scipy.linalg.sqrtm, requires multiple dot product operations with NumPy and is particularly slow on CPU. To address this issue, I simply modified the original sqrtm that moves the dot product operation to the GPU. As a result, I observed a significant time improvement, from 6 minutes to just 30 seconds in my environment.

If anyone has encountered a similar problem, please consider trying the modification I proposed:
https://github.com/jaywu109/faster-pytorch-fid

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

1 participant