Convert Error - TypeError: 'NoneType' object is not subscriptable

Getting errors or found a bug when converting faces from a trained model? Post about them here


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Convert process. If you want to get tips, or better understand the Convert process, then you should look in the Convert Discussion forum.

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

Locked
User avatar
junhenry
Posts: 1
Joined: Wed Nov 13, 2019 1:19 pm

Convert Error - TypeError: 'NoneType' object is not subscriptable

Post by junhenry »

Code: Select all

11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: gif_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.gif_defaults
11/13/2019 22:15:44 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.gif', info: 'Options for outputting converted frames to an animated gif.')
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'fps', datatype: '<class 'int'>', default: '25', info: 'Frames per Second.', rounding: '1', min_max: (1, 60), choices: [], gui_radio: False, fixed: True, group: settings)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'loop', datatype: '<class 'int'>', default: '0', info: 'The number of iterations. Set to 0 to loop indefinitely.', rounding: '1', min_max: (0, 100), choices: [], gui_radio: False, fixed: True, group: settings)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'palettesize', datatype: '<class 'str'>', default: '256', info: 'The number of colors to quantize the image to. Is rounded to the nearest power of two.', rounding: 'None', min_max: None, choices: ['2', '4', '8', '16', '32', '64', '128', '256'], gui_radio: False, fixed: True, group: settings)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'subrectangles', datatype: '<class 'bool'>', default: 'False', info: 'If True, will try and optimize the GIF by storing only the rectangular parts of each frame that change with respect to the previous.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.gif
11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: opencv_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.opencv_defaults
11/13/2019 22:15:44 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.opencv', info: 'Options for outputting converted frames to a series of images using OpenCV\nOpenCV can be faster than other image writers, but lacks some configuration options and formats.')
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'format', datatype: '<class 'str'>', default: 'png', info: 'Image format to use:\n	 bmp: Windows bitmap\n	 jpg: JPEG format\n	 jp2: JPEG 2000 format\n	 png: Portable Network Graphics\n	 ppm: Portable Pixmap Format', rounding: 'None', min_max: None, choices: ['bmp', 'jpg', 'jp2', 'png', 'ppm'], gui_radio: True, fixed: True, group: None)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'draw_transparent', datatype: '<class 'bool'>', default: 'False', info: 'Place the swapped face on a transparent layer rather than the original frame.\nNB: This is only compatible with images saved in png format. If an incompatible format is selected then the image will be saved as a png.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'jpg_quality', datatype: '<class 'int'>', default: '75', info: '[jpg only] Set the jpg quality. 1 is worst 95 is best. Higher quality leads to larger file sizes.', rounding: '1', min_max: (1, 95), choices: [], gui_radio: False, fixed: True, group: compression)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'png_compress_level', datatype: '<class 'int'>', default: '3', info: '[png only] ZLIB compression level, 1 gives best speed, 9 gives best compression, 0 gives no compression at all.', rounding: '1', min_max: (0, 9), choices: [], gui_radio: False, fixed: True, group: compression)
11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.opencv
11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: pillow_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.pillow_defaults
11/13/2019 22:15:44 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.pillow', info: 'Options for outputting converted frames to a series of images using Pillow\nPillow is more feature rich than OpenCV but can be slower.')
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'format', datatype: '<class 'str'>', default: 'png', info: 'Image format to use:\n	 bmp: Windows bitmap\n	 gif: Graphics Interchange Format (NB: Not animated)\n	 jpg: JPEG format\n	 jp2: JPEG 2000 format\n	 png: Portable Network Graphics\n	 ppm: Portable Pixmap Format\n	 tif: Tag Image File Format', rounding: 'None', min_max: None, choices: ['bmp', 'gif', 'jpg', 'jp2', 'png', 'ppm', 'tif'], gui_radio: True, fixed: True, group: None)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'draw_transparent', datatype: '<class 'bool'>', default: 'False', info: 'Place the swapped face on a transparent layer rather than the original frame.\nNB: This is only compatible with images saved in png or tif format. If an incompatible format is selected then the image will be saved as a png.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'optimize', datatype: '<class 'bool'>', default: 'False', info: '[gif, jpg and png only] If enabled, indicates that the encoder should make an extra pass over the image in order to select optimal encoder settings.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'gif_interlace', datatype: '<class 'bool'>', default: 'True', info: '[gif only] Set whether to save the gif as interlaced or not.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'jpg_quality', datatype: '<class 'int'>', default: '75', info: '[jpg only] Set the jpg quality. 1 is worst 95 is best. Higher quality leads to larger file sizes.', rounding: '1', min_max: (1, 95), choices: [], gui_radio: False, fixed: True, group: compression)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'png_compress_level', datatype: '<class 'int'>', default: '3', info: '[png only] ZLIB compression level, 1 gives best speed, 9 gives best compression, 0 gives no compression at all. When optimize option is set to True this has no effect (it is set to 9 regardless of a value passed).', rounding: '1', min_max: (0, 9), choices: [], gui_radio: False, fixed: True, group: compression)
11/13/2019 22:15:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'tif_compression', datatype: '<class 'str'>', default: 'tiff_deflate', info: '[tif only] The desired compression method for the file.', rounding: 'None', min_max: None, choices: ['none', 'tiff_ccitt', 'group3', 'group4', 'tiff_jpeg', 'tiff_adobe_deflate', 'tiff_thunderscan', 'tiff_deflate', 'tiff_sgilog', 'tiff_sgilog24', 'tiff_raw_16'], gui_radio: False, fixed: True, group: compression)
11/13/2019 22:15:44 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.pillow
11/13/2019 22:15:44 MainProcess     MainThread      config          handle_config             DEBUG    Handling config
11/13/2019 22:15:44 MainProcess     MainThread      config          check_exists              DEBUG    Config file exists: 'C:\faceswap\config\convert.ini'
11/13/2019 22:15:44 MainProcess     MainThread      config          load_config               VERBOSE  Loading config: 'C:\faceswap\config\convert.ini'
11/13/2019 22:15:44 MainProcess     predict_faces_0 plaidml_tools   get_supported_devices     DEBUG    []
11/13/2019 22:15:44 MainProcess     MainThread      config          validate_config           DEBUG    Validating config
11/13/2019 22:15:44 MainProcess     MainThread      config          check_config_change       DEBUG    Default config has not changed
11/13/2019 22:15:44 MainProcess     MainThread      config          check_config_choices      DEBUG    Checking config choices
11/13/2019 22:15:44 MainProcess     MainThread      config          check_config_choices      DEBUG    Checked config choices
11/13/2019 22:15:44 MainProcess     MainThread      config          validate_config           DEBUG    Validated config
11/13/2019 22:15:44 MainProcess     MainThread      config          handle_config             DEBUG    Handled config
11/13/2019 22:15:44 MainProcess     MainThread      config          __init__                  DEBUG    Initialized: Config
11/13/2019 22:15:44 MainProcess     MainThread      _base           set_config                DEBUG    Config: {}
11/13/2019 22:15:44 MainProcess     MainThread      _base           __init__                  DEBUG    config: {}
11/13/2019 22:15:44 MainProcess     MainThread      _base           __init__                  DEBUG    Initialized Color
11/13/2019 22:15:44 MainProcess     MainThread      convert         load_plugins              DEBUG    Loaded plugins: {'box': <plugins.convert.mask.box_blend.Mask object at 0x000002C8C6E96CC0>, 'mask': <plugins.convert.mask.mask_blend.Mask object at 0x000002C8C6E96D30>, 'color': <plugins.convert.color.avg_color.Color object at 0x000002C8C6E96CF8>, 'seamless': None, 'scaling': None}
11/13/2019 22:15:44 MainProcess     MainThread      convert         __init__                  DEBUG    Initialized Converter
11/13/2019 22:15:44 MainProcess     MainThread      convert         __init__                  DEBUG    Initialized Convert
11/13/2019 22:15:44 MainProcess     MainThread      convert         process                   DEBUG    Starting Conversion
11/13/2019 22:15:44 MainProcess     MainThread      convert         convert_images            DEBUG    Converting images
11/13/2019 22:15:44 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'convert_out'
11/13/2019 22:15:44 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'convert_out'
11/13/2019 22:15:44 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'patch'
11/13/2019 22:15:44 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'patch'
11/13/2019 22:15:44 MainProcess     MainThread      convert         pool_processes            DEBUG    4
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'patch', thread_count: 4)
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'patch'
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'patch'
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 4: 'patch_0'
11/13/2019 22:15:44 MainProcess     patch_0         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002C8E8B33E10>, out_queue: <queue.Queue object at 0x000002C8E8B33D30>, completion_queue: None)
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 2 of 4: 'patch_1'
11/13/2019 22:15:44 MainProcess     patch_1         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002C8E8B33E10>, out_queue: <queue.Queue object at 0x000002C8E8B33D30>, completion_queue: None)
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 3 of 4: 'patch_2'
11/13/2019 22:15:44 MainProcess     patch_2         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002C8E8B33E10>, out_queue: <queue.Queue object at 0x000002C8E8B33D30>, completion_queue: None)
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 4 of 4: 'patch_3'
11/13/2019 22:15:44 MainProcess     patch_3         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002C8E8B33E10>, out_queue: <queue.Queue object at 0x000002C8E8B33D30>, completion_queue: None)
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'patch': 4
11/13/2019 22:15:44 MainProcess     MainThread      multithreading  completed                 DEBUG    False
11/13/2019 22:15:44 MainProcess     predict_faces_0 plaidml_tools   get_all_devices           DEBUG    Experimental Devices: [<plaidml._DeviceConfig object at 0x000002C89F15EE80>]
11/13/2019 22:15:44 MainProcess     predict_faces_0 plaidml_tools   get_all_devices           DEBUG    [<plaidml._DeviceConfig object at 0x000002C89F15EE80>]
11/13/2019 22:15:44 MainProcess     predict_faces_0 plaidml_tools   __init__                  DEBUG    Initialized: PlaidMLStats
11/13/2019 22:15:44 MainProcess     predict_faces_0 gpu_stats       get_device_count          DEBUG    GPU Device count: 1
11/13/2019 22:15:44 MainProcess     predict_faces_0 gpu_stats       get_handles               DEBUG    GPU Handles found: 1
11/13/2019 22:15:44 MainProcess     predict_faces_0 gpu_stats       get_driver                DEBUG    GPU Driver: ['2906.10']
11/13/2019 22:15:44 MainProcess     predict_faces_0 plaidml_tools   supported_indices         DEBUG    []
11/13/2019 22:15:44 MainProcess     predict_faces_0 gpu_stats       get_devices               DEBUG    GPU Devices: ['Advanced Micro Devices, Inc. - Oland (experimental)']
11/13/2019 22:15:44 MainProcess     predict_faces_0 gpu_stats       get_vram                  DEBUG    GPU VRAM: [2048.0]
11/13/2019 22:15:44 MainProcess     predict_faces_0 gpu_stats       __init__                  DEBUG    Initialized GPUStats
11/13/2019 22:15:44 MainProcess     predict_faces_0 multithreading  run                       DEBUG    Error in thread (predict_faces_0): 'NoneType' object is not subscriptable
11/13/2019 22:15:44 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:44 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:44 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:44 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:45 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:45 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:45 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'TypeError'>, TypeError("'NoneType' object is not subscriptable",), <traceback object at 0x000002C8E41F5A08>)]
11/13/2019 22:15:45 MainProcess     MainThread      plaidml_tools   initialize                DEBUG    PlaidML already initialized
11/13/2019 22:15:45 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:45 MainProcess     MainThread      plaidml_tools   get_supported_devices     DEBUG    []
11/13/2019 22:15:45 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:45 MainProcess     MainThread      plaidml_tools   get_all_devices           DEBUG    Experimental Devices: [<plaidml._DeviceConfig object at 0x000002C89F17FF60>]
11/13/2019 22:15:45 MainProcess     MainThread      plaidml_tools   get_all_devices           DEBUG    [<plaidml._DeviceConfig object at 0x000002C89F17FF60>]
11/13/2019 22:15:45 MainProcess     MainThread      plaidml_tools   __init__                  DEBUG    Initialized: PlaidMLStats
11/13/2019 22:15:45 MainProcess     MainThread      plaidml_tools   supported_indices         DEBUG    []
11/13/2019 22:15:45 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:46 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:46 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:46 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:46 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:47 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:47 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:47 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:47 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
11/13/2019 22:15:47 MainProcess     load_0          pipeline        detected_faces            DEBUG    Running Detection. Phase: 'detect'
Traceback (most recent call last):
  File "C:\faceswap\lib\cli.py", line 128, in execute_script
    process.process()
  File "C:\faceswap\scripts\convert.py", line 105, in process
    self.convert_images()
  File "C:\faceswap\scripts\convert.py", line 131, in convert_images
    self.check_thread_error()
  File "C:\faceswap\scripts\convert.py", line 151, in check_thread_error
    thread.check_and_raise_error()
  File "C:\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\faceswap\scripts\convert.py", line 550, in predict_faces
    self.load_aligned(item)
  File "C:\faceswap\scripts\convert.py", line 595, in load_aligned
    dtype="float32")
  File "C:\faceswap\lib\faces_detect.py", line 303, in load_feed_face
    self.feed["matrix"] = get_align_mat(self)
  File "C:\faceswap\lib\aligner.py", line 128, in get_align_mat
    mat_umeyama = umeyama(face.landmarks_xy[17:], True)[0:2]
TypeError: 'NoneType' object is not subscriptable

============ System Information ============
encoding:            cp949
git_branch:          master
git_commits:         54b6e86 Changed MTCNN input to RGB. ffd3829 Added allow_growth argument for preview
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: Advanced Micro Devices, Inc. - Oland (experimental)
gpu_devices_active:  GPU_0
gpu_driver:          ['2906.10']
gpu_vram:            GPU_0: 2048MB
os_machine:          AMD64
os_platform:         Windows-10-10.0.17134-SP0
os_release:          10
py_command:          C:\faceswap\faceswap.py convert -i C:/faceswap/workspace/data_dst.mp4 -o C:/faceswap/workspace/converted -m C:/faceswap/workspace/model -c avg-color -M predicted -sc none -w opencv -osc 100 -l 0.4 -j 0 -L INFO -gui
py_conda_version:    conda 4.7.12
py_implementation:   CPython
py_version:          3.6.9
py_virtual_env:      True
sys_cores:           4
sys_processor:       Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
sys_ram:             Total: 8076MB, Available: 4589MB, Used: 3487MB, Free: 4589MB

=============== Pip Packages ===============
absl-py==0.8.1
astor==0.8.0
certifi==2019.9.11
cffi==1.13.2
cloudpickle==1.2.2
cycler==0.10.0
cytoolz==0.10.0
dask==2.6.0
decorator==4.4.1
enum34==1.1.6
fastcluster==1.1.25
ffmpy==0.2.2
gast==0.3.2
grpcio==1.16.1
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
Markdown==3.1.1
matplotlib==2.2.2
mkl-fft==1.0.15
mkl-random==1.1.0
mkl-service==2.3.0
networkx==2.4
numpy==1.16.2
nvidia-ml-py3==7.352.1
olefile==0.46
opencv-python==4.1.1.26
pathlib==1.0.1
Pillow==6.1.0
plaidml==0.6.4
plaidml-keras==0.6.4
protobuf==3.9.2
psutil==5.6.3
pycparser==2.19
pyparsing==2.4.2
pyreadline==2.1
python-dateutil==2.8.1
pytz==2019.3
PyWavelets==1.1.1
pywin32==223
PyYAML==5.1.2
scikit-image==0.15.0
scikit-learn==0.21.3
scipy==1.3.1
six==1.12.0
tensorboard==1.14.0
tensorflow==1.14.0
tensorflow-estimator==1.14.0
termcolor==1.1.0
toolz==0.10.0
toposort==1.5
tornado==6.0.3
tqdm==4.36.1
Werkzeug==0.16.0
wincertstore==0.2
wrapt==1.11.2

============== Conda Packages ==============
# packages in environment at C:\Users\user\MiniConda3\envs\faceswap:
#
# Name                    Version                   Build  Channel
_tflow_select             2.3.0                       mkl  
absl-py 0.8.1 py36_0
astor 0.8.0 py36_0
blas 1.0 mkl
ca-certificates 2019.10.16 0
certifi 2019.9.11 py36_0
cffi 1.13.2 pypi_0 pypi cloudpickle 1.2.2 py_0
cycler 0.10.0 py36h009560c_0
cytoolz 0.10.0 py36he774522_0
dask-core 2.6.0 py_0
decorator 4.4.1 py_0
enum34 1.1.6 pypi_0 pypi fastcluster 1.1.25 py36he350917_1000 conda-forge ffmpeg 4.2 h6538335_0 conda-forge ffmpy 0.2.2 pypi_0 pypi freetype 2.9.1 ha9979f8_1
gast 0.3.2 py_0
grpcio 1.16.1 py36h351948d_1
h5py 2.9.0 py36h5e291fa_0
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
imageio 2.5.0 py36_0
imageio-ffmpeg 0.3.0 py_0 conda-forge intel-openmp 2019.4 245
joblib 0.14.0 py_0
jpeg 9b hb83a4c4_2
keras 2.2.4 0
keras-applications 1.0.8 py_0
keras-base 2.2.4 py36_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.1.0 py36ha925a31_0
libmklml 2019.0.5 0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.9.2 h7bd577a_0
libtiff 4.1.0 h56a325e_0
markdown 3.1.1 py36_0
matplotlib 2.2.2 py36had4c4a9_2
mkl 2019.4 245
mkl-service 2.3.0 py36hb782905_0
mkl_fft 1.0.15 py36h14836fe_0
mkl_random 1.1.0 py36h675688f_0
networkx 2.4 py_0
numpy 1.16.2 py36h19fb1c0_0
numpy-base 1.16.2 py36hc3f5095_0
nvidia-ml-py3 7.352.1 pypi_0 pypi olefile 0.46 py36_0
opencv-python 4.1.1.26 pypi_0 pypi openssl 1.1.1d he774522_3
pathlib 1.0.1 py36_1
pillow 6.1.0 py36hdc69c19_0
pip 19.3.1 py36_0
plaidml 0.6.4 pypi_0 pypi plaidml-keras 0.6.4 pypi_0 pypi protobuf 3.9.2 py36h33f27b4_0
psutil 5.6.3 py36he774522_0
pycparser 2.19 pypi_0 pypi pyparsing 2.4.2 py_0
pyqt 5.9.2 py36h6538335_2
pyreadline 2.1 py36_1
python 3.6.9 h5500b2f_0
python-dateutil 2.8.1 py_0
pytz 2019.3 py_0
pywavelets 1.1.1 py36he774522_0
pywin32 223 py36hfa6e2cd_1
pyyaml 5.1.2 py36he774522_0
qt 5.9.7 vc14h73c81de_0
scikit-image 0.15.0 py36ha925a31_0
scikit-learn 0.21.3 py36h6288b17_0
scipy 1.3.1 py36h29ff71c_0
setuptools 41.6.0 py36_0
sip 4.19.8 py36h6538335_0
six 1.12.0 py36_0
sqlite 3.30.1 he774522_0
tensorboard 1.14.0 py36he3c9ec2_0
tensorflow 1.14.0 mkl_py36hb88db5b_0
tensorflow-base 1.14.0 mkl_py36ha978198_0
tensorflow-estimator 1.14.0 py_0
termcolor 1.1.0 py36_1
tk 8.6.8 hfa6e2cd_0
toolz 0.10.0 py_0
toposort 1.5 py_3 conda-forge tornado 6.0.3 py36he774522_0
tqdm 4.36.1 py_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_0
werkzeug 0.16.0 py_0
wheel 0.33.6 py36_0
wincertstore 0.2 py36h7fe50ca_0
wrapt 1.11.2 py36he774522_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_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 radius: 3.0 passes: 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: 50 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 font: default font_size: 9 --------- 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.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
User avatar
mymooo3
Posts: 3
Joined: Tue Nov 12, 2019 3:51 am

CRITICAL An unexpected crash has occurred. Pls Help

Post by mymooo3 »

crash_report.2019.11.17.164603219651.log
(39.62 KiB) Downloaded 303 times

Thank you!

Emergency food

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: CRITICAL An unexpected crash has occurred. Pls Help

Post by bryanlyon »

This looks like a problem with "on the fly" conversion. Try providing an alignments file from the extract step and see if the problem resolves.

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Convert Error

Post by bryanlyon »

This looks like a problem with "on the fly" conversion. Try providing an alignments file from the extract step and see if the problem resolves.

User avatar
kaemen
Posts: 9
Joined: Mon Nov 25, 2019 9:30 pm
Has thanked: 2 times
Been thanked: 1 time

Suddenly having issues convering. What am I doing wrong?

Post by kaemen »

Code: Select all

12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: gif_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.gif_defaults
12/02/2019 03:23:44 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.gif', info: 'Options for outputting converted frames to an animated gif.')
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'fps', datatype: '<class 'int'>', default: '25', info: 'Frames per Second.', rounding: '1', min_max: (1, 60), choices: [], gui_radio: False, fixed: True, group: settings)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'loop', datatype: '<class 'int'>', default: '0', info: 'The number of iterations. Set to 0 to loop indefinitely.', rounding: '1', min_max: (0, 100), choices: [], gui_radio: False, fixed: True, group: settings)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'palettesize', datatype: '<class 'str'>', default: '256', info: 'The number of colors to quantize the image to. Is rounded to the nearest power of two.', rounding: 'None', min_max: None, choices: ['2', '4', '8', '16', '32', '64', '128', '256'], gui_radio: False, fixed: True, group: settings)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'subrectangles', datatype: '<class 'bool'>', default: 'False', info: 'If True, will try and optimize the GIF by storing only the rectangular parts of each frame that change with respect to the previous.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.gif
12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: opencv_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.opencv_defaults
12/02/2019 03:23:44 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.opencv', info: 'Options for outputting converted frames to a series of images using OpenCV\nOpenCV can be faster than other image writers, but lacks some configuration options and formats.')
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'format', datatype: '<class 'str'>', default: 'png', info: 'Image format to use:\n	 bmp: Windows bitmap\n	 jpg: JPEG format\n	 jp2: JPEG 2000 format\n	 png: Portable Network Graphics\n	 ppm: Portable Pixmap Format', rounding: 'None', min_max: None, choices: ['bmp', 'jpg', 'jp2', 'png', 'ppm'], gui_radio: True, fixed: True, group: None)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'draw_transparent', datatype: '<class 'bool'>', default: 'False', info: 'Place the swapped face on a transparent layer rather than the original frame.\nNB: This is only compatible with images saved in png format. If an incompatible format is selected then the image will be saved as a png.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'jpg_quality', datatype: '<class 'int'>', default: '75', info: '[jpg only] Set the jpg quality. 1 is worst 95 is best. Higher quality leads to larger file sizes.', rounding: '1', min_max: (1, 95), choices: [], gui_radio: False, fixed: True, group: compression)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'png_compress_level', datatype: '<class 'int'>', default: '3', info: '[png only] ZLIB compression level, 1 gives best speed, 9 gives best compression, 0 gives no compression at all.', rounding: '1', min_max: (0, 9), choices: [], gui_radio: False, fixed: True, group: compression)
12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.opencv
12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: pillow_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.pillow_defaults
12/02/2019 03:23:44 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.pillow', info: 'Options for outputting converted frames to a series of images using Pillow\nPillow is more feature rich than OpenCV but can be slower.')
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'format', datatype: '<class 'str'>', default: 'png', info: 'Image format to use:\n	 bmp: Windows bitmap\n	 gif: Graphics Interchange Format (NB: Not animated)\n	 jpg: JPEG format\n	 jp2: JPEG 2000 format\n	 png: Portable Network Graphics\n	 ppm: Portable Pixmap Format\n	 tif: Tag Image File Format', rounding: 'None', min_max: None, choices: ['bmp', 'gif', 'jpg', 'jp2', 'png', 'ppm', 'tif'], gui_radio: True, fixed: True, group: None)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'draw_transparent', datatype: '<class 'bool'>', default: 'False', info: 'Place the swapped face on a transparent layer rather than the original frame.\nNB: This is only compatible with images saved in png or tif format. If an incompatible format is selected then the image will be saved as a png.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'optimize', datatype: '<class 'bool'>', default: 'False', info: '[gif, jpg and png only] If enabled, indicates that the encoder should make an extra pass over the image in order to select optimal encoder settings.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'gif_interlace', datatype: '<class 'bool'>', default: 'True', info: '[gif only] Set whether to save the gif as interlaced or not.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'jpg_quality', datatype: '<class 'int'>', default: '75', info: '[jpg only] Set the jpg quality. 1 is worst 95 is best. Higher quality leads to larger file sizes.', rounding: '1', min_max: (1, 95), choices: [], gui_radio: False, fixed: True, group: compression)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'png_compress_level', datatype: '<class 'int'>', default: '3', info: '[png only] ZLIB compression level, 1 gives best speed, 9 gives best compression, 0 gives no compression at all. When optimize option is set to True this has no effect (it is set to 9 regardless of a value passed).', rounding: '1', min_max: (0, 9), choices: [], gui_radio: False, fixed: True, group: compression)
12/02/2019 03:23:44 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'tif_compression', datatype: '<class 'str'>', default: 'tiff_deflate', info: '[tif only] The desired compression method for the file.', rounding: 'None', min_max: None, choices: ['none', 'tiff_ccitt', 'group3', 'group4', 'tiff_jpeg', 'tiff_adobe_deflate', 'tiff_thunderscan', 'tiff_deflate', 'tiff_sgilog', 'tiff_sgilog24', 'tiff_raw_16'], gui_radio: False, fixed: True, group: compression)
12/02/2019 03:23:44 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.pillow
12/02/2019 03:23:44 MainProcess     MainThread      config          handle_config             DEBUG    Handling config
12/02/2019 03:23:44 MainProcess     MainThread      config          check_exists              DEBUG    Config file exists: 'C:\faceswap2\config\convert.ini'
12/02/2019 03:23:44 MainProcess     MainThread      config          load_config               VERBOSE  Loading config: 'C:\faceswap2\config\convert.ini'
12/02/2019 03:23:44 MainProcess     MainThread      config          validate_config           DEBUG    Validating config
12/02/2019 03:23:44 MainProcess     MainThread      config          check_config_change       DEBUG    Default config has not changed
12/02/2019 03:23:44 MainProcess     MainThread      config          check_config_choices      DEBUG    Checking config choices
12/02/2019 03:23:44 MainProcess     MainThread      config          check_config_choices      DEBUG    Checked config choices
12/02/2019 03:23:44 MainProcess     MainThread      config          validate_config           DEBUG    Validated config
12/02/2019 03:23:44 MainProcess     MainThread      config          handle_config             DEBUG    Handled config
12/02/2019 03:23:44 MainProcess     MainThread      config          __init__                  DEBUG    Initialized: Config
12/02/2019 03:23:44 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'mask.mask_blend', option: 'type')
12/02/2019 03:23:44 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'str'>, value: None)
12/02/2019 03:23:44 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'mask.mask_blend', option: 'radius')
12/02/2019 03:23:44 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'float'>, value: 3.0)
12/02/2019 03:23:44 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'mask.mask_blend', option: 'passes')
12/02/2019 03:23:44 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'int'>, value: 4)
12/02/2019 03:23:44 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'mask.mask_blend', option: 'erosion')
12/02/2019 03:23:44 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'float'>, value: 0.0)
12/02/2019 03:23:44 MainProcess     MainThread      _base           set_config                DEBUG    Config: {'type': None, 'radius': 3.0, 'passes': 4, 'erosion': 0.0}
12/02/2019 03:23:44 MainProcess     MainThread      _base           __init__                  DEBUG    config: {'type': None, 'radius': 3.0, 'passes': 4, 'erosion': 0.0}
12/02/2019 03:23:44 MainProcess     MainThread      _base           get_mask_type             DEBUG    Requested mask_type: none
12/02/2019 03:23:44 MainProcess     MainThread      _base           get_mask_type             DEBUG    Returning mask_type: none
12/02/2019 03:23:44 MainProcess     MainThread      _base           __init__                  DEBUG    Initialized Mask
12/02/2019 03:23:44 MainProcess     MainThread      convert         load_plugins              DEBUG    Loaded plugins: {'box': <plugins.convert.mask.box_blend.Mask object at 0x000002188D7ABB38>, 'mask': <plugins.convert.mask.mask_blend.Mask object at 0x000002188D800748>, 'color': None, 'seamless': None, 'scaling': None}
12/02/2019 03:23:44 MainProcess     MainThread      convert         __init__                  DEBUG    Initialized Converter
12/02/2019 03:23:44 MainProcess     MainThread      convert         __init__                  DEBUG    Initialized Convert
12/02/2019 03:23:44 MainProcess     MainThread      convert         process                   DEBUG    Starting Conversion
12/02/2019 03:23:44 MainProcess     MainThread      convert         convert_images            DEBUG    Converting images
12/02/2019 03:23:44 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'convert_out'
12/02/2019 03:23:44 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'convert_out'
12/02/2019 03:23:44 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'patch'
12/02/2019 03:23:44 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'patch'
12/02/2019 03:23:44 MainProcess     MainThread      convert         pool_processes            DEBUG    8
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'patch', thread_count: 8)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'patch'
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'patch'
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 8: 'patch_0'
12/02/2019 03:23:44 MainProcess     patch_0         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002188D78DE10>, out_queue: <queue.Queue object at 0x000002188D78DD30>, completion_queue: None)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 2 of 8: 'patch_1'
12/02/2019 03:23:44 MainProcess     patch_1         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002188D78DE10>, out_queue: <queue.Queue object at 0x000002188D78DD30>, completion_queue: None)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 3 of 8: 'patch_2'
12/02/2019 03:23:44 MainProcess     patch_2         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002188D78DE10>, out_queue: <queue.Queue object at 0x000002188D78DD30>, completion_queue: None)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 4 of 8: 'patch_3'
12/02/2019 03:23:44 MainProcess     patch_3         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002188D78DE10>, out_queue: <queue.Queue object at 0x000002188D78DD30>, completion_queue: None)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 5 of 8: 'patch_4'
12/02/2019 03:23:44 MainProcess     patch_4         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002188D78DE10>, out_queue: <queue.Queue object at 0x000002188D78DD30>, completion_queue: None)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 6 of 8: 'patch_5'
12/02/2019 03:23:44 MainProcess     patch_5         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002188D78DE10>, out_queue: <queue.Queue object at 0x000002188D78DD30>, completion_queue: None)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 7 of 8: 'patch_6'
12/02/2019 03:23:44 MainProcess     patch_6         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002188D78DE10>, out_queue: <queue.Queue object at 0x000002188D78DD30>, completion_queue: None)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 8 of 8: 'patch_7'
12/02/2019 03:23:44 MainProcess     patch_7         convert         process                   DEBUG    Starting convert process. (in_queue: <queue.Queue object at 0x000002188D78DE10>, out_queue: <queue.Queue object at 0x000002188D78DD30>, completion_queue: None)
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'patch': 8
12/02/2019 03:23:44 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'AttributeError'>, AttributeError("'dict' object has no attribute 'filename'",), <traceback object at 0x0000021892996988>)]
12/02/2019 03:23:44 MainProcess     predict_faces_0 plaidml_tools   get_supported_devices     DEBUG    [<plaidml._DeviceConfig object at 0x000002188D8005F8>]
12/02/2019 03:23:44 MainProcess     MainThread      plaidml_tools   initialize                DEBUG    PlaidML already initialized
12/02/2019 03:23:44 MainProcess     predict_faces_0 plaidml_tools   get_all_devices           DEBUG    Experimental Devices: [<plaidml._DeviceConfig object at 0x00000218F20D7240>]
12/02/2019 03:23:44 MainProcess     predict_faces_0 plaidml_tools   get_all_devices           DEBUG    [<plaidml._DeviceConfig object at 0x00000218F20D7240>, <plaidml._DeviceConfig object at 0x000002188D8005F8>]
12/02/2019 03:23:44 MainProcess     predict_faces_0 plaidml_tools   __init__                  DEBUG    Initialized: PlaidMLStats
12/02/2019 03:23:44 MainProcess     predict_faces_0 gpu_stats       get_device_count          DEBUG    GPU Device count: 2
12/02/2019 03:23:44 MainProcess     predict_faces_0 gpu_stats       get_handles               DEBUG    GPU Handles found: 2
12/02/2019 03:23:44 MainProcess     predict_faces_0 gpu_stats       get_driver                DEBUG    GPU Driver: ['2906.10', '2906.10']
12/02/2019 03:23:44 MainProcess     predict_faces_0 plaidml_tools   supported_indices         DEBUG    [1]
12/02/2019 03:23:44 MainProcess     predict_faces_0 plaidml_tools   supported_indices         DEBUG    [1]
12/02/2019 03:23:44 MainProcess     predict_faces_0 gpu_stats       get_devices               DEBUG    GPU Devices: ['Advanced Micro Devices, Inc. - Ellesmere (experimental)', 'Advanced Micro Devices, Inc. - Ellesmere (supported)']
12/02/2019 03:23:44 MainProcess     predict_faces_0 gpu_stats       get_vram                  DEBUG    GPU VRAM: [8192.0, 8192.0]
12/02/2019 03:23:44 MainProcess     predict_faces_0 gpu_stats       __init__                  DEBUG    Initialized GPUStats
12/02/2019 03:23:44 MainProcess     MainThread      plaidml_tools   get_supported_devices     DEBUG    [<plaidml._DeviceConfig object at 0x00000218F20C4D30>]
12/02/2019 03:23:44 MainProcess     MainThread      plaidml_tools   get_all_devices           DEBUG    Experimental Devices: [<plaidml._DeviceConfig object at 0x00000218F20C4B38>]
12/02/2019 03:23:44 MainProcess     MainThread      plaidml_tools   get_all_devices           DEBUG    [<plaidml._DeviceConfig object at 0x00000218F20C4B38>, <plaidml._DeviceConfig object at 0x00000218F20C4D30>]
12/02/2019 03:23:44 MainProcess     MainThread      plaidml_tools   __init__                  DEBUG    Initialized: PlaidMLStats
12/02/2019 03:23:44 MainProcess     MainThread      plaidml_tools   supported_indices         DEBUG    [1]
12/02/2019 03:23:44 MainProcess     MainThread      plaidml_tools   supported_indices         DEBUG    [1]
Traceback (most recent call last):
  File "C:\faceswap2\lib\cli.py", line 128, in execute_script
    process.process()
  File "C:\faceswap2\scripts\convert.py", line 105, in process
    self.convert_images()
  File "C:\faceswap2\scripts\convert.py", line 131, in convert_images
    self.check_thread_error()
  File "C:\faceswap2\scripts\convert.py", line 151, in check_thread_error
    thread.check_and_raise_error()
  File "C:\faceswap2\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\faceswap2\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\faceswap2\scripts\convert.py", line 326, in load
    detected_faces = self.get_detected_faces(filename, image)
  File "C:\faceswap2\scripts\convert.py", line 355, in get_detected_faces
    detected_faces = self.detect_faces(filename, image)
  File "C:\faceswap2\scripts\convert.py", line 386, in detect_faces
    faces = next(self.extractor.detected_faces())
  File "C:\faceswap2\plugins\extract\pipeline.py", line 211, in detected_faces
    if self._check_and_raise_error():
  File "C:\faceswap2\plugins\extract\pipeline.py", line 476, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "C:\faceswap2\plugins\extract\_base.py", line 296, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "C:\faceswap2\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\faceswap2\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\faceswap2\plugins\extract\_base.py", line 397, in _thread_process
    exhausted, batch = self.get_batch(in_queue)
  File "C:\faceswap2\plugins\extract\detect\_base.py", line 116, in get_batch
    batch.setdefault("filename", []).append(item.filename)
AttributeError: 'dict' object has no attribute 'filename'

============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         ae94d36 Installer updates Windows - Install Conda git Linux + Windows - Always create GUI Launcher shortcut. aede5f0 bugfix: Extract - Calculate zero sized faces prior to scaling up. 44b7461 sort - remove unused variable. 8f5a7a6 Bugfix: Sort by Yaw - Use Pipeline for landmarks. 4fdeb67 Bugfix - Manual tool. Use new ExtractMedia class
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: Advanced Micro Devices, Inc. - Ellesmere (experimental), GPU_1: Advanced Micro Devices, Inc. - Ellesmere (supported)
gpu_devices_active:  GPU_0, GPU_1
gpu_driver:          ['2906.10', '2906.10']
gpu_vram:            GPU_0: 8192MB, GPU_1: 8192MB
os_machine:          AMD64
os_platform:         Windows-10-10.0.18362-SP0
os_release:          10
py_command:          C:\faceswap2\faceswap.py convert -i I:/24.11.2019/1.12.2019/Output_ModelA -o I:/24.11.2019/1.12.2019/Output_Conv/test.mp4 -ref I:/24.11.2019/1.12.2019/ModelA_video/vid.mp4 -m I:/24.11.2019/1.12.2019/Training_ModelC -c none -M none -sc none -w opencv -osc 100 -l 0.4 -j 0 -L INFO -gui
py_conda_version:    conda 4.7.12
py_implementation:   CPython
py_version:          3.6.9
py_virtual_env:      True
sys_cores:           8
sys_processor:       Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
sys_ram:             Total: 16360MB, Available: 12630MB, Used: 3730MB, Free: 12630MB

=============== Pip Packages ===============
absl-py==0.8.0
astor==0.8.0
certifi==2019.9.11
cffi==1.13.1
cloudpickle==1.2.2
cycler==0.10.0
cytoolz==0.10.0
dask==2.6.0
decorator==4.4.1
enum34==1.1.6
fastcluster==1.1.25
ffmpy==0.2.2
gast==0.3.2
grpcio==1.16.1
h5py==2.9.0
imageio==2.5.0
imageio-ffmpeg==0.3.0
joblib==0.13.2
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
Markdown==3.1.1
matplotlib==2.2.2
mkl-fft==1.0.14
mkl-random==1.1.0
mkl-service==2.3.0
networkx==2.4
numpy==1.16.2
nvidia-ml-py3==7.352.1
olefile==0.46
opencv-python==4.1.1.26
pathlib==1.0.1
Pillow==6.1.0
plaidml==0.6.4
plaidml-keras==0.6.4
protobuf==3.9.2
psutil==5.6.3
pycparser==2.19
pyparsing==2.4.2
pyreadline==2.1
python-dateutil==2.8.0
pytz==2019.3
PyWavelets==1.1.1
pywin32==223
PyYAML==5.1.2
scikit-image==0.15.0
scikit-learn==0.21.3
scipy==1.3.1
six==1.12.0
tensorboard==1.14.0
tensorflow==1.14.0
tensorflow-estimator==1.14.0
termcolor==1.1.0
toolz==0.10.0
toposort==1.5
tornado==6.0.3
tqdm==4.36.1
Werkzeug==0.16.0
wincertstore==0.2
wrapt==1.11.2

============== Conda Packages ==============
# packages in environment at C:\Users\JLS\MiniConda3\envs\faceswap2:
#
# Name                    Version                   Build  Channel
_tflow_select             2.3.0                       mkl  
absl-py 0.8.0 py36_0
astor 0.8.0 py36_0
blas 1.0 mkl
ca-certificates 2019.10.16 0
certifi 2019.9.11 py36_0
cffi 1.13.1 pypi_0 pypi cloudpickle 1.2.2 py_0
cycler 0.10.0 py36h009560c_0
cytoolz 0.10.0 py36he774522_0
dask-core 2.6.0 py_0
decorator 4.4.1 py_0
enum34 1.1.6 pypi_0 pypi fastcluster 1.1.25 py36h830ac7b_1000 conda-forge ffmpeg 4.2 h6538335_0 conda-forge ffmpy 0.2.2 pypi_0 pypi freetype 2.9.1 ha9979f8_1
gast 0.3.2 py_0
grpcio 1.16.1 py36h351948d_1
h5py 2.9.0 py36h5e291fa_0
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
imageio 2.5.0 py36_0
imageio-ffmpeg 0.3.0 py_0 conda-forge intel-openmp 2019.4 245
joblib 0.13.2 py36_0
jpeg 9b hb83a4c4_2
keras 2.2.4 0
keras-applications 1.0.8 py_0
keras-base 2.2.4 py36_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.1.0 py36ha925a31_0
libmklml 2019.0.5 0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.9.2 h7bd577a_0
libtiff 4.0.10 hb898794_2
markdown 3.1.1 py36_0
matplotlib 2.2.2 py36had4c4a9_2
mkl 2019.4 245
mkl-service 2.3.0 py36hb782905_0
mkl_fft 1.0.14 py36h14836fe_0
mkl_random 1.1.0 py36h675688f_0
networkx 2.4 py_0
numpy 1.16.2 py36h19fb1c0_0
numpy-base 1.16.2 py36hc3f5095_0
nvidia-ml-py3 7.352.1 pypi_0 pypi olefile 0.46 py36_0
opencv-python 4.1.1.26 pypi_0 pypi openssl 1.1.1d he774522_3
pathlib 1.0.1 py36_1
pillow 6.1.0 py36hdc69c19_0
pip 19.3.1 py36_0
plaidml 0.6.4 pypi_0 pypi plaidml-keras 0.6.4 pypi_0 pypi protobuf 3.9.2 py36h33f27b4_0
psutil 5.6.3 py36he774522_0
pycparser 2.19 pypi_0 pypi pyparsing 2.4.2 py_0
pyqt 5.9.2 py36h6538335_2
pyreadline 2.1 py36_1
python 3.6.9 h5500b2f_0
python-dateutil 2.8.0 py36_0
pytz 2019.3 py_0
pywavelets 1.1.1 py36he774522_0
pywin32 223 py36hfa6e2cd_1
pyyaml 5.1.2 py36he774522_0
qt 5.9.7 vc14h73c81de_0
scikit-image 0.15.0 py36ha925a31_0
scikit-learn 0.21.3 py36h6288b17_0
scipy 1.3.1 py36h29ff71c_0
setuptools 41.6.0 py36_0
sip 4.19.8 py36h6538335_0
six 1.12.0 py36_0
sqlite 3.30.1 he774522_0
tensorboard 1.14.0 py36he3c9ec2_0
tensorflow 1.14.0 mkl_py36hb88db5b_0
tensorflow-base 1.14.0 mkl_py36ha978198_0
tensorflow-estimator 1.14.0 py_0
termcolor 1.1.0 py36_1
tk 8.6.8 hfa6e2cd_0
toolz 0.10.0 py_0
toposort 1.5 py_3 conda-forge tornado 6.0.3 py36he774522_0
tqdm 4.36.1 py_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_0
werkzeug 0.16.0 py_0
wheel 0.33.6 py36_0
wincertstore 0.2 py36h7fe50ca_0
wrapt 1.11.2 py36he774522_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_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: none distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: none radius: 3.0 passes: 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: 32 [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: 32 [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.0 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.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: fast 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: 10 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: Suddenly having issues convering. What am I doing wrong?

Post by torzdf »

In the first instance: don't use On-The-Fly conversion, it's bad. Generate an alignments file for your video.

Secondly, this is fixed in latest commit.

My word is final

User avatar
kaemen
Posts: 9
Joined: Mon Nov 25, 2019 9:30 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Suddenly having issues convering. What am I doing wrong?

Post by kaemen »

Thats it?

Just recreate alignment for new video clip?`

Thanks I will try and feedback!

User avatar
kaemen
Posts: 9
Joined: Mon Nov 25, 2019 9:30 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Suddenly having issues convering. What am I doing wrong?

Post by kaemen »

Your tip and new latest version works wonders!!

Thanks alot and big thank you for everyone putting time effort into the development of this amazing tool!

Thank you!

Locked