The following error is displayed after pressing the “Extract” key:
Code: Select all
Loading...
Setting Faceswap backend to CPU
02/18/2020 17:23:05 INFO Log level set to: INFO
02/18/2020 17:23:12 ERROR Got Exception on main handler:
Traceback (most recent call last):
File "D:\faceswap\lib\cli.py", line 126, in execute_script
script = self.import_script()
File "D:\faceswap\lib\cli.py", line 40, in import_script
module = import_module(mod)
File "C:\Users\LDD\MiniConda3\envs\faceswap\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "D:\faceswap\scripts\extract.py", line 10, in <module>
from lib.image import encode_image_with_hash, ImagesLoader, ImagesSaver
File "D:\faceswap\lib\image.py", line 11, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'
02/18/2020 17:23:12 CRITICAL An unexpected crash has occurred. Crash report written to 'D:\faceswap\crash_report.2020.02.18.172312503349.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Process exited.
The logs are as follows:
02/18/2020 17:23:05 MainProcess MainThread logger log_setup INFO Log level set to: INFO
02/18/2020 17:23:05 MainProcess MainThread cli execute_script DEBUG Executing: extract. PID: 3804
02/18/2020 17:23:09 MainProcess MainThread cli test_for_tf_version DEBUG Installed Tensorflow Version: 1.15
Traceback (most recent call last):
File "D:\faceswap\lib\cli.py", line 126, in execute_script
script = self.import_script()
File "D:\faceswap\lib\cli.py", line 40, in import_script
module = import_module(mod)
File "C:\Users\LDD\MiniConda3\envs\faceswap\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "D:\faceswap\scripts\extract.py", line 10, in <module>
from lib.image import encode_image_with_hash, ImagesLoader, ImagesSaver
File "D:\faceswap\lib\image.py", line 11, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'
============ System Information ============
encoding: cp936
git_branch: master
git_commits: 7024047 Merge branch 'staging'
gpu_cuda: No global version found. Check Conda packages for Conda Cuda
gpu_cudnn: No global version found. Check Conda packages for Conda cuDNN
gpu_devices:
gpu_devices_active:
gpu_driver: No Nvidia driver found
gpu_vram:
os_machine: AMD64
os_platform: Windows-7-6.1.7601-SP1
os_release: 7
py_command: D:\faceswap\faceswap.py extract -i D:/Input/in6666 -o D:/Output/out6666 -D mtcnn -A fan -M components -nm hist -min 20 -l 0.4 -een 1 -sz 256 -si 0 -L INFO -gui
py_conda_version: conda 4.8.2
py_implementation: CPython
py_version: 3.7.6
py_virtual_env: True
sys_cores: 4
sys_processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
sys_ram: Total: 6087MB, Available: 2743MB, Used: 3344MB, Free: 2743MB
=============== Pip Packages ===============
absl-py==0.9.0
astor==0.8.0
certifi==2019.11.28
cloudpickle==1.3.0
cycler==0.10.0
cytoolz==0.10.1
dask==2.10.1
decorator==4.4.1
fastcluster==1.1.26
ffmpy==0.2.2
gast==0.2.2
google-pasta==0.1.8
grpcio==1.16.1
h5py==2.9.0
imageio==2.6.1
imageio-ffmpeg==0.3.0
joblib==0.14.1
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
Markdown==3.1.1
matplotlib==3.1.3
mkl-fft==1.0.15
mkl-random==1.1.0
mkl-service==2.3.0
networkx==2.4
numpy==1.17.4
nvidia-ml-py3==7.352.1
olefile==0.46
opt-einsum==3.1.0
pathlib==1.0.1
Pillow==6.2.1
protobuf==3.11.3
psutil==5.6.7
pyparsing==2.4.6
pyreadline==2.1
python-dateutil==2.8.1
pytz==2019.3
PyWavelets==1.1.1
pywin32==227
PyYAML==5.3
scikit-image==0.16.2
scikit-learn==0.22.1
scipy==1.4.1
six==1.14.0
tensorboard==2.0.0
tensorflow==1.15.0
tensorflow-estimator==1.15.1
termcolor==1.1.0
toolz==0.10.0
toposort==1.5
tornado==6.0.3
tqdm==4.42.1
Werkzeug==0.16.1
wincertstore==0.2
wrapt==1.11.2
Not even after the update. What should I do? Thank you.