在DeepFaceLab中,第4个和/或第5个进程在从data_src和/或data_dst提取faceset时输出了以下错误:
[wf] Face type ( f/wf/head ?:help ) :wf[0] Max number of faces from image ( ?:help ) :0[512] Image size ( 256-2048 ?:help ) :512[90] Jpeg quality ( 1-100 ?:help ) :90[n] Write debug images to aligned_debug? ( y/n ) :nExtracting faces...Error while subprocess initialization: Traceback (most recent call last): File "C:\DeepFaceLab\DeepFaceLab_NVIDIA\_internal\python-3.6.8\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module> from tensorflow.python._pywrap_tensorflow_internal import *ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.During handling of the above exception, another exception occurred:
在pywrap_tensorflow.py的第64行,代码和注释如下所示:
# pylint: disable=wildcard-import,g-import-not-at-top,line-too-long,undefined-variable try: from tensorflow.python._pywrap_tensorflow_internal import * # This try catch logic is because there is no bazel equivalent for py_extension. # Externally in opensource we must enable exceptions to load the shared object # by exposing the PyInit symbols with pybind. This error will only be # caught internally or if someone changes the name of the target _pywrap_tensorflow_internal.
类似的问题已在GitHub上提出,但尚未找到具体的答案。非常感谢您的帮助。
回答:
经过很长时间,我终于找到了解决方法。由于我知道训练过程会非常耗时,我决定在一台没有GPU的笔记本电脑上进行操作。正因为如此,解决方法是先执行第10步,或者执行名为10)Make CPU only
的cmd文件。这样做会卸载预装的TensorFlow并下载一个旧版本,因此需要互联网连接。此外,执行此操作后无法撤销,这意味着DeepFaceLab将永远只能通过CPU运行,除非您重新安装它。
希望这能解决问题。