-
Notifications
You must be signed in to change notification settings - Fork 500
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
CUDA OUT OF MEMORY #87
Comments
When i use GTX2080 with pytorch 1.5 I get following error: Traceback (most recent call last): |
Try to replace with |
Hi, I encountered the same question, could you Explain how to solve it? My codes are like this:
|
Shouldn't the forward pass be done under "with torch.no_grad():" in lpips_2imgs.py, lpips_2dirs.py and lpips_1dir_allpairs.py? This solved the CUDA out of memory issue for me. |
I am trying to calculate lpips metric on directory of images. i use following code to load and calculate
However, I am getting cuda out of memory error even with alexnet backbone and A100 40GB GPU!
The text was updated successfully, but these errors were encountered: