Python 在';数据src面集提取';-张量流

Python 在';数据src面集提取';-张量流,python,tensorflow,machine-learning,keras,tensorflow2.0,Python,Tensorflow,Machine Learning,Keras,Tensorflow2.0,在第4和/或第5个过程中,从数据_src和/或数据_dst提取面集时,输出此错误: [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_

在第4和/或第5个过程中,从数据_src和/或数据_dst提取面集时,输出此错误:

[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 ) :
n
Extracting 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:


类似的问题已经解决,但没有找到具体的答案。非常感谢您的帮助。

因此,经过很长时间,我终于找到了修复方法。因为我知道培训需要很长时间,所以我决定在没有GPU的笔记本电脑上进行。正是由于这个原因,修复方法是先执行第10步,或者使用名为
10)的cmd文件,使CPU只运行
。这样做将卸载预安装的TensorFlow并下载旧版本,因此需要Internet连接。此外,执行它时无法撤消,这意味着除非重新安装,否则DeepFaceLab现在只能通过CPU运行4次

这有望解决问题。

运行时 4) 数据\u src面集提取 我在进程的一开始就选择了CPU(而不是GPU)。在我面对同样的错误后,这对我来说很有效。也许这比安装旧版本更方便,并且不能再使用GPU了

  # 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.