tensorflow / tensorflow/models
ssd_mobilenet_v1_coco_2017_11_17 object detection running out of memory
@pkulzc is already working on this.
Since May 22, 2020.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
Please go to Stack Overflow for help and support:
http://stackoverflow.com/questions/tagged/tensorflow
Also, please understand that many of the models included in this repository are experimental and research-style code. If you open a GitHub issue, here is our policy:
System information
- What is the top-level directory of the model you are using: ssd_mobilenet_v1_coco_2017_11_17
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Stock example (https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb)
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
- TensorFlow installed from (source or binary): binary
- TensorFlow version (use command below): v2.0.0-9-g1cf0898dd4 2.0.0
- Bazel version (if compiling from source): NA
- CUDA/cuDNN version: 7.6.3
- GPU model and memory: GeForce RTX 2060, 5931 MiB
- Exact command to reproduce: Run https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb
Describe the problem
I am running the standard example as mentioned above. However, it's running out of memory. I don't understand how a model which can be run on a mobile device can run out of memory with my GPU.
Note: I tried the issue with both config.gpu_options.allow_growth enabled, as well as disabled.
Source code / logs
2020-02-15 17:27:35.418822: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1304] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 5101 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2060, pci bus id: 0000:08:00.0, compute capability: 7.5)
2020-02-15 17:27:43.190194: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-02-15 17:27:44.590501: I tensorflow/stream_executor/cuda/cuda_driver.cc:830] failed to allocate 2.86G (3069050880 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory
[I 17:27:48.185 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
kernel 5d9a5941-82c1-4272-a225-6418c43eba41 restarted
[I 17:28:33.030 NotebookApp] Saving file at /workspace/misc_mobilenetssd_people.ipynb
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.