[Crash] ValueError: negative dimensions are not allowed

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
Mr.Man
Posts: 9
Joined: Thu Jun 25, 2020 9:28 pm

[Crash] ValueError: negative dimensions are not allowed

Post by Mr.Man »

Hi guys,

Hoping you can help me with this crash error?

Error inside GUI:

Code: Select all

Loading...
Setting Faceswap backend to NVIDIA
Please backup your data and/or test the tool you want to use with a smaller data set to make sure you understand how it works.
06/25/2020 22:19:30 INFO     Log level set to: INFO
06/25/2020 22:19:32 INFO     Downloading model: 'vggface2_resnet50' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v1.10.2/vggface2_resnet50_v2.zip

06/25/2020 22:19:57 INFO     Extracting: 'vggface2_resnet50'

Using TensorFlow backend.
06/25/2020 22:20:11 INFO     Sorting by identity similarity...

Classifying Faces...: 0it [00:00, ?it/s]06/25/2020 22:20:11 INFO     Sorting by ward linkage...

Classifying Faces...: 0it [00:00, ?it/s]06/25/2020 22:20:11 INFO     Sorting face distances. Depending on your dataset this may take some time...

06/25/2020 22:20:16 ERROR    Got Exception on main handler:
Traceback (most recent call last):
File "C:\Users\mrman\faceswap\lib\cli\launcher.py", line 155, in execute_script
process.process()
File "C:\Users\mrman\faceswap\tools\sort\sort.py", line 84, in process
self.sort_process()
File "C:\Users\mrman\faceswap\tools\sort\sort.py", line 139, in sort_process
img_list = getattr(self, sort_method)()
File "C:\Users\mrman\faceswap\tools\sort\sort.py", line 183, in sort_face
indices = self.vgg_face.sorted_similarity(preds, method="ward")
File "C:\Users\mrman\faceswap\lib\vgg_face2_keras.py", line 182, in sorted_similarity
result_linkage = func(predictions, **kwargs)
File "M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\fastcluster.py", line 245, in linkage
Z = empty((N-1,4))
ValueError: negative dimensions are not allowed
06/25/2020 22:20:16 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\Users\mrman\faceswap\crash_report.2020.06.25.222011504825.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Process exited.
06/25/2020 22:30:40 INFO     Checking for updates...
06/25/2020 22:30:41 INFO     Faceswap is up to date.
06/25/2020 22:30:41 INFO     Updating dependencies...
06/25/2020 22:30:41 INFO     Setup in Windows 10
06/25/2020 22:30:41 INFO     Installed Python: 3.7.7 64bit
06/25/2020 22:30:41 INFO     Running in Conda
06/25/2020 22:30:41 INFO     Running in a Virtual Environment
06/25/2020 22:30:41 INFO     Encoding: cp1252
06/25/2020 22:30:41 INFO     Installed pip: 20.1.1
06/25/2020 22:30:43 INFO     All Dependencies are up to date
06/25/2020 22:30:43 INFO     Dependencies updated

Crashlog:

Code: Select all

06/25/2020 22:19:30 MainProcess     MainThread      logger          log_setup                 INFO     Log level set to: INFO
06/25/2020 22:19:30 MainProcess     MainThread      launcher        execute_script            DEBUG    Executing: sort. PID: 6720
06/25/2020 22:19:32 MainProcess     MainThread      launcher        _test_for_tf_version      DEBUG    Installed Tensorflow Version: 1.15
06/25/2020 22:19:32 MainProcess     MainThread      queue_manager   __init__                  DEBUG    Initializing QueueManager
06/25/2020 22:19:32 MainProcess     MainThread      queue_manager   __init__                  DEBUG    Initialized QueueManager
06/25/2020 22:19:32 MainProcess     MainThread      sort            process                   VERBOSE  No output directory provided. Using input dir as output dir.
06/25/2020 22:19:32 MainProcess     MainThread      vgg_face2_keras __init__                  DEBUG    Initializing VGGFace2: (backend: GPU, loglevel: INFO)
06/25/2020 22:19:32 MainProcess     MainThread      utils           download_model            INFO     Downloading model: 'vggface2_resnet50' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v1.10.2/vggface2_resnet50_v2.zip
06/25/2020 22:19:33 MainProcess     MainThread      utils           download_model            DEBUG    header info: {x-amz-id-2: 5rrb/FNj7j8Jp2f3/nsrmgg8izTS8L3E0/YbzAn+GFAIQZxj5Q8X+DMGYwxpsXiS3pbS0i+Wdmo=\nx-amz-request-id: 2F1E99B57E2F2EC4\nDate: Thu, 25 Jun 2020 21:19:19 GMT\nLast-Modified: Fri, 12 Jul 2019 22:26:21 GMT\nETag: "838180971b59b95f51d2fd6eaea5dc2d"\nContent-Disposition: attachment; filename=vggface2_resnet50_v2.zip\nAccept-Ranges: bytes\nContent-Type: application/octet-stream\nContent-Length: 91407875\nServer: AmazonS3\nConnection: close\n\n}
06/25/2020 22:19:33 MainProcess     MainThread      utils           download_model            DEBUG    Return Code: 200
06/25/2020 22:19:57 MainProcess     MainThread      utils           unzip_model               INFO     Extracting: 'vggface2_resnet50'
06/25/2020 22:19:57 MainProcess     MainThread      utils           write_model               DEBUG    Zipfile: Filenames: ['vggface2_resnet50_v2.h5'], Total Size: 98979928
06/25/2020 22:19:57 MainProcess     MainThread      utils           write_model               DEBUG    Extracting from: 'C:\Users\mrman\faceswap\plugins\extract\recognition\.cache\vggface2_resnet50_v2.zip' to 'C:\Users\mrman\faceswap\plugins\extract\recognition\.cache\vggface2_resnet50_v2.h5'
06/25/2020 22:19:58 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:517: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.\n
06/25/2020 22:19:58 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:245: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.\n
06/25/2020 22:19:58 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:174: The name tf.get_default_session is deprecated. Please use tf.compat.v1.get_default_session instead.\n
06/25/2020 22:19:58 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:181: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.\n
06/25/2020 22:19:58 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:186: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.\n
06/25/2020 22:19:58 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:190: The name tf.global_variables is deprecated. Please use tf.compat.v1.global_variables instead.\n
06/25/2020 22:19:58 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:199: The name tf.is_variable_initialized is deprecated. Please use tf.compat.v1.is_variable_initialized instead.\n
06/25/2020 22:19:58 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:206: The name tf.variables_initializer is deprecated. Please use tf.compat.v1.variables_initializer instead.\n
06/25/2020 22:19:59 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:1834: The name tf.nn.fused_batch_norm is deprecated. Please use tf.compat.v1.nn.fused_batch_norm instead.\n
06/25/2020 22:19:59 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:133: The name tf.placeholder_with_default is deprecated. Please use tf.compat.v1.placeholder_with_default instead.\n
06/25/2020 22:19:59 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:3976: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.\n
06/25/2020 22:20:06 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:3980: The name tf.nn.avg_pool is deprecated. Please use tf.nn.avg_pool2d instead.\n
06/25/2020 22:20:06 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:4138: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.\n
06/25/2020 22:20:11 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\optimizers.py:790: The name tf.train.Optimizer is deprecated. Please use tf.compat.v1.train.Optimizer instead.\n
06/25/2020 22:20:11 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:3295: The name tf.log is deprecated. Please use tf.math.log instead.\n
06/25/2020 22:20:11 MainProcess     MainThread      vgg_face2_keras __init__                  DEBUG    Initialized VGGFace2
06/25/2020 22:20:11 MainProcess     MainThread      sort            sort_face                 INFO     Sorting by identity similarity...
06/25/2020 22:20:11 MainProcess     MainThread      image           __init__                  DEBUG    Initializing ImagesLoader: (path: M:\SYNC\Sync\ENCRYPTSYNC\faceswap\src\test\EXTRACTION, queue_size: 8, fast_count: True, skip_list: None, count: None)
06/25/2020 22:20:11 MainProcess     MainThread      image           __init__                  DEBUG    Initializing ImagesLoader: (path: M:\SYNC\Sync\ENCRYPTSYNC\faceswap\src\test\EXTRACTION, queue_size: 8, args: None)
06/25/2020 22:20:11 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'ImagesLoader'
06/25/2020 22:20:11 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'ImagesLoader', maxsize: 8)
06/25/2020 22:20:11 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'ImagesLoader')
06/25/2020 22:20:11 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'ImagesLoader'
06/25/2020 22:20:11 MainProcess     MainThread      image           _check_for_video          DEBUG    Input 'M:\SYNC\Sync\ENCRYPTSYNC\faceswap\src\test\EXTRACTION' is_video: False
06/25/2020 22:20:11 MainProcess     MainThread      image           _get_fps                  DEBUG    25.0
06/25/2020 22:20:11 MainProcess     MainThread      utils           get_image_paths           DEBUG    Scanned Folder contains 2 files
06/25/2020 22:20:11 MainProcess     MainThread      utils           get_image_paths           DEBUG    Returning 0 images
06/25/2020 22:20:11 MainProcess     MainThread      image           _get_count_and_filelist   DEBUG    count: 0
06/25/2020 22:20:11 MainProcess     MainThread      image           load                      DEBUG    Initializing Load Generator
06/25/2020 22:20:11 MainProcess     MainThread      image           _set_thread               DEBUG    Setting thread
06/25/2020 22:20:11 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'ImagesLoader', thread_count: 1)
06/25/2020 22:20:11 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'ImagesLoader'
06/25/2020 22:20:11 MainProcess     MainThread      image           _set_thread               DEBUG    Set thread: <lib.multithreading.MultiThread object at 0x0000021C9086C048>
06/25/2020 22:20:11 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'ImagesLoader'
06/25/2020 22:20:11 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'ImagesLoader_0'
06/25/2020 22:20:11 MainProcess     ImagesLoader_0  image           _process                  DEBUG    Load iterator: <bound method ImagesLoader._from_folder of <lib.image.ImagesLoader object at 0x0000021C8D43D288>>
06/25/2020 22:20:11 MainProcess     ImagesLoader_0  image           _from_folder              DEBUG    Loading frames from folder: 'M:\SYNC\Sync\ENCRYPTSYNC\faceswap\src\test\EXTRACTION'
06/25/2020 22:20:11 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'ImagesLoader': 1
06/25/2020 22:20:11 MainProcess     MainThread      image           load                      DEBUG    Closing Load Generator
06/25/2020 22:20:11 MainProcess     MainThread      image           close                     DEBUG    Received Close
06/25/2020 22:20:11 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Threads: 'ImagesLoader'
06/25/2020 22:20:11 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Thread: 'ImagesLoader_0'
06/25/2020 22:20:11 MainProcess     MainThread      multithreading  join                      DEBUG    Joined all Threads: 'ImagesLoader'
06/25/2020 22:20:11 MainProcess     MainThread      image           close                     DEBUG    Closed
06/25/2020 22:20:11 MainProcess     MainThread      sort            sort_face                 INFO     Sorting by ward linkage...
06/25/2020 22:20:11 MainProcess     MainThread      vgg_face2_keras sorted_similarity         INFO     Sorting face distances. Depending on your dataset this may take some time...
06/25/2020 22:20:11 MainProcess     MainThread      vgg_face2_keras _use_vector_linkage       DEBUG    free_ram: 10617MB, linkage_required: 0MB, vector_required: 0MB
06/25/2020 22:20:11 MainProcess     MainThread      vgg_face2_keras _use_vector_linkage       VERBOSE  Using linkage method
06/25/2020 22:20:11 MainProcess     MainThread      vgg_face2_keras _use_vector_linkage       DEBUG    False
Traceback (most recent call last):
  File "C:\Users\mrman\faceswap\lib\cli\launcher.py", line 155, in execute_script
    process.process()
  File "C:\Users\mrman\faceswap\tools\sort\sort.py", line 84, in process
    self.sort_process()
  File "C:\Users\mrman\faceswap\tools\sort\sort.py", line 139, in sort_process
    img_list = getattr(self, sort_method)()
  File "C:\Users\mrman\faceswap\tools\sort\sort.py", line 183, in sort_face
    indices = self.vgg_face.sorted_similarity(preds, method="ward")
  File "C:\Users\mrman\faceswap\lib\vgg_face2_keras.py", line 182, in sorted_similarity
    result_linkage = func(predictions, **kwargs)
  File "M:\SYNC\Sync\ANACONDA\envs\faceswap\lib\site-packages\fastcluster.py", line 245, in linkage
    Z = empty((N-1,4))
ValueError: negative dimensions are not allowed

============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         127d3db Dependencies update (#1028)
gpu_cuda:            10.1
gpu_cudnn:           No global version found. Check Conda packages for Conda cuDNN
gpu_devices:         GPU_0: GeForce GTX 1070 Ti
gpu_devices_active:  GPU_0
gpu_driver:          425.25
gpu_vram:            GPU_0: 8192MB
os_machine:          AMD64
os_platform:         Windows-10-10.0.16299-SP0
os_release:          10
py_command:          C:\Users\mrman\faceswap\tools.py sort -i J:/SYNC/Sync/ENCRYPTSYNC/faceswap/src/test/EXTRACTION -s face -t -1.0 -fp rename -g hist -b 5 -be GPU -lf sort_log.json -L INFO -gui
py_conda_version:    conda 4.8.3
py_implementation:   CPython
py_version:          3.7.7
py_virtual_env:      True
sys_cores:           6
sys_processor:       Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
sys_ram:             Total: 16344MB, Available: 10614MB, Used: 5730MB, Free: 10614MB

=============== Pip Packages ===============
absl-py==0.9.0
astor==0.8.0
blinker==1.4
brotlipy==0.7.0
cachetools==4.1.0
certifi==2020.6.20
cffi==1.14.0
chardet==3.0.4
click==7.1.2
cloudpickle==1.4.1
cryptography==2.9.2
cycler==0.10.0
cytoolz==0.10.1
dask @ file:///tmp/build/80754af9/dask-core_1592842333140/work
decorator==4.4.2
fastcluster==1.1.26
ffmpy==0.2.3
gast==0.2.2
google-auth==1.14.1
google-auth-oauthlib==0.4.1
google-pasta==0.2.0
grpcio==1.27.2
h5py==2.10.0
idna==2.9
imageio==2.8.0
imageio-ffmpeg==0.4.2
joblib==0.15.1
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.2.0
Markdown==3.1.1
matplotlib @ file:///C:/ci/matplotlib-base_1592846084747/work
mkl-fft==1.1.0
mkl-random==1.1.1
mkl-service==2.3.0
networkx==2.4
numpy==1.18.5
nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6
oauthlib==3.1.0
olefile==0.46
opencv-python==4.2.0.34
opt-einsum==3.1.0
pathlib==1.0.1
Pillow==7.1.2
protobuf==3.12.3
psutil==5.7.0
pyasn1==0.4.8
pyasn1-modules==0.2.7
pycparser==2.20
PyJWT==1.7.1
pyOpenSSL==19.1.0
pyparsing==2.4.7
pyreadline==2.1
PySocks==1.7.1
python-dateutil==2.8.1
PyWavelets==1.1.1
pywin32==227
PyYAML==5.3.1
requests @ file:///tmp/build/80754af9/requests_1592841827918/work
requests-oauthlib==1.3.0
rsa==4.0
scikit-image==0.16.2
scikit-learn @ file:///C:/ci/scikit-learn_1592847564598/work
scipy==1.4.1
six==1.15.0
tensorboard==1.15.0
tensorboard-plugin-wit==1.6.0
tensorflow==1.15.0
tensorflow-estimator==1.15.1
tensorflow-gpu==1.15.3
termcolor==1.1.0
threadpoolctl @ file:///tmp/tmp9twdgx9k/threadpoolctl-2.1.0-py3-none-any.whl
toolz==0.10.0
toposort==1.5
tornado==6.0.4
tqdm==4.46.1
urllib3==1.25.9
Werkzeug==0.16.1
win-inet-pton==1.1.0
wincertstore==0.2
wrapt==1.12.1

============== Conda Packages ==============
# packages in environment at M:\SYNC\Sync\ANACONDA\envs\faceswap:
#
# Name                    Version                   Build  Channel
_tflow_select             2.2.0                     eigen  
absl-py 0.9.0 py37_0
astor 0.8.0 py37_0
blas 1.0 mkl
blinker 1.4 py37_0
brotlipy 0.7.0 py37he774522_1000
ca-certificates 2020.1.1 0
cachetools 4.1.0 py_1
certifi 2020.6.20 py37_0
cffi 1.14.0 py37h7a1dbc1_0
chardet 3.0.4 py37_1003
click 7.1.2 py_0
cloudpickle 1.4.1 py_0
cryptography 2.9.2 py37h7a1dbc1_0
cycler 0.10.0 py37_0
cytoolz 0.10.1 py37he774522_0
dask-core 2.19.0 py_0
decorator 4.4.2 py_0
fastcluster 1.1.26 pypi_0 pypi ffmpy 0.2.3 pypi_0 pypi freetype 2.10.2 hd328e21_0
gast 0.2.2 py37_0
google-auth 1.14.1 py_0
google-auth-oauthlib 0.4.1 py_2
google-pasta 0.2.0 py_0
grpcio 1.27.2 py37h351948d_0
h5py 2.10.0 py37h5e291fa_0
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.9 py_1
imageio 2.8.0 py_0
imageio-ffmpeg 0.4.2 pypi_0 pypi intel-openmp 2020.1 216
joblib 0.15.1 py_0
jpeg 9b hb83a4c4_2
keras 2.2.4 0
keras-applications 1.0.8 py_0
keras-base 2.2.4 py37_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.2.0 py37h74a9793_0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.12.3 h7bd577a_0
libtiff 4.1.0 h56a325e_1
lz4-c 1.9.2 h62dcd97_0
markdown 3.1.1 py37_0
matplotlib 3.2.2 0
matplotlib-base 3.2.2 py37h64f37c6_0
mkl 2020.1 216
mkl-service 2.3.0 py37hb782905_0
mkl_fft 1.1.0 py37h45dec08_0
mkl_random 1.1.1 py37h47e9c7a_0
networkx 2.4 py_0
numpy 1.18.5 py37h6530119_0
numpy-base 1.18.5 py37hc3f5095_0
nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 py_0
olefile 0.46 py37_0
opencv-python 4.2.0.34 pypi_0 pypi openssl 1.1.1g he774522_0
opt_einsum 3.1.0 py_0
pathlib 1.0.1 py37_1
pillow 7.1.2 py37hcc1f983_0
pip 20.1.1 py37_1
protobuf 3.12.3 py37h33f27b4_0
psutil 5.7.0 py37he774522_0
pyasn1 0.4.8 py_0
pyasn1-modules 0.2.7 py_0
pycparser 2.20 py_0
pyjwt 1.7.1 py37_0
pyopenssl 19.1.0 py37_0
pyparsing 2.4.7 py_0
pyqt 5.9.2 py37h6538335_2
pyreadline 2.1 py37_1
pysocks 1.7.1 py37_0
python 3.7.7 h81c818b_4
python-dateutil 2.8.1 py_0
pywavelets 1.1.1 py37he774522_0
pywin32 227 py37he774522_1
pyyaml 5.3.1 py37he774522_0
qt 5.9.7 vc14h73c81de_0
requests 2.24.0 py_0
requests-oauthlib 1.3.0 py_0
rsa 4.0 py_0
scikit-image 0.16.2 py37h47e9c7a_0
scikit-learn 0.23.1 py37h25d0782_0
scipy 1.4.1 py37h9439919_0
setuptools 47.3.1 py37_0
sip 4.19.8 py37h6538335_0
six 1.15.0 py_0
sqlite 3.32.3 h2a8f88b_0
tensorboard 1.15.0 pypi_0 pypi tensorboard-plugin-wit 1.6.0 py_0
tensorflow 1.15.0 eigen_py37h9f89a44_0
tensorflow-base 1.15.0 eigen_py37h07d2309_0
tensorflow-estimator 1.15.1 pyh2649769_0
tensorflow-gpu 1.15.3 pypi_0 pypi termcolor 1.1.0 py37_1
threadpoolctl 2.1.0 pyh5ca1d4c_0
tk 8.6.10 he774522_0
toolz 0.10.0 py_0
toposort 1.5 pypi_0 pypi tornado 6.0.4 py37he774522_1
tqdm 4.46.1 py_0
urllib3 1.25.9 py_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_2
werkzeug 0.16.1 py_0
wheel 0.34.2 py37_0
win_inet_pton 1.1.0 py37_0
wincertstore 0.2 py37_0
wrapt 1.12.1 py37he774522_1
xz 5.2.5 h62dcd97_0
yaml 0.1.7 hc54c509_2
zlib 1.2.11 h62dcd97_4
zstd 1.4.4 ha9fde0e_3 ================= 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: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 8 [mask.vgg_clear] batch-size: 6 [mask.vgg_obstructed] batch-size: 2 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] coverage: 68.75 mask_type: none mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False icnr_init: False conv_aware_init: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4

Thank you so much to whoever can help. I am eager to join the community.

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

Re: [Crash] ValueError: negative dimensions are not allowed

Post by torzdf »

The faces folder ('M:\SYNC\Sync\ENCRYPTSYNC\faceswap\src\test\EXTRACTION') contains just 2 files and none of these are images. Check your paths again.

My word is final

User avatar
Mr.Man
Posts: 9
Joined: Thu Jun 25, 2020 9:28 pm

Re: [Crash] ValueError: negative dimensions are not allowed

Post by Mr.Man »

Ah, thank you! Seems obvious in hindsight. I selected the wrong subfolder.

I don't suppose you could point me to any good resources to best teach myself how to understand these error reports? Feels like a good place to start as a novice who wants to learn from the ground up..

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

Re: [Crash] ValueError: negative dimensions are not allowed

Post by torzdf »

Not really. The error reports are just a debug log output at the point of failure + some system information.

Generally it''s a question of looking at the Traceback and then working backwards to see what would have caused it to fail.

My word is final

Locked