我试图从视频数据源中提取图像来创建深度人脸模型,但我得到了下面的错误。如何修复错误?
Process Process-1:
Traceback (most recent call last):
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "imp.py", line 243, in load_module
File "imp.py", line 343, in load_dynamic
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "multiprocessing\process.py", line 258, in _bootstrap
File "multiprocessing\process.py", line 93, in run
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\DeepFaceLab\core\leras\device.py", line 102, in _get_tf_devices_proc
import tensorflow
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow\__init__.py", line 102, in <module>
from tensorflow_core import *
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow\__init__.py", line 50, in __getattr__
module = self._load()
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow\__init__.py", line 44, in _load
module = _importlib.import_module(self.__name__)
File "importlib\__init__.py", line 126, in import_module
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\USER\Desktop\DeepFaceLab_DirectX12\_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "imp.py", line 243, in load_module
File "imp.py", line 343, in load_dynamic
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
1条答案
按热度按时间13z8s7eq1#
您在系统中安装tensorflow的方式或安装的tensorflow版本可能存在问题。请根据测试的构建配置安装兼容Python 3.6版本的tensorflow,即TensorFlow <=2.6。
您可以使用install特定的Tensorflow版本:
**注意:**建议使用最新的python和tensorflow版本,以充分利用最新的功能。