Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

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
DANIEL34
Posts: 8
Joined: Sun Jul 25, 2021 3:02 am

Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by DANIEL34 »

voici le message d'erreur. je vais faire plusieurs post acr je pense en avoir plusieur merci de votre attention
here is the error message. I will do several post acr I think I have several thank you for your attention

Code: Select all

08/09/2021 01:32:39 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 01:32:39 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 01:32:39 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 01:32:39 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 01:32:39 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 01:32:40 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 01:32:40 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 01:32:40 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 01:32:40 MainProcess     align_fan_predict_0            _base           _thread_process                DEBUG    Putting EOF
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 01:32:40 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 01:32:40 MainProcess     align_fan_output_0             _base           _thread_process                DEBUG    Putting EOF
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Threads: 'align_fan_input'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Thread: 'align_fan_input_0'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joined all Threads: 'align_fan_input'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Threads: 'align_fan_predict'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Thread: 'align_fan_predict_0'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joined all Threads: 'align_fan_predict'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Threads: 'align_fan_output'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Thread: 'align_fan_output_0'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  join                           DEBUG    Joined all Threads: 'align_fan_output'
08/09/2021 01:32:40 MainProcess     MainThread                     pipeline        detected_faces                 DEBUG    Switching to phase: ['mask_0']
08/09/2021 01:32:40 MainProcess     MainThread                     extract         _run_extraction                DEBUG    Reloading images
08/09/2021 01:32:40 MainProcess     MainThread                     extract         _threaded_redirector           DEBUG    Threading task: (Task: 'reload')
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initializing MultiThread: (target: '_reload', thread_count: 1)
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initialized MultiThread: '_reload'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread(s): '_reload'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread 1 of 1: '_reload_0'
08/09/2021 01:32:40 MainProcess     _reload_0                      extract         _reload                        DEBUG    Reload Images: Start. Detected Faces Count: 2469
08/09/2021 01:32:40 MainProcess     _reload_0                      image           load                           DEBUG    Initializing Load Generator
08/09/2021 01:32:40 MainProcess     _reload_0                      image           _set_thread                    DEBUG    Setting thread
08/09/2021 01:32:40 MainProcess     _reload_0                      multithreading  __init__                       DEBUG    Initializing MultiThread: (target: 'ImagesLoader', thread_count: 1)
08/09/2021 01:32:40 MainProcess     _reload_0                      multithreading  __init__                       DEBUG    Initialized MultiThread: 'ImagesLoader'
08/09/2021 01:32:40 MainProcess     _reload_0                      image           _set_thread                    DEBUG    Set thread: <lib.multithreading.MultiThread object at 0x0000013799FD0430>
08/09/2021 01:32:40 MainProcess     _reload_0                      multithreading  start                          DEBUG    Starting thread(s): 'ImagesLoader'
08/09/2021 01:32:40 MainProcess     _reload_0                      multithreading  start                          DEBUG    Starting thread 1 of 1: 'ImagesLoader_0'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Started all threads '_reload': 1
08/09/2021 01:32:40 MainProcess     MainThread                     pipeline        _launch_plugin                 DEBUG    Launching mask_0 plugin
08/09/2021 01:32:40 MainProcess     MainThread                     pipeline        _launch_plugin                 DEBUG    in_qname: extract0_mask_0_in, out_qname: extract0_mask_1_in
08/09/2021 01:32:40 MainProcess     MainThread                     _base           initialize                     DEBUG    initialize Mask: (args: (), kwargs: {'in_queue': <queue.Queue object at 0x0000013790B3FD90>, 'out_queue': <queue.Queue object at 0x0000013790B3FB50>})
08/09/2021 01:32:40 MainProcess     ImagesLoader_0                 image           _process                       DEBUG    Load iterator: <bound method ImagesLoader._from_video of <lib.image.ImagesLoader object at 0x00000137EC530310>>
08/09/2021 01:32:40 MainProcess     ImagesLoader_0                 image           _from_video                    DEBUG    Loading frames from video: 'C:\Users\Daniel\Desktop\essais\00 modelle2\SOURCE VIDEO\adriana2.mp4'
08/09/2021 01:32:40 MainProcess     MainThread                     _base           initialize                     INFO     Initializing Components (Mask)...
08/09/2021 01:32:40 MainProcess     MainThread                     queue_manager   get_queue                      DEBUG    QueueManager getting: 'mask0_predict_components'
08/09/2021 01:32:40 MainProcess     MainThread                     queue_manager   add_queue                      DEBUG    QueueManager adding: (name: 'mask0_predict_components', maxsize: 1, create_new: False)
08/09/2021 01:32:40 MainProcess     MainThread                     queue_manager   add_queue                      DEBUG    QueueManager added: (name: 'mask0_predict_components')
08/09/2021 01:32:40 MainProcess     MainThread                     queue_manager   get_queue                      DEBUG    QueueManager got: 'mask0_predict_components'
08/09/2021 01:32:40 MainProcess     MainThread                     queue_manager   get_queue                      DEBUG    QueueManager getting: 'mask0_post_components'
08/09/2021 01:32:40 MainProcess     MainThread                     queue_manager   add_queue                      DEBUG    QueueManager adding: (name: 'mask0_post_components', maxsize: 1, create_new: False)
08/09/2021 01:32:40 MainProcess     MainThread                     queue_manager   add_queue                      DEBUG    QueueManager added: (name: 'mask0_post_components')
08/09/2021 01:32:40 MainProcess     MainThread                     queue_manager   get_queue                      DEBUG    QueueManager got: 'mask0_post_components'
08/09/2021 01:32:40 MainProcess     MainThread                     _base           _compile_threads               DEBUG    Compiling mask threads
08/09/2021 01:32:40 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Adding thread: (name: mask_components_input, function: <bound method Extractor._process_input of <plugins.extract.mask.components.Mask object at 0x0000013790053D90>>, in_queue: <queue.Queue object at 0x0000013790B3FD90>, out_queue: <queue.Queue object at 0x000001379E5486D0>)
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initializing MultiThread: (target: 'mask_components_input', thread_count: 1)
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initialized MultiThread: 'mask_components_input'
08/09/2021 01:32:40 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Added thread: mask_components_input
08/09/2021 01:32:40 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 0x0000013790053D90>>, in_queue: <queue.Queue object at 0x000001379E5486D0>, out_queue: <queue.Queue object at 0x000001379E548D30>)
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initializing MultiThread: (target: 'mask_components_predict', thread_count: 1)
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initialized MultiThread: 'mask_components_predict'
08/09/2021 01:32:40 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Added thread: mask_components_predict
08/09/2021 01:32:40 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Adding thread: (name: mask_components_output, function: <bound method Extractor._process_output of <plugins.extract.mask.components.Mask object at 0x0000013790053D90>>, in_queue: <queue.Queue object at 0x000001379E548D30>, out_queue: <queue.Queue object at 0x0000013790B3FB50>)
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initializing MultiThread: (target: 'mask_components_output', thread_count: 1)
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initialized MultiThread: 'mask_components_output'
08/09/2021 01:32:40 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Added thread: mask_components_output
08/09/2021 01:32:40 MainProcess     MainThread                     _base           _compile_threads               DEBUG    Compiled mask threads: [<lib.multithreading.MultiThread object at 0x0000013799EC4EB0>, <lib.multithreading.MultiThread object at 0x000001379A020E50>, <lib.multithreading.MultiThread object at 0x000001379A020E20>]
08/09/2021 01:32:40 MainProcess     MainThread                     components      init_model                     DEBUG    No mask model to initialize
08/09/2021 01:32:40 MainProcess     MainThread                     _base           initialize                     INFO     Initialized Components (Mask) with batchsize of 1
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread(s): 'mask_components_input'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread 1 of 1: 'mask_components_input_0'
08/09/2021 01:32:40 MainProcess     _reload_0                      multithreading  start                          DEBUG    Started all threads 'ImagesLoader': 1
08/09/2021 01:32:40 MainProcess     mask_components_input_0        _base           _thread_process                DEBUG    threading: (function: '_process_input')
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Started all threads 'mask_components_input': 1
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread(s): 'mask_components_predict'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread 1 of 1: 'mask_components_predict_0'
08/09/2021 01:32:40 MainProcess     mask_components_predict_0      _base           _thread_process                DEBUG    threading: (function: '_predict')
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Started all threads 'mask_components_predict': 1
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread(s): 'mask_components_output'
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread 1 of 1: 'mask_components_output_0'
08/09/2021 01:32:40 MainProcess     mask_components_output_0       _base           _thread_process                DEBUG    threading: (function: '_process_output')
08/09/2021 01:32:40 MainProcess     MainThread                     multithreading  start                          DEBUG    Started all threads 'mask_components_output': 1
08/09/2021 01:32:40 MainProcess     MainThread                     pipeline        _launch_plugin                 DEBUG    Launched mask_0 plugin
08/09/2021 01:32:40 MainProcess     MainThread                     pipeline        detected_faces                 DEBUG    Running Detection. Phase: '['mask_0']'
08/09/2021 01:32:40 MainProcess     mask_components_input_0        multithreading  run                            DEBUG    Error in thread (mask_components_input_0): OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\calib3d\src\calibration.cpp:1213: error: (-215:Assertion failed) fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'\n
08/09/2021 01:32:41 MainProcess     MainThread                     multithreading  check_and_raise_error          DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.5.3) C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-req-build-q3d_8t8e\\opencv\\modules\\calib3d\\src\\calibration.cpp:1213: error: (-215:Assertion failed) fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'\n"), <traceback object at 0x00000137998EBA40>)]
Traceback (most recent call last):
  File "C:\Users\Daniel\faceswap\lib\cli\launcher.py", line 182, in execute_script
    process.process()
  File "C:\Users\Daniel\faceswap\scripts\extract.py", line 119, in process
    self._run_extraction()
  File "C:\Users\Daniel\faceswap\scripts\extract.py", line 216, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "C:\Users\Daniel\MiniConda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1185, in __iter__
    for obj in iterable:
  File "C:\Users\Daniel\faceswap\plugins\extract\pipeline.py", line 239, in detected_faces
    if self._check_and_raise_error():
  File "C:\Users\Daniel\faceswap\plugins\extract\pipeline.py", line 662, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "C:\Users\Daniel\faceswap\plugins\extract\_base.py", line 347, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "C:\Users\Daniel\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\Users\Daniel\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Daniel\faceswap\plugins\extract\_base.py", line 453, in _thread_process
    exhausted, batch = self.get_batch(in_queue)
  File "C:\Users\Daniel\faceswap\plugins\extract\mask\_base.py", line 132, in get_batch
    feed_face = AlignedFace(face.landmarks_xy,
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 169, in __init__
    self._face = self.extract_face(image)
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 375, in extract_face
    retval = transform_image(image, self.matrix, self._size, self.padding)
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 192, in matrix
    matrix[:, 2] -= self.pose.offset[self._centering]
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 215, in pose
    self._cache["pose"][0] = PoseEstimate(lms)
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 507, in __init__
    self._rotation, self._translation = self._solve_pnp(landmarks)
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 589, in _solve_pnp
    _, rotation, translation = cv2.solvePnP(_MEAN_FACE_3D,
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\calib3d\src\calibration.cpp:1213: error: (-215:Assertion failed) fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'


============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         ee92cff tools.sort - Linting and languages
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.19043-SP0 os_release: 10 py_command: C:\Users\Daniel\faceswap\faceswap.py extract -i C:/Users/Daniel/Desktop/essais/00 modelle2/SOURCE VIDEO/adriana2.mp4 -o C:/Users/Daniel/Desktop/essais/00 modelle2/SOURCE VIDEO/02 -D s3fd -A fan -nm none -rf 8 -min 40 -l 0.4 -sz 512 -een 1 -si 0 -L INFO -gui py_conda_version: conda 4.10.3 py_implementation: CPython py_version: 3.8.11 py_virtual_env: True sys_cores: 8 sys_processor: Intel64 Family 6 Model 165 Stepping 2, GenuineIntel sys_ram: Total: 16221MB, Available: 11181MB, Used: 5040MB, Free: 11181MB =============== Pip Packages =============== absl-py==0.13.0 astunparse==1.6.3 cachetools==4.2.2 certifi==2021.5.30 cffi==1.14.6 charset-normalizer==2.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.34.0 google-auth-oauthlib==0.4.5 google-pasta==0.2.0 grpcio==1.39.0 h5py==2.10.0 idna==3.2 imageio @ file:///tmp/build/80754af9/imageio_1617700267927/work imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1621542018480/work joblib @ file:///tmp/build/80754af9/joblib_1613502643832/work Keras==2.2.4 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.2 kiwisolver @ file:///C:/ci/kiwisolver_1612282606037/work Markdown==3.3.4 matplotlib @ file:///C:/ci/matplotlib-base_1592837548929/work mkl-fft==1.3.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.1 olefile==0.46 opencv-python==4.5.3.56 opt-einsum==3.3.0 pathlib==1.0.1 Pillow @ file:///C:/ci/pillow_1625663293593/work plaidml==0.7.0 plaidml-keras==0.7.0 protobuf==3.17.3 psutil @ file:///C:/ci/psutil_1612298324802/work pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 pyparsing @ file:///home/linux1/recipes/ci/pyparsing_1610983426697/work python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work pywin32==228 PyYAML==5.4.1 requests==2.26.0 requests-oauthlib==1.3.0 rsa==4.7.2 scikit-learn @ file:///C:/ci/scikit-learn_1622739500535/work scipy @ file:///C:/ci/scipy_1616703433439/work sip==4.19.13 six @ file:///tmp/build/80754af9/six_1623709665295/work tensorboard==2.2.2 tensorboard-plugin-wit==1.8.0 tensorflow==2.2.3 tensorflow-estimator==2.2.0 termcolor==1.1.0 threadpoolctl @ file:///tmp/build/80754af9/threadpoolctl_1626115094421/work tornado @ file:///C:/ci/tornado_1606942392901/work tqdm @ file:///tmp/build/80754af9/tqdm_1627710282869/work urllib3==1.26.6 Werkzeug==2.0.1 wincertstore==0.2 wrapt==1.12.1 ============== Conda Packages ============== # packages in environment at C:\Users\Daniel\MiniConda3\envs\faceswap: # # Name Version Build Channel absl-py 0.13.0 pypi_0 pypi astunparse 1.6.3 pypi_0 pypi blas 1.0 mkl
ca-certificates 2021.7.5 haa95532_1
cachetools 4.2.2 pypi_0 pypi certifi 2021.5.30 py38haa95532_0
cffi 1.14.6 pypi_0 pypi charset-normalizer 2.0.4 pypi_0 pypi cycler 0.10.0 py38_0
enum34 1.1.10 pypi_0 pypi 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.34.0 pypi_0 pypi google-auth-oauthlib 0.4.5 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.39.0 pypi_0 pypi h5py 2.10.0 pypi_0 pypi icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 3.2 pypi_0 pypi imageio 2.9.0 pyhd3eb1b0_0
imageio-ffmpeg 0.4.4 pyhd8ed1ab_0 conda-forge intel-openmp 2021.3.0 haa95532_3372
joblib 1.0.1 pyhd3eb1b0_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.3.1 py38hd77b12b_0
libpng 1.6.37 h2a8f88b_0
libtiff 4.2.0 hd0e1b90_0
lz4-c 1.9.3 h2bbff1b_1
markdown 3.3.4 pypi_0 pypi matplotlib 3.2.2 0
matplotlib-base 3.2.2 py38h64f37c6_0
mkl 2020.2 256
mkl-service 2.3.0 py38h196d8e1_0
mkl_fft 1.3.0 py38h46781fe_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.1 pypi_0 pypi olefile 0.46 py_0
opencv-python 4.5.3.56 pypi_0 pypi openssl 1.1.1k h2bbff1b_0
opt-einsum 3.3.0 pypi_0 pypi pathlib 1.0.1 py_1
pillow 8.3.1 py38h4fa10fc_0
pip 21.2.2 py38haa95532_0
plaidml 0.7.0 pypi_0 pypi plaidml-keras 0.7.0 pypi_0 pypi protobuf 3.17.3 pypi_0 pypi psutil 5.8.0 py38h2bbff1b_1
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 pyhd3eb1b0_0
pyqt 5.9.2 py38ha925a31_4
python 3.8.11 h6244533_1
python-dateutil 2.8.2 pyhd3eb1b0_0
python_abi 3.8 2_cp38 conda-forge pywin32 228 py38hbaba5e8_1
pyyaml 5.4.1 pypi_0 pypi qt 5.9.7 vc14h73c81de_0
requests 2.26.0 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi rsa 4.7.2 pypi_0 pypi scikit-learn 0.24.2 py38hf11a4ad_1
scipy 1.6.2 py38h14eb087_0
setuptools 52.0.0 py38haa95532_0
sip 4.19.13 py38ha925a31_0
six 1.16.0 pyhd3eb1b0_0
sqlite 3.36.0 h2bbff1b_0
tensorboard 2.2.2 pypi_0 pypi tensorboard-plugin-wit 1.8.0 pypi_0 pypi tensorflow 2.2.3 pypi_0 pypi tensorflow-estimator 2.2.0 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi threadpoolctl 2.2.0 pyhb85f177_0
tk 8.6.10 he774522_0
tornado 6.1 py38h2bbff1b_0
tqdm 4.62.0 pyhd3eb1b0_1
urllib3 1.26.6 pypi_0 pypi vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
werkzeug 2.0.1 pypi_0 pypi wheel 0.36.2 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.9 h19a0ad4_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: 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: True [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 scalefactor: 0.709 batch-size: 8 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 include_ears: False include_hair: False include_glasses: True [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: 68.75 icnr_init: False conv_aware_init: False optimizer: adam learning_rate: 5e-05 epsilon_exponent: -7 reflect_padding: False allow_growth: False mixed_precision: False nan_protection: True 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.dfaker] output_size: 128 [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.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: 40 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_norm: none dec_min_filters: 64 dec_max_filters: 512 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 mobilenet_width: 1.0 mobilenet_depth: 1 mobilenet_dropout: 0.001 [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
DANIEL34
Posts: 8
Joined: Sun Jul 25, 2021 3:02 am

autre message

Post by DANIEL34 »

2e message

Code: Select all

08/09/2021 15:25:12 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 15:25:12 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 15:25:12 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 15:25:12 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 15:25:12 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 15:25:12 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 15:25:12 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 15:25:12 MainProcess     align_fan_predict_0            fan             predict                        DEBUG    Predicting Landmarks
08/09/2021 15:25:12 MainProcess     align_fan_predict_0            _base           _thread_process                DEBUG    Putting EOF
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             get_pts_from_predict           DEBUG    Obtain points from prediction
08/09/2021 15:25:12 MainProcess     align_fan_output_0             fan             transform                      DEBUG    Transforming Points
08/09/2021 15:25:12 MainProcess     align_fan_output_0             _base           _thread_process                DEBUG    Putting EOF
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Threads: 'align_fan_input'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Thread: 'align_fan_input_0'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joined all Threads: 'align_fan_input'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Threads: 'align_fan_predict'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Thread: 'align_fan_predict_0'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joined all Threads: 'align_fan_predict'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Threads: 'align_fan_output'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Thread: 'align_fan_output_0'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  join                           DEBUG    Joined all Threads: 'align_fan_output'
08/09/2021 15:25:12 MainProcess     MainThread                     pipeline        detected_faces                 DEBUG    Switching to phase: ['mask_0']
08/09/2021 15:25:12 MainProcess     MainThread                     extract         _run_extraction                DEBUG    Reloading images
08/09/2021 15:25:12 MainProcess     MainThread                     extract         _threaded_redirector           DEBUG    Threading task: (Task: 'reload')
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initializing MultiThread: (target: '_reload', thread_count: 1)
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initialized MultiThread: '_reload'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread(s): '_reload'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread 1 of 1: '_reload_0'
08/09/2021 15:25:12 MainProcess     _reload_0                      extract         _reload                        DEBUG    Reload Images: Start. Detected Faces Count: 1077
08/09/2021 15:25:12 MainProcess     _reload_0                      image           load                           DEBUG    Initializing Load Generator
08/09/2021 15:25:12 MainProcess     _reload_0                      image           _set_thread                    DEBUG    Setting thread
08/09/2021 15:25:12 MainProcess     _reload_0                      multithreading  __init__                       DEBUG    Initializing MultiThread: (target: 'ImagesLoader', thread_count: 1)
08/09/2021 15:25:12 MainProcess     _reload_0                      multithreading  __init__                       DEBUG    Initialized MultiThread: 'ImagesLoader'
08/09/2021 15:25:12 MainProcess     _reload_0                      image           _set_thread                    DEBUG    Set thread: <lib.multithreading.MultiThread object at 0x000001D0073A4250>
08/09/2021 15:25:12 MainProcess     _reload_0                      multithreading  start                          DEBUG    Starting thread(s): 'ImagesLoader'
08/09/2021 15:25:12 MainProcess     _reload_0                      multithreading  start                          DEBUG    Starting thread 1 of 1: 'ImagesLoader_0'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Started all threads '_reload': 1
08/09/2021 15:25:12 MainProcess     MainThread                     pipeline        _launch_plugin                 DEBUG    Launching mask_0 plugin
08/09/2021 15:25:12 MainProcess     MainThread                     pipeline        _launch_plugin                 DEBUG    in_qname: extract0_mask_0_in, out_qname: extract0_mask_1_in
08/09/2021 15:25:12 MainProcess     MainThread                     _base           initialize                     DEBUG    initialize Mask: (args: (), kwargs: {'in_queue': <queue.Queue object at 0x000001D003FB5DC0>, 'out_queue': <queue.Queue object at 0x000001D003FB5B20>})
08/09/2021 15:25:12 MainProcess     ImagesLoader_0                 image           _process                       DEBUG    Load iterator: <bound method ImagesLoader._from_video of <lib.image.ImagesLoader object at 0x000001D03B970310>>
08/09/2021 15:25:12 MainProcess     ImagesLoader_0                 image           _from_video                    DEBUG    Loading frames from video: 'C:\Users\Daniel\Desktop\essais\00 modelle2\SOURCE VIDEO\adrian.avi'
08/09/2021 15:25:12 MainProcess     MainThread                     _base           initialize                     INFO     Initializing Components (Mask)...
08/09/2021 15:25:12 MainProcess     MainThread                     queue_manager   get_queue                      DEBUG    QueueManager getting: 'mask0_predict_components'
08/09/2021 15:25:12 MainProcess     MainThread                     queue_manager   add_queue                      DEBUG    QueueManager adding: (name: 'mask0_predict_components', maxsize: 1, create_new: False)
08/09/2021 15:25:12 MainProcess     MainThread                     queue_manager   add_queue                      DEBUG    QueueManager added: (name: 'mask0_predict_components')
08/09/2021 15:25:12 MainProcess     MainThread                     queue_manager   get_queue                      DEBUG    QueueManager got: 'mask0_predict_components'
08/09/2021 15:25:12 MainProcess     MainThread                     queue_manager   get_queue                      DEBUG    QueueManager getting: 'mask0_post_components'
08/09/2021 15:25:12 MainProcess     MainThread                     queue_manager   add_queue                      DEBUG    QueueManager adding: (name: 'mask0_post_components', maxsize: 1, create_new: False)
08/09/2021 15:25:12 MainProcess     MainThread                     queue_manager   add_queue                      DEBUG    QueueManager added: (name: 'mask0_post_components')
08/09/2021 15:25:12 MainProcess     MainThread                     queue_manager   get_queue                      DEBUG    QueueManager got: 'mask0_post_components'
08/09/2021 15:25:12 MainProcess     MainThread                     _base           _compile_threads               DEBUG    Compiling mask threads
08/09/2021 15:25:12 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Adding thread: (name: mask_components_input, function: <bound method Extractor._process_input of <plugins.extract.mask.components.Mask object at 0x000001D05E462B50>>, in_queue: <queue.Queue object at 0x000001D003FB5DC0>, out_queue: <queue.Queue object at 0x000001D007CCBC10>)
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initializing MultiThread: (target: 'mask_components_input', thread_count: 1)
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initialized MultiThread: 'mask_components_input'
08/09/2021 15:25:12 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Added thread: mask_components_input
08/09/2021 15:25:12 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 0x000001D05E462B50>>, in_queue: <queue.Queue object at 0x000001D007CCBC10>, out_queue: <queue.Queue object at 0x000001D00752F1F0>)
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initializing MultiThread: (target: 'mask_components_predict', thread_count: 1)
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initialized MultiThread: 'mask_components_predict'
08/09/2021 15:25:12 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Added thread: mask_components_predict
08/09/2021 15:25:12 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Adding thread: (name: mask_components_output, function: <bound method Extractor._process_output of <plugins.extract.mask.components.Mask object at 0x000001D05E462B50>>, in_queue: <queue.Queue object at 0x000001D00752F1F0>, out_queue: <queue.Queue object at 0x000001D003FB5B20>)
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initializing MultiThread: (target: 'mask_components_output', thread_count: 1)
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  __init__                       DEBUG    Initialized MultiThread: 'mask_components_output'
08/09/2021 15:25:12 MainProcess     MainThread                     _base           _add_thread                    DEBUG    Added thread: mask_components_output
08/09/2021 15:25:12 MainProcess     MainThread                     _base           _compile_threads               DEBUG    Compiled mask threads: [<lib.multithreading.MultiThread object at 0x000001D007CCBC40>, <lib.multithreading.MultiThread object at 0x000001D00BD7EDF0>, <lib.multithreading.MultiThread object at 0x000001D00BD7EF10>]
08/09/2021 15:25:12 MainProcess     MainThread                     components      init_model                     DEBUG    No mask model to initialize
08/09/2021 15:25:12 MainProcess     MainThread                     _base           initialize                     INFO     Initialized Components (Mask) with batchsize of 1
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread(s): 'mask_components_input'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread 1 of 1: 'mask_components_input_0'
08/09/2021 15:25:12 MainProcess     _reload_0                      multithreading  start                          DEBUG    Started all threads 'ImagesLoader': 1
08/09/2021 15:25:12 MainProcess     mask_components_input_0        _base           _thread_process                DEBUG    threading: (function: '_process_input')
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Started all threads 'mask_components_input': 1
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread(s): 'mask_components_predict'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread 1 of 1: 'mask_components_predict_0'
08/09/2021 15:25:12 MainProcess     mask_components_predict_0      _base           _thread_process                DEBUG    threading: (function: '_predict')
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Started all threads 'mask_components_predict': 1
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread(s): 'mask_components_output'
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Starting thread 1 of 1: 'mask_components_output_0'
08/09/2021 15:25:12 MainProcess     mask_components_output_0       _base           _thread_process                DEBUG    threading: (function: '_process_output')
08/09/2021 15:25:12 MainProcess     MainThread                     multithreading  start                          DEBUG    Started all threads 'mask_components_output': 1
08/09/2021 15:25:12 MainProcess     MainThread                     pipeline        _launch_plugin                 DEBUG    Launched mask_0 plugin
08/09/2021 15:25:12 MainProcess     MainThread                     pipeline        detected_faces                 DEBUG    Running Detection. Phase: '['mask_0']'
08/09/2021 15:25:12 MainProcess     mask_components_input_0        multithreading  run                            DEBUG    Error in thread (mask_components_input_0): OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\calib3d\src\calibration.cpp:1213: error: (-215:Assertion failed) fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'\n
08/09/2021 15:25:13 MainProcess     MainThread                     multithreading  check_and_raise_error          DEBUG    Thread error caught: [(<class 'cv2.error'>, error("OpenCV(4.5.3) C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-req-build-q3d_8t8e\\opencv\\modules\\calib3d\\src\\calibration.cpp:1213: error: (-215:Assertion failed) fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'\n"), <traceback object at 0x000001D0071A2640>)]
Traceback (most recent call last):
  File "C:\Users\Daniel\faceswap\lib\cli\launcher.py", line 182, in execute_script
    process.process()
  File "C:\Users\Daniel\faceswap\scripts\extract.py", line 119, in process
    self._run_extraction()
  File "C:\Users\Daniel\faceswap\scripts\extract.py", line 216, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "C:\Users\Daniel\MiniConda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1185, in __iter__
    for obj in iterable:
  File "C:\Users\Daniel\faceswap\plugins\extract\pipeline.py", line 239, in detected_faces
    if self._check_and_raise_error():
  File "C:\Users\Daniel\faceswap\plugins\extract\pipeline.py", line 662, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "C:\Users\Daniel\faceswap\plugins\extract\_base.py", line 347, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "C:\Users\Daniel\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\Users\Daniel\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Daniel\faceswap\plugins\extract\_base.py", line 453, in _thread_process
    exhausted, batch = self.get_batch(in_queue)
  File "C:\Users\Daniel\faceswap\plugins\extract\mask\_base.py", line 132, in get_batch
    feed_face = AlignedFace(face.landmarks_xy,
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 169, in __init__
    self._face = self.extract_face(image)
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 375, in extract_face
    retval = transform_image(image, self.matrix, self._size, self.padding)
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 192, in matrix
    matrix[:, 2] -= self.pose.offset[self._centering]
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 215, in pose
    self._cache["pose"][0] = PoseEstimate(lms)
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 507, in __init__
    self._rotation, self._translation = self._solve_pnp(landmarks)
  File "C:\Users\Daniel\faceswap\lib\align\aligned_face.py", line 589, in _solve_pnp
    _, rotation, translation = cv2.solvePnP(_MEAN_FACE_3D,
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\calib3d\src\calibration.cpp:1213: error: (-215:Assertion failed) fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'


============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         ee92cff tools.sort - Linting and languages
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: NVIDIA Corporation - GeForce GTX 1650 (supported)
gpu_devices_active:  GPU_0
gpu_driver:          ['457.63']
gpu_vram:            GPU_0: 4096MB
os_machine:          AMD64
os_platform:         Windows-10-10.0.19043-SP0
os_release:          10
py_command:          C:\Users\Daniel\faceswap\faceswap.py extract -i C:/Users/Daniel/Desktop/essais/00 modelle2/SOURCE VIDEO/adrian.avi -o C:/Users/Daniel/Desktop/essais/00 modelle2/SOURCE VIDEO/03 -D s3fd -A fan -M bisenet-fp unet-dfl vgg-clear vgg-obstructed -nm none -rf 8 -min 40 -l 0.4 -sz 256 -een 1 -si 0 -L INFO -gui
py_conda_version:    conda 4.10.3
py_implementation:   CPython
py_version:          3.8.11
py_virtual_env:      True
sys_cores:           8
sys_processor:       Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
sys_ram:             Total: 16221MB, Available: 10625MB, Used: 5596MB, Free: 10625MB

=============== Pip Packages ===============
absl-py==0.13.0
astunparse==1.6.3
cachetools==4.2.2
certifi==2021.5.30
cffi==1.14.6
charset-normalizer==2.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.34.0
google-auth-oauthlib==0.4.5
google-pasta==0.2.0
grpcio==1.39.0
h5py==2.10.0
idna==3.2
imageio @ file:///tmp/build/80754af9/imageio_1617700267927/work
imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1621542018480/work
joblib @ file:///tmp/build/80754af9/joblib_1613502643832/work
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver @ file:///C:/ci/kiwisolver_1612282606037/work
Markdown==3.3.4
matplotlib @ file:///C:/ci/matplotlib-base_1592837548929/work
mkl-fft==1.3.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.1
olefile==0.46
opencv-python==4.5.3.56
opt-einsum==3.3.0
pathlib==1.0.1
Pillow @ file:///C:/ci/pillow_1625663293593/work
plaidml==0.7.0
plaidml-keras==0.7.0
protobuf==3.17.3
psutil @ file:///C:/ci/psutil_1612298324802/work
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
pyparsing @ file:///home/linux1/recipes/ci/pyparsing_1610983426697/work
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
pywin32==228
PyYAML==5.4.1
requests==2.26.0
requests-oauthlib==1.3.0
rsa==4.7.2
scikit-learn @ file:///C:/ci/scikit-learn_1622739500535/work
scipy @ file:///C:/ci/scipy_1616703433439/work
sip==4.19.13
six @ file:///tmp/build/80754af9/six_1623709665295/work
tensorboard==2.2.2
tensorboard-plugin-wit==1.8.0
tensorflow==2.2.3
tensorflow-estimator==2.2.0
termcolor==1.1.0
threadpoolctl @ file:///tmp/build/80754af9/threadpoolctl_1626115094421/work
tornado @ file:///C:/ci/tornado_1606942392901/work
tqdm @ file:///tmp/build/80754af9/tqdm_1627710282869/work
urllib3==1.26.6
Werkzeug==2.0.1
wincertstore==0.2
wrapt==1.12.1

============== Conda Packages ==============
# packages in environment at C:\Users\Daniel\MiniConda3\envs\faceswap:
#
# Name                    Version                   Build  Channel
absl-py                   0.13.0                   pypi_0    pypi
astunparse                1.6.3                    pypi_0    pypi
blas                      1.0                         mkl  
ca-certificates           2021.7.5             haa95532_1  
cachetools                4.2.2                    pypi_0    pypi
certifi                   2021.5.30        py38haa95532_0  
cffi                      1.14.6                   pypi_0    pypi
charset-normalizer        2.0.4                    pypi_0    pypi
cycler                    0.10.0                   py38_0  
enum34                    1.1.10                   pypi_0    pypi
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.34.0                   pypi_0    pypi
google-auth-oauthlib      0.4.5                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
grpcio                    1.39.0                   pypi_0    pypi
h5py                      2.10.0                   pypi_0    pypi
icc_rt                    2019.0.0             h0cc432a_1  
icu                       58.2                 ha925a31_3  
idna                      3.2                      pypi_0    pypi
imageio                   2.9.0              pyhd3eb1b0_0  
imageio-ffmpeg            0.4.4              pyhd8ed1ab_0    conda-forge
intel-openmp              2021.3.0          haa95532_3372  
joblib                    1.0.1              pyhd3eb1b0_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.3.1            py38hd77b12b_0  
libpng                    1.6.37               h2a8f88b_0  
libtiff                   4.2.0                hd0e1b90_0  
lz4-c                     1.9.3                h2bbff1b_1  
markdown                  3.3.4                    pypi_0    pypi
matplotlib                3.2.2                         0  
matplotlib-base           3.2.2            py38h64f37c6_0  
mkl                       2020.2                      256  
mkl-service               2.3.0            py38h196d8e1_0  
mkl_fft                   1.3.0            py38h46781fe_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.1                    pypi_0    pypi
olefile                   0.46                       py_0  
opencv-python             4.5.3.56                 pypi_0    pypi
openssl                   1.1.1k               h2bbff1b_0  
opt-einsum                3.3.0                    pypi_0    pypi
pathlib                   1.0.1                      py_1  
pillow                    8.3.1            py38h4fa10fc_0  
pip                       21.2.2           py38haa95532_0  
plaidml                   0.7.0                    pypi_0    pypi
plaidml-keras             0.7.0                    pypi_0    pypi
protobuf                  3.17.3                   pypi_0    pypi
psutil                    5.8.0            py38h2bbff1b_1  
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              pyhd3eb1b0_0  
pyqt                      5.9.2            py38ha925a31_4  
python                    3.8.11               h6244533_1  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python_abi                3.8                      2_cp38    conda-forge
pywin32                   228              py38hbaba5e8_1  
pyyaml                    5.4.1                    pypi_0    pypi
qt                        5.9.7            vc14h73c81de_0  
requests                  2.26.0                   pypi_0    pypi
requests-oauthlib         1.3.0                    pypi_0    pypi
rsa                       4.7.2                    pypi_0    pypi
scikit-learn              0.24.2           py38hf11a4ad_1  
scipy                     1.6.2            py38h14eb087_0  
setuptools                52.0.0           py38haa95532_0  
sip                       4.19.13          py38ha925a31_0  
six                       1.16.0             pyhd3eb1b0_0  
sqlite                    3.36.0               h2bbff1b_0  
tensorboard               2.2.2                    pypi_0    pypi
tensorboard-plugin-wit    1.8.0                    pypi_0    pypi
tensorflow                2.2.3                    pypi_0    pypi
tensorflow-estimator      2.2.0                    pypi_0    pypi
termcolor                 1.1.0                    pypi_0    pypi
threadpoolctl             2.2.0              pyhb85f177_0  
tk                        8.6.10               he774522_0  
tornado                   6.1              py38h2bbff1b_0  
tqdm                      4.62.0             pyhd3eb1b0_1  
urllib3                   1.26.6                   pypi_0    pypi
vc                        14.2                 h21ff451_1  
vs2015_runtime            14.27.29016          h5e58377_2  
werkzeug                  2.0.1                    pypi_0    pypi
wheel                     0.36.2             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.9                h19a0ad4_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:                   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:             True

[align.fan]
batch-size:               12

[detect.cv2_dnn]
confidence:               50

[detect.mtcnn]
minsize:                  20
scalefactor:              0.709
batch-size:               8
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
include_ears:             False
include_hair:             False
include_glasses:          True

[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:                 68.75
icnr_init:                False
conv_aware_init:          False
optimizer:                adam
learning_rate:            5e-05
epsilon_exponent:         -7
reflect_padding:          False
allow_growth:             False
mixed_precision:          False
nan_protection:           True
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.dfaker]
output_size:              128

[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.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:              40
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_norm:                 none
dec_min_filters:          64
dec_max_filters:          512
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
mobilenet_width:          1.0
mobilenet_depth:          1
mobilenet_dropout:        0.001

[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: VOICI MON MESSAGE D'erreur

Post by torzdf »

re: 1st error message:

Your GPU has not been detected. Make sure your drivers are up to date. If you are still having issues, please let me know what GPU you have,

re: 2nd error message:

You have installed Faceswap for AMD, but are running an Nvidia GPU. Remove Faceswap and install for Nvidia.

My word is final

User avatar
DANIEL34
Posts: 8
Joined: Sun Jul 25, 2021 3:02 am

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by DANIEL34 »

after a complete re-installation here is the error message

Code: Select all

Loading...
Setting Faceswap backend to NVIDIA
08/10/2021 15:08:49 INFO     Log level set to: INFO
08/10/2021 15:08:52 INFO     Output Directory: C:\Users\Daniel\Desktop\essais\face 2\1\Nouveau dossier

08/10/2021 15:08:52 INFO     Loading Detect from S3Fd plugin...
08/10/2021 15:08:53 INFO     Downloading model: 's3fd_keras' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v1.11.2/s3fd_keras_v2.zip


08/10/2021 15:08:59 INFO     Extracting: 's3fd_keras'

08/10/2021 15:09:00 INFO     Loading Align from Fan plugin...
08/10/2021 15:09:00 INFO     Downloading model: 'face-alignment-network_2d4_keras' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v1.13.2/face-alignment-network_2d4_keras_v2.zip

08/10/2021 15:09:43 INFO     Extracting: 'face-alignment-network_2d4_keras'

08/10/2021 15:09:44 INFO     Loading Mask from Components plugin...
08/10/2021 15:09:44 INFO     Loading Mask from Extended plugin...
08/10/2021 15:09:44 INFO     Loading Mask from Bisenet_Fp plugin...
08/10/2021 15:09:44 INFO     Downloading model: 'bisnet_face_parsing' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v1.14.1/bisnet_face_parsing_v1.zip

08/10/2021 15:10:10 INFO     Extracting: 'bisnet_face_parsing'

08/10/2021 15:10:10 INFO     Loading Mask from Unet_Dfl plugin...
08/10/2021 15:10:10 INFO     Downloading model: 'DFL_256_sigmoid' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v1.6.1/DFL_256_sigmoid_v1.zip

08/10/2021 15:10:50 INFO     Extracting: 'DFL_256_sigmoid'

08/10/2021 15:10:51 INFO     Loading Mask from Vgg_Clear plugin...
08/10/2021 15:10:51 INFO     Downloading model: 'Nirkin_300_softmax' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v1.8.1/Nirkin_300_softmax_v1.zip

08/10/2021 15:14:32 INFO     Extracting: 'Nirkin_300_softmax'

08/10/2021 15:14:34 WARNING  Not enough free VRAM for parallel processing. Switching to serial
08/10/2021 15:14:34 INFO     Reset batch sizes due to available VRAM: Detect: 1
08/10/2021 15:14:34 INFO     Starting, this may take a while...
08/10/2021 15:14:34 INFO     Initializing S3FD (Detect)...
08/10/2021 15:14:36 INFO     Initialized S3FD (Detect) with batchsize of 1

2021-08-10 15:14:38.139178: E tensorflow/stream_executor/cuda/cuda_dnn.cc:328] Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED
2021-08-10 15:14:38.139834: E tensorflow/stream_executor/cuda/cuda_dnn.cc:328] Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED
08/10/2021 15:14:38 ERROR    Tensorflow raised an unknown error. This is most likely caused by a failure to launch cuDNN which can occur for some GPU/Tensorflow combinations. You should enable `allow_growth` to attempt to resolve this issue:
08/10/2021 15:14:38 ERROR    GUI: Go to Settings > Extract Plugins > Global and enable the `allow_growth` option.
08/10/2021 15:14:38 ERROR    CLI: Go to `faceswap/config/extract.ini` and change the `allow_growth option to `True`.
Process exited.

after correction

Code: Select all

Loading...
Setting Faceswap backend to NVIDIA
08/10/2021 15:26:43 INFO     Log level set to: INFO
08/10/2021 15:26:45 INFO     Output Directory: C:\Users\Daniel\Desktop\essais\face 2\1\Nouveau dossier

08/10/2021 15:26:45 INFO     Loading Detect from S3Fd plugin...
08/10/2021 15:26:45 INFO     Loading Align from Fan plugin...
08/10/2021 15:26:45 INFO     Loading Mask from Components plugin...
08/10/2021 15:26:46 INFO     Loading Mask from Extended plugin...
08/10/2021 15:26:46 INFO     Loading Mask from Bisenet_Fp plugin...
08/10/2021 15:26:46 INFO     Loading Mask from Unet_Dfl plugin...
08/10/2021 15:26:46 INFO     Loading Mask from Vgg_Clear plugin...
08/10/2021 15:26:46 WARNING  Not enough free VRAM for parallel processing. Switching to serial
08/10/2021 15:26:46 INFO     Reset batch sizes due to available VRAM: Detect: 1
08/10/2021 15:26:46 INFO     Starting, this may take a while...
08/10/2021 15:26:46 INFO     Initializing S3FD (Detect)...
08/10/2021 15:26:46 INFO     Setting allow growth for GPU: PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')
08/10/2021 15:26:47 INFO     Initialized S3FD (Detect) with batchsize of 1

08/10/2021 15:27:00 ERROR    You do not have enough GPU memory available to run detection at the selected batch size. You can try a number of things:
08/10/2021 15:27:00 ERROR    1) Close any other application that is using your GPU (web browsers are particularly bad for this).
08/10/2021 15:27:00 ERROR    2) Lower the batchsize (the amount of images fed into the model) by editing the plugin settings (GUI: Settings > Configure extract settings, CLI: Edit the file faceswap/config/extract.ini).
08/10/2021 15:27:00 ERROR    3) Enable 'Single Process' mode.

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

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by torzdf »

My word is final

User avatar
DANIEL34
Posts: 8
Joined: Sun Jul 25, 2021 3:02 am

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by DANIEL34 »

here is the content of the sysinfo file

Code: Select all

#!/usr/bin python3
""" Obtain information about the running system, environment and GPU. """

import json
import locale
import os
import platform
import sys
from subprocess import PIPE, Popen

import psutil

from lib.gpu_stats import GPUStats
from setup import CudaCheck


class _SysInfo():  # pylint:disable=too-few-public-methods
    """ Obtain information about the System, Python and GPU """
    def __init__(self):
        self._state_file = _State().state_file
        self._configs = _Configs().configs
        self._system = dict(platform=platform.platform(),
                            system=platform.system(),
                            machine=platform.machine(),
                            release=platform.release(),
                            processor=platform.processor(),
                            cpu_count=os.cpu_count())
        self._python = dict(implementation=platform.python_implementation(),
                            version=platform.python_version())
        self._gpu = GPUStats(log=False).sys_info
        self._cuda_check = CudaCheck()

    @property
    def _encoding(self):
        """ str: The system preferred encoding """
        return locale.getpreferredencoding()

    @property
    def _is_conda(self):
        """ bool: `True` if running in a Conda environment otherwise ``False``. """
        return ("conda" in sys.version.lower() or
                os.path.exists(os.path.join(sys.prefix, 'conda-meta')))

    @property
    def _is_linux(self):
        """ bool: `True` if running on a Linux system otherwise ``False``. """
        return self._system["system"].lower() == "linux"

    @property
    def _is_macos(self):
        """ bool: `True` if running on a macOS system otherwise ``False``. """
        return self._system["system"].lower() == "darwin"

    @property
    def _is_windows(self):
        """ bool: `True` if running on a Windows system otherwise ``False``. """
        return self._system["system"].lower() == "windows"

    @property
    def _is_virtual_env(self):
        """ bool: `True` if running inside a virtual environment otherwise ``False``. """
        if not self._is_conda:
            retval = (hasattr(sys, "real_prefix") or
                      (hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix))
        else:
            prefix = os.path.dirname(sys.prefix)
            retval = (os.path.basename(prefix) == "envs")
        return retval

    @property
    def _ram_free(self):
        """ int: The amount of free RAM in bytes. """
        return psutil.virtual_memory().free

    @property
    def _ram_total(self):
        """ int: The amount of total RAM in bytes. """
        return psutil.virtual_memory().total

    @property
    def _ram_available(self):
        """ int: The amount of available RAM in bytes. """
        return psutil.virtual_memory().available

    @property
    def _ram_used(self):
        """ int: The amount of used RAM in bytes. """
        return psutil.virtual_memory().used

    @property
    def _fs_command(self):
        """ str: The command line command used to execute faceswap. """
        return " ".join(sys.argv)

    @property
    def _installed_pip(self):
        """ str: The list of installed pip packages within Faceswap's scope. """
        pip = Popen("{} -m pip freeze".format(sys.executable),
                    shell=True, stdout=PIPE)
        installed = pip.communicate()[0].decode().splitlines()
        return "\n".join(installed)

    @property
    def _installed_conda(self):
        """ str: The list of installed Conda packages within Faceswap's scope. """
        if not self._is_conda:
            return None
        conda = Popen("conda list", shell=True, stdout=PIPE, stderr=PIPE)
        stdout, stderr = conda.communicate()
        if stderr:
            return "Could not get package list"
        installed = stdout.decode().splitlines()
        return "\n".join(installed)

    @property
    def _conda_version(self):
        """ str: The installed version of Conda, or `N/A` if Conda is not installed. """
        if not self._is_conda:
            return "N/A"
        conda = Popen("conda --version", shell=True, stdout=PIPE, stderr=PIPE)
        stdout, stderr = conda.communicate()
        if stderr:
            return "Conda is used, but version not found"
        version = stdout.decode().splitlines()
        return "\n".join(version)

    @property
    def _git_branch(self):
        """ str: The git branch that is currently being used to execute Faceswap. """
        git = Popen("git status", shell=True, stdout=PIPE, stderr=PIPE)
        stdout, stderr = git.communicate()
        if stderr:
            return "Not Found"
        branch = stdout.decode().splitlines()[0].replace("On branch ", "")
        return branch

    @property
    def _git_commits(self):
        """ str: The last 5 git commits for the currently running Faceswap. """
        git = Popen("git log --pretty=oneline --abbrev-commit -n 5",
                    shell=True, stdout=PIPE, stderr=PIPE)
        stdout, stderr = git.communicate()
        if stderr:
            return "Not Found"
        commits = stdout.decode().splitlines()
        return ". ".join(commits)

    @property
    def _cuda_version(self):
        """ str: The installed CUDA version. """
        # TODO Handle multiple CUDA installs
        retval = self._cuda_check.cuda_version
        if not retval:
            retval = "No global version found"
            if self._is_conda:
                retval += ". Check Conda packages for Conda Cuda"
        return retval

    @property
    def _cudnn_version(self):
        """ str: The installed cuDNN version. """
        retval = self._cuda_check.cudnn_version
        if not retval:
            retval = "No global version found"
            if self._is_conda:
                retval += ". Check Conda packages for Conda cuDNN"
        return retval

    def full_info(self):
        """ Obtain extensive system information stats, formatted into a human readable format.

        Returns
        -------
        str
            The system information for the currently running system, formatted for output to
            console or a log file.
        """
        retval = "\n============ System Information ============\n"
        sys_info = {"os_platform": self._system["platform"],
                    "os_machine": self._system["machine"],
                    "os_release": self._system["release"],
                    "py_conda_version": self._conda_version,
                    "py_implementation": self._python["implementation"],
                    "py_version": self._python["version"],
                    "py_command": self._fs_command,
                    "py_virtual_env": self._is_virtual_env,
                    "sys_cores": self._system["cpu_count"],
                    "sys_processor": self._system["processor"],
                    "sys_ram": self._format_ram(),
                    "encoding": self._encoding,
                    "git_branch": self._git_branch,
                    "git_commits": self._git_commits,
                    "gpu_cuda": self._cuda_version,
                    "gpu_cudnn": self._cudnn_version,
                    "gpu_driver": self._gpu["driver"],
                    "gpu_devices": ", ".join(["GPU_{}: {}".format(idx, device)
                                              for idx, device in enumerate(self._gpu["devices"])]),
                    "gpu_vram": ", ".join(["GPU_{}: {}MB".format(idx, int(vram))
                                           for idx, vram in enumerate(self._gpu["vram"])]),
                    "gpu_devices_active": ", ".join(["GPU_{}".format(idx)
                                                     for idx in self._gpu["devices_active"]])}
        for key in sorted(sys_info.keys()):
            retval += ("{0: <20} {1}\n".format(key + ":", sys_info[key]))
        retval += "\n=============== Pip Packages ===============\n"
        retval += self._installed_pip
        if self._is_conda:
            retval += "\n\n============== Conda Packages ==============\n"
            retval += self._installed_conda
        retval += self._state_file
        retval += "\n\n================= Configs =================="
        retval += self._configs
        return retval

    def _format_ram(self):
        """ Format the RAM stats into Megabytes to make it more readable.

        Returns
        -------
        str
            The total, available, used and free RAM displayed in Megabytes
        """
        retval = list()
        for name in ("total", "available", "used", "free"):
            value = getattr(self, "_ram_{}".format(name))
            value = int(value / (1024 * 1024))
            retval.append("{}: {}MB".format(name.capitalize(), value))
        return ", ".join(retval)


def get_sysinfo():
    """ Obtain extensive system information stats, formatted into a human readable format.
    If an error occurs obtaining the system information, then the error message is returned
    instead.

    Returns
    -------
    str
        The system information for the currently running system, formatted for output to
        console or a log file.
    """
    try:
        retval = _SysInfo().full_info()
    except Exception as err:  # pylint: disable=broad-except
        retval = "Exception occured trying to retrieve sysinfo: {}".format(err)
    return retval


class _Configs():  # pylint:disable=too-few-public-methods
    """ Parses the config files in /faceswap/config and outputs the information stored within them
    in a human readable format. """

    def __init__(self):
        self.config_dir = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "config")
        self.configs = self._get_configs()

    def _get_configs(self):
        """ Obtain the formatted configurations from the config folder.

        Returns
        -------
        str
            The current configuration in the config files formatted in a human readable format
        """
        config_files = [os.path.join(self.config_dir, cfile)
                        for cfile in os.listdir(self.config_dir)
                        if os.path.basename(cfile) == ".faceswap"
                        or os.path.splitext(cfile)[1] == ".ini"]
        return self._parse_configs(config_files)

    def _parse_configs(self, config_files):
        """ Parse the given list of config files into a human readable format.

        Parameters
        ----------
        config_files: list
            A list of paths to the faceswap config files

        Returns
        -------
        str
            The current configuration in the config files formatted in a human readable format
        """
        formatted = ""
        for cfile in config_files:
            fname = os.path.basename(cfile)
            ext = os.path.splitext(cfile)[1]
            formatted += "\n--------- {} ---------\n".format(fname)
            if ext == ".ini":
                formatted += self._parse_ini(cfile)
            elif fname == ".faceswap":
                formatted += self._parse_json(cfile)
        return formatted

    def _parse_ini(self, config_file):
        """ Parse an ``.ini`` formatted config file into a human readable format.

        Parameters
        ----------
        config_file: str
            The path to the config.ini file

        Returns
        -------
        str
            The current configuration in the config file formatted in a human readable format
        """
        formatted = ""
        with open(config_file, "r") as cfile:
            for line in cfile.readlines():
                line = line.strip()
                if line.startswith("#") or not line:
                    continue
                item = line.split("=")
                if len(item) == 1:
                    formatted += "\n{}\n".format(item[0].strip())
                else:
                    formatted += self._format_text(item[0], item[1])
        return formatted

    def _parse_json(self, config_file):
        """ Parse an ``.json`` formatted config file into a python dictionary.

        Parameters
        ----------
        config_file: str
            The path to the config.json file

        Returns
        -------
        dict
            The current configuration in the config file formatted as a python dictionary
        """
        formatted = ""
        with open(config_file, "r") as cfile:
            conf_dict = json.load(cfile)
            for key in sorted(conf_dict.keys()):
                formatted += self._format_text(key, conf_dict[key])
        return formatted

    @staticmethod
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():  # pylint:disable=too-few-public-methods
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
    def __init__(self):
        self._model_dir = self._get_arg("-m", "--model-dir")
        self._trainer = self._get_arg("-t", "--trainer")
        self.state_file = self._get_state_file()

    @property
    def _is_training(self):
        """ bool: ``True`` if this function has been called during a training session
        otherwise ``False``. """
        return len(sys.argv) > 1 and sys.argv[1].lower() == "train"

    @staticmethod
    def _get_arg(*args):
        """ Obtain the value for a given command line option from sys.argv.

        Returns
        -------
        str or ``None``
            The value of the given command line option, if it exists, otherwise ``None``
        """
        cmd = sys.argv
        for opt in args:
            if opt in cmd:
                return cmd[cmd.index(opt) + 1]
        return None

    def _get_state_file(self):
        """ Parses the model's state file and compiles the contents into a human readable string.

        Returns
        -------
        str
            The state file formatted into a human readable format
        """
        if not self._is_training or self._model_dir is None or self._trainer is None:
            return ""
        fname = os.path.join(self._model_dir, "{}_state.json".format(self._trainer))
        if not os.path.isfile(fname):
            return ""

        retval = "\n\n=============== State File =================\n"
        with open(fname, "r") as sfile:
            retval += sfile.read()
        return retval


sysinfo = get_sysinfo()  # pylint: disable=invalid-name
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by torzdf »

You misunderstood. You need to follow the instructions in the above link. I know the contents of the file. I wrote it :/

In the GUI:

Help > Output System Info

Post the output here.

My word is final

User avatar
DANIEL34
Posts: 8
Joined: Sun Jul 25, 2021 3:02 am

here is the error message

Post by DANIEL34 »

Code: Select all

Loading...
Setting Faceswap backend to NVIDIA
08/15/2021 06:41:00 INFO     Log level set to: INFO
08/15/2021 06:41:02 INFO     Output Directory: C:\Users\Daniel\Desktop\essais\MODEL 1\total2

08/15/2021 06:41:02 INFO     Loading Detect from S3Fd plugin...
08/15/2021 06:41:02 INFO     Loading Align from Fan plugin...
08/15/2021 06:41:02 INFO     Loading Mask from Components plugin...
08/15/2021 06:41:02 INFO     Loading Mask from Extended plugin...
08/15/2021 06:41:02 INFO     Loading Mask from Bisenet_Fp plugin...
08/15/2021 06:41:02 INFO     Loading Mask from Unet_Dfl plugin...
08/15/2021 06:41:02 INFO     Loading Mask from Vgg_Clear plugin...
08/15/2021 06:41:02 INFO     Loading Mask from Vgg_Obstructed plugin...
08/15/2021 06:41:02 WARNING  Not enough free VRAM for parallel processing. Switching to serial
08/15/2021 06:41:02 INFO     Reset batch sizes due to available VRAM: Detect: 1
08/15/2021 06:41:02 INFO     Starting, this may take a while...
08/15/2021 06:41:02 INFO     Initializing S3FD (Detect)...
08/15/2021 06:41:03 INFO     Setting allow growth for GPU: PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')
08/15/2021 06:41:03 INFO     Initialized S3FD (Detect) with batchsize of 1

08/15/2021 06:41:17 ERROR    You do not have enough GPU memory available to run detection at the selected batch size. You can try a number of things:
08/15/2021 06:41:17 ERROR    1) Close any other application that is using your GPU (web browsers are particularly bad for this).
08/15/2021 06:41:17 ERROR    2) Lower the batchsize (the amount of images fed into the model) by editing the plugin settings (GUI: Settings > Configure extract settings, CLI: Edit the file faceswap/config/extract.ini).
08/15/2021 06:41:17 ERROR    3) Enable 'Single Process' mode.

I have no other applications running so no memory used.
I made a test by checking the box EXCLUDE GPUS.
the process started without error. but of course this is not the right solution since I am not using the graphics card. it was just a verification of the installation.

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

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by torzdf »

Dude. I don't know what I can say. I have given you instructions twice now about what you need to provide to get support and you still haven't provided it.

My word is final

User avatar
DANIEL34
Posts: 8
Joined: Sun Jul 25, 2021 3:02 am

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by DANIEL34 »

Thank you for your patient. I don't think machine translations allow me to understand everything. I will try to start all over again. the error message is as follows
I have no other application running .
Image

Code: Select all

Loading...
Setting Faceswap backend to NVIDIA
08/15/2021 20:57:02 INFO     Log level set to: INFO
08/15/2021 20:57:03 INFO     Output Directory: C:\Users\Daniel\Desktop\essais\MODEL 1\1\Nouveau dossier

08/15/2021 20:57:04 INFO     Loading Detect from S3Fd plugin...
08/15/2021 20:57:04 INFO     Loading Align from Fan plugin...
08/15/2021 20:57:04 INFO     Loading Mask from Components plugin...
08/15/2021 20:57:04 INFO     Loading Mask from Extended plugin...
08/15/2021 20:57:04 WARNING  Not enough free VRAM for parallel processing. Switching to serial
08/15/2021 20:57:04 INFO     Reset batch sizes due to available VRAM: Detect: 1
08/15/2021 20:57:04 INFO     Starting, this may take a while...
08/15/2021 20:57:04 INFO     Initializing S3FD (Detect)...
08/15/2021 20:57:04 INFO     Setting allow growth for GPU: PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')
08/15/2021 20:57:05 INFO     Initialized S3FD (Detect) with batchsize of 1

08/15/2021 20:57:19 ERROR    You do not have enough GPU memory available to run detection at the selected batch size. You can try a number of things:
08/15/2021 20:57:19 ERROR    1) Close any other application that is using your GPU (web browsers are particularly bad for this).
08/15/2021 20:57:19 ERROR    2) Lower the batchsize (the amount of images fed into the model) by editing the plugin settings (GUI: Settings > Configure extract settings, CLI: Edit the file faceswap/config/extract.ini).
08/15/2021 20:57:19 ERROR    3) Enable 'Single Process' mode.
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by torzdf »

My word is final

User avatar
Lex
Posts: 1
Joined: Sun Sep 08, 2019 6:44 am

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by Lex »

Salut. Je comprends que la différence de langue crée une certaine confusion.

Torzdf vous demande d'appuyer sur le bouton intitulé "Output System Information".

Image

Si vous appuyez sur ce bouton et que vous partagez ensuite la sortie résultante, Torzdf pourra vous aider davantage.


Hey there. I understand that the language barrier is making for some difficulty in understanding.

What Torzdf is asking you to do is to press this button labelled "Output System Information".

If you could select this and then share the output, he will be able to help you further.

User avatar
DANIEL34
Posts: 8
Joined: Sun Jul 25, 2021 3:02 am

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by DANIEL34 »

Code: Select all

============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         7e7640e Bugfix: Convert - Fix predicted mask
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 1650
gpu_devices_active:  GPU_0
gpu_driver:          457.63
gpu_vram:            GPU_0: 4096MB
os_machine:          AMD64
os_platform:         Windows-10-10.0.19043-SP0
os_release:          10
py_command:          C:\Users\Daniel\faceswap/faceswap.py gui
py_conda_version:    conda 4.10.3
py_implementation:   CPython
py_version:          3.8.11
py_virtual_env:      True
sys_cores:           8
sys_processor:       Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
sys_ram:             Total: 16221MB, Available: 10084MB, Used: 6136MB, Free: 10084MB

=============== Pip Packages ===============
absl-py @ file:///C:/ci/absl-py_1623867339542/work
aiohttp @ file:///C:/ci/aiohttp_1614361024229/work
astor==0.8.1
astunparse==1.6.3
async-timeout==3.0.1
attrs @ file:///tmp/build/80754af9/attrs_1620827162558/work
blinker==1.4
brotlipy==0.7.0
cachetools @ file:///tmp/build/80754af9/cachetools_1619597386817/work
certifi==2021.5.30
cffi @ file:///C:/ci/cffi_1625831749120/work
chardet @ file:///C:/ci/chardet_1605303225733/work
click @ file:///tmp/build/80754af9/click_1621604852318/work
coverage @ file:///C:/ci/coverage_1614615074147/work
cryptography @ file:///C:/ci/cryptography_1616769344312/work
cycler==0.10.0
Cython @ file:///C:/ci/cython_1626257071357/work
fastcluster==1.1.26
ffmpy==0.2.3
gast @ file:///Users/ktietz/demo/mc3/conda-bld/gast_1628588903283/work
google-auth @ file:///tmp/build/80754af9/google-auth_1626320605116/work
google-auth-oauthlib @ file:///tmp/build/80754af9/google-auth-oauthlib_1617120569401/work
google-pasta==0.2.0
grpcio @ file:///C:/ci/grpcio_1614884412260/work
h5py==2.10.0
idna @ file:///home/linux1/recipes/ci/idna_1610986105248/work
imageio @ file:///tmp/build/80754af9/imageio_1617700267927/work
imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1621542018480/work
importlib-metadata @ file:///C:/ci/importlib-metadata_1617877484576/work
joblib @ file:///tmp/build/80754af9/joblib_1613502643832/work
Keras-Applications @ file:///tmp/build/80754af9/keras-applications_1594366238411/work
Keras-Preprocessing @ file:///tmp/build/80754af9/keras-preprocessing_1612283640596/work
kiwisolver @ file:///C:/ci/kiwisolver_1612282606037/work
Markdown @ file:///C:/ci/markdown_1614364121613/work
matplotlib @ file:///C:/ci/matplotlib-base_1592837548929/work
mkl-fft==1.3.0
mkl-random==1.1.1
mkl-service==2.3.0
multidict @ file:///C:/ci/multidict_1607362065515/work
numpy @ file:///C:/ci/numpy_and_numpy_base_1603466732592/work
nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6
oauthlib @ file:///tmp/build/80754af9/oauthlib_1623060228408/work
olefile==0.46
opencv-python==4.5.3.56
opt-einsum @ file:///tmp/build/80754af9/opt_einsum_1621500238896/work
pathlib==1.0.1
Pillow @ file:///C:/ci/pillow_1625663293593/work
protobuf==3.17.2
psutil @ file:///C:/ci/psutil_1612298324802/work
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser @ file:///tmp/build/80754af9/pycparser_1594388511720/work
PyJWT @ file:///C:/ci/pyjwt_1619651841937/work
pyOpenSSL @ file:///tmp/build/80754af9/pyopenssl_1608057966937/work
pyparsing @ file:///home/linux1/recipes/ci/pyparsing_1610983426697/work
pyreadline==2.1
PySocks @ file:///C:/ci/pysocks_1605287845585/work
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
pywin32==228
requests @ file:///tmp/build/80754af9/requests_1608241421344/work
requests-oauthlib==1.3.0
rsa @ file:///tmp/build/80754af9/rsa_1614366226499/work
scikit-learn @ file:///C:/ci/scikit-learn_1622739500535/work
scipy @ file:///C:/ci/scipy_1616703433439/work
sip==4.19.13
six @ file:///tmp/build/80754af9/six_1623709665295/work
tensorboard @ file:///home/builder/ktietz/aggregate/tensorflow_recipes/ci_te/tensorboard_1614593728657/work/tmp_pip_dir
tensorboard-plugin-wit==1.6.0
tensorflow==2.3.0
tensorflow-estimator @ file:///home/builder/ktietz/aggregate/tensorflow_recipes/ci_baze37/tensorflow-estimator_1622026529081/work/tensorflow_estimator-2.5.0-py2.py3-none-any.whl
termcolor==1.1.0
threadpoolctl @ file:///Users/ktietz/demo/mc3/conda-bld/threadpoolctl_1628668762525/work
tornado @ file:///C:/ci/tornado_1606942392901/work
tqdm @ file:///tmp/build/80754af9/tqdm_1627710282869/work
typing-extensions @ file:///tmp/build/80754af9/typing_extensions_1624965014186/work
urllib3 @ file:///tmp/build/80754af9/urllib3_1625084269274/work
Werkzeug @ file:///home/ktietz/src/ci/werkzeug_1611932622770/work
win-inet-pton @ file:///C:/ci/win_inet_pton_1605306167264/work
wincertstore==0.2
wrapt==1.12.1
yarl @ file:///C:/ci/yarl_1606940076464/work
zipp @ file:///tmp/build/80754af9/zipp_1625570634446/work

============== Conda Packages ==============
# packages in environment at C:\Users\Daniel\MiniConda3\envs\faceswap:
#
# Name                    Version                   Build  Channel
_tflow_select             2.3.0                       gpu  
absl-py                   0.13.0           py38haa95532_0  
aiohttp                   3.7.4            py38h2bbff1b_1  
astor                     0.8.1            py38haa95532_0  
astunparse                1.6.3                      py_0  
async-timeout             3.0.1            py38haa95532_0  
attrs                     21.2.0             pyhd3eb1b0_0  
blas                      1.0                         mkl  
blinker                   1.4              py38haa95532_0  
brotlipy                  0.7.0           py38h2bbff1b_1003  
ca-certificates           2021.7.5             haa95532_1  
cachetools                4.2.2              pyhd3eb1b0_0  
certifi                   2021.5.30        py38haa95532_0  
cffi                      1.14.6           py38h2bbff1b_0  
chardet                   3.0.4           py38haa95532_1003  
click                     8.0.1              pyhd3eb1b0_0  
coverage                  5.5              py38h2bbff1b_2  
cryptography              3.4.7            py38h71e12ea_0  
cudatoolkit               10.1.243             h74a9793_0  
cudnn                     7.6.5                cuda10.1_0  
cycler                    0.10.0                   py38_0  
cython                    0.29.24          py38hd77b12b_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.4.0              pyhd3eb1b0_0  
git                       2.32.0               haa95532_1  
google-auth               1.33.0             pyhd3eb1b0_0  
google-auth-oauthlib      0.4.4              pyhd3eb1b0_0  
google-pasta              0.2.0                      py_0  
grpcio                    1.36.1           py38hc60d5dd_1  
h5py                      2.10.0           py38h5e291fa_0  
hdf5                      1.10.4               h7ebc959_0  
icc_rt                    2019.0.0             h0cc432a_1  
icu                       58.2                 ha925a31_3  
idna                      2.10               pyhd3eb1b0_0  
imageio                   2.9.0              pyhd3eb1b0_0  
imageio-ffmpeg            0.4.4              pyhd8ed1ab_0    conda-forge
importlib-metadata        3.10.0           py38haa95532_0  
intel-openmp              2021.3.0          haa95532_3372  
joblib                    1.0.1              pyhd3eb1b0_0  
jpeg                      9b                   hb83a4c4_2  
keras-applications        1.0.8                      py_1  
keras-preprocessing       1.1.2              pyhd3eb1b0_0  
kiwisolver                1.3.1            py38hd77b12b_0  
libpng                    1.6.37               h2a8f88b_0  
libprotobuf               3.17.2               h23ce68f_1  
libtiff                   4.2.0                hd0e1b90_0  
lz4-c                     1.9.3                h2bbff1b_1  
markdown                  3.3.4            py38haa95532_0  
matplotlib                3.2.2                         0  
matplotlib-base           3.2.2            py38h64f37c6_0  
mkl                       2020.2                      256  
mkl-service               2.3.0            py38h196d8e1_0  
mkl_fft                   1.3.0            py38h46781fe_0  
mkl_random                1.1.1            py38h47e9c7a_0  
multidict                 5.1.0            py38h2bbff1b_2  
numpy                     1.19.2           py38hadc3359_0  
numpy-base                1.19.2           py38ha3acd2a_0  
nvidia-ml-py3             7.352.1                  pypi_0    pypi
oauthlib                  3.1.1              pyhd3eb1b0_0  
olefile                   0.46                       py_0  
opencv-python             4.5.3.56                 pypi_0    pypi
openssl                   1.1.1k               h2bbff1b_0  
opt_einsum                3.3.0              pyhd3eb1b0_1  
pathlib                   1.0.1                      py_1  
pillow                    8.3.1            py38h4fa10fc_0  
pip                       21.0.1           py38haa95532_0  
protobuf                  3.17.2           py38hd77b12b_0  
psutil                    5.8.0            py38h2bbff1b_1  
pyasn1                    0.4.8                      py_0  
pyasn1-modules            0.2.8                      py_0  
pycparser                 2.20                       py_2  
pyjwt                     2.1.0            py38haa95532_0  
pyopenssl                 20.0.1             pyhd3eb1b0_1  
pyparsing                 2.4.7              pyhd3eb1b0_0  
pyqt                      5.9.2            py38ha925a31_4  
pyreadline                2.1                      py38_1  
pysocks                   1.7.1            py38haa95532_0  
python                    3.8.11               h6244533_1  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python_abi                3.8                      2_cp38    conda-forge
pywin32                   228              py38hbaba5e8_1  
qt                        5.9.7            vc14h73c81de_0  
requests                  2.25.1             pyhd3eb1b0_0  
requests-oauthlib         1.3.0                      py_0  
rsa                       4.7.2              pyhd3eb1b0_1  
scikit-learn              0.24.2           py38hf11a4ad_1  
scipy                     1.6.2            py38h14eb087_0  
setuptools                52.0.0           py38haa95532_0  
sip                       4.19.13          py38ha925a31_0  
six                       1.16.0             pyhd3eb1b0_0  
sqlite                    3.36.0               h2bbff1b_0  
tensorboard               2.4.0              pyhc547734_0  
tensorboard-plugin-wit    1.6.0                      py_0  
tensorflow                2.3.0           mkl_py38h1fcfbd6_0  
tensorflow-base           2.3.0           gpu_py38h7339f5a_0  
tensorflow-estimator      2.5.0              pyh7b7c402_0  
tensorflow-gpu            2.3.0                he13fc11_0  
termcolor                 1.1.0            py38haa95532_1  
threadpoolctl             2.2.0              pyhbf3da8f_0  
tk                        8.6.10               he774522_0  
tornado                   6.1              py38h2bbff1b_0  
tqdm                      4.62.0             pyhd3eb1b0_1  
typing-extensions         3.10.0.0             hd3eb1b0_0  
typing_extensions         3.10.0.0           pyh06a4308_0  
urllib3                   1.26.6             pyhd3eb1b0_1  
vc                        14.2                 h21ff451_1  
vs2015_runtime            14.27.29016          h5e58377_2  
werkzeug                  1.0.1              pyhd3eb1b0_0  
wheel                     0.37.0             pyhd3eb1b0_0  
win_inet_pton             1.1.0            py38haa95532_0  
wincertstore              0.2                      py38_0  
wrapt                     1.12.1           py38he774522_1  
xz                        5.2.5                h62dcd97_0  
yarl                      1.6.3            py38h2bbff1b_0  
zipp                      3.5.0              pyhd3eb1b0_0  
zlib                      1.2.11               h62dcd97_4  
zstd                      1.4.9                h19a0ad4_0  

================= Configs ==================
--------- .faceswap ---------
backend:                  nvidia

--------- 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:             True

[align.fan]
batch-size:               1

[detect.cv2_dnn]
confidence:               50

[detect.mtcnn]
minsize:                  20
scalefactor:              0.709
batch-size:               8
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
include_ears:             False
include_hair:             False
include_glasses:          True

[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:                 68.75
icnr_init:                False
conv_aware_init:          False
optimizer:                adam
learning_rate:            5e-05
epsilon_exponent:         -7
reflect_padding:          False
allow_growth:             False
mixed_precision:          False
nan_protection:           True
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.dfaker]
output_size:              128

[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.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:              40
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_norm:                 none
dec_min_filters:          64
dec_max_filters:          512
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
mobilenet_width:          1.0
mobilenet_depth:          1
mobilenet_dropout:        0.001

[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: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by torzdf »

Essayez d'abord les étapes indiquées dans le message d'erreur d'origine. Faites-moi savoir si cela le résout. Traduction automatique :

Vous ne disposez pas de suffisamment de mémoire GPU pour exécuter la détection à la taille de lot sélectionnée. Vous pouvez essayer plusieurs choses:

  1. Fermez toute autre application qui utilise votre GPU (les navigateurs Web sont particulièrement mauvais pour cela).

  2. Réduisez la taille du lot ('Batchsize') (la quantité d'images introduites dans le modèle) en modifiant les paramètres du plug-in (GUI : Settings > Configure extract settings).

  3. Activez le mode 'Single Process.


Try the steps indicated in the original error message first. Let me know if it fixes it. Machine translated:

You do not have enough GPU memory available to run detection at the selected batch size. You can try a number of things:

  1. Close any other application that is using your GPU (web browsers are particularly bad for this).

  2. Lower the batchsize (the amount of images fed into the model) by editing the plugin settings (GUI: Settings > Configure extract settings).

  3. Enable 'Single Process' mode.

My word is final

User avatar
DANIEL34
Posts: 8
Joined: Sun Jul 25, 2021 3:02 am

here is the notified error

Post by DANIEL34 »

Code: Select all

Loading...
Setting Faceswap backend to NVIDIA
08/17/2021 22:48:14 INFO     Log level set to: INFO
08/17/2021 22:48:16 INFO     Output Directory: C:\Users\Daniel\Desktop\essais\MODEL 1\1\Nouveau dossier

08/17/2021 22:48:17 INFO     Loading Detect from S3Fd plugin...
08/17/2021 22:48:17 INFO     Loading Align from Fan plugin...
08/17/2021 22:48:17 INFO     Loading Mask from Components plugin...
08/17/2021 22:48:17 INFO     Loading Mask from Extended plugin...
08/17/2021 22:48:17 WARNING  Not enough free VRAM for parallel processing. Switching to serial
08/17/2021 22:48:17 INFO     Reset batch sizes due to available VRAM: Detect: 1
08/17/2021 22:48:17 INFO     Starting, this may take a while...
08/17/2021 22:48:17 INFO     Initializing S3FD (Detect)...
08/17/2021 22:48:17 INFO     Setting allow growth for GPU: PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')
08/17/2021 22:48:19 INFO     Initialized S3FD (Detect) with batchsize of 1

08/17/2021 22:48:34 ERROR    You do not have enough GPU memory available to run detection at the selected batch size. You can try a number of things:
08/17/2021 22:48:34 ERROR    1) Close any other application that is using your GPU (web browsers are particularly bad for this).
08/17/2021 22:48:34 ERROR    2) Lower the batchsize (the amount of images fed into the model) by editing the plugin settings (GUI: Settings > Configure extract settings, CLI: Edit the file faceswap/config/extract.ini).
08/17/2021 22:48:34 ERROR    3) Enable 'Single Process' mode.

the system information:


============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         7e7640e Bugfix: Convert - Fix predicted mask
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 1650
gpu_devices_active:  GPU_0
gpu_driver:          457.63
gpu_vram:            GPU_0: 4096MB
os_machine:          AMD64
os_platform:         Windows-10-10.0.19043-SP0
os_release:          10
py_command:          C:\Users\Daniel\faceswap/faceswap.py gui
py_conda_version:    conda 4.10.3
py_implementation:   CPython
py_version:          3.8.11
py_virtual_env:      True
sys_cores:           8
sys_processor:       Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
sys_ram:             Total: 16221MB, Available: 11291MB, Used: 4930MB, Free: 11291MB

=============== Pip Packages ===============
absl-py @ file:///C:/ci/absl-py_1623867339542/work
aiohttp @ file:///C:/ci/aiohttp_1614361024229/work
astor==0.8.1
astunparse==1.6.3
async-timeout==3.0.1
attrs @ file:///tmp/build/80754af9/attrs_1620827162558/work
blinker==1.4
brotlipy==0.7.0
cachetools @ file:///tmp/build/80754af9/cachetools_1619597386817/work
certifi==2021.5.30
cffi @ file:///C:/ci/cffi_1625831749120/work
chardet @ file:///C:/ci/chardet_1605303225733/work
click @ file:///tmp/build/80754af9/click_1621604852318/work
coverage @ file:///C:/ci/coverage_1614615074147/work
cryptography @ file:///C:/ci/cryptography_1616769344312/work
cycler==0.10.0
Cython @ file:///C:/ci/cython_1626257071357/work
fastcluster==1.1.26
ffmpy==0.2.3
gast @ file:///Users/ktietz/demo/mc3/conda-bld/gast_1628588903283/work
google-auth @ file:///tmp/build/80754af9/google-auth_1626320605116/work
google-auth-oauthlib @ file:///tmp/build/80754af9/google-auth-oauthlib_1617120569401/work
google-pasta==0.2.0
grpcio @ file:///C:/ci/grpcio_1614884412260/work
h5py==2.10.0
idna @ file:///home/linux1/recipes/ci/idna_1610986105248/work
imageio @ file:///tmp/build/80754af9/imageio_1617700267927/work
imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1621542018480/work
importlib-metadata @ file:///C:/ci/importlib-metadata_1617877484576/work
joblib @ file:///tmp/build/80754af9/joblib_1613502643832/work
Keras-Applications @ file:///tmp/build/80754af9/keras-applications_1594366238411/work
Keras-Preprocessing @ file:///tmp/build/80754af9/keras-preprocessing_1612283640596/work
kiwisolver @ file:///C:/ci/kiwisolver_1612282606037/work
Markdown @ file:///C:/ci/markdown_1614364121613/work
matplotlib @ file:///C:/ci/matplotlib-base_1592837548929/work
mkl-fft==1.3.0
mkl-random==1.1.1
mkl-service==2.3.0
multidict @ file:///C:/ci/multidict_1607362065515/work
numpy @ file:///C:/ci/numpy_and_numpy_base_1603466732592/work
nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6
oauthlib @ file:///tmp/build/80754af9/oauthlib_1623060228408/work
olefile==0.46
opencv-python==4.5.3.56
opt-einsum @ file:///tmp/build/80754af9/opt_einsum_1621500238896/work
pathlib==1.0.1
Pillow @ file:///C:/ci/pillow_1625663293593/work
protobuf==3.17.2
psutil @ file:///C:/ci/psutil_1612298324802/work
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser @ file:///tmp/build/80754af9/pycparser_1594388511720/work
PyJWT @ file:///C:/ci/pyjwt_1619651841937/work
pyOpenSSL @ file:///tmp/build/80754af9/pyopenssl_1608057966937/work
pyparsing @ file:///home/linux1/recipes/ci/pyparsing_1610983426697/work
pyreadline==2.1
PySocks @ file:///C:/ci/pysocks_1605287845585/work
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
pywin32==228
requests @ file:///tmp/build/80754af9/requests_1608241421344/work
requests-oauthlib==1.3.0
rsa @ file:///tmp/build/80754af9/rsa_1614366226499/work
scikit-learn @ file:///C:/ci/scikit-learn_1622739500535/work
scipy @ file:///C:/ci/scipy_1616703433439/work
sip==4.19.13
six @ file:///tmp/build/80754af9/six_1623709665295/work
tensorboard @ file:///home/builder/ktietz/aggregate/tensorflow_recipes/ci_te/tensorboard_1614593728657/work/tmp_pip_dir
tensorboard-plugin-wit==1.6.0
tensorflow==2.3.0
tensorflow-estimator @ file:///home/builder/ktietz/aggregate/tensorflow_recipes/ci_baze37/tensorflow-estimator_1622026529081/work/tensorflow_estimator-2.5.0-py2.py3-none-any.whl
termcolor==1.1.0
threadpoolctl @ file:///Users/ktietz/demo/mc3/conda-bld/threadpoolctl_1628668762525/work
tornado @ file:///C:/ci/tornado_1606942392901/work
tqdm @ file:///tmp/build/80754af9/tqdm_1627710282869/work
typing-extensions @ file:///tmp/build/80754af9/typing_extensions_1624965014186/work
urllib3 @ file:///tmp/build/80754af9/urllib3_1625084269274/work
Werkzeug @ file:///home/ktietz/src/ci/werkzeug_1611932622770/work
win-inet-pton @ file:///C:/ci/win_inet_pton_1605306167264/work
wincertstore==0.2
wrapt==1.12.1
yarl @ file:///C:/ci/yarl_1606940076464/work
zipp @ file:///tmp/build/80754af9/zipp_1625570634446/work

============== Conda Packages ==============
# packages in environment at C:\Users\Daniel\MiniConda3\envs\faceswap:
#
# Name                    Version                   Build  Channel
_tflow_select             2.3.0                       gpu  
absl-py                   0.13.0           py38haa95532_0  
aiohttp                   3.7.4            py38h2bbff1b_1  
astor                     0.8.1            py38haa95532_0  
astunparse                1.6.3                      py_0  
async-timeout             3.0.1            py38haa95532_0  
attrs                     21.2.0             pyhd3eb1b0_0  
blas                      1.0                         mkl  
blinker                   1.4              py38haa95532_0  
brotlipy                  0.7.0           py38h2bbff1b_1003  
ca-certificates           2021.7.5             haa95532_1  
cachetools                4.2.2              pyhd3eb1b0_0  
certifi                   2021.5.30        py38haa95532_0  
cffi                      1.14.6           py38h2bbff1b_0  
chardet                   3.0.4           py38haa95532_1003  
click                     8.0.1              pyhd3eb1b0_0  
coverage                  5.5              py38h2bbff1b_2  
cryptography              3.4.7            py38h71e12ea_0  
cudatoolkit               10.1.243             h74a9793_0  
cudnn                     7.6.5                cuda10.1_0  
cycler                    0.10.0                   py38_0  
cython                    0.29.24          py38hd77b12b_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.4.0              pyhd3eb1b0_0  
git                       2.32.0               haa95532_1  
google-auth               1.33.0             pyhd3eb1b0_0  
google-auth-oauthlib      0.4.4              pyhd3eb1b0_0  
google-pasta              0.2.0                      py_0  
grpcio                    1.36.1           py38hc60d5dd_1  
h5py                      2.10.0           py38h5e291fa_0  
hdf5                      1.10.4               h7ebc959_0  
icc_rt                    2019.0.0             h0cc432a_1  
icu                       58.2                 ha925a31_3  
idna                      2.10               pyhd3eb1b0_0  
imageio                   2.9.0              pyhd3eb1b0_0  
imageio-ffmpeg            0.4.4              pyhd8ed1ab_0    conda-forge
importlib-metadata        3.10.0           py38haa95532_0  
intel-openmp              2021.3.0          haa95532_3372  
joblib                    1.0.1              pyhd3eb1b0_0  
jpeg                      9b                   hb83a4c4_2  
keras-applications        1.0.8                      py_1  
keras-preprocessing       1.1.2              pyhd3eb1b0_0  
kiwisolver                1.3.1            py38hd77b12b_0  
libpng                    1.6.37               h2a8f88b_0  
libprotobuf               3.17.2               h23ce68f_1  
libtiff                   4.2.0                hd0e1b90_0  
lz4-c                     1.9.3                h2bbff1b_1  
markdown                  3.3.4            py38haa95532_0  
matplotlib                3.2.2                         0  
matplotlib-base           3.2.2            py38h64f37c6_0  
mkl                       2020.2                      256  
mkl-service               2.3.0            py38h196d8e1_0  
mkl_fft                   1.3.0            py38h46781fe_0  
mkl_random                1.1.1            py38h47e9c7a_0  
multidict                 5.1.0            py38h2bbff1b_2  
numpy                     1.19.2           py38hadc3359_0  
numpy-base                1.19.2           py38ha3acd2a_0  
nvidia-ml-py3             7.352.1                  pypi_0    pypi
oauthlib                  3.1.1              pyhd3eb1b0_0  
olefile                   0.46                       py_0  
opencv-python             4.5.3.56                 pypi_0    pypi
openssl                   1.1.1k               h2bbff1b_0  
opt_einsum                3.3.0              pyhd3eb1b0_1  
pathlib                   1.0.1                      py_1  
pillow                    8.3.1            py38h4fa10fc_0  
pip                       21.0.1           py38haa95532_0  
protobuf                  3.17.2           py38hd77b12b_0  
psutil                    5.8.0            py38h2bbff1b_1  
pyasn1                    0.4.8                      py_0  
pyasn1-modules            0.2.8                      py_0  
pycparser                 2.20                       py_2  
pyjwt                     2.1.0            py38haa95532_0  
pyopenssl                 20.0.1             pyhd3eb1b0_1  
pyparsing                 2.4.7              pyhd3eb1b0_0  
pyqt                      5.9.2            py38ha925a31_4  
pyreadline                2.1                      py38_1  
pysocks                   1.7.1            py38haa95532_0  
python                    3.8.11               h6244533_1  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python_abi                3.8                      2_cp38    conda-forge
pywin32                   228              py38hbaba5e8_1  
qt                        5.9.7            vc14h73c81de_0  
requests                  2.25.1             pyhd3eb1b0_0  
requests-oauthlib         1.3.0                      py_0  
rsa                       4.7.2              pyhd3eb1b0_1  
scikit-learn              0.24.2           py38hf11a4ad_1  
scipy                     1.6.2            py38h14eb087_0  
setuptools                52.0.0           py38haa95532_0  
sip                       4.19.13          py38ha925a31_0  
six                       1.16.0             pyhd3eb1b0_0  
sqlite                    3.36.0               h2bbff1b_0  
tensorboard               2.4.0              pyhc547734_0  
tensorboard-plugin-wit    1.6.0                      py_0  
tensorflow                2.3.0           mkl_py38h1fcfbd6_0  
tensorflow-base           2.3.0           gpu_py38h7339f5a_0  
tensorflow-estimator      2.5.0              pyh7b7c402_0  
tensorflow-gpu            2.3.0                he13fc11_0  
termcolor                 1.1.0            py38haa95532_1  
threadpoolctl             2.2.0              pyhbf3da8f_0  
tk                        8.6.10               he774522_0  
tornado                   6.1              py38h2bbff1b_0  
tqdm                      4.62.0             pyhd3eb1b0_1  
typing-extensions         3.10.0.0             hd3eb1b0_0  
typing_extensions         3.10.0.0           pyh06a4308_0  
urllib3                   1.26.6             pyhd3eb1b0_1  
vc                        14.2                 h21ff451_1  
vs2015_runtime            14.27.29016          h5e58377_2  
werkzeug                  1.0.1              pyhd3eb1b0_0  
wheel                     0.37.0             pyhd3eb1b0_0  
win_inet_pton             1.1.0            py38haa95532_0  
wincertstore              0.2                      py38_0  
wrapt                     1.12.1           py38he774522_1  
xz                        5.2.5                h62dcd97_0  
yarl                      1.6.3            py38h2bbff1b_0  
zipp                      3.5.0              pyhd3eb1b0_0  
zlib                      1.2.11               h62dcd97_4  
zstd                      1.4.9                h19a0ad4_0  

================= Configs ==================
--------- .faceswap ---------
backend:                  nvidia

--------- 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:             True

[align.fan]
batch-size:               1

[detect.cv2_dnn]
confidence:               50

[detect.mtcnn]
minsize:                  20
scalefactor:              0.709
batch-size:               8
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
include_ears:             False
include_hair:             False
include_glasses:          True

[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:                 68.75
icnr_init:                False
conv_aware_init:          False
optimizer:                adam
learning_rate:            5e-05
epsilon_exponent:         -7
reflect_padding:          False
allow_growth:             False
mixed_precision:          False
nan_protection:           True
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.dfaker]
output_size:              128

[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.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:              40
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_norm:                 none
dec_min_filters:          64
dec_max_filters:          512
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
mobilenet_width:          1.0
mobilenet_depth:          1
mobilenet_dropout:        0.001

[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

my config:

[img]C:\Users\Daniel\Desktop\environement.PNG[/img]

merci d'avance

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

Re: Extracttion Error: Assertion failed fabs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'

Post by torzdf »

My word is final

Locked