【发布时间】:2021-02-14 11:35:51
【问题描述】:
我正在尝试在一个小数据集上运行掩码 R-CNN 架构(目前与教程中的相同),遵循 tutorial。
我想我的内存不足了。这是给定的输出:
[...]
Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.
See `tf.nn.softmax_cross_entropy_with_logits_v2`.
tcmalloc: large alloc 644245094400 bytes == 0x1a936c000 @ 0x7efe929e7b6b 0x7efe92a07379
0x7efe76f65287 0x7efe6848dc0f 0x7efe6851644b 0x7efe68388cc6 0x7efe68389b8c 0x7efe68389e13
0x7efe7182f2b7 0x7efe71853a35 0x7efe6860b53f 0x7efe686005c5 0x7efe686be551 0x7efe686bb263
0x7efe686aa3a5 0x7efe923c96db 0x7efe92702a3f
^C
即使我有一个相对较小的数据集和batch_size = 1,我的问题是 12,5 GB RAM 是否正确?
这是我的Colab-Notebook。
除了batch_size、shuffle_buffer_size,还有哪些减少内存负载的选项?
【问题讨论】:
标签: tensorflow google-colaboratory object-detection-api