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

out of memory #20

Closed
zxt-triumph opened this issue Apr 10, 2018 · 5 comments
Closed

out of memory #20

zxt-triumph opened this issue Apr 10, 2018 · 5 comments

Comments

@zxt-triumph
Copy link

when I run command that bash ./scripts/train_edges2shoes.sh
I got following error
RuntimeError: cuda runtime error (2) : out of memory at /opt/conda/conda-bld/pytorch_1518243271935/work/torch/lib/THC/generic/THCStorage.cu:58
how to solve this problem?

@junyanz
Copy link
Owner

junyanz commented Apr 15, 2018

how big is your gpu memory? You may want to use smaller images and smaller models. ( --loadSize 143 --fineSize 128 --which_model_netD basic_128_multi --which_model_netD2 basic_128_multi --which_model_netG unet_128 --which_model_netE resnet_128)

@zxt-triumph
Copy link
Author

Thank you for your reply.My gpu memory is only 3G.According to your suggestion, I modified the memory but the problem is still not resolved.

@junyanz
Copy link
Owner

junyanz commented Apr 20, 2018

Could you give more details about your current problem?

@junyanz
Copy link
Owner

junyanz commented Apr 23, 2018

These warnings are related to visdom. Try python -m visdom.server. See this post for more details.

@zxt-triumph
Copy link
Author

Thank you so much.I have solved this problem with your help.

@junyanz junyanz closed this as completed Apr 27, 2018
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