Got an Error I can't understand.

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.

Locked
User avatar
JohnKowalski
Posts: 2
Joined: Tue Sep 06, 2022 4:38 am

Got an Error I can't understand.

Post by JohnKowalski »

My Extraction stopped midway citing an Error. This is the log file:

Code: Select all

09/06/2022 10:04:19 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:19 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:19 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:19 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:20 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:21 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     align_cv2-dnn_aligner_input    multithreading  run                            DEBUG    Error in thread (align_cv2-dnn_aligner_input): OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Setting thread
09/06/2022 10:04:22 MainProcess     MainThread                     image           _set_thread                    DEBUG    Thread pre-exists and is alive: <lib.multithreading.MultiThread object at 0x0000022772628D90>
09/06/2022 10:04:22 MainProcess     MainThread                     multithreading  check_and_raise_error          DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.6.0) D:\\a\\opencv-python\\opencv-python\\opencv\\modules\\imgproc\\src\\resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'\n"), <traceback object at 0x000002270A679540>)]
Traceback (most recent call last):
  File "F:\Creative\faceswap\lib\cli\launcher.py", line 201, in execute_script
    process.process()
  File "F:\Creative\faceswap\scripts\extract.py", line 149, in process
    extract.process()
  File "F:\Creative\faceswap\scripts\extract.py", line 236, in process
    self._run_extraction()
  File "F:\Creative\faceswap\scripts\extract.py", line 327, in _run_extraction
    for idx, extract_media in enumerate(tqdm(self._extractor.detected_faces(),
  File "F:\Programming\miniConda\envs\faceswap\lib\site-packages\tqdm\std.py", line 1195, in __iter__
    for obj in iterable:
  File "F:\Creative\faceswap\plugins\extract\pipeline.py", line 270, in detected_faces
    if self._check_and_raise_error():
  File "F:\Creative\faceswap\plugins\extract\pipeline.py", line 702, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "F:\Creative\faceswap\plugins\extract\_base.py", line 346, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "F:\Creative\faceswap\lib\multithreading.py", line 169, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "F:\Creative\faceswap\lib\multithreading.py", line 96, in run
    self._target(*self._args, **self._kwargs)
  File "F:\Creative\faceswap\plugins\extract\_base.py", line 466, in _thread_process
    batch = function(batch)
  File "F:\Creative\faceswap\plugins\extract\align\_base.py", line 255, in _process_input
    result = self.process_input(batch)
  File "F:\Creative\faceswap\plugins\extract\align\cv2_dnn.py", line 54, in process_input
    faces, batch["roi"], batch["offsets"] = self.align_image(batch)
  File "F:\Creative\faceswap\plugins\extract\align\cv2_dnn.py", line 82, in align_image
    face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         ae7793e bugfix: convert - Process final items on truncated batch
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:
gpu_vram:
os_machine: AMD64 os_platform: Windows-10-10.0.19044-SP0 os_release: 10 py_command: F:\Creative\faceswap\faceswap.py extract -i E:/FaceSwap project/1234/3.mp4 -o E:/FaceSwap project/New folder -D cv2-dnn -A cv2-dnn -nm none -rf 0 -min 0 -l 0.4 -sz 512 -een 1 -si 0 -s -L INFO -gui py_conda_version: conda 4.14.0 py_implementation: CPython py_version: 3.9.13 py_virtual_env: True sys_cores: 8 sys_processor: AMD64 Family 23 Model 24 Stepping 1, AuthenticAMD sys_ram: Total: 14284MB, Available: 8883MB, Used: 5400MB, Free: 8883MB =============== Pip Packages =============== absl-py @ file:///opt/conda/conda-bld/absl-py_1639803114343/work aiohttp @ file:///C:/ci/aiohttp_1646806572557/work aiosignal @ file:///tmp/build/80754af9/aiosignal_1637843061372/work astunparse==1.6.3 async-timeout @ file:///tmp/build/80754af9/async-timeout_1637851218186/work attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work blinker==1.4 brotlipy==0.7.0 cachetools @ file:///tmp/build/80754af9/cachetools_1619597386817/work certifi @ file:///C:/Windows/TEMP/abs_e9b7158a-aa56-4a5b-87b6-c00d295b01fanefpc8_o/croots/recipe/certifi_1655968940823/work/certifi cffi @ file:///C:/Windows/Temp/abs_6808y9x40v/croots/recipe/cffi_1659598653989/work charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work click @ file:///C:/ci/click_1646038595831/work cloudpickle @ file:///tmp/build/80754af9/cloudpickle_1632508026186/work colorama @ file:///C:/Windows/TEMP/abs_9439aeb1-0254-449a-96f7-33ab5eb17fc8apleb4yn/croots/recipe/colorama_1657009099097/work cryptography @ file:///C:/ci/cryptography_1652083563162/work cycler @ file:///tmp/build/80754af9/cycler_1637851556182/work decorator @ file:///opt/conda/conda-bld/decorator_1643638310831/work dm-tree==0.1.5 fastcluster @ file:///D:/bld/fastcluster_1649783471014/work ffmpy==0.3.0 flatbuffers @ file:///home/ktietz/cip/python-flatbuffers_1634039120618/work fonttools==4.25.0 frozenlist @ file:///C:/ci/frozenlist_1637767271796/work gast @ file:///tmp/build/80754af9/gast_1637837472536/work google-auth @ file:///opt/conda/conda-bld/google-auth_1646735974934/work google-auth-oauthlib @ file:///tmp/build/80754af9/google-auth-oauthlib_1617120569401/work google-pasta @ file:///Users/ktietz/demo/mc3/conda-bld/google-pasta_1630577991354/work grpcio @ file:///C:/ci/grpcio_1637590978642/work h5py @ file:///C:/ci/h5py_1659089875384/work idna @ file:///tmp/build/80754af9/idna_1637925883363/work imageio @ file:///C:/Windows/TEMP/abs_24c1b783-7540-4ca9-a1b1-0e8aa8e6ae64hb79ssux/croots/recipe/imageio_1658785038775/work imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1649960641006/work importlib-metadata @ file:///C:/ci/importlib-metadata_1648562621412/work joblib @ file:///home/conda/feedstock_root/build_artifacts/joblib_1633637554808/work keras @ file:///C:/tf/b/keras_1660164119543/work/keras-2.8.0-py2.py3-none-any.whl Keras-Preprocessing @ file:///tmp/build/80754af9/keras-preprocessing_1612283640596/work kiwisolver @ file:///C:/ci/kiwisolver_1653292407425/work Markdown @ file:///C:/ci/markdown_1614364082838/work matplotlib @ file:///C:/ci/matplotlib-suite_1660169687702/work mkl-fft==1.3.1 mkl-random @ file:///C:/ci/mkl_random_1626186184308/work mkl-service==2.4.0 multidict @ file:///C:/b/abs_49gd2k2bsh/croots/recipe/multidict_1662369343444/work munkres==1.1.4 numexpr @ file:///C:/Windows/Temp/abs_e2036a32-9fe9-47f3-a04c-dbb1c232ba4b334exiur/croots/recipe/numexpr_1656940304835/work numpy @ file:///C:/Windows/Temp/abs_2a1e1vbeag/croots/recipe/numpy_and_numpy_base_1659432712056/work nvidia-ml-py==11.515.48 oauthlib @ file:///tmp/abs_08ngfezid4/croots/recipe/oauthlib_1659642459222/work opencv-python==4.6.0.66 opt-einsum @ file:///tmp/build/80754af9/opt_einsum_1621500238896/work packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work Pillow==9.2.0 ply==3.11 protobuf==3.20.1 psutil @ file:///C:/Windows/Temp/abs_b2c2fd7f-9fd5-4756-95ea-8aed74d0039flsd9qufz/croots/recipe/psutil_1656431277748/work pyasn1 @ file:///Users/ktietz/demo/mc3/conda-bld/pyasn1_1629708007385/work pyasn1-modules==0.2.8 pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work PyJWT @ file:///C:/ci/pyjwt_1657511236979/work pyOpenSSL @ file:///opt/conda/conda-bld/pyopenssl_1643788558760/work pyparsing @ file:///C:/Users/BUILDE~1/AppData/Local/Temp/abs_7f_7lba6rl/croots/recipe/pyparsing_1661452540662/work PyQt5==5.15.7 PyQt5-sip @ file:///C:/Windows/Temp/abs_d7gmd2jg8i/croots/recipe/pyqt-split_1659273064801/work/pyqt_sip PySocks @ file:///C:/ci/pysocks_1605307512533/work python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work pywin32==302 pywinpty @ file:///C:/ci_310/pywinpty_1644230983541/work/target/wheels/pywinpty-2.0.2-cp39-none-win_amd64.whl PyYAML==6.0 requests @ file:///C:/ci/requests_1657735342357/work requests-oauthlib==1.3.0 rsa @ file:///tmp/build/80754af9/rsa_1614366226499/work scikit-learn @ file:///D:/bld/scikit-learn_1659726281030/work scipy @ file:///C:/bld/scipy_1658811088396/work sip @ file:///C:/Windows/Temp/abs_b8fxd17m2u/croots/recipe/sip_1659012372737/work six @ file:///tmp/build/80754af9/six_1644875935023/work tensorboard @ file:///C:/tf/b/tensorboard_1660161540402/work/tensorboard-2.8.0-py3-none-any.whl tensorboard-data-server @ file:///C:/ci/tensorboard-data-server_1633035225228/work/tensorboard_data_server-0.6.0-py3-none-any.whl tensorboard-plugin-wit @ file:///C:/tf/b/tensorboard-plugin-wit_1660162132996/work/tensorboard_plugin_wit-1.8.1-py3-none-any.whl tensorflow==2.8.2 tensorflow-estimator @ file:///C:/tf/b/tensorflow-estimator_1660163739012/work/tensorflow_estimator-2.8.0-py2.py3-none-any.whl tensorflow-probability @ file:///tmp/build/80754af9/tensorflow-probability_1633017132682/work termcolor==1.1.0 threadpoolctl @ file:///home/conda/feedstock_root/build_artifacts/threadpoolctl_1643647933166/work toml @ file:///tmp/build/80754af9/toml_1616166611790/work tornado @ file:///C:/ci/tornado_1606924294691/work tqdm @ file:///C:/ci/tqdm_1650636210717/work typing_extensions @ file:///C:/Windows/TEMP/abs_dd2d0moa85/croots/recipe/typing_extensions_1659638831135/work urllib3 @ file:///C:/Windows/TEMP/abs_65ynz4fdmi/croots/recipe/urllib3_1659110473919/work Werkzeug @ file:///opt/conda/conda-bld/werkzeug_1645628268370/work win-inet-pton @ file:///C:/ci/win_inet_pton_1605306162074/work wincertstore==0.2 wrapt @ file:///C:/Windows/Temp/abs_7c3dd407-1390-477a-b542-fd15df6a24085_diwiza/croots/recipe/wrapt_1657814452175/work yarl @ file:///C:/Users/BUILDE~1/AppData/Local/Temp/abs_e5nlunspj6/croots/recipe/yarl_1661437086516/work zipp @ file:///C:/ci/zipp_1652273994994/work ============== Conda Packages ============== # packages in environment at F:\Programming\miniConda\envs\faceswap: # # Name Version Build Channel _tflow_select 2.3.0 mkl
abseil-cpp 20211102.0 hd77b12b_0
absl-py 0.15.0 pyhd3eb1b0_0
aiohttp 3.8.1 py39h2bbff1b_1
aiosignal 1.2.0 pyhd3eb1b0_0
astunparse 1.6.3 py_0
async-timeout 4.0.1 pyhd3eb1b0_0
attrs 21.4.0 pyhd3eb1b0_0
blas 1.0 mkl
blinker 1.4 py39haa95532_0
brotli 1.0.9 h2bbff1b_7
brotli-bin 1.0.9 h2bbff1b_7
brotlipy 0.7.0 py39h2bbff1b_1003
ca-certificates 2022.07.19 haa95532_0
cachetools 4.2.2 pyhd3eb1b0_0
certifi 2022.6.15 py39haa95532_0
cffi 1.15.1 py39h2bbff1b_0
charset-normalizer 2.0.4 pyhd3eb1b0_0
click 8.0.4 py39haa95532_0
cloudpickle 2.0.0 pyhd3eb1b0_0
colorama 0.4.5 py39haa95532_0
cryptography 37.0.1 py39h21b164f_0
cycler 0.11.0 pyhd3eb1b0_0
dataclasses 0.8 pyh6d0b6a4_7
decorator 5.1.1 pyhd3eb1b0_0
dm-tree 0.1.5 py39hf11a4ad_0
fastcluster 1.2.6 py39h2e25243_1 conda-forge ffmpeg 4.3.1 ha925a31_0 conda-forge ffmpy 0.3.0 pypi_0 pypi flatbuffers 2.0.0 h6c2663c_0
fonttools 4.25.0 pyhd3eb1b0_0
freetype 2.10.4 hd328e21_0
frozenlist 1.2.0 py39h2bbff1b_0
gast 0.5.3 pyhd3eb1b0_0
giflib 5.2.1 h62dcd97_0
git 2.34.1 haa95532_0
glib 2.69.1 h5dc1a3c_1
google-auth 2.6.0 pyhd3eb1b0_0
google-auth-oauthlib 0.4.4 pyhd3eb1b0_0
google-pasta 0.2.0 pyhd3eb1b0_0
grpcio 1.42.0 py39hc60d5dd_0
gst-plugins-base 1.18.5 h9e645db_0
gstreamer 1.18.5 hd78058f_0
h5py 3.7.0 py39h3de5c98_0
hdf5 1.10.6 h1756f20_1
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 3.3 pyhd3eb1b0_0
imageio 2.19.3 py39haa95532_0
imageio-ffmpeg 0.4.7 pyhd8ed1ab_0 conda-forge importlib-metadata 4.11.3 py39haa95532_0
intel-openmp 2021.4.0 haa95532_3556
joblib 1.1.0 pyhd8ed1ab_0 conda-forge jpeg 9e h2bbff1b_0
keras 2.8.0 py39haa95532_0
keras-preprocessing 1.1.2 pyhd3eb1b0_0
kiwisolver 1.4.2 py39hd77b12b_0
lerc 3.0 hd77b12b_0
libblas 3.9.0 1_h8933c1f_netlib conda-forge libbrotlicommon 1.0.9 h2bbff1b_7
libbrotlidec 1.0.9 h2bbff1b_7
libbrotlienc 1.0.9 h2bbff1b_7
libcblas 3.9.0 5_hd5c7e75_netlib conda-forge libclang 12.0.0 default_h627e005_2
libcurl 7.84.0 h86230a5_0
libdeflate 1.8 h2bbff1b_5
libffi 3.4.2 hd77b12b_4
libiconv 1.16 h2bbff1b_2
liblapack 3.9.0 5_hd5c7e75_netlib conda-forge libogg 1.3.5 h2bbff1b_1
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.20.1 h23ce68f_0
libssh2 1.10.0 hcd4344a_0
libtiff 4.4.0 h8a3f274_0
libvorbis 1.3.7 he774522_0
libwebp 1.2.2 h2bbff1b_0
libxml2 2.9.14 h0ad7f3c_0
libxslt 1.1.35 h2bbff1b_0
lz4-c 1.9.3 h2bbff1b_1
m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge markdown 3.3.4 py39haa95532_0
matplotlib 3.5.2 py39haa95532_0
matplotlib-base 3.5.2 py39hd77b12b_0
mkl 2021.4.0 haa95532_640
mkl-service 2.4.0 py39h2bbff1b_0
mkl_fft 1.3.1 py39h277e83a_0
mkl_random 1.2.2 py39hf11a4ad_0
msys2-conda-epoch 20160418 1 conda-forge multidict 5.2.0 py39h2bbff1b_3
munkres 1.1.4 py_0
numexpr 2.8.3 py39hb80d3ca_0
numpy 1.23.1 py39h7a0a035_0
numpy-base 1.23.1 py39hca35cd5_0
nvidia-ml-py 11.515.48 pypi_0 pypi oauthlib 3.2.0 pyhd3eb1b0_1
opencv-python 4.6.0.66 pypi_0 pypi openssl 1.1.1q h2bbff1b_0
opt_einsum 3.3.0 pyhd3eb1b0_1
packaging 21.3 pyhd3eb1b0_0
pcre 8.45 hd77b12b_0
pillow 9.2.0 py39hdc2b20a_1
pip 22.1.2 py39haa95532_0
ply 3.11 py39haa95532_0
protobuf 3.20.1 py39hd77b12b_0
psutil 5.9.0 py39h2bbff1b_0
pyasn1 0.4.8 pyhd3eb1b0_0
pyasn1-modules 0.2.8 py_0
pycparser 2.21 pyhd3eb1b0_0
pyjwt 2.4.0 py39haa95532_0
pyopenssl 22.0.0 pyhd3eb1b0_0
pyparsing 3.0.9 py39haa95532_0
pyqt 5.15.7 py39hd77b12b_0
pyqt5-sip 12.11.0 py39hd77b12b_0
pysocks 1.7.1 py39haa95532_0
python 3.9.13 h6244533_1
python-dateutil 2.8.2 pyhd3eb1b0_0
python-flatbuffers 2.0 pyhd3eb1b0_0
python_abi 3.9 2_cp39 conda-forge pywin32 302 py39h2bbff1b_2
pywinpty 2.0.2 py39h5da7b33_0
pyyaml 6.0 py39h2bbff1b_1
qt-main 5.15.2 he8e5bd7_7
qt-webengine 5.15.9 hb9a9bb5_4
qtwebkit 5.212 h3ad3cdb_4
requests 2.28.1 py39haa95532_0
requests-oauthlib 1.3.0 py_0
rsa 4.7.2 pyhd3eb1b0_1
scikit-learn 1.1.2 py39hfd4428b_0 conda-forge scipy 1.8.1 py39h5567194_2 conda-forge setuptools 63.4.1 py39haa95532_0
sip 6.6.2 py39hd77b12b_0
six 1.16.0 pyhd3eb1b0_1
snappy 1.1.9 h6c2663c_0
sqlite 3.39.2 h2bbff1b_0
tensorboard 2.8.0 py39haa95532_0
tensorboard-data-server 0.6.0 py39haa95532_0
tensorboard-plugin-wit 1.8.1 py39haa95532_0
tensorflow 2.8.2 mkl_py39hfd350ca_0
tensorflow-base 2.8.2 mkl_py39h6a7f48e_0
tensorflow-estimator 2.8.0 py39hd4e2768_0
tensorflow-probability 0.14.0 pyhd3eb1b0_0
termcolor 1.1.0 py39haa95532_1
threadpoolctl 3.1.0 pyh8a188c0_0 conda-forge tk 8.6.12 h2bbff1b_0
toml 0.10.2 pyhd3eb1b0_0
tornado 6.1 py39h2bbff1b_0
tqdm 4.64.0 py39haa95532_0
typing-extensions 4.3.0 py39haa95532_0
typing_extensions 4.3.0 py39haa95532_0
tzdata 2022a hda174b7_0
urllib3 1.26.11 py39haa95532_0
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
werkzeug 2.0.3 pyhd3eb1b0_0
wheel 0.37.1 pyhd3eb1b0_0
win_inet_pton 1.1.0 py39haa95532_0
wincertstore 0.2 py39haa95532_2
winpty 0.4.3 4
wrapt 1.14.1 py39h2bbff1b_0
xz 5.2.5 h8cc25b3_1
yaml 0.2.5 he774522_0
yarl 1.8.1 py39h2bbff1b_0
zipp 3.8.0 py39haa95532_0
zlib 1.2.12 h8cc25b3_2
zstd 1.5.2 h19a0ad4_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.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 erosion_top: 0.0 erosion_bottom: 0.0 erosion_left: 0.0 erosion_right: 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 separate_mask: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False separate_mask: 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 scalefactor: 0.709 batch-size: 8 cpu: True threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 [detect.s3fd] confidence: 70 batch-size: 4 [mask.bisenet_fp] batch-size: 8 cpu: False weights: faceswap include_ears: False include_hair: False include_glasses: True [mask.custom] batch-size: 8 centering: face fill: False [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] centering: face coverage: 87.5 icnr_init: False conv_aware_init: False optimizer: adam learning_rate: 5e-05 epsilon_exponent: -7 autoclip: False reflect_padding: False allow_growth: False mixed_precision: False nan_protection: True convert_batchsize: 16 [global.loss] loss_function: ssim loss_function_2: mse loss_weight_2: 100 loss_function_3: none loss_weight_3: 0 loss_function_4: none loss_weight_4: 0 mask_loss_function: mse eye_multiplier: 3 mouth_multiplier: 2 penalized_mask_loss: True mask_type: extended mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False [model.dfaker] output_size: 128 [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 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.phaze_a] output_size: 128 shared_fc: none enable_gblock: True split_fc: True split_gblock: False split_decoders: False enc_architecture: fs_original enc_scaling: 7 enc_load_weights: True bottleneck_type: dense bottleneck_norm: none bottleneck_size: 1024 bottleneck_in_encoder: True fc_depth: 1 fc_min_filters: 1024 fc_max_filters: 1024 fc_dimensions: 4 fc_filter_slope: -0.5 fc_dropout: 0.0 fc_upsampler: upsample2d fc_upsamples: 1 fc_upsample_filters: 512 fc_gblock_depth: 3 fc_gblock_min_nodes: 512 fc_gblock_max_nodes: 512 fc_gblock_filter_slope: -0.5 fc_gblock_dropout: 0.0 dec_upscale_method: subpixel dec_upscales_in_fc: 0 dec_norm: none dec_min_filters: 64 dec_max_filters: 512 dec_slope_mode: full dec_filter_slope: -0.45 dec_res_blocks: 1 dec_output_kernel: 5 dec_gaussian: True dec_skip_last_residual: True freeze_layers: keras_encoder load_layers: encoder fs_original_depth: 4 fs_original_min_filters: 128 fs_original_max_filters: 1024 fs_original_use_alt: False mobilenet_width: 1.0 mobilenet_depth: 1 mobilenet_dropout: 0.001 mobilenet_minimalistic: 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 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

btw I do not have a D:/ drive, though that showed up in the console

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

Re: Got an Error I can't understand.

Post by torzdf »

This has been asked many, many times before. It is an issue which only occurs when using cv2-dnn, and we have never been able to replicate. cv2-dnn is NOT a good aligner/detector.

In the meantime, try swapping the cv2-dnn detector with mtcnn and see if that helps.

Relevant:
search.php?keywords=%21ssize.empty%28%2 ... Aresize%27

My word is final

User avatar
JohnKowalski
Posts: 2
Joined: Tue Sep 06, 2022 4:38 am

Re: Got an Error I can't understand.

Post by JohnKowalski »

Do you suppose using S3Fd is better even though I have an internal GPU? MY Cv2 Iterations are about 15x faster than using S3Fd

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

Re: Got an Error I can't understand.

Post by torzdf »

S3FD is the best, but it is SUPER slow on CPU, so I wouldn't recommend using it unless you have the patience.

If you do have the patience, then I would go with MTCNN + FAN. That way you get good speed and ok results from the detector, but slow speed (but much better results) from the aligner.

My word is final

Locked