Extraction keeps crashing

The Extraction process failing on you, and you aren't getting an error back with clear instructions? Tell us about it here


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Extraction process. If you want to get tips, or better understand the Extract process, then you should look in the Extract Discussion forum.

Please mark any answers that fixed your problems so others can find the solutions.

User avatar
depp
Posts: 3
Joined: Thu Mar 05, 2020 8:05 am

Extract stops at a specific frame with critical error [CPU]

Post by depp »

help!
I saw this error in the CONVERT section, and someone said its an "on-the-fly" problem, but i dont think i use that mode.
It already worked with a small video, but now it crashes every time ... with:

Code: Select all

03/05/2020 01:14:48 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:48 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:48 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:48 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:48 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:48 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:49 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:50 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:51 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     align_input_0   multithreading  run                       DEBUG    Error in thread (align_input_0): OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/05/2020 01:14:52 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E157908>
03/05/2020 01:14:52 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.1.2) C:\\projects\\opencv-python\\opencv\\modules\\imgproc\\src\\resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n"), <traceback object at 0x000000000EA260C8>)]
Traceback (most recent call last):
  File "C:\Users\admin\faceswap\lib\cli.py", line 128, in execute_script
    process.process()
  File "C:\Users\admin\faceswap\scripts\extract.py", line 114, in process
    self._run_extraction()
  File "C:\Users\admin\faceswap\scripts\extract.py", line 212, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "C:\Users\admin\Miniconda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1107, in __iter__
    for obj in iterable:
  File "C:\Users\admin\faceswap\plugins\extract\pipeline.py", line 211, in detected_faces
    if self._check_and_raise_error():
  File "C:\Users\admin\faceswap\plugins\extract\pipeline.py", line 476, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "C:\Users\admin\faceswap\plugins\extract\_base.py", line 296, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "C:\Users\admin\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\Users\admin\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\admin\faceswap\plugins\extract\_base.py", line 409, in _thread_process
    batch = function(batch)
  File "C:\Users\admin\faceswap\plugins\extract\align\cv2_dnn.py", line 54, in process_input
    faces, batch["roi"] = self.align_image(batch)
  File "C:\Users\admin\faceswap\plugins\extract\align\cv2_dnn.py", line 81, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         7de2821 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: C:\Users\admin\faceswap\faceswap.py extract -i C:/Users/admin/faceswap/workspace/data_dst.mp4 -o C:/Users/admin/faceswap/workspace/dst -D cv2-dnn -A cv2-dnn -M extended -nm none -min 0 -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: 4008MB, Available: 2379MB, Used: 1629MB, Free: 2379MB =============== Pip Packages =============== absl-py==0.9.0 asn1crypto==1.3.0 astor==0.8.0 blinker==1.4 cachetools==3.1.1 certifi==2019.11.28 cffi==1.14.0 chardet==3.0.4 Click==7.0 cloudpickle==1.3.0 cryptography==2.8 cycler==0.10.0 cytoolz==0.10.1 dask==2.11.0 decorator==4.4.1 fastcluster==1.1.26 ffmpy==0.2.2 gast==0.2.2 google-auth==1.11.2 google-auth-oauthlib==0.4.1 google-pasta==0.1.8 grpcio==1.27.2 h5py==2.9.0 idna==2.8 imageio==2.6.1 imageio-ffmpeg==0.4.1 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 oauthlib==3.1.0 olefile==0.46 opencv-python==4.1.2.30 opt-einsum==3.1.0 pathlib==1.0.1 Pillow==6.2.1 protobuf==3.11.4 psutil==5.6.7 pyasn1==0.4.8 pyasn1-modules==0.2.7 pycparser==2.19 PyJWT==1.7.1 pyOpenSSL==19.1.0 pyparsing==2.4.6 pyreadline==2.1 PySocks==1.7.1 python-dateutil==2.8.1 pytz==2019.3 PyWavelets==1.1.1 pywin32==227 PyYAML==5.3 requests==2.22.0 requests-oauthlib==1.3.0 rsa==4.0 scikit-image==0.16.2 scikit-learn==0.22.1 scipy==1.4.1 six==1.14.0 tensorboard==2.1.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 urllib3==1.25.8 Werkzeug==0.16.1 win-inet-pton==1.1.0 wincertstore==0.2 wrapt==1.11.2 ============== Conda Packages ============== # packages in environment at C:\Users\admin\Miniconda3\envs\faceswap: # # Name Version Build Channel _tflow_select 2.2.0 eigen
absl-py 0.9.0 py37_0
asn1crypto 1.3.0 py37_0
astor 0.8.0 py37_0
blas 1.0 mkl
blinker 1.4 py37_0
ca-certificates 2020.1.1 0
cachetools 3.1.1 py_0
certifi 2019.11.28 py37_0
cffi 1.14.0 py37h7a1dbc1_0
chardet 3.0.4 py37_1003
click 7.0 py37_0
cloudpickle 1.3.0 py_0
cryptography 2.8 py37h7a1dbc1_0
cycler 0.10.0 py37_0
cytoolz 0.10.1 py37he774522_0
dask-core 2.11.0 py_0
decorator 4.4.1 py_0
fastcluster 1.1.26 py37he350917_0 conda-forge ffmpeg 4.2 h6538335_0 conda-forge ffmpy 0.2.2 pypi_0 pypi freetype 2.9.1 ha9979f8_1
gast 0.2.2 py37_0
git 2.23.0 h6bb4b03_0
google-auth 1.11.2 py_0
google-auth-oauthlib 0.4.1 py_2
google-pasta 0.1.8 py_0
grpcio 1.27.2 py37h351948d_0
h5py 2.9.0 py37h5e291fa_0
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
idna 2.8 py37_0
imageio 2.6.1 py37_0
imageio-ffmpeg 0.4.1 py_0 conda-forge intel-openmp 2020.0 166
joblib 0.14.1 py_0
jpeg 9b hb83a4c4_2
keras 2.2.4 0
keras-applications 1.0.8 py_0
keras-base 2.2.4 py37_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.1.0 py37ha925a31_0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.11.4 h7bd577a_0
libtiff 4.1.0 h56a325e_0
markdown 3.1.1 py37_0
matplotlib 3.1.1 py37hc8f65d3_0
matplotlib-base 3.1.3 py37h64f37c6_0
mkl 2020.0 166
mkl-service 2.3.0 py37hb782905_0
mkl_fft 1.0.15 py37h14836fe_0
mkl_random 1.1.0 py37h675688f_0
networkx 2.4 py_0
numpy 1.17.4 py37h4320e6b_0
numpy-base 1.17.4 py37hc3f5095_0
nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 py_0
olefile 0.46 py37_0
opencv-python 4.1.2.30 pypi_0 pypi openssl 1.1.1d he774522_4
opt_einsum 3.1.0 py_0
pathlib 1.0.1 py37_1
pillow 6.2.1 py37hdc69c19_0
pip 20.0.2 py37_1
protobuf 3.11.4 py37h33f27b4_0
psutil 5.6.7 py37he774522_0
pyasn1 0.4.8 py_0
pyasn1-modules 0.2.7 py_0
pycparser 2.19 py37_0
pyjwt 1.7.1 py37_0
pyopenssl 19.1.0 py37_0
pyparsing 2.4.6 py_0
pyqt 5.9.2 py37h6538335_2
pyreadline 2.1 py37_1
pysocks 1.7.1 py37_0
python 3.7.6 h60c2a47_2
python-dateutil 2.8.1 py_0
pytz 2019.3 py_0
pywavelets 1.1.1 py37he774522_0
pywin32 227 py37he774522_1
pyyaml 5.3 py37he774522_0
qt 5.9.7 vc14h73c81de_0
requests 2.22.0 py37_1
requests-oauthlib 1.3.0 py_0
rsa 4.0 py_0
scikit-image 0.16.2 py37h47e9c7a_0
scikit-learn 0.22.1 py37h6288b17_0
scipy 1.4.1 py37h9439919_0
setuptools 45.2.0 py37_0
sip 4.19.8 py37h6538335_0
six 1.14.0 py37_0
sqlite 3.31.1 he774522_0
tensorboard 2.1.0 py3_0
tensorflow 1.15.0 eigen_py37h9f89a44_0
tensorflow-base 1.15.0 eigen_py37h07d2309_0
tensorflow-estimator 1.15.1 pyh2649769_0
termcolor 1.1.0 py37_1
tk 8.6.8 hfa6e2cd_0
toolz 0.10.0 py_0
toposort 1.5 py_3 conda-forge tornado 6.0.3 py37he774522_3
tqdm 4.42.1 py_0
urllib3 1.25.8 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_1
werkzeug 0.16.1 py_0
wheel 0.34.2 py37_0
win_inet_pton 1.1.0 py37_0
wincertstore 0.2 py37_0
wrapt 1.11.2 py37he774522_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0 ================= Configs ================== --------- .faceswap --------- backend: cpu --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [color.match_hist] threshold: 99.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [scaling.sharpen] method: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 8 [mask.vgg_clear] batch-size: 6 [mask.vgg_obstructed] batch-size: 2 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] coverage: 72.56 mask_type: none mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False icnr_init: False conv_aware_init: False subpixel_upscaling: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4

At the moment, i only have cpu power and try to run it with an old machine. Maybe its to slow?

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Extract stops at a specific frame with critical error [CPU]

Post by torzdf »

It's a problem that seems to be specific to the cv2-dnn detecter/aligner, but I've never been able to replicate this issue to be able to bug fix (on-the-fly uses the same combination, hence the connection).

If the video is one you can share with me (PM is fine) then I can look to try to track this down.

My word is final

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Extract stops at a specific frame with critical error [CPU]

Post by torzdf »

By complete coincidence, I hit this error when working on something else. A fix has been pushed. Please update.

My word is final

User avatar
depp
Posts: 3
Joined: Thu Mar 05, 2020 8:05 am

Re: Extract stops at a specific frame with critical error [CPU]

Post by depp »

Thanks for the help!

I updated and it went a lot further but then again:

Code: Select all

03/09/2020 20:08:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028498.png
03/09/2020 20:08:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028499.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028500.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028501.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028502.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028503.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028504.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028505.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028506.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028507.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028508.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028509.png
03/09/2020 20:09:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028510.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028511.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028512.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028513.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028514.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028515.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028516.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028517.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028518.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028519.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028520.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028521.png
03/09/2020 20:09:01 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028522.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028523.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028524.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028525.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028526.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028527.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028528.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028529.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028530.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028531.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028532.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028533.png
03/09/2020 20:09:02 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028534.png
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028535.png
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028536.png
03/09/2020 20:09:03 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:03 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028538.png
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028539.png
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028540.png
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028541.png
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028542.png
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028543.png
03/09/2020 20:09:03 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:03 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028545.png
03/09/2020 20:09:03 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028546.png
03/09/2020 20:09:04 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028547.png
03/09/2020 20:09:04 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028548.png
03/09/2020 20:09:04 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:04 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:04 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028550.png
03/09/2020 20:09:04 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028551.png
03/09/2020 20:09:04 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:04 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:04 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028553.png
03/09/2020 20:09:04 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:04 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:04 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028555.png
03/09/2020 20:09:04 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028556.png
03/09/2020 20:09:05 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028557.png
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:05 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028560.png
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:05 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:06 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028570.png
03/09/2020 20:09:06 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028571.png
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:06 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:07 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:07 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:07 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
03/09/2020 20:09:07 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000000E149808>
03/09/2020 20:09:07 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028575.png
03/09/2020 20:09:07 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: data_dst_028576.png
03/09/2020 20:09:07 MainProcess     align_input_0   multithreading  run                       DEBUG    Error in thread (align_input_0): OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n
03/09/2020 20:09:08 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.1.2) C:\\projects\\opencv-python\\opencv\\modules\\imgproc\\src\\resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n"), <traceback object at 0x0000000016F5FF88>)]
Traceback (most recent call last):
  File "C:\Users\admin\faceswap\lib\cli.py", line 128, in execute_script
    process.process()
  File "C:\Users\admin\faceswap\scripts\extract.py", line 114, in process
    self._run_extraction()
  File "C:\Users\admin\faceswap\scripts\extract.py", line 212, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "C:\Users\admin\Miniconda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1107, in __iter__
    for obj in iterable:
  File "C:\Users\admin\faceswap\plugins\extract\pipeline.py", line 211, in detected_faces
    if self._check_and_raise_error():
  File "C:\Users\admin\faceswap\plugins\extract\pipeline.py", line 476, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "C:\Users\admin\faceswap\plugins\extract\_base.py", line 296, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "C:\Users\admin\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\Users\admin\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\admin\faceswap\plugins\extract\_base.py", line 409, in _thread_process
    batch = function(batch)
  File "C:\Users\admin\faceswap\plugins\extract\align\cv2_dnn.py", line 54, in process_input
    faces, batch["roi"], batch["offsets"] = self.align_image(batch)
  File "C:\Users\admin\faceswap\plugins\extract\align\cv2_dnn.py", line 83, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         65eb905 Merge branch 'staging'. e58fd53 bugfix: CV2-DNN aligner. Fix Assertion error when bounding box falls out of frame. 7de2821 Merge branch 'staging'. 6e08c95 bug fix: tools.alignments. Set filename correctly when merging alignments
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: C:\Users\admin\faceswap\faceswap.py extract -i C:/Users/admin/faceswap/workspace/data_dst.mp4 -o C:/Users/admin/faceswap/workspace/dst -D cv2-dnn -A cv2-dnn -M extended -nm none -min 0 -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: 4008MB, Available: 1809MB, Used: 2199MB, Free: 1809MB =============== Pip Packages =============== absl-py==0.9.0 asn1crypto==1.3.0 astor==0.8.0 blinker==1.4 cachetools==3.1.1 certifi==2019.11.28 cffi==1.14.0 chardet==3.0.4 Click==7.0 cloudpickle==1.3.0 cryptography==2.8 cycler==0.10.0 cytoolz==0.10.1 dask==2.11.0 decorator==4.4.1 fastcluster==1.1.26 ffmpy==0.2.2 gast==0.2.2 google-auth==1.11.2 google-auth-oauthlib==0.4.1 google-pasta==0.1.8 grpcio==1.27.2 h5py==2.9.0 idna==2.8 imageio==2.6.1 imageio-ffmpeg==0.4.1 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 oauthlib==3.1.0 olefile==0.46 opencv-python==4.1.2.30 opt-einsum==3.1.0 pathlib==1.0.1 Pillow==6.2.1 protobuf==3.11.4 psutil==5.6.7 pyasn1==0.4.8 pyasn1-modules==0.2.7 pycparser==2.19 PyJWT==1.7.1 pyOpenSSL==19.1.0 pyparsing==2.4.6 pyreadline==2.1 PySocks==1.7.1 python-dateutil==2.8.1 pytz==2019.3 PyWavelets==1.1.1 pywin32==227 PyYAML==5.3 requests==2.22.0 requests-oauthlib==1.3.0 rsa==4.0 scikit-image==0.16.2 scikit-learn==0.22.1 scipy==1.4.1 six==1.14.0 tensorboard==2.1.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 urllib3==1.25.8 Werkzeug==0.16.1 win-inet-pton==1.1.0 wincertstore==0.2 wrapt==1.11.2 ============== Conda Packages ============== # packages in environment at C:\Users\admin\Miniconda3\envs\faceswap: # # Name Version Build Channel _tflow_select 2.2.0 eigen
absl-py 0.9.0 py37_0
asn1crypto 1.3.0 py37_0
astor 0.8.0 py37_0
blas 1.0 mkl
blinker 1.4 py37_0
ca-certificates 2020.1.1 0
cachetools 3.1.1 py_0
certifi 2019.11.28 py37_0
cffi 1.14.0 py37h7a1dbc1_0
chardet 3.0.4 py37_1003
click 7.0 py37_0
cloudpickle 1.3.0 py_0
cryptography 2.8 py37h7a1dbc1_0
cycler 0.10.0 py37_0
cytoolz 0.10.1 py37he774522_0
dask-core 2.11.0 py_0
decorator 4.4.1 py_0
fastcluster 1.1.26 py37he350917_0 conda-forge ffmpeg 4.2 h6538335_0 conda-forge ffmpy 0.2.2 pypi_0 pypi freetype 2.9.1 ha9979f8_1
gast 0.2.2 py37_0
git 2.23.0 h6bb4b03_0
google-auth 1.11.2 py_0
google-auth-oauthlib 0.4.1 py_2
google-pasta 0.1.8 py_0
grpcio 1.27.2 py37h351948d_0
h5py 2.9.0 py37h5e291fa_0
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
idna 2.8 py37_0
imageio 2.6.1 py37_0
imageio-ffmpeg 0.4.1 py_0 conda-forge intel-openmp 2020.0 166
joblib 0.14.1 py_0
jpeg 9b hb83a4c4_2
keras 2.2.4 0
keras-applications 1.0.8 py_0
keras-base 2.2.4 py37_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.1.0 py37ha925a31_0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.11.4 h7bd577a_0
libtiff 4.1.0 h56a325e_0
markdown 3.1.1 py37_0
matplotlib 3.1.1 py37hc8f65d3_0
matplotlib-base 3.1.3 py37h64f37c6_0
mkl 2020.0 166
mkl-service 2.3.0 py37hb782905_0
mkl_fft 1.0.15 py37h14836fe_0
mkl_random 1.1.0 py37h675688f_0
networkx 2.4 py_0
numpy 1.17.4 py37h4320e6b_0
numpy-base 1.17.4 py37hc3f5095_0
nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 py_0
olefile 0.46 py37_0
opencv-python 4.1.2.30 pypi_0 pypi openssl 1.1.1d he774522_4
opt_einsum 3.1.0 py_0
pathlib 1.0.1 py37_1
pillow 6.2.1 py37hdc69c19_0
pip 20.0.2 py37_1
protobuf 3.11.4 py37h33f27b4_0
psutil 5.6.7 py37he774522_0
pyasn1 0.4.8 py_0
pyasn1-modules 0.2.7 py_0
pycparser 2.19 py37_0
pyjwt 1.7.1 py37_0
pyopenssl 19.1.0 py37_0
pyparsing 2.4.6 py_0
pyqt 5.9.2 py37h6538335_2
pyreadline 2.1 py37_1
pysocks 1.7.1 py37_0
python 3.7.6 h60c2a47_2
python-dateutil 2.8.1 py_0
pytz 2019.3 py_0
pywavelets 1.1.1 py37he774522_0
pywin32 227 py37he774522_1
pyyaml 5.3 py37he774522_0
qt 5.9.7 vc14h73c81de_0
requests 2.22.0 py37_1
requests-oauthlib 1.3.0 py_0
rsa 4.0 py_0
scikit-image 0.16.2 py37h47e9c7a_0
scikit-learn 0.22.1 py37h6288b17_0
scipy 1.4.1 py37h9439919_0
setuptools 45.2.0 py37_0
sip 4.19.8 py37h6538335_0
six 1.14.0 py37_0
sqlite 3.31.1 he774522_0
tensorboard 2.1.0 py3_0
tensorflow 1.15.0 eigen_py37h9f89a44_0
tensorflow-base 1.15.0 eigen_py37h07d2309_0
tensorflow-estimator 1.15.1 pyh2649769_0
termcolor 1.1.0 py37_1
tk 8.6.8 hfa6e2cd_0
toolz 0.10.0 py_0
toposort 1.5 py_3 conda-forge tornado 6.0.3 py37he774522_3
tqdm 4.42.1 py_0
urllib3 1.25.8 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_1
werkzeug 0.16.1 py_0
wheel 0.34.2 py37_0
win_inet_pton 1.1.0 py37_0
wincertstore 0.2 py37_0
wrapt 1.11.2 py37he774522_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0 ================= Configs ================== --------- .faceswap --------- backend: cpu --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [color.match_hist] threshold: 99.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [scaling.sharpen] method: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 8 [mask.vgg_clear] batch-size: 6 [mask.vgg_obstructed] batch-size: 2 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] coverage: 70.73 mask_type: extended mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False icnr_init: False conv_aware_init: False subpixel_upscaling: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Extract stops at a specific frame with critical error [CPU]

Post by torzdf »

If you can share the video C:/Users/admin/faceswap/workspace/data_dst.mp4 that would be helpful

My word is final

User avatar
depp
Posts: 3
Joined: Thu Mar 05, 2020 8:05 am

Re: Extract stops at a specific frame with critical error [CPU]

Post by depp »

Is youtube link enough?
:D

I also have a problem with the alignment tool and the DFL mode. I tried to create an alignment file out of the images extracted half way.
Should i ask it in the extract secxtion?
Not sure whats the status of the alignment tool atm. Read something of a "complete re-work on the todo list".

User avatar
najvecjicar
Posts: 3
Joined: Fri Jun 12, 2020 6:00 pm

Critical error - cv2.error: OpenCV(4.2.0)

Post by najvecjicar »

Hi there, sorry if this error already came up here and I missed it, but I'm encountering a problem whilst extracting faces from a data set.

This is the error code inside the GUI:

Code: Select all

Loading...
Setting Faceswap backend to CPU
06/12/2020 20:11:32 INFO     Log level set to: INFO
06/12/2020 20:11:34 INFO     Output Directory: C:\Users\Admin\Desktop\orig_pics\New folder
06/12/2020 20:11:34 INFO     Loading Detect from Cv2_Dnn plugin...
06/12/2020 20:11:34 INFO     Loading Align from Cv2_Dnn plugin...
06/12/2020 20:11:34 INFO     Loading Mask from Components plugin...
06/12/2020 20:11:34 INFO     Loading Mask from Extended plugin...
06/12/2020 20:11:34 INFO     Starting, this may take a while...
06/12/2020 20:11:34 INFO     Initializing cv2-DNN Detector (Detect)...
06/12/2020 20:11:34 INFO     Initialized cv2-DNN Detector (Detect) with batchsize of 1
06/12/2020 20:11:34 INFO     Initializing cv2-DNN Aligner (Align)...
06/12/2020 20:11:34 INFO     Initialized cv2-DNN Aligner (Align) with batchsize of 1
06/12/2020 20:11:34 INFO     Initializing Components (Mask)...
06/12/2020 20:11:34 INFO     Initialized Components (Mask) with batchsize of 1
06/12/2020 20:11:34 INFO     Initializing Extended (Mask)...
06/12/2020 20:11:34 INFO     Initialized Extended (Mask) with batchsize of 1

06/12/2020 20:13:05 ERROR    Got Exception on main handler:
Traceback (most recent call last):
File "C:\Users\Admin\faceswap\lib\cli\launcher.py", line 155, in execute_script
process.process()
File "C:\Users\Admin\faceswap\scripts\extract.py", line 116, in process
self._run_extraction()
File "C:\Users\Admin\faceswap\scripts\extract.py", line 212, in _run_extraction
for idx, extract_media in enumerate(status_bar):
File "C:\Users\Admin\Anaconda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1129, in __iter__
for obj in iterable:
File "C:\Users\Admin\faceswap\plugins\extract\pipeline.py", line 229, in detected_faces
if self._check_and_raise_error():
File "C:\Users\Admin\faceswap\plugins\extract\pipeline.py", line 648, in _check_and_raise_error
if plugin.check_and_raise_error():
File "C:\Users\Admin\faceswap\plugins\extract\_base.py", line 300, in check_and_raise_error
err = thread.check_and_raise_error()
File "C:\Users\Admin\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
raise error[1].with_traceback(error[2])
File "C:\Users\Admin\faceswap\lib\multithreading.py", line 37, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Admin\faceswap\plugins\extract\_base.py", line 418, in _thread_process
batch = function(batch)
File "C:\Users\Admin\faceswap\plugins\extract\align\cv2_dnn.py", line 54, in process_input
faces, batch["roi"], batch["offsets"] = self.align_image(batch)
File "C:\Users\Admin\faceswap\plugins\extract\align\cv2_dnn.py", line 82, in align_image
face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

06/12/2020 20:13:05 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\Users\Admin\faceswap\crash_report.2020.06.12.201302172912.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Process exited.

And here is the crash report:

Code: Select all

 06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1804-object-1.png
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1806-object-1.png
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:58 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:58 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1807-object-1.png
06/12/2020 20:12:58 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1807-object-2.png
06/12/2020 20:12:58 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1807-object-3.png
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1808-object-2.png
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1809-object-1.png
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1809-object-2.png
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id181-object-1.png
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1810-object-2.png
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1811-object-1.png
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1811-object-2.png
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1814-object-2.png
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:12:59 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1815-object-2.png
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1815-object-3.png
06/12/2020 20:12:59 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1816-object-1.png
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1816-object-3.png
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1817-object-1.png
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1818-object-1.png
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1819-object-1.png
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1820-object-1.png
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1821-object-2.png
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1822-object-1.png
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:00 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1823-object-2.png
06/12/2020 20:13:00 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: img-id1824-object-1.png
06/12/2020 20:13:01 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:01 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:01 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:01 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:01 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:01 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:01 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/12/2020 20:13:01 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000000D79A87D988>
06/12/2020 20:13:01 MainProcess     align_cv2-dnn_aligner_input_0 multithreading  run                       DEBUG    Error in thread (align_cv2-dnn_aligner_input_0): OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n
06/12/2020 20:13:02 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.2.0) C:\\projects\\opencv-python\\opencv\\modules\\imgproc\\src\\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n"), <traceback object at 0x000000D79C49C2C8>)]
Traceback (most recent call last):
  File "C:\Users\Admin\faceswap\lib\cli\launcher.py", line 155, in execute_script
    process.process()
  File "C:\Users\Admin\faceswap\scripts\extract.py", line 116, in process
    self._run_extraction()
  File "C:\Users\Admin\faceswap\scripts\extract.py", line 212, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "C:\Users\Admin\Anaconda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1129, in __iter__
    for obj in iterable:
  File "C:\Users\Admin\faceswap\plugins\extract\pipeline.py", line 229, in detected_faces
    if self._check_and_raise_error():
  File "C:\Users\Admin\faceswap\plugins\extract\pipeline.py", line 648, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "C:\Users\Admin\faceswap\plugins\extract\_base.py", line 300, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "C:\Users\Admin\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\Users\Admin\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Admin\faceswap\plugins\extract\_base.py", line 418, in _thread_process
    batch = function(batch)
  File "C:\Users\Admin\faceswap\plugins\extract\align\cv2_dnn.py", line 54, in process_input
    faces, batch["roi"], batch["offsets"] = self.align_image(batch)
  File "C:\Users\Admin\faceswap\plugins\extract\align\cv2_dnn.py", line 82, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


============ System Information ============
encoding:            cp1250
git_branch:          master
git_commits:         127d3db Dependencies update (#1028)
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_0: GeForce GTX 670
gpu_devices_active:  GPU_0
gpu_driver:          445.75
gpu_vram:            GPU_0: 2048MB
os_machine:          AMD64
os_platform:         Windows-8.1-6.3.9600-SP0
os_release:          8.1
py_command:          C:\Users\Admin\faceswap\faceswap.py extract -i C:/Users/Admin/Desktop/orig_pics -o C:/Users/Admin/Desktop/orig_pics/New folder -D cv2-dnn -A cv2-dnn -nm none -min 0 -l 0.4 -een 1 -sz 256 -si 0 -L INFO -gui
py_conda_version:    conda 4.7.12
py_implementation:   CPython
py_version:          3.7.7
py_virtual_env:      True
sys_cores:           8
sys_processor:       Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
sys_ram:             Total: 12173MB, Available: 4162MB, Used: 8010MB, Free: 4162MB

=============== Pip Packages ===============
absl-py==0.9.0
astor==0.8.1
astunparse==1.6.3
cachetools==4.1.0
certifi==2020.4.5.1
chardet==3.0.4
cycler==0.10.0
decorator==4.4.2
fastcluster==1.1.26
ffmpy==0.2.3
gast==0.2.2
google-auth==1.17.1
google-auth-oauthlib==0.4.1
google-pasta==0.2.0
grpcio==1.29.0
h5py==2.10.0
idna==2.9
imageio==2.8.0
imageio-ffmpeg==0.4.2
importlib-metadata==1.6.1
joblib==0.15.1
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver==1.2.0
Markdown==3.2.2
matplotlib==3.2.1
networkx==2.4
numpy==1.18.5
nvidia-ml-py3==7.352.1
oauthlib==3.1.0
opencv-python==4.2.0.34
opt-einsum==3.2.1
pathlib==1.0.1
Pillow==7.1.2
protobuf==3.12.2
psutil==5.7.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pyparsing==2.4.7
python-dateutil==2.8.1
PyWavelets==1.1.1
pywin32==227
PyYAML==5.3.1
requests==2.23.0
requests-oauthlib==1.3.0
rsa==4.2
scikit-image==0.17.2
scikit-learn==0.23.1
scipy==1.4.1
six==1.15.0
tensorboard==1.15.0
tensorboard-plugin-wit==1.6.0.post3
tensorflow==1.15.0
tensorflow-estimator==1.15.1
tensorflow-gpu==1.15.3
termcolor==1.1.0
threadpoolctl==2.1.0
tifffile==2020.6.3
toposort==1.5
tqdm==4.46.1
urllib3==1.25.9
Werkzeug==1.0.1
wincertstore==0.2
wrapt==1.12.1
zipp==3.1.0

============== Conda Packages ==============
# packages in environment at C:\Users\Admin\Anaconda3\envs\faceswap:
#
# Name                    Version                   Build  Channel
absl-py                   0.9.0                    pypi_0    pypi
astor                     0.8.1                    pypi_0    pypi
astunparse                1.6.3                    pypi_0    pypi
ca-certificates           2020.1.1                      0  
cachetools 4.1.0 pypi_0 pypi certifi 2020.4.5.1 py37_0
chardet 3.0.4 pypi_0 pypi cycler 0.10.0 pypi_0 pypi decorator 4.4.2 pypi_0 pypi fastcluster 1.1.26 pypi_0 pypi ffmpy 0.2.3 pypi_0 pypi gast 0.2.2 pypi_0 pypi google-auth 1.17.1 pypi_0 pypi google-auth-oauthlib 0.4.1 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.29.0 pypi_0 pypi h5py 2.10.0 pypi_0 pypi idna 2.9 pypi_0 pypi imageio 2.8.0 pypi_0 pypi imageio-ffmpeg 0.4.2 pypi_0 pypi importlib-metadata 1.6.1 pypi_0 pypi joblib 0.15.1 pypi_0 pypi keras 2.2.4 pypi_0 pypi keras-applications 1.0.8 pypi_0 pypi keras-preprocessing 1.1.2 pypi_0 pypi kiwisolver 1.2.0 pypi_0 pypi markdown 3.2.2 pypi_0 pypi matplotlib 3.2.1 pypi_0 pypi networkx 2.4 pypi_0 pypi numpy 1.18.5 pypi_0 pypi nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 pypi_0 pypi opencv-python 4.2.0.34 pypi_0 pypi openssl 1.1.1g he774522_0
opt-einsum 3.2.1 pypi_0 pypi pathlib 1.0.1 pypi_0 pypi pillow 7.1.2 pypi_0 pypi pip 20.0.2 py37_3
protobuf 3.12.2 pypi_0 pypi psutil 5.7.0 pypi_0 pypi pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi python 3.7.7 h81c818b_4
python-dateutil 2.8.1 pypi_0 pypi pywavelets 1.1.1 pypi_0 pypi pywin32 227 pypi_0 pypi pyyaml 5.3.1 pypi_0 pypi requests 2.23.0 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi rsa 4.2 pypi_0 pypi scikit-image 0.17.2 pypi_0 pypi scikit-learn 0.23.1 pypi_0 pypi scipy 1.4.1 pypi_0 pypi setuptools 47.1.1 py37_0
six 1.15.0 pypi_0 pypi sqlite 3.31.1 h2a8f88b_1
tensorboard 1.15.0 pypi_0 pypi tensorboard-plugin-wit 1.6.0.post3 pypi_0 pypi tensorflow 1.15.0 pypi_0 pypi tensorflow-estimator 1.15.1 pypi_0 pypi tensorflow-gpu 1.15.3 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi threadpoolctl 2.1.0 pypi_0 pypi tifffile 2020.6.3 pypi_0 pypi tk 8.6.8 hfa6e2cd_0
toposort 1.5 pypi_0 pypi tqdm 4.46.1 pypi_0 pypi urllib3 1.25.9 pypi_0 pypi vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_2
werkzeug 1.0.1 pypi_0 pypi wheel 0.34.2 py37_0
wincertstore 0.2 py37_0
wrapt 1.12.1 pypi_0 pypi zipp 3.1.0 pypi_0 pypi zlib 1.2.11 h62dcd97_4 ================= Configs ================== --------- .faceswap --------- backend: cpu --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [color.match_hist] threshold: 99.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [scaling.sharpen] method: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 8 [mask.vgg_clear] batch-size: 6 [mask.vgg_obstructed] batch-size: 2 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] coverage: 68.75 mask_type: none mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False icnr_init: False conv_aware_init: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4

From what I understand, this error appears when some images have height > width. I've tried deleting some of the pictures inside the data set just to be safe, but the error still appears. Any help would be greatly appreciated.

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Critical error - cv2.error: OpenCV(4.2.0)

Post by torzdf »

This is an error which has been reported a few times, but we've never been able to replicate.

If you can provide your source data, we can attempt to replicate it to provide a fix.

My word is final

User avatar
najvecjicar
Posts: 3
Joined: Fri Jun 12, 2020 6:00 pm

Re: Critical error - cv2.error: OpenCV(4.2.0)

Post by najvecjicar »

Sent you the link to the dataset over private message. Will post it publicly if there is interest.

User avatar
najvecjicar
Posts: 3
Joined: Fri Jun 12, 2020 6:00 pm

Re: Critical error - cv2.error: OpenCV(4.2.0)

Post by najvecjicar »

Still looking (and hoping) for a solution. The dataset used can be found on the link below:
https://github.com/cvjena/chimpanzee_faces

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Critical error - cv2.error: OpenCV(4.2.0)

Post by torzdf »

I haven't had a chance to look at this yet, but I do plan to.

My word is final

User avatar
burgew
Posts: 2
Joined: Mon Aug 24, 2020 12:33 am
Has thanked: 1 time

Unexpected Crash during extraction : cv2.error: OpenCV(4.4.0)

Post by burgew »

I'm doing an extraction on Mac OS/X, and have gotten this error after processing about 24% of 48116 video frames extraction. Here's the stack trace and I have appended the contents of the log file. Also, I am running the latest and greatest version of the project, having done a git pull just before starting the extraction (commit 1f9e834719282245ed245ec2266412e03d13b1bc).

Code: Select all

eback (most recent call last):
  File "/Users/burgew/Develop/github/faceswap/lib/cli/launcher.py", line 156, in execute_script
    process.process()
  File "/Users/burgew/Develop/github/faceswap/scripts/extract.py", line 117, in process
    self._run_extraction()
  File "/Users/burgew/Develop/github/faceswap/scripts/extract.py", line 213, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "/Users/burgew/miniconda3/envs/py3.7-face/lib/python3.7/site-packages/tqdm/std.py", line 1130, in __iter__
    for obj in iterable:
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/pipeline.py", line 233, in detected_faces
    if self._check_and_raise_error():
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/pipeline.py", line 655, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/_base.py", line 302, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "/Users/burgew/Develop/github/faceswap/lib/multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "/Users/burgew/Develop/github/faceswap/lib/multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/_base.py", line 420, in _thread_process
    batch = function(batch)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/align/cv2_dnn.py", line 54, in process_input
    faces, batch["roi"], batch["offsets"] = self.align_image(batch)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/align/cv2_dnn.py", line 82, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-nxr3bp45/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

Log File:

08/23/2020 17:27:24 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011609.png
08/23/2020 17:27:24 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011610.png
08/23/2020 17:27:24 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011611.png
08/23/2020 17:27:24 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011612.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011613.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011614.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011615.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011616.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011617.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011618.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011619.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011620.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011621.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011622.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011623.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011624.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011625.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011626.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011627.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011628.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011629.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011630.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011631.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011632.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011633.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011634.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011635.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011636.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011637.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011638.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011639.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011640.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011641.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011642.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011643.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011644.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011645.png
08/23/2020 17:27:25 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011646.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011647.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011648.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011649.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011650.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011651.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011652.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011653.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011654.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011655.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011656.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011657.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011658.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011659.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011660.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011661.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011662.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011663.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011664.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011665.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011666.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011667.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011668.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011669.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011670.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011671.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011672.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011673.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011674.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011675.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011676.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011677.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011678.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011679.png
08/23/2020 17:27:26 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011680.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011681.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011682.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011683.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011684.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011685.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011686.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011687.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011688.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011689.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011690.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011691.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011692.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011693.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011694.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011695.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011696.png
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011698.png
08/23/2020 17:27:27 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
08/23/2020 17:27:27 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x7fdd41c217d0>
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011699.png
08/23/2020 17:27:27 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
08/23/2020 17:27:27 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x7fdd41c217d0>
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011702.png
08/23/2020 17:27:27 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
08/23/2020 17:27:27 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x7fdd41c217d0>
08/23/2020 17:27:27 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011703.png
08/23/2020 17:27:27 MainProcess     align_cv2-dnn_aligner_input_0 multithreading  run                       DEBUG    Error in thread (align_cv2-dnn_aligner_input_0): OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-nxr3bp45/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'\n
08/23/2020 17:27:28 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-nxr3bp45/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'\n"), <traceback object at 0x7fdd2d4df6e0>)]
Traceback (most recent call last):
  File "/Users/burgew/Develop/github/faceswap/lib/cli/launcher.py", line 156, in execute_script
    process.process()
  File "/Users/burgew/Develop/github/faceswap/scripts/extract.py", line 117, in process
    self._run_extraction()
  File "/Users/burgew/Develop/github/faceswap/scripts/extract.py", line 213, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "/Users/burgew/miniconda3/envs/py3.7-face/lib/python3.7/site-packages/tqdm/std.py", line 1130, in __iter__
    for obj in iterable:
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/pipeline.py", line 233, in detected_faces
    if self._check_and_raise_error():
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/pipeline.py", line 655, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/_base.py", line 302, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "/Users/burgew/Develop/github/faceswap/lib/multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "/Users/burgew/Develop/github/faceswap/lib/multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/_base.py", line 420, in _thread_process
    batch = function(batch)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/align/cv2_dnn.py", line 54, in process_input
    faces, batch["roi"], batch["offsets"] = self.align_image(batch)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/align/cv2_dnn.py", line 82, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-nxr3bp45/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'


============ System Information ============
encoding:            UTF-8
git_branch:          master
git_commits:         1f9e834 typofix. 0e31b98 Training - Add L2 Regularization to Structural Losses. 83bd60d training - Use explicit loss dictionaries to map to outputs. d5c62d1 bugfix - Training - Prevent crash on manual preview update. 8c8e1b2 Training Config - Split Loss to it's own section
gpu_cuda:            Unsupported OS. Check Conda packages for Conda Cuda
gpu_cudnn:           Unsupported OS. Check Conda packages for Conda cuDNN
gpu_devices:         
gpu_devices_active:
gpu_driver: 0 gpu_vram:
os_machine: x86_64 os_platform: Darwin-19.6.0-x86_64-i386-64bit os_release: 19.6.0 py_command: faceswap.py extract -i /Users/burgew/Data/faceswap/src/Marica/Marica.GregBeard.1080P_4000K_266431232.mp4 -o /Users/burgew/Data/faceswap/samples/Marica py_conda_version: conda 4.8.0 py_implementation: CPython py_version: 3.7.8 py_virtual_env: True sys_cores: 12 sys_processor: i386 sys_ram: Total: 16384MB, Available: 5016MB, Used: 8217MB, Free: 74MB =============== Pip Packages =============== absl-py==0.10.0 astunparse==1.6.3 cachetools==4.1.1 certifi==2020.6.20 cffi==1.14.2 chardet==3.0.4 cycler==0.10.0 enum34==1.1.10 fastcluster==1.1.26 ffmpy==0.2.3 gast==0.3.3 google-auth==1.20.1 google-auth-oauthlib==0.4.1 google-pasta==0.2.0 grpcio==1.31.0 h5py==2.10.0 idna==2.10 imageio @ file:///home/conda/feedstock_root/build_artifacts/imageio_1594044661732/work imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1589202782679/work importlib-metadata==1.7.0 joblib @ file:///home/conda/feedstock_root/build_artifacts/joblib_1593624380152/work Keras==2.2.4 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.2 kiwisolver==1.2.0 Markdown==3.2.2 matplotlib @ file:///Users/runner/miniforge3/conda-bld/matplotlib-base_1594091703837/work numpy @ file:///Users/runner/miniforge3/conda-bld/numpy_1597938419070/work nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6 oauthlib==3.1.0 olefile==0.46 opencv-python==4.4.0.42 opt-einsum==3.3.0 Pillow @ file:///Users/runner/miniforge3/conda-bld/pillow_1594212133169/work plaidml==0.7.0 plaidml-keras==0.7.0 protobuf==3.13.0 psutil @ file:///Users/runner/miniforge3/conda-bld/psutil_1594826940124/work pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 pynvx==1.0.0 pyparsing==2.4.7 python-dateutil==2.8.1 PyYAML==5.3.1 requests==2.24.0 requests-oauthlib==1.3.0 rsa==4.6 scikit-learn @ file:///Users/runner/miniforge3/conda-bld/scikit-learn_1596546094462/work scipy==1.4.1 six @ file:///home/conda/feedstock_root/build_artifacts/six_1590081179328/work tensorboard==2.2.2 tensorboard-plugin-wit==1.7.0 tensorflow==2.2.0 tensorflow-estimator==2.2.0 termcolor==1.1.0 threadpoolctl @ file:///tmp/tmp79xdzxkt/threadpoolctl-2.1.0-py3-none-any.whl tornado==6.0.4 tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1596476591553/work urllib3==1.25.10 Werkzeug==1.0.1 wrapt==1.12.1 zipp==3.1.0 ============== Conda Packages ============== # packages in environment at /Users/burgew/miniconda3/envs/py3.7-face: # # Name Version Build Channel absl-py 0.10.0 pypi_0 pypi astunparse 1.6.3 pypi_0 pypi bzip2 1.0.8 haf1e3a3_3 conda-forge ca-certificates 2020.6.20 hecda079_0 conda-forge cachetools 4.1.1 pypi_0 pypi certifi 2020.6.20 py37hc8dfbb8_0 conda-forge cffi 1.14.2 pypi_0 pypi chardet 3.0.4 pypi_0 pypi cycler 0.10.0 py_2 conda-forge enum34 1.1.10 pypi_0 pypi fastcluster 1.1.26 py37h94625e5_1 conda-forge ffmpeg 4.3.1 h9903f1f_0 conda-forge ffmpy 0.2.3 pypi_0 pypi freetype 2.10.2 h8da9a1a_0 conda-forge gast 0.3.3 pypi_0 pypi gettext 0.19.8.1 h46ab8bc_1002 conda-forge gmp 6.2.0 h4a8c4bd_2 conda-forge gnutls 3.6.13 hc269f14_0 conda-forge google-auth 1.20.1 pypi_0 pypi google-auth-oauthlib 0.4.1 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.31.0 pypi_0 pypi h5py 2.10.0 pypi_0 pypi idna 2.10 pypi_0 pypi imageio 2.9.0 py_0 conda-forge imageio-ffmpeg 0.4.2 py_0 conda-forge importlib-metadata 1.7.0 pypi_0 pypi joblib 0.16.0 py_0 conda-forge jpeg 9d h0b31af3_0 conda-forge keras 2.2.4 pypi_0 pypi keras-applications 1.0.8 pypi_0 pypi keras-preprocessing 1.1.2 pypi_0 pypi kiwisolver 1.2.0 py37ha1cc60f_0 conda-forge lame 3.100 h1de35cc_1001 conda-forge lcms2 2.11 h174193d_0 conda-forge libblas 3.8.0 17_openblas conda-forge libcblas 3.8.0 17_openblas conda-forge libcxx 10.0.1 h5f48129_0 conda-forge libffi 3.2.1 hb1e8313_1007 conda-forge libgfortran 4.0.0 2 conda-forge libiconv 1.16 haf1e3a3_0 conda-forge liblapack 3.8.0 17_openblas conda-forge libopenblas 0.3.10 openmp_h63d9170_4 conda-forge libpng 1.6.37 hb0a8c7a_2 conda-forge libtiff 4.1.0 h2ae36a8_6 conda-forge libwebp-base 1.1.0 h0b31af3_3 conda-forge llvm-openmp 10.0.1 h28b9765_0 conda-forge lz4-c 1.9.2 hb1e8313_3 conda-forge markdown 3.2.2 pypi_0 pypi matplotlib 3.2.2 1 conda-forge matplotlib-base 3.2.2 py37hddda452_1 conda-forge ncurses 6.2 hb1e8313_1 conda-forge nettle 3.4.1 h3efe00b_1002 conda-forge numpy 1.19.1 py37h1efc2f6_2 conda-forge nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 pypi_0 pypi olefile 0.46 py_0 conda-forge opencv-python 4.4.0.42 pypi_0 pypi openh264 2.1.1 hd174df1_0 conda-forge openssl 1.1.1g haf1e3a3_1 conda-forge opt-einsum 3.3.0 pypi_0 pypi pathlib 1.0.1 py37hc8dfbb8_2 conda-forge pillow 7.2.0 py37hfd78ece_1 conda-forge pip 20.2.2 py_0 conda-forge plaidml 0.7.0 pypi_0 pypi plaidml-keras 0.7.0 pypi_0 pypi protobuf 3.13.0 pypi_0 pypi psutil 5.7.2 py37h60d8a13_0 conda-forge pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pycparser 2.20 pypi_0 pypi pynvx 1.0.0 pypi_0 pypi pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge python 3.7.8 hc9dea61_1_cpython conda-forge python-dateutil 2.8.1 py_0 conda-forge python_abi 3.7 1_cp37m conda-forge pyyaml 5.3.1 pypi_0 pypi readline 8.0 h0678c8f_2 conda-forge requests 2.24.0 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.23.2 py37hb7e9fed_0 conda-forge scipy 1.4.1 pypi_0 pypi setuptools 49.6.0 py37hc8dfbb8_0 conda-forge six 1.15.0 pyh9f0ad1d_0 conda-forge sqlite 3.33.0 h960bd1c_0 conda-forge tensorboard 2.2.2 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorflow 2.2.0 pypi_0 pypi tensorflow-estimator 2.2.0 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0 conda-forge tk 8.6.10 hb0a8c7a_0 conda-forge tornado 6.0.4 py37h9bfed18_1 conda-forge tqdm 4.48.2 pyh9f0ad1d_0 conda-forge urllib3 1.25.10 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.35.1 pyh9f0ad1d_0 conda-forge wrapt 1.12.1 pypi_0 pypi x264 1!152.20180806 h1de35cc_0 conda-forge xz 5.2.5 haf1e3a3_1 conda-forge zipp 3.1.0 pypi_0 pypi zlib 1.2.11 1007 conda-forge zstd 1.4.5 h289c70a_2 conda-forge ================= Configs ================== --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.match_hist] threshold: 99.0 [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [scaling.sharpen] method: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 --------- gui.ini --------- [global] fullscreen: True tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- .faceswap --------- backend: cpu --------- extract.ini --------- [global] allow_growth: True [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.cv2_dnn] confidence: 50 [detect.s3fd] confidence: 70 batch-size: 4 [align.fan] batch-size: 12 [mask.unet_dfl] batch-size: 8 [mask.vgg_obstructed] batch-size: 2 [mask.vgg_clear] batch-size: 6 --------- train.ini --------- [global] coverage: 68.75 mask_type: none mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False icnr_init: False conv_aware_init: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.dlight] features: best details: good output_size: 256 [model.villain] lowmem: False [model.original] lowmem: False [model.dfl_h128] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Unexpected Crash during extraction : cv2.error: OpenCV(4.4.0)

Post by torzdf »

In my experience, this happens due to a memory error (or more specifically, running out of memory).

I'm a little confused by your setup though, as you appear to have an environment installed for AMD, but the backend is setup to use CPU. Unfortunately macOS is not good at spitting out useful information relating to he GPU, so I can't confirm what's the best setup for you.

In the first instance I would probably do a clean install, in a new environment, by running python setup.py

If that doesn't resolve your issue, please keep an eye on your process monitor and let me know how RAM usage looks over time.

My word is final

User avatar
burgew
Posts: 2
Joined: Mon Aug 24, 2020 12:33 am
Has thanked: 1 time

Re: Unexpected Crash during extraction : cv2.error: OpenCV(4.4.0)

Post by burgew »

Unfortunately, this did not address the crash. I created a fresh conda environment (py3.7) and did a fresh install, opting specifically for CPU (not AMD). The python 3.7 process hovered at about 350M, and there was plenty of RAM left available on the machine, but the crash happened again. Here's the content from the new crash log file, just to be complete:

Code: Select all

08/24/2020 13:17:41 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011609.png
08/24/2020 13:17:41 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011610.png
08/24/2020 13:17:41 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011611.png
08/24/2020 13:17:41 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011612.png
08/24/2020 13:17:41 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011613.png
08/24/2020 13:17:41 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011614.png
08/24/2020 13:17:41 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011615.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011616.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011617.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011618.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011619.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011620.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011621.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011622.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011623.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011624.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011625.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011626.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011627.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011628.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011629.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011630.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011631.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011632.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011633.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011634.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011635.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011636.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011637.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011638.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011639.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011640.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011641.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011642.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011643.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011644.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011645.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011646.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011647.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011648.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011649.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011650.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011651.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011652.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011653.png
08/24/2020 13:17:42 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011654.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011655.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011656.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011657.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011658.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011659.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011660.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011661.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011662.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011663.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011664.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011665.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011666.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011667.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011668.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011669.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011670.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011671.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011672.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011673.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011674.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011675.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011676.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011677.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011678.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011679.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011680.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011681.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011682.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011683.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011684.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011685.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011686.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011687.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011688.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011689.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011690.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011691.png
08/24/2020 13:17:43 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011692.png
08/24/2020 13:17:44 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011693.png
08/24/2020 13:17:44 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011694.png
08/24/2020 13:17:44 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011695.png
08/24/2020 13:17:44 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011696.png
08/24/2020 13:17:44 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011698.png
08/24/2020 13:17:44 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
08/24/2020 13:17:44 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x7fa71b559d50>
08/24/2020 13:17:44 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011699.png
08/24/2020 13:17:44 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
08/24/2020 13:17:44 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x7fa71b559d50>
08/24/2020 13:17:44 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011702.png
08/24/2020 13:17:44 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
08/24/2020 13:17:44 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x7fa71b559d50>
08/24/2020 13:17:44 MainProcess     MainThread      extract         _output_processing        VERBOSE  No faces were detected in image: Marica.GregBeard.1080P_4000K_266431232_011703.png
08/24/2020 13:17:44 MainProcess     align_cv2-dnn_aligner_input_0 multithreading  run                       DEBUG    Error in thread (align_cv2-dnn_aligner_input_0): OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-nxr3bp45/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'\n
08/24/2020 13:17:45 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-nxr3bp45/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'\n"), <traceback object at 0x7fa70f2a58c0>)]
Traceback (most recent call last):
  File "/Users/burgew/Develop/github/faceswap/lib/cli/launcher.py", line 156, in execute_script
    process.process()
  File "/Users/burgew/Develop/github/faceswap/scripts/extract.py", line 117, in process
    self._run_extraction()
  File "/Users/burgew/Develop/github/faceswap/scripts/extract.py", line 213, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "/Users/burgew/miniconda3/envs/py3.7-face/lib/python3.7/site-packages/tqdm/std.py", line 1130, in __iter__
    for obj in iterable:
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/pipeline.py", line 233, in detected_faces
    if self._check_and_raise_error():
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/pipeline.py", line 655, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/_base.py", line 302, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "/Users/burgew/Develop/github/faceswap/lib/multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "/Users/burgew/Develop/github/faceswap/lib/multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/_base.py", line 420, in _thread_process
    batch = function(batch)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/align/cv2_dnn.py", line 54, in process_input
    faces, batch["roi"], batch["offsets"] = self.align_image(batch)
  File "/Users/burgew/Develop/github/faceswap/plugins/extract/align/cv2_dnn.py", line 82, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-nxr3bp45/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'


============ System Information ============
encoding:            UTF-8
git_branch:          master
git_commits:         1f9e834 typofix. 0e31b98 Training - Add L2 Regularization to Structural Losses. 83bd60d training - Use explicit loss dictionaries to map to outputs. d5c62d1 bugfix - Training - Prevent crash on manual preview update. 8c8e1b2 Training Config - Split Loss to it's own section
gpu_cuda:            Unsupported OS. Check Conda packages for Conda Cuda
gpu_cudnn:           Unsupported OS. Check Conda packages for Conda cuDNN
gpu_devices:         
gpu_devices_active:
gpu_driver: 0 gpu_vram:
os_machine: x86_64 os_platform: Darwin-19.6.0-x86_64-i386-64bit os_release: 19.6.0 py_command: faceswap.py extract -i /Users/burgew/Data/faceswap/src/Marica/Marica.GregBeard.1080P_4000K_266431232.mp4 -o /Users/burgew/Data/faceswap/samples/Marica py_conda_version: conda 4.8.0 py_implementation: CPython py_version: 3.7.8 py_virtual_env: True sys_cores: 12 sys_processor: i386 sys_ram: Total: 16384MB, Available: 9035MB, Used: 7345MB, Free: 1794MB =============== Pip Packages =============== absl-py==0.10.0 astunparse==1.6.3 cachetools==4.1.1 certifi==2020.6.20 chardet==3.0.4 cycler==0.10.0 fastcluster==1.1.26 ffmpy==0.2.3 gast==0.3.3 google-auth==1.20.1 google-auth-oauthlib==0.4.1 google-pasta==0.2.0 grpcio==1.31.0 h5py==2.10.0 idna==2.10 imageio @ file:///home/conda/feedstock_root/build_artifacts/imageio_1594044661732/work imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1589202782679/work importlib-metadata==1.7.0 joblib @ file:///home/conda/feedstock_root/build_artifacts/joblib_1593624380152/work Keras-Preprocessing==1.1.2 kiwisolver==1.2.0 Markdown==3.2.2 matplotlib @ file:///Users/runner/miniforge3/conda-bld/matplotlib-base_1594091703837/work numpy @ file:///Users/runner/miniforge3/conda-bld/numpy_1597938419070/work nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6 oauthlib==3.1.0 olefile==0.46 opencv-python==4.4.0.42 opt-einsum==3.3.0 Pillow @ file:///Users/runner/miniforge3/conda-bld/pillow_1594212133169/work protobuf==3.13.0 psutil @ file:///Users/runner/miniforge3/conda-bld/psutil_1594826940124/work pyasn1==0.4.8 pyasn1-modules==0.2.8 pynvx==1.0.0 pyparsing==2.4.7 python-dateutil==2.8.1 requests==2.24.0 requests-oauthlib==1.3.0 rsa==4.6 scikit-learn @ file:///Users/runner/miniforge3/conda-bld/scikit-learn_1596546094462/work scipy==1.4.1 six @ file:///home/conda/feedstock_root/build_artifacts/six_1590081179328/work tensorboard==2.2.2 tensorboard-plugin-wit==1.7.0 tensorflow==2.2.0 tensorflow-estimator==2.2.0 termcolor==1.1.0 threadpoolctl @ file:///tmp/tmp79xdzxkt/threadpoolctl-2.1.0-py3-none-any.whl tornado==6.0.4 tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1596476591553/work urllib3==1.25.10 Werkzeug==1.0.1 wrapt==1.12.1 zipp==3.1.0 ============== Conda Packages ============== # packages in environment at /Users/burgew/miniconda3/envs/py3.7-face: # # Name Version Build Channel absl-py 0.10.0 pypi_0 pypi astunparse 1.6.3 pypi_0 pypi bzip2 1.0.8 haf1e3a3_3 conda-forge ca-certificates 2020.6.20 hecda079_0 conda-forge cachetools 4.1.1 pypi_0 pypi certifi 2020.6.20 py37hc8dfbb8_0 conda-forge chardet 3.0.4 pypi_0 pypi cycler 0.10.0 py_2 conda-forge fastcluster 1.1.26 py37h94625e5_1 conda-forge ffmpeg 4.3.1 h9903f1f_0 conda-forge ffmpy 0.2.3 pypi_0 pypi freetype 2.10.2 h8da9a1a_0 conda-forge gast 0.3.3 pypi_0 pypi gettext 0.19.8.1 h46ab8bc_1002 conda-forge gmp 6.2.0 h4a8c4bd_2 conda-forge gnutls 3.6.13 hc269f14_0 conda-forge google-auth 1.20.1 pypi_0 pypi google-auth-oauthlib 0.4.1 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.31.0 pypi_0 pypi h5py 2.10.0 pypi_0 pypi idna 2.10 pypi_0 pypi imageio 2.9.0 py_0 conda-forge imageio-ffmpeg 0.4.2 py_0 conda-forge importlib-metadata 1.7.0 pypi_0 pypi joblib 0.16.0 py_0 conda-forge jpeg 9d h0b31af3_0 conda-forge keras-preprocessing 1.1.2 pypi_0 pypi kiwisolver 1.2.0 py37ha1cc60f_0 conda-forge lame 3.100 h1de35cc_1001 conda-forge lcms2 2.11 h174193d_0 conda-forge libblas 3.8.0 17_openblas conda-forge libcblas 3.8.0 17_openblas conda-forge libcxx 10.0.1 h5f48129_0 conda-forge libffi 3.2.1 hb1e8313_1007 conda-forge libgfortran 4.0.0 2 conda-forge libiconv 1.16 haf1e3a3_0 conda-forge liblapack 3.8.0 17_openblas conda-forge libopenblas 0.3.10 openmp_h63d9170_4 conda-forge libpng 1.6.37 hb0a8c7a_2 conda-forge libtiff 4.1.0 h2ae36a8_6 conda-forge libwebp-base 1.1.0 h0b31af3_3 conda-forge llvm-openmp 10.0.1 h28b9765_0 conda-forge lz4-c 1.9.2 hb1e8313_3 conda-forge markdown 3.2.2 pypi_0 pypi matplotlib 3.2.2 1 conda-forge matplotlib-base 3.2.2 py37hddda452_1 conda-forge ncurses 6.2 hb1e8313_1 conda-forge nettle 3.4.1 h3efe00b_1002 conda-forge numpy 1.19.1 py37h1efc2f6_2 conda-forge nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 pypi_0 pypi olefile 0.46 py_0 conda-forge opencv-python 4.4.0.42 pypi_0 pypi openh264 2.1.1 hd174df1_0 conda-forge openssl 1.1.1g haf1e3a3_1 conda-forge opt-einsum 3.3.0 pypi_0 pypi pathlib 1.0.1 py37hc8dfbb8_2 conda-forge pillow 7.2.0 py37hfd78ece_1 conda-forge pip 20.2.2 py_0 conda-forge protobuf 3.13.0 pypi_0 pypi psutil 5.7.2 py37h60d8a13_0 conda-forge pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pynvx 1.0.0 pypi_0 pypi pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge python 3.7.8 hc9dea61_1_cpython conda-forge python-dateutil 2.8.1 py_0 conda-forge python_abi 3.7 1_cp37m conda-forge readline 8.0 h0678c8f_2 conda-forge requests 2.24.0 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.23.2 py37hb7e9fed_0 conda-forge scipy 1.4.1 pypi_0 pypi setuptools 49.6.0 py37hc8dfbb8_0 conda-forge six 1.15.0 pyh9f0ad1d_0 conda-forge sqlite 3.33.0 h960bd1c_0 conda-forge tensorboard 2.2.2 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorflow 2.2.0 pypi_0 pypi tensorflow-estimator 2.2.0 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0 conda-forge tk 8.6.10 hb0a8c7a_0 conda-forge tornado 6.0.4 py37h9bfed18_1 conda-forge tqdm 4.48.2 pyh9f0ad1d_0 conda-forge urllib3 1.25.10 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.35.1 pyh9f0ad1d_0 conda-forge wrapt 1.12.1 pypi_0 pypi x264 1!152.20180806 h1de35cc_0 conda-forge xz 5.2.5 haf1e3a3_1 conda-forge zipp 3.1.0 pypi_0 pypi zlib 1.2.11 1007 conda-forge zstd 1.4.5 h289c70a_2 conda-forge ================= Configs ================== --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.match_hist] threshold: 99.0 [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [scaling.sharpen] method: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 --------- gui.ini --------- [global] fullscreen: True tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- .faceswap --------- backend: cpu --------- extract.ini --------- [global] allow_growth: True [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.cv2_dnn] confidence: 50 [detect.s3fd] confidence: 70 batch-size: 4 [align.fan] batch-size: 12 [mask.unet_dfl] batch-size: 8 [mask.vgg_obstructed] batch-size: 2 [mask.vgg_clear] batch-size: 6 --------- train.ini --------- [global] coverage: 68.75 mask_type: none mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False icnr_init: False conv_aware_init: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.dlight] features: best details: good output_size: 256 [model.villain] lowmem: False [model.original] lowmem: False [model.dfl_h128] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4
…Walt

Walter Burge
e-mail - walt.burge@ischool.berkeley.edu
cell - 415-640-2074
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Unexpected Crash during extraction : cv2.error: OpenCV(4.4.0)

Post by torzdf »

Ok, the only other thing I can do is see if I can replicate the issue, and if so, try to issue a bugfix.

FYI: When I have been provided videos in the past, I have been unable to replicate, so please don't get your hopes up!

If the video is something you can share, then please do and I can look into it. You can Private Message me if you don't want to make it public.

My word is final

User avatar
mrkrong
Posts: 2
Joined: Wed Sep 09, 2020 1:56 am

I got a problem with extract.

Post by mrkrong »

I got a problem with extract.
Is this a hardware problem or others?

Code: Select all

09/09/2020 10:33:43 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'detect_cv2-dnn_detector_output', thread_count: 1)
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'detect_cv2-dnn_detector_output'
09/09/2020 10:33:43 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: detect_cv2-dnn_detector_output
09/09/2020 10:33:43 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiled detect threads: [<lib.multithreading.MultiThread object at 0x0000023CDB7CEB80>, <lib.multithreading.MultiThread object at 0x0000023CDB7CEEB0>, <lib.multithreading.MultiThread object at 0x0000023CDB7CEEE0>]
09/09/2020 10:33:43 MainProcess     MainThread      _base           initialize                INFO     Initialized cv2-DNN Detector (Detect) with batchsize of 1
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'detect_cv2-dnn_detector_input'
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'detect_cv2-dnn_detector_input_0'
09/09/2020 10:33:43 MainProcess     detect_cv2-dnn_detector_input_0 _base           _thread_process           DEBUG    threading: (function: 'process_input')
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'detect_cv2-dnn_detector_input': 1
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'detect_cv2-dnn_detector_predict'
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'detect_cv2-dnn_detector_predict_0'
09/09/2020 10:33:43 MainProcess     detect_cv2-dnn_detector_predict_0 _base           _thread_process           DEBUG    threading: (function: '_predict')
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'detect_cv2-dnn_detector_predict': 1
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'detect_cv2-dnn_detector_output'
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'detect_cv2-dnn_detector_output_0'
09/09/2020 10:33:43 MainProcess     detect_cv2-dnn_detector_output_0 _base           _thread_process           DEBUG    threading: (function: 'process_output')
09/09/2020 10:33:43 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'detect_cv2-dnn_detector_output': 1
09/09/2020 10:33:43 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launched detect plugin
09/09/2020 10:33:43 MainProcess     MainThread      pipeline        detected_faces            DEBUG    Running Detection. Phase: '['detect']'
09/09/2020 10:55:00 MainProcess     _load_0         image           load                      DEBUG    Closing Load Generator
09/09/2020 10:55:00 MainProcess     _load_0         image           close                     DEBUG    Received Close
09/09/2020 10:55:00 MainProcess     _load_0         multithreading  join                      DEBUG    Joining Threads: 'ImagesLoader'
09/09/2020 10:55:00 MainProcess     _load_0         multithreading  join                      DEBUG    Joining Thread: 'ImagesLoader_0'
09/09/2020 10:55:00 MainProcess     _load_0         multithreading  join                      DEBUG    Joined all Threads: 'ImagesLoader'
09/09/2020 10:55:00 MainProcess     _load_0         image           close                     DEBUG    Closed
09/09/2020 10:55:00 MainProcess     _load_0         extract         _load                     DEBUG    Load Images: Complete
09/09/2020 10:55:01 MainProcess     detect_cv2-dnn_detector_input_0 _base           _thread_process           DEBUG    Putting EOF
09/09/2020 10:55:01 MainProcess     detect_cv2-dnn_detector_predict_0 _base           _thread_process           DEBUG    Putting EOF
09/09/2020 10:55:01 MainProcess     detect_cv2-dnn_detector_output_0 _base           _thread_process           DEBUG    Putting EOF
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Threads: 'detect_cv2-dnn_detector_input'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Thread: 'detect_cv2-dnn_detector_input_0'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joined all Threads: 'detect_cv2-dnn_detector_input'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Threads: 'detect_cv2-dnn_detector_predict'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Thread: 'detect_cv2-dnn_detector_predict_0'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joined all Threads: 'detect_cv2-dnn_detector_predict'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Threads: 'detect_cv2-dnn_detector_output'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Thread: 'detect_cv2-dnn_detector_output_0'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  join                      DEBUG    Joined all Threads: 'detect_cv2-dnn_detector_output'
09/09/2020 10:55:01 MainProcess     MainThread      pipeline        detected_faces            DEBUG    Switching to phase: ['align']
09/09/2020 10:55:01 MainProcess     MainThread      extract         _run_extraction           DEBUG    Reloading images
09/09/2020 10:55:01 MainProcess     MainThread      extract         _threaded_redirector      DEBUG    Threading task: (Task: 'reload')
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: '_reload', thread_count: 1)
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: '_reload'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): '_reload'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: '_reload_0'
09/09/2020 10:55:01 MainProcess     _reload_0       extract         _reload                   DEBUG    Reload Images: Start. Detected Faces Count: 21218
09/09/2020 10:55:01 MainProcess     _reload_0       image           load                      DEBUG    Initializing Load Generator
09/09/2020 10:55:01 MainProcess     _reload_0       image           _set_thread               DEBUG    Setting thread
09/09/2020 10:55:01 MainProcess     _reload_0       multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'ImagesLoader', thread_count: 1)
09/09/2020 10:55:01 MainProcess     _reload_0       multithreading  __init__                  DEBUG    Initialized MultiThread: 'ImagesLoader'
09/09/2020 10:55:01 MainProcess     _reload_0       image           _set_thread               DEBUG    Set thread: <lib.multithreading.MultiThread object at 0x0000023CDB7CE790>
09/09/2020 10:55:01 MainProcess     _reload_0       multithreading  start                     DEBUG    Starting thread(s): 'ImagesLoader'
09/09/2020 10:55:01 MainProcess     _reload_0       multithreading  start                     DEBUG    Starting thread 1 of 1: 'ImagesLoader_0'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads '_reload': 1
09/09/2020 10:55:01 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launching align plugin
09/09/2020 10:55:01 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    in_qname: extract0_align_in, out_qname: extract0_mask_0_in
09/09/2020 10:55:01 MainProcess     MainThread      _base           initialize                DEBUG    initialize Align: (args: (), kwargs: {'in_queue': <queue.Queue object at 0x0000023CDCBF7FD0>, 'out_queue': <queue.Queue object at 0x0000023CDCBF7D90>})
09/09/2020 10:55:01 MainProcess     ImagesLoader_0  image           _process                  DEBUG    Load iterator: <bound method ImagesLoader._from_video of <lib.image.ImagesLoader object at 0x0000023CB91DCD60>>
09/09/2020 10:55:01 MainProcess     ImagesLoader_0  image           _from_video               DEBUG    Loading frames from video: 'C:\Users\Aaron\Downloads\am.mp4'
09/09/2020 10:55:01 MainProcess     _reload_0       multithreading  start                     DEBUG    Started all threads 'ImagesLoader': 1
09/09/2020 10:55:01 MainProcess     MainThread      _base           initialize                INFO     Initializing cv2-DNN Aligner (Align)...
09/09/2020 10:55:01 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'align0_predict_cv2-dnn_aligner'
09/09/2020 10:55:01 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'align0_predict_cv2-dnn_aligner', maxsize: 1)
09/09/2020 10:55:01 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'align0_predict_cv2-dnn_aligner')
09/09/2020 10:55:01 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'align0_predict_cv2-dnn_aligner'
09/09/2020 10:55:01 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'align0_post_cv2-dnn_aligner'
09/09/2020 10:55:01 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'align0_post_cv2-dnn_aligner', maxsize: 1)
09/09/2020 10:55:01 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'align0_post_cv2-dnn_aligner')
09/09/2020 10:55:01 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'align0_post_cv2-dnn_aligner'
09/09/2020 10:55:01 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiling align threads
09/09/2020 10:55:01 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: align_cv2-dnn_aligner_input, function: <bound method Align.process_input of <plugins.extract.align.cv2_dnn.Align object at 0x0000023CDB6481F0>>, in_queue: <queue.Queue object at 0x0000023CDCBF7FD0>, out_queue: <queue.Queue object at 0x0000023CDED12BB0>)
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'align_cv2-dnn_aligner_input', thread_count: 1)
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'align_cv2-dnn_aligner_input'
09/09/2020 10:55:01 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: align_cv2-dnn_aligner_input
09/09/2020 10:55:01 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: align_cv2-dnn_aligner_predict, function: <bound method Aligner._predict of <plugins.extract.align.cv2_dnn.Align object at 0x0000023CDB6481F0>>, in_queue: <queue.Queue object at 0x0000023CDED12BB0>, out_queue: <queue.Queue object at 0x0000023CDED12D90>)
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'align_cv2-dnn_aligner_predict', thread_count: 1)
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'align_cv2-dnn_aligner_predict'
09/09/2020 10:55:01 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: align_cv2-dnn_aligner_predict
09/09/2020 10:55:01 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: align_cv2-dnn_aligner_output, function: <bound method Align.process_output of <plugins.extract.align.cv2_dnn.Align object at 0x0000023CDB6481F0>>, in_queue: <queue.Queue object at 0x0000023CDED12D90>, out_queue: <queue.Queue object at 0x0000023CDCBF7D90>)
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'align_cv2-dnn_aligner_output', thread_count: 1)
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'align_cv2-dnn_aligner_output'
09/09/2020 10:55:01 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: align_cv2-dnn_aligner_output
09/09/2020 10:55:01 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiled align threads: [<lib.multithreading.MultiThread object at 0x0000023CDED12C70>, <lib.multithreading.MultiThread object at 0x0000023CDED26190>, <lib.multithreading.MultiThread object at 0x0000023CDED26130>]
09/09/2020 10:55:01 MainProcess     MainThread      _base           initialize                INFO     Initialized cv2-DNN Aligner (Align) with batchsize of 1
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'align_cv2-dnn_aligner_input'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'align_cv2-dnn_aligner_input_0'
09/09/2020 10:55:01 MainProcess     align_cv2-dnn_aligner_input_0 _base           _thread_process           DEBUG    threading: (function: 'process_input')
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'align_cv2-dnn_aligner_input': 1
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'align_cv2-dnn_aligner_predict'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'align_cv2-dnn_aligner_predict_0'
09/09/2020 10:55:01 MainProcess     align_cv2-dnn_aligner_predict_0 _base           _thread_process           DEBUG    threading: (function: '_predict')
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'align_cv2-dnn_aligner_predict': 1
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'align_cv2-dnn_aligner_output'
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'align_cv2-dnn_aligner_output_0'
09/09/2020 10:55:01 MainProcess     align_cv2-dnn_aligner_output_0 _base           _thread_process           DEBUG    threading: (function: 'process_output')
09/09/2020 10:55:01 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'align_cv2-dnn_aligner_output': 1
09/09/2020 10:55:01 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launched align plugin
09/09/2020 10:55:01 MainProcess     MainThread      pipeline        detected_faces            DEBUG    Running Detection. Phase: '['align']'
09/09/2020 10:55:48 MainProcess     align_cv2-dnn_aligner_input_0 multithreading  run                       DEBUG    Error in thread (align_cv2-dnn_aligner_input_0): OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-k8sx3e60\opencv\modules\imgproc\src\resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n
09/09/2020 10:55:49 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.4.0) C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\pip-req-build-k8sx3e60\\opencv\\modules\\imgproc\\src\\resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n"), <traceback object at 0x0000023CDED391C0>)]
Traceback (most recent call last):
  File "C:\Users\Aaron\faceswap\lib\cli\launcher.py", line 156, in execute_script
    process.process()
  File "C:\Users\Aaron\faceswap\scripts\extract.py", line 117, in process
    self._run_extraction()
  File "C:\Users\Aaron\faceswap\scripts\extract.py", line 213, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "C:\Users\Aaron\anaconda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1130, in __iter__
    for obj in iterable:
  File "C:\Users\Aaron\faceswap\plugins\extract\pipeline.py", line 233, in detected_faces
    if self._check_and_raise_error():
  File "C:\Users\Aaron\faceswap\plugins\extract\pipeline.py", line 655, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "C:\Users\Aaron\faceswap\plugins\extract\_base.py", line 302, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "C:\Users\Aaron\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\Users\Aaron\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Aaron\faceswap\plugins\extract\_base.py", line 420, in _thread_process
    batch = function(batch)
  File "C:\Users\Aaron\faceswap\plugins\extract\align\cv2_dnn.py", line 54, in process_input
    faces, batch["roi"], batch["offsets"] = self.align_image(batch)
  File "C:\Users\Aaron\faceswap\plugins\extract\align\cv2_dnn.py", line 82, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-k8sx3e60\opencv\modules\imgproc\src\resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


============ System Information ============
encoding:            cp949
git_branch:          master
git_commits:         5530346 Bugfix - Pre-caching masks when warp-to-landmarks is disabled
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_0: Advanced Micro Devices, Inc. - gfx902 (experimental)
gpu_devices_active:  GPU_0
gpu_driver:          ['2841.5 (PAL,HSAIL)']
gpu_vram:            GPU_0: 4140MB
os_machine:          AMD64
os_platform:         Windows-10-10.0.18362-SP0
os_release:          10
py_command:          C:\Users\Aaron\faceswap\faceswap.py extract -i C:/Users/Aaron/Downloads/am.mp4 -o C:/Users/Aaron/Downloads/am -D cv2-dnn -A cv2-dnn -nm none -min 0 -l 0.4 -een 1 -sz 256 -si 0 -L INFO -gui
py_conda_version:    conda 4.8.3
py_implementation:   CPython
py_version:          3.8.5
py_virtual_env:      True
sys_cores:           8
sys_processor:       AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD
sys_ram:             Total: 6092MB, Available: 2311MB, Used: 3781MB, Free: 2311MB

=============== Pip Packages ===============
absl-py==0.10.0
astunparse==1.6.3
cachetools==4.1.1
certifi==2020.6.20
cffi==1.14.2
chardet==3.0.4
cycler==0.10.0
enum34==1.1.10
fastcluster==1.1.26
ffmpy==0.2.3
gast==0.3.3
google-auth==1.21.1
google-auth-oauthlib==0.4.1
google-pasta==0.2.0
grpcio==1.31.0
h5py==2.10.0
idna==2.10
imageio @ file:///tmp/build/80754af9/imageio_1594161405741/work
imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1589202782679/work
joblib @ file:///tmp/build/80754af9/joblib_1594236160679/work
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver==1.2.0
Markdown==3.2.2
matplotlib @ file:///C:/ci/matplotlib-base_1592837548929/work
mkl-fft==1.1.0
mkl-random==1.1.1
mkl-service==2.3.0
numpy @ file:///C:/ci/numpy_and_numpy_base_1596215850360/work
nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6
oauthlib==3.1.0
olefile==0.46
opencv-python==4.4.0.42
opt-einsum==3.3.0
pathlib==1.0.1
Pillow @ file:///C:/ci/pillow_1594298230227/work
plaidml==0.7.0
plaidml-keras==0.7.0
protobuf==3.13.0
psutil @ file:///C:/ci/psutil_1598370330503/work
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
pyparsing==2.4.7
python-dateutil==2.8.1
pywin32==227
PyYAML==5.3.1
requests==2.24.0
requests-oauthlib==1.3.0
rsa==4.6
scikit-learn @ file:///C:/ci/scikit-learn_1598377018496/work
scipy==1.4.1
sip==4.19.13
six==1.15.0
tensorboard==2.2.2
tensorboard-plugin-wit==1.7.0
tensorflow==2.2.0
tensorflow-estimator==2.2.0
termcolor==1.1.0
threadpoolctl @ file:///tmp/tmp9twdgx9k/threadpoolctl-2.1.0-py3-none-any.whl
tornado==6.0.4
tqdm @ file:///tmp/build/80754af9/tqdm_1596810128862/work
urllib3==1.25.10
Werkzeug==1.0.1
wincertstore==0.2
wrapt==1.12.1

============== Conda Packages ==============
# packages in environment at C:\Users\Aaron\anaconda3\envs\faceswap:
#
# Name                    Version                   Build  Channel
absl-py                   0.10.0                   pypi_0    pypi
astunparse                1.6.3                    pypi_0    pypi
blas                      1.0                         mkl  
ca-certificates 2020.7.22 0
cachetools 4.1.1 pypi_0 pypi certifi 2020.6.20 py38_0
cffi 1.14.2 pypi_0 pypi chardet 3.0.4 pypi_0 pypi cycler 0.10.0 py38_0
enum34 1.1.10 pypi_0 pypi fastcluster 1.1.26 py38hbe40bda_1 conda-forge ffmpeg 4.3.1 ha925a31_0 conda-forge ffmpy 0.2.3 pypi_0 pypi freetype 2.10.2 hd328e21_0
gast 0.3.3 pypi_0 pypi google-auth 1.21.1 pypi_0 pypi google-auth-oauthlib 0.4.1 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.31.0 pypi_0 pypi h5py 2.10.0 pypi_0 pypi icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.10 pypi_0 pypi imageio 2.9.0 py_0
imageio-ffmpeg 0.4.2 py_0 conda-forge intel-openmp 2020.2 254
joblib 0.16.0 py_0
jpeg 9b hb83a4c4_2
keras 2.2.4 pypi_0 pypi keras-applications 1.0.8 pypi_0 pypi keras-preprocessing 1.1.2 pypi_0 pypi kiwisolver 1.2.0 py38h74a9793_0
libpng 1.6.37 h2a8f88b_0
libtiff 4.1.0 h56a325e_1
lz4-c 1.9.2 h62dcd97_1
markdown 3.2.2 pypi_0 pypi matplotlib 3.2.2 0
matplotlib-base 3.2.2 py38h64f37c6_0
mkl 2020.2 256
mkl-service 2.3.0 py38hb782905_0
mkl_fft 1.1.0 py38h45dec08_0
mkl_random 1.1.1 py38h47e9c7a_0
numpy 1.19.1 py38h5510c5b_0
numpy-base 1.19.1 py38ha3acd2a_0
nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 pypi_0 pypi olefile 0.46 py_0
opencv-python 4.4.0.42 pypi_0 pypi openssl 1.1.1g he774522_1
opt-einsum 3.3.0 pypi_0 pypi pathlib 1.0.1 py_1
pillow 7.2.0 py38hcc1f983_0
pip 20.2.2 py38_0
plaidml 0.7.0 pypi_0 pypi plaidml-keras 0.7.0 pypi_0 pypi protobuf 3.13.0 pypi_0 pypi psutil 5.7.2 py38he774522_0
pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pycparser 2.20 pypi_0 pypi pyparsing 2.4.7 py_0
pyqt 5.9.2 py38ha925a31_4
python 3.8.5 h5fd99cc_1
python-dateutil 2.8.1 py_0
python_abi 3.8 1_cp38 conda-forge pywin32 227 py38he774522_1
pyyaml 5.3.1 pypi_0 pypi qt 5.9.7 vc14h73c81de_0
requests 2.24.0 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.23.2 py38h47e9c7a_0
scipy 1.4.1 pypi_0 pypi setuptools 49.6.0 py38_0
sip 4.19.13 py38ha925a31_0
six 1.15.0 py_0
sqlite 3.33.0 h2a8f88b_0
tensorboard 2.2.2 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorflow 2.2.0 pypi_0 pypi tensorflow-estimator 2.2.0 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0
tk 8.6.10 he774522_0
tornado 6.0.4 py38he774522_1
tqdm 4.48.2 py_0
urllib3 1.25.10 pypi_0 pypi vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_3
werkzeug 1.0.1 pypi_0 pypi wheel 0.35.1 py_0
wincertstore 0.2 py38_0
wrapt 1.12.1 pypi_0 pypi xz 5.2.5 h62dcd97_0
zlib 1.2.11 h62dcd97_4
zstd 1.4.5 h04227a9_0 ================= Configs ================== --------- .faceswap --------- backend: amd --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [color.match_hist] threshold: 99.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [scaling.sharpen] method: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto skip_mux: False [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 1 [detect.cv2_dnn] confidence: 25 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 1 [mask.vgg_clear] batch-size: 1 [mask.vgg_obstructed] batch-size: 1 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] coverage: 68.75 icnr_init: False conv_aware_init: False optimizer: adam learning_rate: 5e-05 reflect_padding: False allow_growth: False mixed_precision: False convert_batchsize: 16 [global.loss] loss_function: ssim mask_loss_function: mse l2_reg_term: 100 eye_multiplier: 6 mouth_multiplier: 4 penalized_mask_loss: True mask_type: extended mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 disable_warp: False color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: I got a problem with extract.

Post by torzdf »

Don't use the cv2-dnn aligner, it isn't very good.

My word is final

User avatar
JVMod
Posts: 2
Joined: Thu Nov 26, 2020 10:27 am
Has thanked: 1 time

Error when extracting face from images - error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

Post by JVMod »

I have an critical error, can you help me pls
Here is crash report:

Code: Select all

11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'mask0_predict_components'
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'mask0_predict_components', maxsize: 1)
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'mask0_predict_components')
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'mask0_predict_components'
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'mask0_post_components'
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'mask0_post_components', maxsize: 1)
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'mask0_post_components')
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'mask0_post_components'
11/26/2020 16:59:36 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiling mask threads
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: mask_components_input, function: <bound method Mask.process_input of <plugins.extract.mask.components.Mask object at 0x000001942F8937F0>>, in_queue: <queue.Queue object at 0x000001942FB99C40>, out_queue: <queue.Queue object at 0x000001942FE467C0>)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'mask_components_input', thread_count: 1)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'mask_components_input'
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: mask_components_input
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: mask_components_predict, function: <bound method Masker._predict of <plugins.extract.mask.components.Mask object at 0x000001942F8937F0>>, in_queue: <queue.Queue object at 0x000001942FE467C0>, out_queue: <queue.Queue object at 0x000001942FE469A0>)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'mask_components_predict', thread_count: 1)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'mask_components_predict'
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: mask_components_predict
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: mask_components_output, function: <bound method Mask.process_output of <plugins.extract.mask.components.Mask object at 0x000001942F8937F0>>, in_queue: <queue.Queue object at 0x000001942FE469A0>, out_queue: <queue.Queue object at 0x000001942FB459A0>)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'mask_components_output', thread_count: 1)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'mask_components_output'
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: mask_components_output
11/26/2020 16:59:36 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiled mask threads: [<lib.multithreading.MultiThread object at 0x000001942F893190>, <lib.multithreading.MultiThread object at 0x000001942FE46B20>, <lib.multithreading.MultiThread object at 0x000001942FE46B50>]
11/26/2020 16:59:36 MainProcess     MainThread      components      init_model                DEBUG    No mask model to initialize
11/26/2020 16:59:36 MainProcess     MainThread      _base           initialize                INFO     Initialized Components (Mask) with batchsize of 1
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'mask_components_input'
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'mask_components_input_0'
11/26/2020 16:59:36 MainProcess     mask_components_input_0 _base           _thread_process           DEBUG    threading: (function: 'process_input')
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'mask_components_input': 1
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'mask_components_predict'
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'mask_components_predict_0'
11/26/2020 16:59:36 MainProcess     mask_components_predict_0 _base           _thread_process           DEBUG    threading: (function: '_predict')
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'mask_components_predict': 1
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'mask_components_output'
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'mask_components_output_0'
11/26/2020 16:59:36 MainProcess     mask_components_output_0 _base           _thread_process           DEBUG    threading: (function: 'process_output')
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'mask_components_output': 1
11/26/2020 16:59:36 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launched mask_0 plugin
11/26/2020 16:59:36 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launching mask_1 plugin
11/26/2020 16:59:36 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    in_qname: extract0_mask_1_in, out_qname: extract0_mask_1_out
11/26/2020 16:59:36 MainProcess     MainThread      _base           initialize                DEBUG    initialize Mask: (args: (), kwargs: {'in_queue': <queue.Queue object at 0x000001942FB459A0>, 'out_queue': <queue.Queue object at 0x000001942FB456A0>})
11/26/2020 16:59:36 MainProcess     MainThread      _base           initialize                INFO     Initializing Extended (Mask)...
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'mask0_predict_extended'
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'mask0_predict_extended', maxsize: 1)
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'mask0_predict_extended')
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'mask0_predict_extended'
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'mask0_post_extended'
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'mask0_post_extended', maxsize: 1)
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'mask0_post_extended')
11/26/2020 16:59:36 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'mask0_post_extended'
11/26/2020 16:59:36 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiling mask threads
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: mask_extended_input, function: <bound method Mask.process_input of <plugins.extract.mask.extended.Mask object at 0x000001942F893820>>, in_queue: <queue.Queue object at 0x000001942FB459A0>, out_queue: <queue.Queue object at 0x000001942FE4F370>)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'mask_extended_input', thread_count: 1)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'mask_extended_input'
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: mask_extended_input
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: mask_extended_predict, function: <bound method Masker._predict of <plugins.extract.mask.extended.Mask object at 0x000001942F893820>>, in_queue: <queue.Queue object at 0x000001942FE4F370>, out_queue: <queue.Queue object at 0x000001942FE4F550>)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'mask_extended_predict', thread_count: 1)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'mask_extended_predict'
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: mask_extended_predict
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: mask_extended_output, function: <bound method Mask.process_output of <plugins.extract.mask.extended.Mask object at 0x000001942F893820>>, in_queue: <queue.Queue object at 0x000001942FE4F550>, out_queue: <queue.Queue object at 0x000001942FB456A0>)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'mask_extended_output', thread_count: 1)
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'mask_extended_output'
11/26/2020 16:59:36 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: mask_extended_output
11/26/2020 16:59:36 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiled mask threads: [<lib.multithreading.MultiThread object at 0x000001942FE46B80>, <lib.multithreading.MultiThread object at 0x000001942FE4F6D0>, <lib.multithreading.MultiThread object at 0x000001942FE4F700>]
11/26/2020 16:59:36 MainProcess     MainThread      extended        init_model                DEBUG    No mask model to initialize
11/26/2020 16:59:36 MainProcess     MainThread      _base           initialize                INFO     Initialized Extended (Mask) with batchsize of 1
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'mask_extended_input'
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'mask_extended_input_0'
11/26/2020 16:59:36 MainProcess     mask_extended_input_0 _base           _thread_process           DEBUG    threading: (function: 'process_input')
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'mask_extended_input': 1
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'mask_extended_predict'
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'mask_extended_predict_0'
11/26/2020 16:59:36 MainProcess     mask_extended_predict_0 _base           _thread_process           DEBUG    threading: (function: '_predict')
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'mask_extended_predict': 1
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'mask_extended_output'
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'mask_extended_output_0'
11/26/2020 16:59:36 MainProcess     mask_extended_output_0 _base           _thread_process           DEBUG    threading: (function: 'process_output')
11/26/2020 16:59:36 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'mask_extended_output': 1
11/26/2020 16:59:36 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launched mask_1 plugin
11/26/2020 16:59:36 MainProcess     MainThread      pipeline        detected_faces            DEBUG    Running Detection. Phase: '['detect', 'align', 'mask_0', 'mask_1']'
11/26/2020 16:59:36 MainProcess     detect_mtcnn_input_0 _base           _thread_process           DEBUG    Putting EOF
11/26/2020 16:59:39 MainProcess     detect_mtcnn_predict_0 def_function    __call__                  WARNING  5 out of the last 5 calls to <function Model.make_predict_function.<locals>.predict_function at 0x000001942FABFD30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
11/26/2020 16:59:39 MainProcess     detect_mtcnn_predict_0 def_function    __call__                  WARNING  6 out of the last 6 calls to <function Model.make_predict_function.<locals>.predict_function at 0x000001942FABFD30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
11/26/2020 16:59:39 MainProcess     detect_mtcnn_predict_0 def_function    __call__                  WARNING  7 out of the last 7 calls to <function Model.make_predict_function.<locals>.predict_function at 0x000001942FABFD30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
11/26/2020 16:59:39 MainProcess     detect_mtcnn_predict_0 def_function    __call__                  WARNING  8 out of the last 8 calls to <function Model.make_predict_function.<locals>.predict_function at 0x000001942FABFD30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
11/26/2020 16:59:39 MainProcess     detect_mtcnn_predict_0 def_function    __call__                  WARNING  9 out of the last 9 calls to <function Model.make_predict_function.<locals>.predict_function at 0x000001942FABFD30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
11/26/2020 16:59:39 MainProcess     detect_mtcnn_predict_0 def_function    __call__                  WARNING  10 out of the last 10 calls to <function Model.make_predict_function.<locals>.predict_function at 0x000001942FABFD30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
11/26/2020 16:59:40 MainProcess     detect_mtcnn_predict_0 def_function    __call__                  WARNING  11 out of the last 11 calls to <function Model.make_predict_function.<locals>.predict_function at 0x000001942FABFD30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
11/26/2020 16:59:40 MainProcess     detect_mtcnn_predict_0 _base           _thread_process           DEBUG    Putting EOF
11/26/2020 16:59:40 MainProcess     detect_mtcnn_output_0 _base           _thread_process           DEBUG    Putting EOF
11/26/2020 16:59:40 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
11/26/2020 16:59:40 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'ImagesSaver', thread_count: 1)
11/26/2020 16:59:40 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'ImagesSaver'
11/26/2020 16:59:40 MainProcess     MainThread      image           _set_thread               DEBUG    Set thread: <lib.multithreading.MultiThread object at 0x000001942FB45F40>
11/26/2020 16:59:40 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'ImagesSaver'
11/26/2020 16:59:40 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'ImagesSaver_0'
11/26/2020 16:59:40 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'ImagesSaver': 1
11/26/2020 16:59:40 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
11/26/2020 16:59:40 MainProcess     MainThread      image           _set_thread               DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x000001942FB45F40>
11/26/2020 16:59:40 MainProcess     align_cv2-dnn_aligner_input_0 multithreading  run                       DEBUG    Error in thread (align_cv2-dnn_aligner_input_0): OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-h4wtvo23\opencv\modules\imgproc\src\resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n
11/26/2020 16:59:41 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.4.0) C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\pip-req-build-h4wtvo23\\opencv\\modules\\imgproc\\src\\resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n"), <traceback object at 0x0000019435790680>)]
Traceback (most recent call last):
  File "C:\Users\vinhc\faceswap\lib\cli\launcher.py", line 182, in execute_script
    process.process()
  File "C:\Users\vinhc\faceswap\scripts\extract.py", line 118, in process
    self._run_extraction()
  File "C:\Users\vinhc\faceswap\scripts\extract.py", line 215, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "C:\Users\vinhc\anaconda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1171, in __iter__
    for obj in iterable:
  File "C:\Users\vinhc\faceswap\plugins\extract\pipeline.py", line 233, in detected_faces
    if self._check_and_raise_error():
  File "C:\Users\vinhc\faceswap\plugins\extract\pipeline.py", line 655, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "C:\Users\vinhc\faceswap\plugins\extract\_base.py", line 303, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "C:\Users\vinhc\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\Users\vinhc\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\vinhc\faceswap\plugins\extract\_base.py", line 421, in _thread_process
    batch = function(batch)
  File "C:\Users\vinhc\faceswap\plugins\extract\align\cv2_dnn.py", line 54, in process_input
    faces, batch["roi"], batch["offsets"] = self.align_image(batch)
  File "C:\Users\vinhc\faceswap\plugins\extract\align\cv2_dnn.py", line 82, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-h4wtvo23\opencv\modules\imgproc\src\resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


============ System Information ============
encoding:            cp1258
git_branch:          master
git_commits:         c24bf2b GUI - Revert Conda default font fix
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-10-10.0.19041-SP0 os_release: 10 py_command: C:\Users\vinhc\faceswap\faceswap.py extract -i C:/Users/vinhc/Desktop/3u Files/pic -o C:/Users/vinhc/Desktop/3u Files/face -D mtcnn -A cv2-dnn -nm none -min 0 -l 0.4 -een 1 -sz 256 -si 0 -L INFO -gui py_conda_version: conda 4.9.2 py_implementation: CPython py_version: 3.8.5 py_virtual_env: True sys_cores: 4 sys_processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel sys_ram: Total: 4007MB, Available: 2159MB, Used: 1847MB, Free: 2159MB =============== Pip Packages =============== absl-py==0.11.0 astunparse==1.6.3 cachetools==4.1.1 certifi==2020.11.8 chardet==3.0.4 cycler==0.10.0 fastcluster==1.1.26 ffmpy==0.2.3 gast==0.3.3 google-auth==1.23.0 google-auth-oauthlib==0.4.2 google-pasta==0.2.0 grpcio==1.33.2 h5py==2.10.0 idna==2.10 imageio @ file:///tmp/build/80754af9/imageio_1594161405741/work imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1589202782679/work joblib @ file:///tmp/build/80754af9/joblib_1601912903842/work Keras-Preprocessing==1.1.2 kiwisolver @ file:///C:/ci/kiwisolver_1604014703538/work Markdown==3.3.3 matplotlib @ file:///C:/ci/matplotlib-base_1592837548929/work mkl-fft==1.2.0 mkl-random==1.1.1 mkl-service==2.3.0 numpy==1.18.5 nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6 oauthlib==3.1.0 olefile==0.46 opencv-python==4.4.0.46 opt-einsum==3.3.0 pathlib==1.0.1 Pillow @ file:///C:/ci/pillow_1603823068645/work protobuf==3.14.0 psutil @ file:///C:/ci/psutil_1598370330503/work pyasn1==0.4.8 pyasn1-modules==0.2.8 pyparsing==2.4.7 python-dateutil==2.8.1 pywin32==227 requests==2.25.0 requests-oauthlib==1.3.0 rsa==4.6 scikit-learn @ file:///C:/ci/scikit-learn_1598377018496/work scipy @ file:///C:/ci/scipy_1604596260408/work sip==4.19.13 six @ file:///C:/ci/six_1605187374963/work tensorboard==2.2.2 tensorboard-plugin-wit==1.7.0 tensorflow==2.2.1 tensorflow-estimator==2.2.0 termcolor==1.1.0 threadpoolctl @ file:///tmp/tmp9twdgx9k/threadpoolctl-2.1.0-py3-none-any.whl tornado==6.0.4 tqdm @ file:///tmp/build/80754af9/tqdm_1605303662894/work urllib3==1.26.2 Werkzeug==1.0.1 wincertstore==0.2 wrapt==1.12.1 ============== Conda Packages ============== # packages in environment at C:\Users\vinhc\anaconda3\envs\faceswap: # # Name Version Build Channel absl-py 0.11.0 pypi_0 pypi astunparse 1.6.3 pypi_0 pypi blas 1.0 mkl
ca-certificates 2020.10.14 0
cachetools 4.1.1 pypi_0 pypi certifi 2020.11.8 py38haa95532_0
chardet 3.0.4 pypi_0 pypi cycler 0.10.0 py38_0
fastcluster 1.1.26 py38h251f6bf_2 conda-forge ffmpeg 4.3.1 ha925a31_0 conda-forge ffmpy 0.2.3 pypi_0 pypi freetype 2.10.4 hd328e21_0
gast 0.3.3 pypi_0 pypi git 2.23.0 h6bb4b03_0
google-auth 1.23.0 pypi_0 pypi google-auth-oauthlib 0.4.2 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.33.2 pypi_0 pypi h5py 2.10.0 pypi_0 pypi icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.10 pypi_0 pypi imageio 2.9.0 py_0
imageio-ffmpeg 0.4.2 py_0 conda-forge intel-openmp 2020.2 254
joblib 0.17.0 py_0
jpeg 9b hb83a4c4_2
keras-preprocessing 1.1.2 pypi_0 pypi kiwisolver 1.3.0 py38hd77b12b_0
libpng 1.6.37 h2a8f88b_0
libtiff 4.1.0 h56a325e_1
lz4-c 1.9.2 hf4a77e7_3
markdown 3.3.3 pypi_0 pypi matplotlib 3.2.2 0
matplotlib-base 3.2.2 py38h64f37c6_0
mkl 2020.2 256
mkl-service 2.3.0 py38h2bbff1b_0
mkl_fft 1.2.0 py38h45dec08_0
mkl_random 1.1.1 py38h47e9c7a_0
numpy 1.18.5 pypi_0 pypi nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 pypi_0 pypi olefile 0.46 py_0
opencv-python 4.4.0.46 pypi_0 pypi openssl 1.1.1h he774522_0
opt-einsum 3.3.0 pypi_0 pypi pathlib 1.0.1 py_1
pillow 8.0.1 py38h4fa10fc_0
pip 20.2.4 py38haa95532_0
protobuf 3.14.0 pypi_0 pypi psutil 5.7.2 py38he774522_0
pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pyparsing 2.4.7 py_0
pyqt 5.9.2 py38ha925a31_4
python 3.8.5 h5fd99cc_1
python-dateutil 2.8.1 py_0
python_abi 3.8 1_cp38 conda-forge pywin32 227 py38he774522_1
qt 5.9.7 vc14h73c81de_0
requests 2.25.0 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.23.2 py38h47e9c7a_0
scipy 1.5.2 py38h14eb087_0
setuptools 50.3.1 py38haa95532_1
sip 4.19.13 py38ha925a31_0
six 1.15.0 py38haa95532_0
sqlite 3.33.0 h2a8f88b_0
tensorboard 2.2.2 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorflow 2.2.1 pypi_0 pypi tensorflow-estimator 2.2.0 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0
tk 8.6.10 he774522_0
tornado 6.0.4 py38he774522_1
tqdm 4.51.0 pyhd3eb1b0_0
urllib3 1.26.2 pypi_0 pypi vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_3
werkzeug 1.0.1 pypi_0 pypi wheel 0.35.1 pyhd3eb1b0_0
wincertstore 0.2 py38_0
wrapt 1.12.1 pypi_0 pypi xz 5.2.5 h62dcd97_0
zlib 1.2.11 h62dcd97_4
zstd 1.4.5 h04227a9_0 ================= Configs ================== --------- .faceswap --------- backend: cpu --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [color.match_hist] threshold: 99.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [scaling.sharpen] method: none amount: 150 radius: 0.3 threshold: 5.0 [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto skip_mux: False [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 8 [mask.vgg_clear] batch-size: 6 [mask.vgg_obstructed] batch-size: 2 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] coverage: 68.75 icnr_init: False conv_aware_init: False optimizer: adam learning_rate: 5e-05 reflect_padding: False allow_growth: False mixed_precision: False convert_batchsize: 16 [global.loss] loss_function: ssim mask_loss_function: mse l2_reg_term: 100 eye_multiplier: 3 mouth_multiplier: 2 penalized_mask_loss: True mask_type: extended mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 disable_warp: False color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Error when extracting face from images - error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

Post by torzdf »

I can never recreate this error, and as far as I can tell it is actually a memory error.

The fact that you are running on CPU with 4GB of RAM would suggest to me that this is the case here also.

My word is final

User avatar
JVMod
Posts: 2
Joined: Thu Nov 26, 2020 10:27 am
Has thanked: 1 time

Re: Error when extracting face from images - error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

Post by JVMod »

Ok. Thank you very much! haizz..so i won't be able to faking picture :(

Locked