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 using random images #2

Open
Neonsign247 opened this issue Apr 23, 2020 · 0 comments
Open

Out of memory using random images #2

Neonsign247 opened this issue Apr 23, 2020 · 0 comments

Comments

@Neonsign247
Copy link

Hi. Thanks for great code.

I modified you code to utilize my own image dataset, and I failing with out of memory.

Traceback (most recent calls WITHOUT Sacred internals):
File "experiments/patch_experiment.py", line 128, in main
learning_loop.train_step(observer, c.inner_loop_steps, c.mnist_classes)
File "/lhi/GTN/GTN_clean/gtn/models/learning_loop.py", line 146, in train_step
self.optimizer_teacher.step()
File "/opt/conda/lib/python3.7/site-packages/torch/optim/adam.py", line 103, in step
denom = (exp_avg_sq.sqrt() / math.sqrt(bias_correction2)).add_(group['eps'])
RuntimeError: CUDA out of memory. Tried to allocate 2.00 GiB (GPU 0; 11.93 GiB total capacity; 9.53 GiB already allocated; 1.85 GiB free; 9.62 GiB reserved in total by PyTorch)

I'm using 64x64 images so that I changed input and output of learner/teacher to 64.
I reduced batch size to 4 / test_batch_size 4

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

1 participant