[deepfakes/faceswap]使用 Windows 安装程序安装时出现的问题

2024-04-01 828 views
5

注意:有关一般使用问题和帮助,请使用我们的FaceSwap 论坛FaceSwap Discord 服务器。一般使用问题可能会在没有回复的情况下关闭。

报告错误时必须包含崩溃报告。

描述错误 在 Windows 11 上使用最新安装程序时出现以下错误

(check) MiniConda installed: conda 23.3.1
(check) CPU Supports AVX Instructions
(check) CPU Supports SSE4 Instructions
(check) Completed check for installed applications
(check) Setting up for: nvidia

Miniconda3 installed.
Initializing Conda...
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
All requested packages already installed.
Creating Conda Virtual Environment...
Removing existing Conda Virtual Environment...
Remove all packages in environment C:\Users\maxim\MiniConda3\envs\faceswap:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
Package Plan
  environment location: C:\Users\maxim\MiniConda3\envs\faceswap
  added / updated specs:
    - python=3.9
The following NEW packages will be INSTALLED:
  ca-certificates    pkgs/main/win-64::ca-certificates-2023.01.10-haa95532_0 
  openssl            pkgs/main/win-64::openssl-1.1.1t-h2bbff1b_0 
  pip                pkgs/main/win-64::pip-23.0.1-py39haa95532_0 
  python             pkgs/main/win-64::python-3.9.16-h6244533_2 
  setuptools         pkgs/main/win-64::setuptools-66.0.0-py39haa95532_0 
  sqlite             pkgs/main/win-64::sqlite-3.41.2-h2bbff1b_0 
  tzdata             pkgs/main/noarch::tzdata-2023c-h04d1e81_0 
  vc                 pkgs/main/win-64::vc-14.2-h21ff451_1 
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2 
  wheel              pkgs/main/win-64::wheel-0.38.4-py39haa95532_0 
Downloading and Extracting Packages
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done

 To activate this environment, use

     $ conda activate faceswap

 To deactivate an active environment, use

     $ conda deactivate
Installing Git...
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
 Package Plan 
  environment location: C:\Users\maxim\MiniConda3\envs\faceswap
  added / updated specs:
    - git
The following NEW packages will be INSTALLED:
  git                pkgs/main/win-64::git-2.34.1-haa95532_0 
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Downloading Faceswap...
Cloning into 'C:\Users\mxm\faceswap'...
fatal: invalid branch name: init.defaultBranch = 
Error Downloading Faceswap
Install Aborted

重现 重现 该行为的步骤:

  1. 使用最新的安装程序安装 faceswap

预期行为 安装将成功

桌面(请填写以下信息):

  • 操作系统:Windows 11
  • Python 版本 3.9
  • Conda 版本 [例如 4.5.12]

回答

7

按照论坛上的步骤清理所有 faceswap/conda/python 系统并获取最新的安装程序。修复了运行中的脸部交换。

但是现在遇到运行时问题:无法找到 zlibwapi.dll。请确保它在您的库路径中!

7

我将丢失的 dll 手动安装到我的 system32...不确定这是否是正确的修复,但现在一切都适用于最新版本。

5

是的。这似乎是某些 Windows 系统上的问题。我在干净的 WIndows 11 机器上进行了干净的 Nvidia 安装,它运行良好,因此无法重新创建。

对于遇到此问题的其他人,您可以尝试以下操作,如果可以解决您的问题,请告诉我?如果是的话,我会考虑将其构建到安装过程中。

开始 > Anaconda 提示符 (cmd)

conda activate faceswap
conda install -c conda-forge -y zlib-wapi

安装完成后关闭窗口并重新启动 faceswap

1

是的,这有效。从 system32 中删除了 dll 并运行了上面的 conda 安装步骤,训练顺利开始。

自从升级以来,我还看到速度显着提高。 EG/s 提高约 15%

0

已在安装程序中修复