出错代码:
# -*- coding: utf-8 -*-
from __future__ import print_functionimport osimport numpy as np
import MNN
import cv2if __name__ == "__main__":image=cv2.imread(r'D:\data\ocr\wanqu\Age-Gender-MXNET-main\aaa.jpg')image = cv2.resize(image, (64, 64))# resize to mobile_net tensor size# image = image.astype(np.float32)image = image.astype(float)# image = image - (103.94, 116.78, 123.68)# image = image * (0.017, 0.017, 0.017)image = image.transpose((2, 0, 1))tmp_input = MNN.Tensor((1, 3, 64, 64), MNN.Halide_Type_Float, image, MNN.Tensor_DimensionType_Caffe)

原因 mnn需要数据类型为float32,float类型就会报错。

正确代码:

# -*- coding: utf-8 -*-
from __future__ import print_functionimport osimport numpy as np
import MNN
import cv2if __name__ == "__main__&#

MNN.Tensor exit code -1073740791 (0xC0000409) 解决相关推荐

  1. exit code -1073740791 (0xC0000409) 解决

    exit code -1073740791 (0xC0000409) 解决 Process finished with exit code -1073740791 (0xC0000409) 为了让自己 ...

  2. python中关于Process finished with exit code -1073740791 (0xC0000409)的解决办法

    有些小伙伴在运行python程序的时候会遇到上图这种情况.对于这种情况不要着急,使用排除法很容易解决. 情况一(也是网上较多的情况):(显卡)内存不足 这个时候,我们可以在pycharm里调一下内存: ...

  3. 关于PyCharm中遇到exit code -1073740791 (0xC0000409)的问题及其解决方法

    版权声明:本文为博主原创文章,如需转载请贴上原博文链接:https://blog.csdn.net/u011628215/article/details/106070829 前言1:首先要感谢一下文末 ...

  4. tensorflow-gpu之NVIDIA GeForce940MX显卡的坑:finished with exit code -1073740791 (0xC0000409)

    根据前一篇博文解决了tensorflow-gpu安装时候的DLL load failed错误,本以为安装好GPU版本的tensorflow就可以愉快的玩耍了,结果发现,并不是每一个NVIDIA显卡都适 ...

  5. TensorFlow 2+PyCharm显示“Process finished with exit code -1073740791 (0xC0000409)”

    目录 大致现象 第一个坑:PyCharm不显示报错信息 第二个坑:解决"Could not locate zlibwapi.dll" 大致现象 TensorFlow.Keras中的 ...

  6. finished with exit code -1073740791 (0xC0000409)解决方案

    finished with exit code -1073740791 (0xC0000409)解决方案 参考文章: (1)finished with exit code -1073740791 (0 ...

  7. Process finished with exit code -1073740791 (0xC0000409)报错解决方案

    一.问题描述 使用Pycharm在跑一个深度学习网络时,出现以下报错: Process finished with exit code -1073740791 (0xC0000409) 二.问题分析 ...

  8. pyqt5运行出现Process finished with exit code -1073740791 (0xC0000409)

    pyqt5运行出现Process finished with exit code -1073740791 <0xC0000409> 解决办法 控制台不显示具体除了什么错.网上去查大多数是深 ...

  9. 遇到Process finished with exit code -1073740791 (0xC0000409)实在不能解决的时候要注意

    如图,跑任何一模型训练的时候,如果改了虚拟内存还有显存,batch调小,还是跑出这样,请不要跑了,因为在运行程序的时候会在系统盘生成大量日志数据,占内存,如下图, 此时,得找到c盘多余的日志并删掉.也 ...

最新文章

  1. C#调用系统默认打印机打印文字和图片
  2. Learn About Service Console Productivity Tools
  3. Tableau可视化分析实战系列(三十一)-如何对超市销售数据进行可视化分析
  4. ABAP Version Management
  5. springboot aop使用_Spring Boot 的自动配置,是如何实现的?
  6. 基于Google测试框架实现自己的测试框架
  7. 程序媛计划——python数据库
  8. 有意思:textarea resize属性下纯CSS交互效果
  9. 资源丨2200万室内场景数据集,包含语义、全景、灯光等十余种效果
  10. [debug] PyCharm 退出 pytest in XXX.py,恢复run XXX.py
  11. linux中使用u盘和光驱的命令_linux命令详解之挂载光驱的方法
  12. std::string begin end
  13. vue引入阿里矢量图标库
  14. HFSS天线设计笔记-------主极化与交叉极化
  15. matlab 分块 矩阵 对角 合并
  16. 计算机ipv6无法连接,ipv6无网络访问权限实测解决教程
  17. 结构化数据,非结构化数据,半结构化数据的区别
  18. STorM32 BGC 三轴云台学习(一) 通信协议分析
  19. java念整数 你的程序要读入一个整数,范围是[-100000,100000]。然后,用汉语拼音将这个整数的每一位输出出来。 如输入1234,则输出: yi er san si
  20. python3 币种汇率计算

热门文章

  1. python uvloop异步框架简介
  2. linux shell之数组
  3. Android中的事件处理机制
  4. 解析Shell编程中的-----“去重“
  5. iOS和android运存机制,为什么苹果4GB运存却比安卓8GB更丝滑流畅?看完立马涨知识了...
  6. 一个通用的任务管理模型-golang
  7. php扩展管理配置信息,三方插件配置文件说明
  8. 特别浅的渐变蓝色在html里,javascript – 渐变色淡淡的3种颜色
  9. checkbox未赋值时获取value是on_C语言中的指针——指针的赋值和指向
  10. php自动停止原因,解析mysql自动停止服务解决办法