tensorflow / tensorflow/models

OMM during training in Object detection with batch size>12

Open
#2,034 14 comments 2 reactions 3 assignees View on GitHub

Nobody has claimed this yet.

models:research:odapi type:bug
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

I am trying to train the ssd_inception_v2

the training break with the error
the result error:
ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[1917,1]

when start,I get the message bellow:

Total memory: 11.90GiB
Free memory: 11.75GiB

Ignoring device specification /device:GPU:0 for node 'prefetch_queue_Dequeue' because the input edge from 'prefetch_queue' is a reference connection and already has a device field set to /device:CPU:0

I wonder what the message mean,I use nvidia-smi to see the gpu GPU-Util is not full,sometimes 0%.and if the batch size>12,run out with OOM.if the batch size<12,then it's fine
Which thing should I fix to get out of the error?

This is related to issue #1390 #2038

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.