OpenCV Error: Insufficient memory (Failed to allocate 47752340 bytes) in cv::OutOfMemoryError, file
来源:互联网 发布:算法复杂性分析 编辑:程序博客网 时间:2024/06/05 17:21
最近在学习人脸检测的一篇论文:Face Alignment at 3000 FPS via Regressing Local Binary Features 时,运行相关的代码发现出现如下错误。
Face Alignment at 3000 FPS via Regressing Local Binary Features
出现这种错误大家一看就知道因为什么,那是因为内存不足导致的。当然其中之一的解决方法就是增加大内存,这样也是可以的。
但是在没有硬件的条件下,我们应该另寻它法,
针对这个程序大部分出现这个错误的原因是使用了x86的架构,x86架构下可分配的内存太小导致无法加载更多的数据,所以我们应该切换到x64的架构下,
具体操作步骤如下:
1. 首先修改解决方案平台,将解决方案的平台修改到x64下,这样就会增大可使用内存数。
2. 还有之前的链接库,如果我们之前使用的库本身就是x64位的,那么就不需要更改,如果是x86的就需要更改为x64位的了。修改之后理论上就可以使用了。
阅读全文
0 0
- OpenCV Error: Insufficient memory (Failed to allocate 47752340 bytes) in cv::OutOfMemoryError, file
- Insufficient memory<failed to allocate 232852> in cv::OutOfMemoryError
- OpenCV Error:Insufficient memory(Failed to allocate 1244164 bytes)
- opencv Insufficient memory (Failed to allocate 1520000 bytes)解决办法
- Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 62 bytes) in
- failed to allocate XXXX bytes for committing reserved memory.
- OpenCV Error: Insufficient memory
- OpenCV Error: Insufficient memory
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes) 问题解决
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes)
- 问题解决Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 38218371 bytes)
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes) 今天要
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php
- java.lang.OutOfMemoryError: Failed to allocate a 22440958 byte allocation with 16777216 free bytes
- java.lang.OutOfMemoryError: Failed to allocate a 3110419 byte allocation with 741152 free bytes and
- Failed to allocate memory: 8
- Failed to allocate memory: 8
- Failed to allocate memory: 8
- 【GDOI2018模拟7.10】C
- 接口自动化之消息头、授权Authorization session token rest风格
- JQuery
- JSP ETL 等表达式的简单介绍
- android关于child view的get位置
- OpenCV Error: Insufficient memory (Failed to allocate 47752340 bytes) in cv::OutOfMemoryError, file
- 生产消费者模式
- 如何将dmp文件里的某张表导入oracle?
- 函数可变参数列表解析,也就是函数参数不确定
- 为什么axios请求接口会发起两次请求(OPTIONS 和POST或者GET)
- Tomcat源码解析(8)
- 二分
- 每日一题(30)—— 局部变量能否和全局变量重名?
- 高数基础8-多元微分学