Faceswap :无法加载本机 TensorFlow 运行时


Traceback (most recent call last):
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflowpythonpywrap_tensorflow_internal.py", line 18, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflowpythonpywrap_tensorflow_internal.py", line 17, in swig_import_helper
return importlib.import_module(mname)
File "C:ProgramDataAnaconda3libimportlib__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
File "faceswap.py", line 33, in <module>
ARGUMENTS.func(ARGUMENTS)
File "D:Projectsfaceswaplibcli.py", line 36, in execute_script
script = self.import_script()
File "D:Projectsfaceswaplibcli.py", line 25, in import_script
from scripts.train import Train as script
File "D:Projectsfaceswapscriptstrain.py", line 9, in <module>
import tensorflow as tf
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflow__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflowpython__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflowpythonpywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflowpythonpywrap_tensorflow_internal.py", line 18, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersdivyaAppDataRoamingPythonPython36site-packagestensorflowpythonpywrap_tensorflow_internal.py", line 17, in swig_import_helper
return importlib.import_module(mname)
File "C:ProgramDataAnaconda3libimportlib__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

无法加载本机 TensorFlow 运行时。 链接在这里

该错误是因为您可能使用的是 32 位操作系统或 32 位 Python。还要检查您的 CPU 是否支持 AVX 指令集。 确保 Tensorflow 上给出的所有依赖项都已正确安装。

最新更新