首页 > 解决方案 > https://github.com/ildoonet/tf-pose-estimation 步骤给了我错误

问题描述

无法加载原生 TensorFlow 运行时。

请参阅https://www.tensorflow.org/install/install_sources#common_installation_probl ems

出于一些常见的原因和解决方案。寻求帮助时,请在此错误消息上方包含整个堆栈跟踪。

(tfpose) C:\Code\tf-openpose>python run_webcam.py --model=mobilenet_thin --resize=432x368 --camera=0

Traceback(最近一次调用最后一次):文件"C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python \pywrap_tensorflow.py", line 58, in <module> from tensorflow.python.pywrap_tensorflow_internal import * File "C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python \pywrap_tensorflow_internal.py", line 18, in <module> _pywrap_tensorflow_internal = swig_import_helper() File "C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python \pywrap_tensorflow_internal.py",第 17 行,在 swig_import_helper return importlib.import_module(mname) File "C:\ProgramData\Anaconda3\envs\tfpose\lib\importlib\__init__.py",第 12 行 6,在import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError:DLL 中加载失败:找不到指定的过程。

在处理上述异常的过程中,又出现了一个异常:

Traceback(最近一次调用最后一次):文件"run.py",第 6 行,从 tf_pose import common File "C:\Code\tf-openpose\tf_pose\__init__.py",第 5 行,从 tf_pose.runner 导入推断,Estimator,get_estimator File "C:\Code\tf-openpose\tf_pose\runner.py",第 7 行,从 tf_pose import common File "C:\Code\tf-openpose\tf_pose\common.py",第 3 行,在import tensorflow as tf File "C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\__init __.py",第 22 行,in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File"C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python \__init__.py", line 49, in <module> from tensorflow.python import pywrap_tensorflow File "C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python \pywrap_tensorflow.py",第 74 行,in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python \pywrap_tensorflow.py",第 58 行,in fromtensorflow.python.pywrap_tensorflow_internal import * File "C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python \pywrap_tensorflow_internal.py",第 18<module> _pywrap_tensorflow_internal = swig_import_helper() File "C:\ProgramData\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python \pywrap_tensorflow_internal.py",行,第 17 行,in swig_import_helper return importlib。 import_module(mname) 文件"C:\ProgramData\Anaconda3\envs\tfpose\lib\importlib\__init__.py",第 12 行 6、在import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: DLL load failed: The specified procedure could not be found。

无法加载原生 TensorFlow 运行时。

请参阅https://www.tensorflow.org/install/install_sources#common_installation_probl ems

出于一些常见的原因和解决方案。寻求帮助时,请在此错误消息上方包含整个堆栈跟踪。

标签: pythonpython-3.xtensorflow

解决方案


推荐阅读