Immediate Crash During Extraction

The Extraction process failing on you, and you aren't getting an error back with clear instructions? Tell us about it here


Forum rules

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

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

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

Locked
User avatar
YeahThatDidntWork
Posts: 1
Joined: Fri May 27, 2022 11:59 pm

Immediate Crash During Extraction

Post by YeahThatDidntWork »

I have the following error five seconds into extraction. A few things I have tried:

  • Using FaceSwap 1.0 (a lot of people here seem to NOT recommend the most recent version, and I could never start the application up without it throwing errors upon errors.)
  • Uninstalling and reinstalling (done 5 times using this guide: app.php/faqpage#f1r1)
  • Using smaller mp4 files
  • Rebooting
  • Uninstalling/Reinstalling again.

Seems that FaceSwap is not yet ready for AMD GPUs. :?

Code: Select all

05/27/2022 19:09:05 MainProcess     MainThread      config          load_config               VERBOSE  Loading config: 'C:\Users\XXXXX\faceswap\config\extract.ini'
05/27/2022 19:09:05 MainProcess     MainThread      config          validate_config           DEBUG    Validating config
05/27/2022 19:09:05 MainProcess     MainThread      config          check_config_change       DEBUG    Default config has not changed
05/27/2022 19:09:05 MainProcess     MainThread      config          check_config_choices      DEBUG    Checking config choices
05/27/2022 19:09:05 MainProcess     MainThread      config          check_config_choices      DEBUG    Checked config choices
05/27/2022 19:09:05 MainProcess     MainThread      config          validate_config           DEBUG    Validated config
05/27/2022 19:09:05 MainProcess     MainThread      config          handle_config             DEBUG    Handled config
05/27/2022 19:09:05 MainProcess     MainThread      config          __init__                  DEBUG    Initialized: Config
05/27/2022 19:09:05 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'global', option: 'allow_growth')
05/27/2022 19:09:05 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'bool'>, value: False)
05/27/2022 19:09:05 MainProcess     MainThread      _base           _get_model                DEBUG    No model_filename specified. Returning None
05/27/2022 19:09:05 MainProcess     MainThread      _base           __init__                  DEBUG    Initialized _base Mask
05/27/2022 19:09:05 MainProcess     MainThread      _base           __init__                  DEBUG    Initialized Mask
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_parallel_processing  DEBUG    Parallel processing disabled by amd
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Num plugins for phase: 1, scaling: 1.0, vram required: 4112.0
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Required: 4112.0, available: 7920. Single plugin has higher requirements than available or forcing single process: 'detect'
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Num plugins for phase: 1, scaling: 1.0, vram required: 2240.0
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Required: 2240.0, available: 7920. Single plugin has higher requirements than available or forcing single process: 'align'
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Num plugins for phase: 0, scaling: 1.0, vram required: 0.0
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Required: 0.0, available: 7920. Single plugin has higher requirements than available or forcing single process: 'mask_0'
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Num plugins for phase: 0, scaling: 1.0, vram required: 0.0
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Required: 0.0, available: 7920. Single plugin has higher requirements than available or forcing single process: 'mask_1'
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Total phases: 4, Phases: [['detect'], ['align'], ['mask_0'], ['mask_1']]
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _set_extractor_batchsize  DEBUG    Backend is not Nvidia. Not updating batchsize requirements
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_detect_in', maxsize: 1)
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_detect_in')
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_detect_in'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_detect_in'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_align_in', maxsize: 1)
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_align_in')
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_align_in'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_align_in'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_mask_0_in', maxsize: 1)
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_mask_0_in')
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_mask_0_in'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_mask_0_in'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_mask_1_in', maxsize: 1)
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_mask_1_in')
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_mask_1_in'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_mask_1_in'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_mask_1_out', maxsize: 1)
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_mask_1_out')
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_mask_1_out'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_mask_1_out'
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _add_queues               DEBUG    Queues: {'extract0_detect_in': <queue.Queue object at 0x000001CD5C2EC7C8>, 'extract0_align_in': <queue.Queue object at 0x000001CD5C689B08>, 'extract0_mask_0_in': <queue.Queue object at 0x000001CD5C6895C8>, 'extract0_mask_1_in': <queue.Queue object at 0x000001CD5C689948>, 'extract0_mask_1_out': <queue.Queue object at 0x000001CD5C689448>}
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        __init__                  DEBUG    Initialized Extractor
05/27/2022 19:09:05 MainProcess     MainThread      extract         __init__                  DEBUG    Initialized Extract
05/27/2022 19:09:05 MainProcess     MainThread      extract         process                   INFO     Starting, this may take a while...
05/27/2022 19:09:05 MainProcess     MainThread      extract         _threaded_redirector      DEBUG    Threading task: (Task: 'load')
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: '_load', thread_count: 1)
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: '_load'
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): '_load'
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: '_load_0'
05/27/2022 19:09:05 MainProcess     _load_0         extract         _load                     DEBUG    Load Images: Start
05/27/2022 19:09:05 MainProcess     _load_0         image           load                      DEBUG    Initializing Load Generator
05/27/2022 19:09:05 MainProcess     _load_0         image           _set_thread               DEBUG    Setting thread
05/27/2022 19:09:05 MainProcess     _load_0         multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'ImagesLoader', thread_count: 1)
05/27/2022 19:09:05 MainProcess     _load_0         multithreading  __init__                  DEBUG    Initialized MultiThread: 'ImagesLoader'
05/27/2022 19:09:05 MainProcess     _load_0         image           _set_thread               DEBUG    Set thread: <lib.multithreading.MultiThread object at 0x000001CD5C683F48>
05/27/2022 19:09:05 MainProcess     _load_0         multithreading  start                     DEBUG    Starting thread(s): 'ImagesLoader'
05/27/2022 19:09:05 MainProcess     _load_0         multithreading  start                     DEBUG    Starting thread 1 of 1: 'ImagesLoader_0'
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads '_load': 1
05/27/2022 19:09:05 MainProcess     MainThread      image           __init__                  DEBUG    Initializing ImagesSaver: (path: S:\Downloads\faceswap files\input A (video to be viewed), queue_size: 8, as_bytes: True)
05/27/2022 19:09:05 MainProcess     MainThread      image           __init__                  DEBUG    Initializing ImagesSaver: (path: S:\Downloads\faceswap files\input A (video to be viewed), queue_size: 8, args: None)
05/27/2022 19:09:05 MainProcess     ImagesLoader_0  image           _process                  DEBUG    Load iterator: <bound method ImagesLoader._from_video of <lib.image.ImagesLoader object at 0x000001CD5A67C108>>
05/27/2022 19:09:05 MainProcess     ImagesLoader_0  image           _from_video               DEBUG    Loading frames from video: 'S:\Downloads\faceswap files\File.mp4'
05/27/2022 19:09:05 MainProcess     _load_0         multithreading  start                     DEBUG    Started all threads 'ImagesLoader': 1
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'ImagesSaver'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'ImagesSaver', maxsize: 8)
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'ImagesSaver')
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'ImagesSaver'
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launching detect plugin
05/27/2022 19:09:05 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    in_qname: extract0_detect_in, out_qname: extract0_align_in
05/27/2022 19:09:05 MainProcess     MainThread      _base           initialize                DEBUG    initialize Detect: (args: (), kwargs: {'in_queue': <queue.Queue object at 0x000001CD5C2EC7C8>, 'out_queue': <queue.Queue object at 0x000001CD5C689B08>})
05/27/2022 19:09:05 MainProcess     MainThread      _base           initialize                INFO     Initializing S3FD (Detect)...
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'detect0_predict_s3fd'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'detect0_predict_s3fd', maxsize: 1)
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'detect0_predict_s3fd')
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'detect0_predict_s3fd'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'detect0_post_s3fd'
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'detect0_post_s3fd', maxsize: 1)
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'detect0_post_s3fd')
05/27/2022 19:09:05 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'detect0_post_s3fd'
05/27/2022 19:09:05 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiling detect threads
05/27/2022 19:09:05 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: detect_s3fd_input, function: <bound method Detect.process_input of <plugins.extract.detect.s3fd.Detect object at 0x000001CD5A690108>>, in_queue: <queue.Queue object at 0x000001CD5C2EC7C8>, out_queue: <queue.Queue object at 0x000001CD5C67D1C8>)
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'detect_s3fd_input', thread_count: 1)
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'detect_s3fd_input'
05/27/2022 19:09:05 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: detect_s3fd_input
05/27/2022 19:09:05 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: detect_s3fd_predict, function: <bound method Detector._predict of <plugins.extract.detect.s3fd.Detect object at 0x000001CD5A690108>>, in_queue: <queue.Queue object at 0x000001CD5C67D1C8>, out_queue: <queue.Queue object at 0x000001CD5C67D348>)
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'detect_s3fd_predict', thread_count: 1)
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'detect_s3fd_predict'
05/27/2022 19:09:05 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: detect_s3fd_predict
05/27/2022 19:09:05 MainProcess     MainThread      _base           _add_thread               DEBUG    Adding thread: (name: detect_s3fd_output, function: <bound method Detect.process_output of <plugins.extract.detect.s3fd.Detect object at 0x000001CD5A690108>>, in_queue: <queue.Queue object at 0x000001CD5C67D348>, out_queue: <queue.Queue object at 0x000001CD5C689B08>)
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'detect_s3fd_output', thread_count: 1)
05/27/2022 19:09:05 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'detect_s3fd_output'
05/27/2022 19:09:05 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: detect_s3fd_output
05/27/2022 19:09:05 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiled detect threads: [<lib.multithreading.MultiThread object at 0x000001CD5C67D208>, <lib.multithreading.MultiThread object at 0x000001CD5C67D308>, <lib.multithreading.MultiThread object at 0x000001CD5C7048C8>]
05/27/2022 19:09:05 MainProcess     MainThread      s3fd            __init__                  DEBUG    Initializing: S3fd: (model_path: 'C:\Users\XXXXX\faceswap\plugins\extract\detect\.cache\s3fd_keras_v1.h5', allow_growth: False)
05/27/2022 19:09:05 MainProcess     MainThread      session         load_model                VERBOSE  Initializing plugin model: S3FD
05/27/2022 19:09:05 MainProcess     MainThread      attrs           __getitem__               DEBUG    Creating converter from 3 to 5
Traceback (most recent call last):
  File "C:\Users\XXXXX\faceswap\lib\cli\launcher.py", line 155, in execute_script
    process.process()
  File "C:\Users\XXXXX\faceswap\scripts\extract.py", line 116, in process
    self._run_extraction()
  File "C:\Users\XXXXX\faceswap\scripts\extract.py", line 202, in _run_extraction
    self._extractor.launch()
  File "C:\Users\XXXXX\faceswap\plugins\extract\pipeline.py", line 203, in launch
    self._launch_plugin(phase)
  File "C:\Users\XXXXX\faceswap\plugins\extract\pipeline.py", line 553, in _launch_plugin
    plugin.initialize(**kwargs)
  File "C:\Users\XXXXX\faceswap\plugins\extract\_base.py", line 341, in initialize
    self.init_model()
  File "C:\Users\XXXXX\faceswap\plugins\extract\detect\s3fd.py", line 41, in init_model
    self.model = S3fd(self.model_path, model_kwargs, self.config["allow_growth"], confidence)
  File "C:\Users\XXXXX\faceswap\plugins\extract\detect\s3fd.py", line 221, in __init__
    self.load_model()
  File "C:\Users\XXXXX\faceswap\lib\model\session.py", line 137, in load_model
    self._model = k_load_model(self._model_path, **self._model_kwargs)
  File "C:\Users\XXXXX\MiniConda3\envs\faceswap\lib\site-packages\keras\engine\saving.py", line 419, in load_model
    model = _deserialize_model(f, custom_objects, compile)
  File "C:\Users\XXXXX\MiniConda3\envs\faceswap\lib\site-packages\keras\engine\saving.py", line 224, in _deserialize_model
    model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'

============ System Information ============
encoding:            cp1252
git_branch:          r1.0
git_commits:         a4ccfc6 GUI - Remove Switch Branch option Installers - Pin to r1.0
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. - gfx1032 (experimental)
gpu_devices_active:  GPU_0
gpu_driver:          ['3380.6 (PAL,LC)']
gpu_vram:            GPU_0: 8176MB
os_machine:          AMD64
os_platform:         Windows-10-10.0.19041-SP0
os_release:          10
py_command:          C:\Users\XXXXXXXXXXX\faceswap\faceswap.py extract -i S:/Downloads/faceswap files/File.mp4 -o S:/Downloads/faceswap files/input A (video to be viewed) -D s3fd -A fan -nm none -min 40 -l 0.4 -een 1 -sz 256 -si 0 -L INFO -gui
py_conda_version:    conda 4.13.0
py_implementation:   CPython
py_version:          3.7.13
py_virtual_env:      True
sys_cores:           24
sys_processor:       AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD
sys_ram:             Total: 16308MB, Available: 8991MB, Used: 7317MB, Free: 8991MB

=============== Pip Packages ===============
absl-py @ file:///opt/conda/conda-bld/absl-py_1639803114343/work
astor==0.8.1
cached-property @ file:///tmp/build/80754af9/cached-property_1600785575025/work
certifi==2022.5.18.1
cffi==1.15.0
cloudpickle @ file:///tmp/build/80754af9/cloudpickle_1632508026186/work
colorama @ file:///tmp/build/80754af9/colorama_1607707115595/work
cycler @ file:///tmp/build/80754af9/cycler_1637851556182/work
cytoolz==0.11.0
dask==2021.10.0
enum34==1.1.10
fastcluster==1.1.26
ffmpy==0.2.3
fonttools==4.25.0
fsspec @ file:///C:/ci/fsspec_1652784443011/work
gast==0.2.2
google-pasta @ file:///Users/ktietz/demo/mc3/conda-bld/google-pasta_1630577991354/work
grpcio @ file:///C:/ci/grpcio_1637590993074/work
h5py @ file:///C:/ci/h5py_1637139016753/work
imagecodecs @ file:///C:/ci/imagecodecs_1635529223557/work
imageio @ file:///tmp/build/80754af9/imageio_1617700267927/work
imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1649960641006/work
importlib-metadata @ file:///C:/ci/importlib-metadata_1648562631189/work
joblib @ file:///tmp/build/80754af9/joblib_1635411271373/work
Keras==2.2.4
Keras-Applications @ file:///tmp/build/80754af9/keras-applications_1594366238411/work
Keras-Preprocessing @ file:///tmp/build/80754af9/keras-preprocessing_1612283640596/work
kiwisolver @ file:///C:/ci/kiwisolver_1653274189334/work
locket @ file:///C:/ci/locket_1652885902808/work
Markdown @ file:///C:/ci/markdown_1614364005059/work
matplotlib @ file:///C:/ci/matplotlib-suite_1647423638658/work
mkl-fft==1.3.1
mkl-random @ file:///C:/ci/mkl_random_1626186163140/work
mkl-service==2.4.0
munkres==1.1.4
networkx @ file:///tmp/build/80754af9/networkx_1633639043937/work
numpy @ file:///C:/ci/numpy_and_numpy_base_1650959324056/work
nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6
opencv-python==4.5.5.64
opt-einsum @ file:///tmp/build/80754af9/opt_einsum_1621500238896/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
partd @ file:///opt/conda/conda-bld/partd_1647245470509/work
Pillow==9.0.1
plaidml==0.6.4
plaidml-keras==0.6.4
protobuf==3.20.1
psutil @ file:///C:/ci/psutil_1612298033174/work
pycparser==2.21
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pyreadline==2.1
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
PyWavelets @ file:///C:/ci/pywavelets_1648728036674/work
pywin32==302
PyYAML==6.0
scikit-image @ file:///C:/ci/scikit-image_1648196140109/work
scikit-learn @ file:///C:/ci/scikit-learn_1642599122269/work
scipy @ file:///C:/ci/scipy_1641555141383/work
sip==4.19.13
six @ file:///tmp/build/80754af9/six_1644875935023/work
tensorboard==2.0.0
tensorflow==1.15.0
tensorflow-estimator @ file:///home/builder/adipietro/tf/tensorflow-estimator_1630508970172/work/tensorflow_estimator-2.6.0-py2.py3-none-any.whl
termcolor==1.1.0
threadpoolctl @ file:///Users/ktietz/demo/mc3/conda-bld/threadpoolctl_1629802263681/work
tifffile @ file:///tmp/build/80754af9/tifffile_1627275862826/work
toolz @ file:///tmp/build/80754af9/toolz_1636545406491/work
toposort==1.5
tornado @ file:///C:/ci/tornado_1606935947090/work
tqdm @ file:///C:/ci/tqdm_1650636251715/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
Werkzeug==0.16.1
wincertstore==0.2
wrapt @ file:///C:/ci/wrapt_1638415942355/work
zipp @ file:///C:/ci/zipp_1652274072582/work

============== Conda Packages ==============
# packages in environment at C:\Users\XXXXXXX\MiniConda3\envs\faceswap:
#
# Name                    Version                   Build  Channel
_tflow_select             2.2.0                     eigen  
absl-py 0.15.0 pyhd3eb1b0_0
astor 0.8.1 py37haa95532_0
blas 1.0 mkl
blosc 1.21.0 h19a0ad4_0
brotli 1.0.9 ha925a31_2
bzip2 1.0.8 he774522_0
ca-certificates 2022.4.26 haa95532_0
cached-property 1.5.2 py_0
certifi 2022.5.18.1 py37haa95532_0
cffi 1.15.0 pypi_0 pypi cfitsio 3.470 he774522_6
charls 2.2.0 h6c2663c_0
cloudpickle 2.0.0 pyhd3eb1b0_0
colorama 0.4.4 pyhd3eb1b0_0
cycler 0.11.0 pyhd3eb1b0_0
cytoolz 0.11.0 py37he774522_0
dask-core 2021.10.0 pyhd3eb1b0_0
enum34 1.1.10 pypi_0 pypi fastcluster 1.1.26 py37h9386db6_3 conda-forge ffmpeg 4.3.1 ha925a31_0 conda-forge ffmpy 0.2.3 pypi_0 pypi fonttools 4.25.0 pyhd3eb1b0_0
freetype 2.10.4 hd328e21_0
fsspec 2022.3.0 py37haa95532_0
gast 0.2.2 py37_0
giflib 5.2.1 h62dcd97_0
git 2.34.1 haa95532_0
google-pasta 0.2.0 pyhd3eb1b0_0
grpcio 1.42.0 py37hc60d5dd_0
h5py 3.6.0 py37h3de5c98_0
hdf5 1.10.6 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
imagecodecs 2021.8.26 py37ha1f97ea_0
imageio 2.9.0 pyhd3eb1b0_0
imageio-ffmpeg 0.4.7 pyhd8ed1ab_0 conda-forge importlib-metadata 4.11.3 py37haa95532_0
intel-openmp 2021.4.0 haa95532_3556
joblib 1.1.0 pyhd3eb1b0_0
jpeg 9e h2bbff1b_0
keras 2.2.4 0
keras-applications 1.0.8 py_1
keras-base 2.2.4 py37_0
keras-preprocessing 1.1.2 pyhd3eb1b0_0
kiwisolver 1.4.2 py37hd77b12b_0
lcms2 2.12 h83e58a3_0
lerc 3.0 hd77b12b_0
libaec 1.0.4 h33f27b4_1
libdeflate 1.8 h2bbff1b_5
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.20.1 h23ce68f_0
libtiff 4.2.0 hd0e1b90_0
libwebp 1.2.2 h2bbff1b_0
libzopfli 1.0.3 ha925a31_0
locket 1.0.0 py37haa95532_0
lz4-c 1.9.3 h2bbff1b_1
markdown 3.3.4 py37haa95532_0
matplotlib 3.5.1 py37haa95532_1
matplotlib-base 3.5.1 py37hd77b12b_1
mkl 2021.4.0 haa95532_640
mkl-service 2.4.0 py37h2bbff1b_0
mkl_fft 1.3.1 py37h277e83a_0
mkl_random 1.2.2 py37hf11a4ad_0
munkres 1.1.4 py_0
networkx 2.6.3 pyhd3eb1b0_0
numpy 1.21.5 py37h7a0a035_2
numpy-base 1.21.5 py37hca35cd5_2
nvidia-ml-py3 7.352.1 pypi_0 pypi opencv-python 4.5.5.64 pypi_0 pypi openjpeg 2.4.0 h4fc8c34_0
openssl 1.1.1o h2bbff1b_0
opt_einsum 3.3.0 pyhd3eb1b0_1
packaging 21.3 pyhd3eb1b0_0
partd 1.2.0 pyhd3eb1b0_1
pathlib 1.0.1 py37_2
pillow 9.0.1 py37hdc2b20a_0
pip 21.2.4 py37haa95532_0
plaidml 0.6.4 pypi_0 pypi plaidml-keras 0.6.4 pypi_0 pypi protobuf 3.20.1 py37hd77b12b_0
psutil 5.8.0 py37h2bbff1b_1
pycparser 2.21 pypi_0 pypi pyparsing 3.0.4 pyhd3eb1b0_0
pyqt 5.9.2 py37hd77b12b_6
pyreadline 2.1 py37_1
python 3.7.13 h6244533_0
python-dateutil 2.8.2 pyhd3eb1b0_0
python_abi 3.7 2_cp37m conda-forge pywavelets 1.3.0 py37h2bbff1b_0
pywin32 302 py37h2bbff1b_2
pyyaml 6.0 py37h2bbff1b_1
qt 5.9.7 vc14h73c81de_0
scikit-image 0.19.2 py37hf11a4ad_0
scikit-learn 1.0.2 py37hf11a4ad_1
scipy 1.7.3 py37h0a974cb_0
setuptools 61.2.0 py37haa95532_0
sip 4.19.13 py37hd77b12b_0
six 1.16.0 pyhd3eb1b0_1
snappy 1.1.9 h6c2663c_0
sqlite 3.38.3 h2bbff1b_0
tensorboard 2.0.0 pyhb38c66f_1
tensorflow 1.15.0 eigen_py37h9f89a44_0
tensorflow-base 1.15.0 eigen_py37h07d2309_0
tensorflow-estimator 2.6.0 pyh7b7c402_0
termcolor 1.1.0 py37haa95532_1
threadpoolctl 2.2.0 pyh0d69192_0
tifffile 2021.7.2 pyhd3eb1b0_2
tk 8.6.11 h2bbff1b_1
toolz 0.11.2 pyhd3eb1b0_0
toposort 1.5 py_3 conda-forge tornado 6.1 py37h2bbff1b_0
tqdm 4.64.0 py37haa95532_0
typing_extensions 4.1.1 pyh06a4308_0
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
werkzeug 0.16.1 py_0
wheel 0.37.1 pyhd3eb1b0_0
wincertstore 0.2 py37haa95532_2
wrapt 1.13.3 py37h2bbff1b_2
xz 5.2.5 h8cc25b3_1
yaml 0.2.5 he774522_0
zfp 0.5.5 hd77b12b_6
zipp 3.8.0 py37haa95532_0
zlib 1.2.12 h8cc25b3_2
zstd 1.4.9 h19a0ad4_0 ================= Configs ================== --------- .faceswap --------- backend: amd --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [color.match_hist] threshold: 99.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [scaling.sharpen] method: 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 skip_mux: False [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 8 [mask.vgg_clear] batch-size: 6 [mask.vgg_obstructed] batch-size: 2 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] coverage: 68.75 mask_type: none mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False icnr_init: False conv_aware_init: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4
User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: Immediate Crash During Extraction

Post by torzdf »

This is a weird one. I will need to investigate (it looks like nothing to do with anything you are doing, but everything to do with how keras is trying to open a model internally).

Seems that FaceSwap is not yet ready for AMD GPUs. :?

Honestly, we do what we can. AMD really have not made themselves to be very useable in the AI space. Supporting AMD + Nvidia, in itself, is a huge and very difficult undertaking, not least because the AMD libs we use are no longer updated, but the Nvidia libs very much are. I'm honestly amazed that we still can at all.

By far and the way the best way to get the full faceswap experience is to compile Tensorflow for ROCm support under Linux. However I would not recommend this for even the most hardened AI enthusiast, because it is difficult at best, and outright impossible at worst.

I will try to see if I can tell what is going on here and come back if I find the issue.

My word is final

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

Re: Immediate Crash During Extraction

Post by torzdf »

Ok, looking at the crash log, it appears you are on the 1.0 branch (which you stated, but I misread the original message)

This branch is no longer supported, and unfortunately I cannot spend time troubleshooting it.

Faceswap definitely does work on the latest code, so please run that and post the errors you are facing so we can look to get you up and running.

My word is final

User avatar
Krautzi64
Posts: 7
Joined: Thu May 26, 2022 9:52 am
Has thanked: 1 time

GPU hang during training and extration

Post by Krautzi64 »

I got similar problems with my AMD GPU. now Unfortunatly I can give no error log output, because its just a black screen and the GPU fans rev up.
All started with lots of model curruptions with a old where I continued training. (batch size 1) Now its even in extracting process. A few frames are extracted, 12 to 20 at most.
I tried older drivers and lates ones, no change.
Also reinstalling faceswap.

I got an older AMD Vega 56 8GB, makes "clicking" noises when extracting and training, dies slowly of old age, I dont know. :)
I was looking for a Nvidia GPU for end of the year anyway.

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

Re: Immediate Crash During Extraction

Post by torzdf »

Yeah, sadly I don;t have an AMD GPU to test these things. We definitely do have AMD users using Faceswap without problems though, not that this helps you.

Black screen sounds like a possible power supply issue to be honest.

My word is final

Locked