question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello, 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:open
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
MarvinTeichmanncommented, Jun 7, 2017

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.

0reactions
varun19299commented, May 22, 2018

You can also cutoff GPU access to the script running train.py.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found