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

Computation of SSIM takes so much GPU memory? #24

Open
franciszchen opened this issue Oct 20, 2019 · 1 comment
Open

Computation of SSIM takes so much GPU memory? #24

franciszchen opened this issue Oct 20, 2019 · 1 comment

Comments

@franciszchen
Copy link

When computing the ssim of the output of a CNN (batch size 8, image resolution is 192*192), the consumed GPU memory are doubled. It seems that the ssim should require little GPU memory. I am curious about this problem. Thx~

@shonesaji11
Copy link

For my project, i needed the ssim function. So by adding the line below at the start of the ssim function definition (in the init.py file) , i was able to reduce the memory consumption
torch.cuda.empty_cache()

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