I've been having issues getting faceswap to run. After I launch the bat file in cmd I get the below errors. I tried installing on my C drive and also additional drives with no luck. I also verified that tensorflow is installed at the below location. Any help would be appreciated.
Windows 10: version 2004 os build 19041.450
CPU: Ryzen 9 3900x
GPU: Gtx 1080ti, driver 452.06
Edit: At one point the install failed and I had to restart the installer. I wonder if a file in MiniConda3 didnt get installed correctly/overwritten in new installs. I will delete that folder and try installing again...
Edit 2: Nope still get the same error output...
Code: Select all
08/30/2020 15:06:23 MainProcess MainThread logger log_setup INFO Log level set to: INFO
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR There was an error importing Tensorflow. This is most likely because you do not have TensorFlow installed, or you are trying to run tensorflow-gpu on a system without an Nvidia graphics card. Original import error: Traceback (most recent call last):
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR File "C:\Users\Player1\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR from tensorflow.python.pywrap_tensorflow_internal import *
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR File "C:\Users\Player1\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR _pywrap_tensorflow_internal = swig_import_helper()
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR File "C:\Users\Player1\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR File "C:\Users\Player1\MiniConda3\envs\faceswap\lib\imp.py", line 242, in load_module
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR return load_dynamic(name, filename, file)
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR File "C:\Users\Player1\MiniConda3\envs\faceswap\lib\imp.py", line 342, in load_dynamic
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR return _load(spec)
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR Failed to load the native TensorFlow runtime.
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR See https://www.tensorflow.org/install/errors
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR for some common reasons and solutions. Include the entire stack trace
08/30/2020 15:06:24 MainProcess MainThread launcher execute_script ERROR above this error message when asking for help.
Edit 3:
I tried manually installing TensorFlow with: "pip install tensorflow". During this process I got this error warning (from pip install):
code C:\WINDOWS\system32>pip install tensorflow
Collecting tensorflow
Downloading tensorflow-2.3.0-cp38-cp38-win_amd64.whl (342.5 MB)
|████████████████████████████████| 342.5 MB 20 kB/s
Requirement already satisfied: grpcio>=1.8.6 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (1.31.0)
Requirement already satisfied: six>=1.12.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (1.15.0)
Requirement already satisfied: protobuf>=3.9.2 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (3.13.0)
Requirement already satisfied: wrapt>=1.11.1 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (1.12.1)
Requirement already satisfied: keras-preprocessing<1.2,>=1.1.1 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (1.1.2)
Collecting tensorboard<3,>=2.3.0
Downloading tensorboard-2.3.0-py3-none-any.whl (6.8 MB)
|████████████████████████████████| 6.8 MB ...
Requirement already satisfied: h5py<2.11.0,>=2.10.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (2.10.0)
Requirement already satisfied: absl-py>=0.7.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (0.10.0)
Requirement already satisfied: gast==0.3.3 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (0.3.3)
Requirement already satisfied: google-pasta>=0.1.8 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (0.2.0)
Requirement already satisfied: termcolor>=1.1.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: scipy==1.4.1 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (1.4.1)
Collecting tensorflow-estimator<2.4.0,>=2.3.0
Downloading tensorflow_estimator-2.3.0-py2.py3-none-any.whl (459 kB)
|████████████████████████████████| 459 kB 6.8 MB/s
Requirement already satisfied: astunparse==1.6.3 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (1.6.3)
Requirement already satisfied: opt-einsum>=2.3.2 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (3.3.0)
Requirement already satisfied: wheel>=0.26 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorflow) (0.35.1)
Collecting numpy<1.19.0,>=1.16.0
Downloading numpy-1.18.5-cp38-cp38-win_amd64.whl (12.8 MB)
|████████████████████████████████| 12.8 MB 6.4 MB/s
Requirement already satisfied: setuptools in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from protobuf>=3.9.2->tensorflow) (49.6.0.post20200814)
Requirement already satisfied: markdown>=2.6.8 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (3.2.2)
Requirement already satisfied: google-auth<2,>=1.6.3 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (1.21.0)
Requirement already satisfied: werkzeug>=0.11.15 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (1.0.1)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (0.4.1)
Requirement already satisfied: requests<3,>=2.21.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (2.24.0)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (1.7.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (0.2.8)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (4.1.1)
Requirement already satisfied: rsa<5,>=3.1.4; python_version >= "3.5" in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (4.6)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<3,>=2.3.0->tensorflow) (1.3.0)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (1.25.10)
Requirement already satisfied: idna<3,>=2.5 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (2020.6.20)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in c:\users\Player1\miniconda3\envs\faceswap\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<3,>=2.3.0->tensorflow) (3.1.0)
Installing collected packages: numpy, tensorboard, tensorflow-estimator, tensorflow
Attempting uninstall: numpy
Found existing installation: numpy 1.19.1
Uninstalling numpy-1.19.1:
Successfully uninstalled numpy-1.19.1
Attempting uninstall: tensorboard
Found existing installation: tensorboard 2.2.2
Uninstalling tensorboard-2.2.2:
Successfully uninstalled tensorboard-2.2.2
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
tensorflow-gpu 2.2.0 requires tensorboard<2.3.0,>=2.2.0, but you'll have tensorboard 2.3.0 which is incompatible.
Successfully installed numpy-1.18.5 tensorboard-2.3.0 tensorflow-2.3.0 tensorflow-estimator-2.3.0[/code]
After that I tried running faceswap again and get this:
code C:\Users\Player1>"C:\Users\Player1\Miniconda3\scripts\activate.bat" && conda activate "faceswap" && python "C:\Users\Player1\faceswap\faceswap.py" gui
Setting Faceswap backend to NVIDIA
08/30/2020 16:01:03 INFO Log level set to: INFO
08/30/2020 16:01:03 ERROR There was an error importing Tensorflow. This is most likely because you do not have TensorFlow installed, or you are trying to run tensorflow-gpu on a system without an Nvidia graphics card. Original import error: Traceback (most recent call last):
08/30/2020 16:01:03 ERROR File "C:\Users\Player1\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
08/30/2020 16:01:03 ERROR from tensorflow.python._pywrap_tensorflow_internal import *
08/30/2020 16:01:03 ERROR ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.
08/30/2020 16:01:03 ERROR
08/30/2020 16:01:03 ERROR
08/30/2020 16:01:03 ERROR Failed to load the native TensorFlow runtime.
08/30/2020 16:01:03 ERROR
08/30/2020 16:01:03 ERROR See https://www.tensorflow.org/install/errors
08/30/2020 16:01:03 ERROR
08/30/2020 16:01:03 ERROR for some common reasons and solutions. Include the entire stack trace
08/30/2020 16:01:03 ERROR above this error message when asking for help.[/code]