兵马逐浪去,将象入海流。炮声震心动,惊起卧龙游。
我的博客园主页 --------- 我的知乎主页 --------- 我的github主页 --------- 我的csdn主页 --------- 我的新浪微博

显存不够----ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[4096]

ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[4096]

 

类似问题 https://github.com/CharlesShang/TFFRCNN/issues/68

参考:

 http://blog.csdn.net/qing101hua/article/details/77153222

方案:

 

take a look at the memory usage of your gpu with

nvidia-smi -l 3

  

if still free memory that can be used
-> edit lib/fast_rcnn/train.py
~line396 : config.gpu_options.per_process_gpu_memory_fraction = 0.40
edit 0.40 to larger propotion (e.g. 0.9)

posted @ 2018-02-08 11:01  leoking01  阅读(6132)  评论(0编辑  收藏  举报
#back-to-top { background-color: #00CD00; bottom: 0; box-shadow: 0 0 6px #00CD00; color: #444444; padding: 10px 10px; position: fixed; right: 50px; cursor: pointer; }