deepfakes / faceswap-playground

User dedicated repo for the faceswap project
306 stars 194 forks source link

Error AssertionError #277

Closed bestlzk closed 5 years ago

bestlzk commented 5 years ago
    imgs = self.process_face(img_path, side, is_timelapse)
  File "D:\faceswap\faceswap\lib\training_data.py", line 167, in process_face
    processed = self.processing.random_warp(image)
  File "D:\faceswap\faceswap\lib\training_data.py", line 283, in random_warp
    assert height == width and height % 2 == 0
AssertionError
04/15/2019 23:39:25 SpawnProcess-2  MainThread      multithreading  _runner                   DEBUG    FixedProducerDispatcher worker for <bound method TrainingDataGenerator.load_batches of <lib.training_data.TrainingDataGenerator object at 0x0000015F7AA00908>> shutdown
04/15/2019 23:39:26 MainProcess     training_0      multithreading  __init__                  DEBUG    Initialized FixedProducerDispatcher
04/15/2019 23:39:26 MainProcess     training_0      training_data   minibatch_ab              DEBUG    Batching to queue: (side: 'b', is_timelapse: False)
04/15/2019 23:39:26 MainProcess     training_0      _base           set_tensorboard           DEBUG    Enabling TensorBoard Logging
04/15/2019 23:39:26 MainProcess     training_0      _base           set_tensorboard           DEBUG    Setting up TensorBoard Logging. Side: a
04/15/2019 23:39:26 MainProcess     training_0      _base           name                      DEBUG    model name: 'original'
04/15/2019 23:39:26 SpawnProcess-3  MainThread      multithreading  _runner                   DEBUG    FixedProducerDispatcher worker for <bound method TrainingDataGenerator.load_batches of <lib.training_data.TrainingDataGenerator object at 0x0000014C95120908>> started
04/15/2019 23:39:26 SpawnProcess-3  MainThread      training_data   load_batches              DEBUG    Loading batch: (image_count: 142, side: 'b', is_timelapse: False, do_shuffle: True)
04/15/2019 23:39:26 SpawnProcess-3  MainThread      multithreading  _runner                   ERROR    
Traceback (most recent call last):
  File "D:\faceswap\faceswap\lib\multithreading.py", line 261, in _runner
    target(*args, **kwargs)
  File "D:\faceswap\faceswap\lib\training_data.py", line 105, in load_batches
    imgs = self.process_face(img_path, side, is_timelapse)
  File "D:\faceswap\faceswap\lib\training_data.py", line 167, in process_face
    processed = self.processing.random_warp(image)
  File "D:\faceswap\faceswap\lib\training_data.py", line 283, in random_warp
    assert height == width and height % 2 == 0
AssertionError
04/15/2019 23:39:26 SpawnProcess-3  MainThread      multithreading  _runner                   DEBUG    FixedProducerDispatcher worker for <bound method TrainingDataGenerator.load_batches of <lib.training_data.TrainingDataGenerator object at 0x0000014C95120908>> shutdown
04/15/2019 23:39:27 MainProcess     training_0      _base           set_tensorboard           DEBUG    Setting up TensorBoard Logging. Side: b
04/15/2019 23:39:27 MainProcess     training_0      _base           name                      DEBUG    model name: 'original'
04/15/2019 23:39:27 MainProcess     training_0      _base           set_tensorboard           INFO     Enabled TensorBoard Logging
04/15/2019 23:39:27 MainProcess     training_0      _base           use_mask                  DEBUG    False
04/15/2019 23:39:27 MainProcess     training_0      _base           __init__                  DEBUG    Initializing Samples: model: '<plugins.train.model.original.Model object at 0x0000025E384C1EF0>', use_mask: False, coverage_ratio: 0.625)
04/15/2019 23:39:27 MainProcess     training_0      _base           __init__                  DEBUG    Initialized Samples
04/15/2019 23:39:27 MainProcess     training_0      _base           use_mask                  DEBUG    False
04/15/2019 23:39:27 MainProcess     training_0      _base           __init__                  DEBUG    Initializing Timelapse: model: <plugins.train.model.original.Model object at 0x0000025E384C1EF0>, use_mask: False, coverage_ratio: 0.625, batchers: '{'a': <plugins.train.trainer._base.Batcher object at 0x0000025E621F9208>, 'b': <plugins.train.trainer._base.Batcher object at 0x0000025E622E27F0>}')
04/15/2019 23:39:27 MainProcess     training_0      _base           __init__                  DEBUG    Initializing Samples: model: '<plugins.train.model.original.Model object at 0x0000025E384C1EF0>', use_mask: False, coverage_ratio: 0.625)
04/15/2019 23:39:27 MainProcess     training_0      _base           __init__                  DEBUG    Initialized Samples
04/15/2019 23:39:27 MainProcess     training_0      _base           __init__                  DEBUG    Initialized Timelapse
04/15/2019 23:39:27 MainProcess     training_0      _base           __init__                  DEBUG    Initialized TrainerBase
04/15/2019 23:39:27 MainProcess     training_0      train           load_trainer              DEBUG    Loaded Trainer
04/15/2019 23:39:27 MainProcess     training_0      train           run_training_cycle        DEBUG    Running Training Cycle
04/15/2019 23:39:27 MainProcess     training_0      training_data   minibatch                 DEBUG    Launching minibatch generator for queue (side: 'a', is_timelapse: False)
04/15/2019 23:39:27 MainProcess     training_0      training_data   minibatch                 DEBUG    Finished minibatch generator for queue: (side: 'a', is_timelapse: False)
04/15/2019 23:39:27 MainProcess     training_0      multithreading  run                       DEBUG    Error in thread (training_0):
04/15/2019 23:39:27 MainProcess     MainThread      train           monitor                   DEBUG    Thread error detected
04/15/2019 23:39:27 MainProcess     MainThread      train           monitor                   DEBUG    Closed Monitor
04/15/2019 23:39:27 MainProcess     MainThread      train           end_thread                DEBUG    Ending Training thread
04/15/2019 23:39:27 MainProcess     MainThread      train           end_thread                CRITICAL Error caught! Exiting...
04/15/2019 23:39:27 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Threads: 'training'
04/15/2019 23:39:27 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Thread: 'training_0'
04/15/2019 23:39:27 MainProcess     MainThread      multithreading  join                      ERROR    Caught exception in thread: 'training_0'
Traceback (most recent call last):
  File "D:\faceswap\faceswap\lib\cli.py", line 107, in execute_script
    process.process()
  File "D:\faceswap\faceswap\scripts\train.py", line 98, in process
    self.end_thread(thread, err)
  File "D:\faceswap\faceswap\scripts\train.py", line 123, in end_thread
    thread.join()
  File "D:\faceswap\faceswap\lib\multithreading.py", line 443, in join
    raise thread.err[1].with_traceback(thread.err[2])
  File "D:\faceswap\faceswap\lib\multithreading.py", line 381, in run
    self._target(*self._args, **self._kwargs)
  File "D:\faceswap\faceswap\scripts\train.py", line 149, in training
    raise err
  File "D:\faceswap\faceswap\scripts\train.py", line 139, in training
    self.run_training_cycle(model, trainer)
  File "D:\faceswap\faceswap\scripts\train.py", line 214, in run_training_cycle
    trainer.train_one_step(viewer, timelapse)
  File "D:\faceswap\faceswap\plugins\train\trainer\_base.py", line 153, in train_one_step
    loss[side] = batcher.train_one_batch(do_preview)
  File "D:\faceswap\faceswap\plugins\train\trainer\_base.py", line 234, in train_one_batch
    batch = self.get_next(do_preview)
  File "D:\faceswap\faceswap\plugins\train\trainer\_base.py", line 242, in get_next
    batch = next(self.feed)
StopIteration

============ System Information ============
encoding:          cp936
git_branch:        Not Found
git_commits:       Not Found
gpu_cuda:          10.1
gpu_cudnn:         7.5.0
gpu_devices:       GPU_0: GeForce GTX 950M
gpu_driver:        425.31
gpu_vram:          GPU_0: 2048MB
os_machine:        AMD64
os_platform:       Windows-10-10.0.17134-SP0
os_release:        10
py_command:        faceswap.py train -A ../faceswap_files/photo/iu -B ../faceswap_files/photo/lsk -m ../faceswap_files/models/
py_conda_version:  conda 4.6.12
py_implementation: CPython
py_version:        3.6.8
py_virtual_env:    True
sys_cores:         4
sys_processor:     Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
sys_ram:           Total: 8080MB, Available: 3166MB, Used: 4914MB, Free: 3166MB

=============== Pip Packages ===============
absl-py==0.7.1
astor==0.7.1
certifi==2019.3.9
Click==7.0
cmake==3.13.3
cycler==0.10.0
decorator==4.4.0
dlib==19.17.0
face-recognition==1.2.3
face-recognition-models==0.3.0
ffmpy==0.2.2
gast==0.2.2
grpcio==1.19.0
h5py==2.9.0
imageio==2.5.0
Keras==2.2.4
Keras-Applications==1.0.7
Keras-Preprocessing==1.0.9
kiwisolver==1.0.1
Markdown==3.1
matplotlib==2.2.2
mkl-fft==1.0.10
mkl-random==1.0.2
mock==2.0.0
networkx==2.3
numpy==1.16.2
nvidia-ml-py3==7.352.0
opencv-python==4.1.0.25
pathlib==1.0.1
pbr==5.1.3
Pillow==6.0.0
protobuf==3.7.1
psutil==5.6.1
pyparsing==2.4.0
pyreadline==2.1
python-dateutil==2.8.0
pytz==2019.1
PyWavelets==1.0.3
PyYAML==5.1
scikit-image==0.15.0
scikit-learn==0.20.3
scipy==1.2.1
six==1.12.0
tensorboard==1.13.1
tensorflow==1.13.1
tensorflow-estimator==1.13.0
tensorflow-gpu==1.13.1
termcolor==1.1.0
toposort==1.5
tqdm==4.31.1
Werkzeug==0.15.2
wincertstore==0.2

============== Conda Packages ==============
# packages in environment at C:\Anaconda3\envs\faceswap:
#
# Name                    Version                   Build  Channel
_tflow_select             2.1.0                       gpu  
absl-py                   0.7.1                    pypi_0  
astor                     0.7.1                    py36_0  
blas                      1.0                         mkl  
ca-certificates           2019.3.9             hecc5488_0  
certifi                   2019.3.9                 py36_0  
click                     7.0                      pypi_0  
cmake                     3.13.3                   pypi_0  
cudatoolkit               9.0                           1  
cudnn                     7.3.1                 cuda9.0_0  
cycler                    0.10.0                   pypi_0  
decorator                 4.4.0                    pypi_0  
dlib                      19.17.0                  pypi_0  
face-recognition          1.2.3                    pypi_0  
face-recognition-models   0.3.0                    pypi_0  
ffmpeg                    4.1.1                h6538335_0  
ffmpy                     0.2.2                    pypi_0  
gast                      0.2.2                    pypi_0  
grpcio                    1.19.0                   pypi_0  
h5py                      2.9.0            py36h5e291fa_0  
hdf5                      1.10.4               h7ebc959_0  
icc_rt                    2019.0.0             h0cc432a_1  
imageio                   2.5.0                    pypi_0  
intel-openmp              2019.3                      203  
keras                     2.2.4                    pypi_0  
keras-applications        1.0.7                      py_0  
keras-preprocessing       1.0.9                      py_0  
kiwisolver                1.0.1                    pypi_0  
libpng                    1.6.34               h7602738_2  
libprotobuf               3.6.1                h7bd577a_0  
markdown                  3.1                      pypi_0  
matplotlib                2.2.2                    pypi_0  
mkl                       2019.3                      203  
mkl_fft                   1.0.10           py36h14836fe_0  
mkl_random                1.0.2            py36h343c172_0  
mock                      2.0.0                    pypi_0  
networkx                  2.3                      pypi_0  
numpy                     1.11.3                   pypi_0  
nvidia-ml-py3             7.352.0                  pypi_0  
opencv-python             4.1.0.25                 pypi_0  
openssl                   1.1.1b               hfa6e2cd_2  
pathlib                   1.0.1                    pypi_0  
pbr                       5.1.3                    pypi_0  
pillow                    6.0.0                    pypi_0  
pip                       19.0.3                   py36_0  
protobuf                  3.7.1                    pypi_0  
psutil                    5.6.1            py36he774522_0  
pyparsing                 2.4.0                    pypi_0  
pyreadline                2.1                      py36_1  
python                    3.6.8                h9f7ef89_7  
python-dateutil           2.8.0                    pypi_0  
pytz                      2019.1                   pypi_0  
pywavelets                1.0.3                    pypi_0  
pyyaml                    5.1                      pypi_0  
scikit-image              0.15.0                   pypi_0  
scikit-learn              0.20.3                   pypi_0  
scipy                     1.2.1                    pypi_0  
setuptools                41.0.0                   py36_0  
six                       1.12.0                   pypi_0  
sqlite                    3.27.2               he774522_0  
tensorboard               1.13.1                   pypi_0  
tensorflow                1.13.1                   pypi_0  
tensorflow-estimator      1.13.0                   pypi_0  
tensorflow-gpu            1.13.1                   pypi_0  
termcolor                 1.1.0                    pypi_0  
tk                        8.6.8                hfa6e2cd_0  
toposort                  1.5                      pypi_0  
tqdm                      4.31.1                   pypi_0  
vc                        14.1                 h0510ff6_4  
vs2015_runtime            14.15.26706          h3a45250_0  
werkzeug                  0.15.2                   pypi_0  
wheel                     0.33.1                   py36_0  
wincertstore              0.2              py36h7fe50ca_0  
zlib                      1.2.11               h62dcd97_3