Caffe | Check failed: error == cudaSuccess (2 vs. 0) out of memory

I am trying to train a network on Caffe. I have image size of 512x640. Batch size is 1. I'm trying to implement FCN-8s. I am currently running this on a Amazon EC2 instance (g2.2xlarge) with 4GB of GPU memory. But when I run the solver, it immediately throws out an error
Can someone help me proceed from here? |
||||
add a comment
|
The error you get is indeed out of memory, but it's not the RAM, but rather GPU memory (note the the error comes from CUDA). |
||||
The total number of bytes read was 537399810
which is much smaller than 4GB. – Abhilash PanigrahiNov 19 '15 at 8:11nvidia-smi
to see what's going on on your GPU. – Shai Nov 19 '15 at 8:18