OOM problem.
See original GitHub issueHello, when I run the demo using
python demo.py --input_image data/demo/demo.png
the following error occurs:
ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[7,7,512,4096] [[Node: save/Assign_27 = Assign[T=DT_FLOAT, _class=[“loc:@fc6/weights”], use_locking=true, validate_shape=true, _device=“/job:localhost/replica:0/task:0/gpu:0”](fc6/weights, save/RestoreV2_27/_25)]]
It seems that my RAM is not large enough. I use my laptop, with 8G RAM and GeForce 940M (1G memory). What is the minimum size required?
Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How we find and fix OOM and memory leaks in Java Services
OOM errors represent the first category of memory issues. It boils down to an application that tries to allocate memory on the heap....
Read more >The 4 general reasons for OutOfMemoryError errors and ... - IBM
OOM from a native issue. This type of OOM error has nothing directly to do with the Java heap. Looking at a heapdump...
Read more >How to diagnose OOM errors on Linux systems
Out-of-memory (OOM) errors take place when the Linux kernel can't provide enough memory to run all of its user-space processes, causing at least ......
Read more >Out of memory - Wikipedia
Out of memory (OOM) is an often undesired state of computer operation where no additional memory can be allocated for use by programs...
Read more >3.2 Understand the OutOfMemoryError Exception
One common indication of a memory leak is the java.lang.OutOfMemoryError exception. Usually, this error is thrown when there is insufficient space to allocate ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You need more GPU memory. 2GB should be fine for inference. Training is possible with 8GB. You use the cpu version of tensorflow to run demo.py. 8GB CPU memory will be fine.
You can also cutoff GPU access to the script running
train.py.