tensorflow - Python内核在加载预训练的YOLO模型时死亡
问题描述
我试图在 spyder IDE 上使用网络摄像头实时提要运行 coursera 的 YOLO 对象检测实现。但是,每当它遇到:
yolo_model =load_model("model_data/yolo.h5")
内核死亡。
显示的错误是:
2018 15:18:14.079164: I C:\tf_jenkins\workspace\rel‑win\M\windows\PY\35\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
解决方案
当我在刚刚加载的 python shell 中运行那一行(以及之前的导入语句)时,我也会遇到同样的错误。模型文件为 200 MB。我有一台 16 GB RAM Windows 笔记本电脑,配备 GTX 1050 GPU 和 4GB VRAM。我还尝试通过我的 CPU 运行它(首先启动一个将设备设置为 cpu 的会话)。
我只能猜测 Coursera 的计算机比我有更多的内存。
推荐阅读
- image - 图像/视频托管解决方案的规范程序
- amazon-web-services - AWS ec2 windows 应用程序在启动后不可见
- react-native - React Native 自定义设备库
- html - iOS输入类型号不显示增量按钮
- java - ArrayList 返回空值
- embedded-linux - 如何在 yocto 的任务列表末尾添加自定义 bitbake 任务?我希望自定义任务在构建映像时作为最后一个任务运行
- javascript - 如何创建类似滚动效果的 Nest Thermostat?
- c# - 为什么在 IEnumerable 上调用 .ToList()
使用 .Where().Select() 过滤器比在实体本身上调用它慢吗? - c# - 在线程中访问共享变量
- algorithm - 关于 Hash Map 与 Trie 时间复杂度的混淆