-
Notifications
You must be signed in to change notification settings - Fork 402
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
Allow caching on cpu when compute some metrics. #848
Comments
Hi! thanks for your contribution!, great first issue! |
Hi @kynk94, Do you want to keep the overall metric on GPU, meaning that |
My understanding is that if you run training and you use all GPU memory it could be interesting to force/offload the metric computation to CPU... is it correct @kynk94? |
Yes, that's right. In this case, to avoid memory overflow errors, need to cache the features on CPU memory and compute metric on CPU |
🚀 Feature
Currently, some metrics like FID and KID only use GPU computing.
Since all datasets are cached in gpu memory, there is a big limitation on hardware.
It may be helpful to add
compute_on_cpu
option to compute these metrics like below.Motivation
I can compute FID on cloud system but not my local, because of the memory issue.
Currently, warn large memory foorprint. #468
The text was updated successfully, but these errors were encountered: