python - 在自定义对象检测中使用 tensorflow-gpu 的错误
问题描述
我正在尝试使用 tensorflow-gpu 进行自定义对象检测。我已经使用我的 tensorflow-gpu 1.14 版创建了 conda 环境,下载并安装了 CUDA 和 CuDNN 10.0。但是,我收到了这个错误
ResourceExhaustedError: 2 root error(s) found.
(0) Resource exhausted: OOM when allocating tensor with shape[32,1792,1792,3,2] and type float on /job:localhost/replica:0/task:0/device:CPU:0 by allocator gpu_host_bfc
[[{{node Tile_5}}]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
(1) Resource exhausted: OOM when allocating tensor with shape[32,1792,1792,3,2] and type float on /job:localhost/replica:0/task:0/device:CPU:0 by allocator gpu_host_bfc
[[{{node Tile_5}}]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
[[training/Adam/cond_175/Switch_2/_6707]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
0 successful operations.
0 derived errors ignored.
按照这个网站用 6 行代码训练对象检测 AI。
解决方案
推荐阅读
- node.js - Jimp 及其缓冲区数据无法按预期使用 puppeteer 生成 PDF
- c++ - 将 C 与 C++ 连接起来
- javascript - 如何使用 Selenium-Webdriver for JavaScript 在 Chrome 中接受不安全的证书?
- visual-studio-code - 在 VSCode 中自动将关键字更改为大写
- r - Why ave results in error in unique.default?
- java - 从 Java 中获取大量 Mysql 数据
- ios - 我想重新安装expo-cli,但是有错误。并且无法卸载expo-cli
- sql - 使用 Oracle 的 REGEXP_LIKE 函数时转义“%”
- ecmascript-6 - 在 ES2015+/ES6+ 中始终使用字符串模板文字是否很好?
- sql-server - 消息 4145,级别 15,状态 1,第 3 行 在预期条件的上下文中指定的非布尔类型表达式,靠近“与”