Tuple index out of range

If training is failing to start, and you are not receiving an error message telling you what to do, 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 Training process. If you want to get tips, or better understand the Training process, then you should look in the Training Discussion forum.

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

Locked
User avatar
kenneth
Posts: 4
Joined: Fri Nov 08, 2019 12:09 am

Tuple index out of range

Post by kenneth »

Hi all, I'm struggling with this and I cant get to a solution, can anyone tell me how to fix? I Installed Faceswap on a Mac (No GPU) and everything seems ok except some deprecation warnings that should be inoffensive, anyway when I run:

python faceswap.py train -A a_faces -B b_faces -m model

i get a "tuple index out of range" error:

thanks in advance

Code: Select all

11/07/2019 09:10:31 MainProcess     training_0      _base           __init__                  DEBUG    Initialized PingPong
11/07/2019 09:10:31 MainProcess     training_0      _base           use_mask                  DEBUG    False
11/07/2019 09:10:31 MainProcess     training_0      _base           __init__                  DEBUG    Initializing Batcher: side: 'a', num_images: 1369, batch_size: 64, config: {'coverage': 68.75, 'mask_type': None, 'mask_blur': False, 'icnr_init': False, 'conv_aware_init': False, 'subpixel_upscaling': False, 'reflect_padding': False, 'penalized_mask_loss': True, 'loss_function': 'mae', 'learning_rate': 5e-05, '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})
11/07/2019 09:10:31 MainProcess     training_0      _base           load_generator            DEBUG    Loading generator: a
11/07/2019 09:10:31 MainProcess     training_0      _base           load_generator            DEBUG    input_size: 64, output_shapes: [(64, 64, 3)]
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Initializing TrainingDataGenerator: (model_input_size: 64, model_output_shapes: [(64, 64, 3)], training_opts: {'alignments': {'a': '/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/vid_faces/alignments.fsa', 'b': '/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/pusi_faces/alignments.fsa'}, 'preview_scaling': 0.5, 'warp_to_landmarks': False, 'augment_color': True, 'no_flip': False, 'pingpong': False, 'snapshot_interval': 25000, 'training_size': 256, 'no_logs': False, 'mask_type': None, 'coverage_ratio': 0.625}, landmarks: False, config: {'coverage': 68.75, 'mask_type': None, 'mask_blur': False, 'icnr_init': False, 'conv_aware_init': False, 'subpixel_upscaling': False, 'reflect_padding': False, 'penalized_mask_loss': True, 'loss_function': 'mae', 'learning_rate': 5e-05, '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})
11/07/2019 09:10:31 MainProcess     training_0      training_data   _set__mask_class          DEBUG    Mask class: None
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Initialized TrainingDataGenerator
11/07/2019 09:10:31 MainProcess     training_0      training_data   minibatch_ab              DEBUG    Queue batches: (image_count: 1369, batchsize: 64, side: 'a', do_shuffle: True, is_preview, False, is_timelapse: False)
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Initializing ImageAugmentation: (batchsize: 64, is_display: False, input_size: 64, output_shapes: [(64, 64, 3)], coverage_ratio: 0.625, config: {'coverage': 68.75, 'mask_type': None, 'mask_blur': False, 'icnr_init': False, 'conv_aware_init': False, 'subpixel_upscaling': False, 'reflect_padding': False, 'penalized_mask_loss': True, 'loss_function': 'mae', 'learning_rate': 5e-05, '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})
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Output sizes: [64]
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Initialized ImageAugmentation
11/07/2019 09:10:31 MainProcess     training_0      multithreading  __init__                  DEBUG    Initializing BackgroundGenerator: (target: '_run', thread_count: 2)
11/07/2019 09:10:31 MainProcess     training_0      multithreading  __init__                  DEBUG    Initialized BackgroundGenerator: '_run'
11/07/2019 09:10:31 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread(s): '_run'
11/07/2019 09:10:31 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread 1 of 2: '_run_0'
11/07/2019 09:10:31 MainProcess     _run_0          training_data   _minibatch                DEBUG    Loading minibatch generator: (image_count: 1369, side: 'a', do_shuffle: True)
11/07/2019 09:10:31 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread 2 of 2: '_run_1'
11/07/2019 09:10:31 MainProcess     _run_1          training_data   _minibatch                DEBUG    Loading minibatch generator: (image_count: 1369, side: 'a', do_shuffle: True)
11/07/2019 09:10:31 MainProcess     training_0      multithreading  start                     DEBUG    Started all threads '_run': 2
11/07/2019 09:10:31 MainProcess     training_0      _base           use_mask                  DEBUG    False
11/07/2019 09:10:31 MainProcess     training_0      _base           __init__                  DEBUG    Initializing Batcher: side: 'b', num_images: 186, batch_size: 64, config: {'coverage': 68.75, 'mask_type': None, 'mask_blur': False, 'icnr_init': False, 'conv_aware_init': False, 'subpixel_upscaling': False, 'reflect_padding': False, 'penalized_mask_loss': True, 'loss_function': 'mae', 'learning_rate': 5e-05, '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})
11/07/2019 09:10:31 MainProcess     training_0      _base           load_generator            DEBUG    Loading generator: b
11/07/2019 09:10:31 MainProcess     training_0      _base           load_generator            DEBUG    input_size: 64, output_shapes: [(64, 64, 3)]
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Initializing TrainingDataGenerator: (model_input_size: 64, model_output_shapes: [(64, 64, 3)], training_opts: {'alignments': {'a': '/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/vid_faces/alignments.fsa', 'b': '/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/pusi_faces/alignments.fsa'}, 'preview_scaling': 0.5, 'warp_to_landmarks': False, 'augment_color': True, 'no_flip': False, 'pingpong': False, 'snapshot_interval': 25000, 'training_size': 256, 'no_logs': False, 'mask_type': None, 'coverage_ratio': 0.625}, landmarks: False, config: {'coverage': 68.75, 'mask_type': None, 'mask_blur': False, 'icnr_init': False, 'conv_aware_init': False, 'subpixel_upscaling': False, 'reflect_padding': False, 'penalized_mask_loss': True, 'loss_function': 'mae', 'learning_rate': 5e-05, '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})
11/07/2019 09:10:31 MainProcess     training_0      training_data   _set__mask_class          DEBUG    Mask class: None
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Initialized TrainingDataGenerator
11/07/2019 09:10:31 MainProcess     training_0      training_data   minibatch_ab              DEBUG    Queue batches: (image_count: 186, batchsize: 64, side: 'b', do_shuffle: True, is_preview, False, is_timelapse: False)
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Initializing ImageAugmentation: (batchsize: 64, is_display: False, input_size: 64, output_shapes: [(64, 64, 3)], coverage_ratio: 0.625, config: {'coverage': 68.75, 'mask_type': None, 'mask_blur': False, 'icnr_init': False, 'conv_aware_init': False, 'subpixel_upscaling': False, 'reflect_padding': False, 'penalized_mask_loss': True, 'loss_function': 'mae', 'learning_rate': 5e-05, '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})
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Output sizes: [64]
11/07/2019 09:10:31 MainProcess     training_0      training_data   __init__                  DEBUG    Initialized ImageAugmentation
11/07/2019 09:10:31 MainProcess     training_0      multithreading  __init__                  DEBUG    Initializing BackgroundGenerator: (target: '_run', thread_count: 2)
11/07/2019 09:10:31 MainProcess     training_0      multithreading  __init__                  DEBUG    Initialized BackgroundGenerator: '_run'
11/07/2019 09:10:31 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread(s): '_run'
11/07/2019 09:10:31 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread 1 of 2: '_run_0'
11/07/2019 09:10:31 MainProcess     _run_0          training_data   _minibatch                DEBUG    Loading minibatch generator: (image_count: 186, side: 'b', do_shuffle: True)
11/07/2019 09:10:31 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread 2 of 2: '_run_1'
11/07/2019 09:10:31 MainProcess     _run_1          training_data   _minibatch                DEBUG    Loading minibatch generator: (image_count: 186, side: 'b', do_shuffle: True)
11/07/2019 09:10:31 MainProcess     training_0      multithreading  start                     DEBUG    Started all threads '_run': 2
11/07/2019 09:10:31 MainProcess     training_0      _base           set_tensorboard           DEBUG    Enabling TensorBoard Logging
11/07/2019 09:10:31 MainProcess     training_0      _base           set_tensorboard           DEBUG    Setting up TensorBoard Logging. Side: a
11/07/2019 09:10:31 MainProcess     training_0      _base           name                      DEBUG    model name: 'original'
11/07/2019 09:10:31 MainProcess     training_0      _base           tensorboard_kwargs        DEBUG    Tensorflow version: [1, 13, 2]
11/07/2019 09:10:31 MainProcess     training_0      _base           tensorboard_kwargs        DEBUG    {'histogram_freq': 0, 'batch_size': 64, 'write_graph': True, 'write_grads': True, 'update_freq': 'batch'}
11/07/2019 09:10:31 MainProcess     _run_1          training_data   initialize                DEBUG    Initializing constants. training_size: 256
11/07/2019 09:10:31 MainProcess     _run_0          training_data   initialize                DEBUG    Initializing constants. training_size: 256
11/07/2019 09:10:31 MainProcess     _run_1          training_data   initialize                DEBUG    Initialized constants: {'clahe_base_contrast': 2, 'tgt_slices': slice(48, 208, None), 'warp_mapx': '[[[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n ...\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]]', 'warp_mapy': '[[[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n ...\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]]', 'warp_pad': 80, 'warp_slices': slice(8, -8, None), 'warp_lm_edge_anchors': '[[[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n ...\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]]', 'warp_lm_grids': '[[[  0.   0.   0. ...   0.   0.   0.]\n  [  1.   1.   1. ...   1.   1.   1.]\n  [  2.   2.   2. ...   2.   2.   2.]\n  ...\n  [253. 253. 253. ... 253. 253. 253.]\n  [254. 254. 254. ... 254. 254. 254.]\n  [255. 255. 255. ... 255. 255. 255.]]\n\n [[  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  ...\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]]]'}
11/07/2019 09:10:31 MainProcess     _run_0          training_data   initialize                DEBUG    Initialized constants: {'clahe_base_contrast': 2, 'tgt_slices': slice(48, 208, None), 'warp_mapx': '[[[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n ...\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]]', 'warp_mapy': '[[[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n ...\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]]', 'warp_pad': 80, 'warp_slices': slice(8, -8, None), 'warp_lm_edge_anchors': '[[[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n ...\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  ...\n  [127 255]\n  [255 127]\n  [  0 127]]]', 'warp_lm_grids': '[[[  0.   0.   0. ...   0.   0.   0.]\n  [  1.   1.   1. ...   1.   1.   1.]\n  [  2.   2.   2. ...   2.   2.   2.]\n  ...\n  [253. 253. 253. ... 253. 253. 253.]\n  [254. 254. 254. ... 254. 254. 254.]\n  [255. 255. 255. ... 255. 255. 255.]]\n\n [[  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  ...\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]]]'}
11/07/2019 09:10:32 MainProcess     training_0      _base           set_tensorboard           DEBUG    Setting up TensorBoard Logging. Side: b
11/07/2019 09:10:32 MainProcess     training_0      _base           name                      DEBUG    model name: 'original'
11/07/2019 09:10:32 MainProcess     training_0      _base           tensorboard_kwargs        DEBUG    Tensorflow version: [1, 13, 2]
11/07/2019 09:10:32 MainProcess     training_0      _base           tensorboard_kwargs        DEBUG    {'histogram_freq': 0, 'batch_size': 64, 'write_graph': True, 'write_grads': True, 'update_freq': 'batch'}
11/07/2019 09:10:32 MainProcess     training_0      _base           set_tensorboard           INFO     Enabled TensorBoard Logging
11/07/2019 09:10:32 MainProcess     training_0      _base           use_mask                  DEBUG    False
11/07/2019 09:10:32 MainProcess     training_0      _base           __init__                  DEBUG    Initializing Samples: model: '<plugins.train.model.original.Model object at 0x12eb8bb38>', use_mask: False, coverage_ratio: 0.625)
11/07/2019 09:10:32 MainProcess     training_0      _base           __init__                  DEBUG    Initialized Samples
11/07/2019 09:10:32 MainProcess     training_0      _base           use_mask                  DEBUG    False
11/07/2019 09:10:32 MainProcess     training_0      _base           __init__                  DEBUG    Initializing Timelapse: model: <plugins.train.model.original.Model object at 0x12eb8bb38>, use_mask: False, coverage_ratio: 0.625, preview_images: 14, batchers: '{'a': <plugins.train.trainer._base.Batcher object at 0x12ec92a58>, 'b': <plugins.train.trainer._base.Batcher object at 0x12ed0fc18>}')
11/07/2019 09:10:32 MainProcess     training_0      _base           __init__                  DEBUG    Initializing Samples: model: '<plugins.train.model.original.Model object at 0x12eb8bb38>', use_mask: False, coverage_ratio: 0.625)
11/07/2019 09:10:32 MainProcess     training_0      _base           __init__                  DEBUG    Initialized Samples
11/07/2019 09:10:32 MainProcess     training_0      _base           __init__                  DEBUG    Initialized Timelapse
11/07/2019 09:10:32 MainProcess     training_0      _base           __init__                  DEBUG    Initialized Trainer
11/07/2019 09:10:32 MainProcess     training_0      train           load_trainer              DEBUG    Loaded Trainer
11/07/2019 09:10:32 MainProcess     training_0      train           run_training_cycle        DEBUG    Running Training Cycle
11/07/2019 09:10:33 MainProcess     _run_0          multithreading  run                       DEBUG    Error in thread (_run_0): tuple index out of range
11/07/2019 09:10:33 MainProcess     training_0      _base           generate_preview          DEBUG    Generating preview
11/07/2019 09:10:33 MainProcess     training_0      _base           set_preview_feed          DEBUG    Setting preview feed: (side: 'a')
11/07/2019 09:10:33 MainProcess     training_0      _base           load_generator            DEBUG    Loading generator: a
11/07/2019 09:10:33 MainProcess     training_0      _base           load_generator            DEBUG    input_size: 64, output_shapes: [(64, 64, 3)]
11/07/2019 09:10:33 MainProcess     training_0      training_data   __init__                  DEBUG    Initializing TrainingDataGenerator: (model_input_size: 64, model_output_shapes: [(64, 64, 3)], training_opts: {'alignments': {'a': '/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/vid_faces/alignments.fsa', 'b': '/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/pusi_faces/alignments.fsa'}, 'preview_scaling': 0.5, 'warp_to_landmarks': False, 'augment_color': True, 'no_flip': False, 'pingpong': False, 'snapshot_interval': 25000, 'training_size': 256, 'no_logs': False, 'mask_type': None, 'coverage_ratio': 0.625}, landmarks: False, config: {'coverage': 68.75, 'mask_type': None, 'mask_blur': False, 'icnr_init': False, 'conv_aware_init': False, 'subpixel_upscaling': False, 'reflect_padding': False, 'penalized_mask_loss': True, 'loss_function': 'mae', 'learning_rate': 5e-05, '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})
11/07/2019 09:10:33 MainProcess     training_0      training_data   _set__mask_class          DEBUG    Mask class: None
11/07/2019 09:10:33 MainProcess     training_0      training_data   __init__                  DEBUG    Initialized TrainingDataGenerator
11/07/2019 09:10:33 MainProcess     training_0      training_data   minibatch_ab              DEBUG    Queue batches: (image_count: 1369, batchsize: 14, side: 'a', do_shuffle: True, is_preview, True, is_timelapse: False)
11/07/2019 09:10:33 MainProcess     training_0      training_data   __init__                  DEBUG    Initializing ImageAugmentation: (batchsize: 14, is_display: True, input_size: 64, output_shapes: [(64, 64, 3)], coverage_ratio: 0.625, config: {'coverage': 68.75, 'mask_type': None, 'mask_blur': False, 'icnr_init': False, 'conv_aware_init': False, 'subpixel_upscaling': False, 'reflect_padding': False, 'penalized_mask_loss': True, 'loss_function': 'mae', 'learning_rate': 5e-05, '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})
11/07/2019 09:10:33 MainProcess     training_0      training_data   __init__                  DEBUG    Output sizes: [64]
11/07/2019 09:10:33 MainProcess     training_0      training_data   __init__                  DEBUG    Initialized ImageAugmentation
11/07/2019 09:10:33 MainProcess     training_0      multithreading  __init__                  DEBUG    Initializing BackgroundGenerator: (target: '_run', thread_count: 2)
11/07/2019 09:10:33 MainProcess     training_0      multithreading  __init__                  DEBUG    Initialized BackgroundGenerator: '_run'
11/07/2019 09:10:33 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread(s): '_run'
11/07/2019 09:10:33 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread 1 of 2: '_run_0'
11/07/2019 09:10:33 MainProcess     _run_0          training_data   _minibatch                DEBUG    Loading minibatch generator: (image_count: 1369, side: 'a', do_shuffle: True)
11/07/2019 09:10:33 MainProcess     training_0      multithreading  start                     DEBUG    Starting thread 2 of 2: '_run_1'
11/07/2019 09:10:33 MainProcess     _run_1          training_data   _minibatch                DEBUG    Loading minibatch generator: (image_count: 1369, side: 'a', do_shuffle: True)
11/07/2019 09:10:33 MainProcess     training_0      multithreading  start                     DEBUG    Started all threads '_run': 2
11/07/2019 09:10:33 MainProcess     training_0      _base           set_preview_feed          DEBUG    Set preview feed. Batchsize: 14
11/07/2019 09:10:33 MainProcess     _run_1          training_data   initialize                DEBUG    Initializing constants. training_size: 256
11/07/2019 09:10:33 MainProcess     _run_1          training_data   initialize                DEBUG    Initialized constants: {'clahe_base_contrast': 2, 'tgt_slices': slice(48, 208, None), 'warp_mapx': '[[[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]\n\n [[ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]\n  [ 48.  88. 128. 168. 208.]]]', 'warp_mapy': '[[[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]\n\n [[ 48.  48.  48.  48.  48.]\n  [ 88.  88.  88.  88.  88.]\n  [128. 128. 128. 128. 128.]\n  [168. 168. 168. 168. 168.]\n  [208. 208. 208. 208. 208.]]]', 'warp_pad': 80, 'warp_slices': slice(8, -8, None), 'warp_lm_edge_anchors': '[[[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]\n\n [[  0   0]\n  [  0 255]\n  [255 255]\n  [255   0]\n  [127   0]\n  [127 255]\n  [255 127]\n  [  0 127]]]', 'warp_lm_grids': '[[[  0.   0.   0. ...   0.   0.   0.]\n  [  1.   1.   1. ...   1.   1.   1.]\n  [  2.   2.   2. ...   2.   2.   2.]\n  ...\n  [253. 253. 253. ... 253. 253. 253.]\n  [254. 254. 254. ... 254. 254. 254.]\n  [255. 255. 255. ... 255. 255. 255.]]\n\n [[  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  ...\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]\n  [  0.   1.   2. ... 253. 254. 255.]]]'}
11/07/2019 09:10:33 MainProcess     training_0      _base           largest_face_index        DEBUG    0
11/07/2019 09:10:33 MainProcess     training_0      deprecation     new_func                  WARNING  From /Users/mrcs/miniconda3/envs/swap/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.\nInstructions for updating:\nUse tf.cast instead.
11/07/2019 09:10:47 MainProcess     training_0      _base           compile_sample            DEBUG    Compiling samples: (side: 'a', samples: 14)
11/07/2019 09:10:47 MainProcess     training_0      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'IndexError'>, IndexError('tuple index out of range',), <traceback object at 0x12ed1c108>)]
11/07/2019 09:10:47 MainProcess     training_0      multithreading  run                       DEBUG    Error in thread (training_0): tuple index out of range
11/07/2019 09:10:47 MainProcess     _run_1          multithreading  run                       DEBUG    Error in thread (_run_1): tuple index out of range
11/07/2019 09:10:48 MainProcess     MainThread      train           monitor                   DEBUG    Thread error detected
11/07/2019 09:10:48 MainProcess     MainThread      train           monitor                   DEBUG    Closed Monitor
11/07/2019 09:10:48 MainProcess     MainThread      train           end_thread                DEBUG    Ending Training thread
11/07/2019 09:10:48 MainProcess     MainThread      train           end_thread                CRITICAL Error caught! Exiting...
11/07/2019 09:10:48 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Threads: 'training'
11/07/2019 09:10:48 MainProcess     MainThread      multithreading  join                      DEBUG    Joining Thread: 'training_0'
11/07/2019 09:10:48 MainProcess     MainThread      multithreading  join                      ERROR    Caught exception in thread: 'training_0'
Traceback (most recent call last):
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/cli.py", line 128, in execute_script
    process.process()
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/scripts/train.py", line 109, in process
    self.end_thread(thread, err)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/scripts/train.py", line 135, in end_thread
    thread.join()
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/multithreading.py", line 117, in join
    raise thread.err[1].with_traceback(thread.err[2])
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/scripts/train.py", line 160, in training
    raise err
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/scripts/train.py", line 150, in training
    self.run_training_cycle(model, trainer)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/scripts/train.py", line 232, in run_training_cycle
    trainer.train_one_step(viewer, timelapse)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/plugins/train/trainer/_base.py", line 211, in train_one_step
    raise err
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/plugins/train/trainer/_base.py", line 179, in train_one_step
    loss[side] = batcher.train_one_batch(do_preview)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/plugins/train/trainer/_base.py", line 273, in train_one_batch
    batch = self.get_next(do_preview)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/plugins/train/trainer/_base.py", line 294, in get_next
    batch = next(self.feed)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/multithreading.py", line 152, in iterator
    self.check_and_raise_error()
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/multithreading.py", line 141, in _run
    for item in self.generator(*self._gen_args, **self._gen_kwargs):
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/training_data.py", line 200, in _minibatch
    yield self._process_batch(img_paths, side)
  File "/Users/mrcs/Desktop/MacBack_uff/deep/faceswap/lib/training_data.py", line 214, in _process_batch
    self._processing.initialize(batch.shape[1])
IndexError: tuple index out of range

============ System Information ============
encoding:            UTF-8
git_branch:          Not Found
git_commits:         Not Found
gpu_cuda:            Unsupported OS. Check Conda packages for Conda Cuda
gpu_cudnn:           Unsupported OS. Check Conda packages for Conda cuDNN
gpu_devices:         
gpu_devices_active:
gpu_driver: 0 gpu_vram:
os_machine: x86_64 os_platform: Darwin-19.0.0-x86_64-i386-64bit os_release: 19.0.0 py_command: faceswap.py train -A vid_faces -B pusi_faces -m model -p py_conda_version: Conda is used, but version not found py_implementation: CPython py_version: 3.6.7 py_virtual_env: True sys_cores: 4 sys_processor: i386 sys_ram: Total: 16384MB, Available: 9013MB, Used: 6606MB, Free: 4709MB =============== Pip Packages =============== absl-py==0.8.1 astor==0.7.1 certifi==2019.9.11 cffi==1.13.2 Click==7.0 colorama==0.4.1 cycler==0.10.0 decorator==4.4.1 enum34==1.1.6 fastcluster==1.1.25 ffmpy==0.2.2 gast==0.3.2 grpcio==1.23.0 h5py==2.9.0 imageio==2.5.0 imageio-ffmpeg==0.3.0 joblib==0.14.0 Keras==2.2.4 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 kiwisolver==1.1.0 Mako==1.1.0 Markdown==3.1.1 MarkupSafe==1.1.1 matplotlib==2.2.2 mock==3.0.5 networkx==2.4 numpy==1.16.2 nvidia-ml-py3==7.352.1 opencv-python==4.1.1.26 pathlib==1.0.1 Pillow==6.1.0 plaidbench==0.6.4 plaidml==0.6.4 plaidml-keras==0.6.4 protobuf==3.10.1 psutil==5.6.5 pycparser==2.19 pygpu==0.7.6 pynvx==0.0.4 pyparsing==2.4.4 python-dateutil==2.8.1 pytz==2019.3 PyWavelets==1.1.1 PyYAML==5.1.2 scikit-image==0.16.2 scikit-learn==0.21.3 scipy==1.3.1 six==1.13.0 tensorboard==1.13.1 tensorflow==1.13.2 tensorflow-estimator==1.13.0 termcolor==1.1.0 Theano==1.0.4 toposort==1.5 tqdm==4.37.0 virtualenv==16.7.7 Werkzeug==0.16.0 ============== Conda Packages ============== # packages in environment at /Users/mrcs/miniconda3/envs/swap: # # Name Version Build Channel absl-py 0.8.1 py36_0 conda-forge astor 0.7.1 py_0 conda-forge bzip2 1.0.8 h01d97ff_1 conda-forge c-ares 1.15.0 h01d97ff_1001 conda-forge ca-certificates 2016.2.28 1 conda-forge/label/broken cairo 1.16.0 he1c11cd_1002 conda-forge cctools 921 h5ba7a2e_4 conda-forge certifi 2019.9.11 py36_0 conda-forge cffi 1.13.2 pypi_0 pypi clang 9.0.0 h28b9765_1 conda-forge clang_osx-64 9.0.0 h22b1bf0_3 conda-forge clangxx 9.0.0 1 conda-forge clangxx_osx-64 9.0.0 h22b1bf0_3 conda-forge click 7.0 pypi_0 pypi colorama 0.4.1 pypi_0 pypi compiler-rt 9.0.0 h2b4a0d1_1 conda-forge cycler 0.10.0 pypi_0 pypi decorator 4.4.1 pypi_0 pypi enum34 1.1.6 pypi_0 pypi fastcluster 1.1.25 pypi_0 pypi ffmpeg 4.1.3 h5c2b479_0 conda-forge ffmpy 0.2.2 pypi_0 pypi fontconfig 2.13.1 h6b1039f_1001 conda-forge freetype 2.10.0 h24853df_1 conda-forge gast 0.3.2 py_0 conda-forge gettext 0.19.8.1 h46ab8bc_1002 conda-forge giflib 5.1.7 h01d97ff_1 conda-forge glib 2.58.3 h9d45998_1002 conda-forge gmp 6.1.2 h0a44026_1000 conda-forge gnutls 3.6.5 h53004b3_1002 conda-forge graphite2 1.3.13 h2098e52_1000 conda-forge grpcio 1.23.0 py36h8a88325_0 conda-forge h5py 2.9.0 pypi_0 pypi harfbuzz 2.4.0 hd8d2a14_3 conda-forge hdf5 1.10.5 nompi_h3e39495_1104 conda-forge icu 64.2 h6de7cb9_1 conda-forge imageio 2.5.0 pypi_0 pypi imageio-ffmpeg 0.3.0 pypi_0 pypi jasper 1.900.1 h636a363_1006 conda-forge joblib 0.14.0 pypi_0 pypi jpeg 9c h1de35cc_1001 conda-forge keras 2.2.4 pypi_0 pypi keras-applications 1.0.8 py_1 conda-forge keras-preprocessing 1.1.0 py_0 conda-forge kiwisolver 1.1.0 pypi_0 pypi lame 3.100 h1de35cc_1001 conda-forge ld64 409.12 h3c32e8a_4 conda-forge libblas 3.8.0 14_openblas conda-forge libcblas 3.8.0 14_openblas conda-forge libcxx 9.0.0 h89e68fa_1 conda-forge libffi 3.2.1 h6de7cb9_1006 conda-forge libgfortran 4.0.0 2 conda-forge libgpuarray 0.7.6 h1de35cc_1003 conda-forge libiconv 1.15 h01d97ff_1005 conda-forge liblapack 3.8.0 14_openblas conda-forge liblapacke 3.8.0 14_openblas conda-forge libllvm9 9.0.0 h770b8ee_2 conda-forge libopenblas 0.3.7 h4bb4525_3 conda-forge libpng 1.6.37 h2573ce8_0 conda-forge libprotobuf 3.10.1 hd174df1_0 conda-forge libtiff 4.1.0 h3527a1b_0 conda-forge libwebp 1.0.2 h14d73da_2 conda-forge libxml2 2.9.10 h53d96d6_0 conda-forge llvm-openmp 9.0.0 h40edb58_0 conda-forge lz4-c 1.8.3 h6de7cb9_1001 conda-forge mako 1.1.0 py_0 conda-forge markdown 3.1.1 py_0 conda-forge markupsafe 1.1.1 py36h0b31af3_0 conda-forge matplotlib 2.2.2 pypi_0 pypi mock 3.0.5 pypi_0 pypi ncurses 6.1 h0a44026_1002 conda-forge nettle 3.4.1 h3efe00b_1002 conda-forge networkx 2.4 pypi_0 pypi numpy 1.16.2 pypi_0 pypi nvidia-ml-py3 7.352.1 pypi_0 pypi opencv 3.4.7 py36hb60cc42_3 conda-forge opencv-python 4.1.1.26 pypi_0 pypi openh264 1.8.0 hd9629dc_1000 conda-forge openssl 1.1.1d h1de35cc_3
pathlib 1.0.1 pypi_0 pypi pcre 8.43 h4a8c4bd_0 conda-forge pillow 6.1.0 pypi_0 pypi pip 19.3.1 py36_0 conda-forge pixman 0.38.0 h01d97ff_1003 conda-forge plaidbench 0.6.4 pypi_0 pypi plaidml 0.6.4 pypi_0 pypi plaidml-keras 0.6.4 pypi_0 pypi protobuf 3.10.1 py36h4a8c4bd_0 conda-forge psutil 5.6.5 pypi_0 pypi pycparser 2.19 pypi_0 pypi pygpu 0.7.6 py36h3b54f70_1000 conda-forge pynvx 0.0.4 pypi_0 pypi pyparsing 2.4.4 pypi_0 pypi python 3.6.7 h94afb7f_1005 conda-forge python-dateutil 2.8.1 pypi_0 pypi pytz 2019.3 pypi_0 pypi pywavelets 1.1.1 pypi_0 pypi pyyaml 5.1.2 py36h0b31af3_0 conda-forge readline 8.0 hcfe32e1_0 conda-forge scikit-image 0.16.2 pypi_0 pypi scikit-learn 0.21.3 pypi_0 pypi scipy 1.3.1 py36h7e0e109_2 conda-forge setuptools 41.6.0 py36_1 conda-forge six 1.13.0 py36_0 conda-forge sqlite 3.30.1 h93121df_0 conda-forge tapi 1000.10.8 h770b8ee_3 conda-forge tensorboard 1.13.1 py36_0 conda-forge tensorflow 1.13.2 hfddd6c2_0 conda-forge tensorflow-base 1.13.2 py36_0 conda-forge tensorflow-estimator 1.13.0 py36h24bf2e0_0 conda-forge termcolor 1.1.0 py_2 conda-forge theano 1.0.4 py36h0a44026_1000 conda-forge tk 8.6.9 h2573ce8_1003 conda-forge toposort 1.5 pypi_0 pypi tqdm 4.37.0 pypi_0 pypi virtualenv 16.7.7 pypi_0 pypi werkzeug 0.16.0 py_0 conda-forge wheel 0.33.6 py36_0 conda-forge x264 1!152.20180806 h1de35cc_0 conda-forge xz 5.2.4 h1de35cc_1001 conda-forge yaml 0.1.7 h1de35cc_1001 conda-forge zlib 1.2.11 h0b31af3_1006 conda-forge zstd 1.4.3 he7fca8b_0 conda-forge ================= Configs ================== --------- .faceswap --------- backend: cpu --------- extract.ini --------- [global] allow_growth: True [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.cv2_dnn] confidence: 50 [detect.s3fd] confidence: 50 batch-size: 4 [align.fan] batch-size: 12 [mask.unet_dfl] batch-size: 8 [mask.vgg_obstructed] batch-size: 2 [mask.vgg_clear] batch-size: 6 --------- train.ini --------- [global] coverage: 68.75 mask_type: none mask_blur: False icnr_init: False conv_aware_init: False subpixel_upscaling: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [model.original] lowmem: False [model.dfl_h128] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4
by torzdf » Mon Nov 11, 2019 10:11 am

It looks like you have images that are not faces inside your faces folder....

Ultimately all images in the faces folder need to be the same size (as it returns the batch of images as an array). It looks like it has failed in instances where this is not the case....

Specifically (as an example, there are more of these, and there are examples on both the A and B side):
These look like faces:

Code: Select all

'/Users/mcz/d/faceswap/g_faces/IMG_2438_0.jpg',
'/Users/mcz/d/faceswap/g_faces/IMG_2303_0.jpg',

These do not look like faces:

Code: Select all

'/Users/mcz/d/faceswap/g_faces/IMG_2434.jpg',
'/Users/mcz/d/faceswap/g_faces/IMG_2421.jpg',

I have made a note to try to catch this kind of error

Go to full post
Last edited by kenneth on Tue Nov 12, 2019 6:06 am, edited 1 time in total.
User avatar
kilroythethird
Posts: 20
Joined: Fri Jul 12, 2019 11:35 pm
Answers: 1
Has thanked: 2 times
Been thanked: 10 times

Re: [Crash] Tuple index out of range

Post by kilroythethird »

Training on the CPU really is nothing i would suggest. It will take a real long time.
I'd suggest running in the "cloud". Check out for info about that: https://discordapp.com/channels/4419893 ... 5217501278

If you want to help us it would be awesome if you could set the Loglevel to Trace, run again and send us the faceswap.log (Warning it will be a pretty big file)

that amd guy

User avatar
kenneth
Posts: 4
Joined: Fri Nov 08, 2019 12:09 am

Re: [Crash] Tuple index out of range

Post by kenneth »

Unfortunately cloud is not an option in my case, I will provide a trace log soon.

User avatar
kenneth
Posts: 4
Joined: Fri Nov 08, 2019 12:09 am

Re: [Crash] Tuple index out of range

Post by kenneth »

Here's the trace log attached guys. I hope someone can help me :oops:

Attachments
faceswap.log.zip
(46.57 KiB) Downloaded 302 times
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: [Crash] Tuple index out of range

Post by torzdf »

It looks like you have images that are not faces inside your faces folder....

Ultimately all images in the faces folder need to be the same size (as it returns the batch of images as an array). It looks like it has failed in instances where this is not the case....

Specifically (as an example, there are more of these, and there are examples on both the A and B side):
These look like faces:

Code: Select all

'/Users/mcz/d/faceswap/g_faces/IMG_2438_0.jpg',
'/Users/mcz/d/faceswap/g_faces/IMG_2303_0.jpg',

These do not look like faces:

Code: Select all

'/Users/mcz/d/faceswap/g_faces/IMG_2434.jpg',
'/Users/mcz/d/faceswap/g_faces/IMG_2421.jpg',

I have made a note to try to catch this kind of error

My word is final

User avatar
kenneth
Posts: 4
Joined: Fri Nov 08, 2019 12:09 am

Re: [Solved] Tuple index out of range

Post by kenneth »

Great!! Thanks I'ts working now... thank you!!

Locked