繁体   English   中英

对象检测 - 导入错误:DLL 加载失败:找不到指定的模块

[英]Object detection - ImportError: DLL load failed: The specified module could not be found

Tensorflow 对象检测模型模型中的问题

从这个安装指南: https : //github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md

我开始安装

pip install --user Cython

pip install --user contextlib2

pip install --user pillow

pip install --user lxml

pip install --user jupyter

pip install --user matplotlib

COCO API 安装:复制-“ pycocotools ”到“/models/research/”

从 tensorflow/models/research/ 我运行下面的命令

protoc object_detection/protos/*.proto --python_out=.

将库添加到 PYTHONPATH(使用 Set,因为我在 Windows 上)

set PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim

测试安装:

python object_detection/builders/model_builder_test.py

错误 :

导入错误:DLL 加载失败:找不到指定的模块。 无法加载本机 TensorFlow 运行时。 有关一些常见原因和解决方案,请参阅https://www.tensorflow.org/install/errors 寻求帮助时,请在此错误消息上方包含整个堆栈跟踪。

您很可能缺少适用于 Visual Studio 2015、2017 和 2019 的 Microsoft Visual C++ Redistributable。

在此处下载 32 位和 64 位版本:( x86 , x64 )。

参见这个问题https://github.com/tensorflow/tensorflow/issues/35749

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM