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

about RuntimeError #9

Open
isihkr opened this issue Apr 23, 2019 · 4 comments
Open

about RuntimeError #9

isihkr opened this issue Apr 23, 2019 · 4 comments

Comments

@isihkr
Copy link

isihkr commented Apr 23, 2019

Hi!
In test phase, i got RuntimeError: CUDA out of memory. I have only a11G 2080ti GPU.
Could u please help me fix it?
@dypark86 @xairc

@Kwongrf
Copy link

Kwongrf commented May 2, 2019

I got the same error, I just reduce the sidelen from 144 to 112 and then retrain the model.

@isihkr
Copy link
Author

isihkr commented May 2, 2019

Thank you! I'll try for it.

@isihkr
Copy link
Author

isihkr commented May 8, 2019

hello!sorry to bother you again.
I didn't reduce the sidelen and used torch.cuda.empty_cache() to fix the error, like this:
try:
output = net(inputdata, inputcoord)
except RuntimeError as e:
if 'out of memory' in str(e):
print('|WARNING: ran out of memory')
if hasattr(torch.cuda, 'empty_cache'):
torch.cuda.empty_cache()
else:
raise e
in both train and test phase.
However, when i used the pretrained model and ran xai-viewer.py, i can't get the same predicted results as @dypark86 does.
Do you kown why?
@Kwongrf

@Kwongrf
Copy link

Kwongrf commented May 13, 2019

I can't get the same results after I reduced sidelen. Then I retrained the model with reduced sidelen ,I got similar results compared to the author. Sorry, I haven't tried your method yet.

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