Error when extracting on Mac using AMD GPU

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
shairazi
Posts: 2
Joined: Mon Jun 15, 2020 3:29 pm

Error when extracting on Mac using AMD GPU

Post by shairazi »

Hey guys, I'm getting this error when extracting on my macbook using the amd gpu.

Here's the log:

Code: Select all

06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Num plugins for phase: 0, scaling: 1.0, vram required: 0.0
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Required: 0.0, available: 3840. Single plugin has higher requirements than available or forcing single process: 'mask_0'
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Num plugins for phase: 0, scaling: 1.0, vram required: 0.0
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Required: 0.0, available: 3840. Single plugin has higher requirements than available or forcing single process: 'mask_1'
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _set_phases               DEBUG    Total phases: 4, Phases: [['detect'], ['align'], ['mask_0'], ['mask_1']]
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _set_extractor_batchsize  DEBUG    Backend is not Nvidia. Not updating batchsize requirements
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_detect_in', maxsize: 1)
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_detect_in')
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_detect_in'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_detect_in'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_align_in', maxsize: 1)
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_align_in')
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_align_in'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_align_in'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_mask_0_in', maxsize: 1)
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_mask_0_in')
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_mask_0_in'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_mask_0_in'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_mask_1_in', maxsize: 1)
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_mask_1_in')
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_mask_1_in'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_mask_1_in'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'extract0_mask_1_out', maxsize: 1)
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'extract0_mask_1_out')
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'extract0_mask_1_out'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'extract0_mask_1_out'
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _add_queues               DEBUG    Queues: {'extract0_detect_in': <queue.Queue object at 0x7f80c1d6fe10>, 'extract0_align_in': <queue.Queue object at 0x7f80c1d60490>, 'extract0_mask_0_in': <queue.Queue object at 0x7f80c1d72650>, 'extract0_mask_1_in': <queue.Queue object at 0x7f80c1d72310>, 'extract0_mask_1_out': <queue.Queue object at 0x7f80c1d72e90>}
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        __init__                  DEBUG    Initialized Extractor
06/15/2020 23:28:42 MainProcess     MainThread      extract         __init__                  DEBUG    Initialized Extract
06/15/2020 23:28:42 MainProcess     MainThread      extract         process                   INFO     Starting, this may take a while...
06/15/2020 23:28:42 MainProcess     MainThread      extract         _threaded_redirector      DEBUG    Threading task: (Task: 'load')
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: '_load', thread_count: 1)
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: '_load'
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): '_load'
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: '_load_0'
06/15/2020 23:28:42 MainProcess     _load_0         extract         _load                     DEBUG    Load Images: Start
06/15/2020 23:28:42 MainProcess     _load_0         image           load                      DEBUG    Initializing Load Generator
06/15/2020 23:28:42 MainProcess     _load_0         image           _set_thread               DEBUG    Setting thread
06/15/2020 23:28:42 MainProcess     _load_0         multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'ImagesLoader', thread_count: 1)
06/15/2020 23:28:42 MainProcess     _load_0         multithreading  __init__                  DEBUG    Initialized MultiThread: 'ImagesLoader'
06/15/2020 23:28:42 MainProcess     _load_0         image           _set_thread               DEBUG    Set thread: <lib.multithreading.MultiThread object at 0x7f80c1d72f50>
06/15/2020 23:28:42 MainProcess     _load_0         multithreading  start                     DEBUG    Starting thread(s): 'ImagesLoader'
06/15/2020 23:28:42 MainProcess     _load_0         multithreading  start                     DEBUG    Starting thread 1 of 1: 'ImagesLoader_0'
06/15/2020 23:28:42 MainProcess     ImagesLoader_0  image           _process                  DEBUG    Load iterator: <bound method ImagesLoader._from_video of <lib.image.ImagesLoader object at 0x7f80c0282ad0>>
06/15/2020 23:28:42 MainProcess     ImagesLoader_0  image           _from_video               DEBUG    Loading frames from video: '/Users/shairazi/Documents/Faceswap Test/data_dst.mp4'
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads '_load': 1
06/15/2020 23:28:42 MainProcess     MainThread      image           __init__                  DEBUG    Initializing ImagesSaver: (path: /Users/shairazi/Documents/Faceswap Test/Output, queue_size: 8, as_bytes: True)
06/15/2020 23:28:42 MainProcess     MainThread      image           __init__                  DEBUG    Initializing ImagesSaver: (path: /Users/shairazi/Documents/Faceswap Test/Output, queue_size: 8, args: None)
06/15/2020 23:28:42 MainProcess     _load_0         multithreading  start                     DEBUG    Started all threads 'ImagesLoader': 1
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'ImagesSaver'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'ImagesSaver', maxsize: 8)
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'ImagesSaver')
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'ImagesSaver'
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launching detect plugin
06/15/2020 23:28:42 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    in_qname: extract0_detect_in, out_qname: extract0_align_in
06/15/2020 23:28:42 MainProcess     MainThread      _base           initialize                DEBUG    initialize Detect: (args: (), kwargs: {'in_queue': <queue.Queue object at 0x7f80c1d6fe10>, 'out_queue': <queue.Queue object at 0x7f80c1d60490>})
06/15/2020 23:28:42 MainProcess     MainThread      _base           initialize                INFO     Initializing S3FD (Detect)...
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'detect0_predict_s3fd'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'detect0_predict_s3fd', maxsize: 1)
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'detect0_predict_s3fd')
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'detect0_predict_s3fd'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'detect0_post_s3fd'
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'detect0_post_s3fd', maxsize: 1)
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'detect0_post_s3fd')
06/15/2020 23:28:42 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'detect0_post_s3fd'
06/15/2020 23:28:42 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiling detect threads
06/15/2020 23:28:42 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 0x7f80c03e7ed0>>, in_queue: <queue.Queue object at 0x7f80c1d6fe10>, out_queue: <queue.Queue object at 0x7f80c1d7e610>)
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'detect_s3fd_input', thread_count: 1)
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'detect_s3fd_input'
06/15/2020 23:28:42 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: detect_s3fd_input
06/15/2020 23:28:42 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 0x7f80c03e7ed0>>, in_queue: <queue.Queue object at 0x7f80c1d7e610>, out_queue: <queue.Queue object at 0x7f80c1d7e710>)
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'detect_s3fd_predict', thread_count: 1)
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'detect_s3fd_predict'
06/15/2020 23:28:42 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: detect_s3fd_predict
06/15/2020 23:28:42 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 0x7f80c03e7ed0>>, in_queue: <queue.Queue object at 0x7f80c1d7e710>, out_queue: <queue.Queue object at 0x7f80c1d60490>)
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'detect_s3fd_output', thread_count: 1)
06/15/2020 23:28:42 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'detect_s3fd_output'
06/15/2020 23:28:42 MainProcess     MainThread      _base           _add_thread               DEBUG    Added thread: detect_s3fd_output
06/15/2020 23:28:42 MainProcess     MainThread      _base           _compile_threads          DEBUG    Compiled detect threads: [<lib.multithreading.MultiThread object at 0x7f80c1d7e810>, <lib.multithreading.MultiThread object at 0x7f80c1d7e8d0>, <lib.multithreading.MultiThread object at 0x7f80c1d7e890>]
06/15/2020 23:28:42 MainProcess     MainThread      s3fd            __init__                  DEBUG    Initializing: S3fd: (model_path: '/Users/shairazi/faceswap/plugins/extract/detect/.cache/s3fd_keras_v1.h5', allow_growth: False)
06/15/2020 23:28:42 MainProcess     MainThread      session         load_model                VERBOSE  Initializing plugin model: S3FD
06/15/2020 23:28:42 MainProcess     MainThread      library         _logger_callback          INFO     Opening device "opencl_amd_radeon_pro_555x_compute_engine.0"
06/15/2020 23:28:43 MainProcess     MainThread      s3fd            __init__                  DEBUG    Initialized: S3fd
06/15/2020 23:28:43 MainProcess     MainThread      _base           initialize                INFO     Initialized S3FD (Detect) with batchsize of 4
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'detect_s3fd_input'
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'detect_s3fd_input_0'
06/15/2020 23:28:43 MainProcess     detect_s3fd_input_0 _base           _thread_process           DEBUG    threading: (function: 'process_input')
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'detect_s3fd_input': 1
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'detect_s3fd_predict'
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'detect_s3fd_predict_0'
06/15/2020 23:28:43 MainProcess     detect_s3fd_predict_0 _base           _thread_process           DEBUG    threading: (function: '_predict')
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'detect_s3fd_predict': 1
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'detect_s3fd_output'
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'detect_s3fd_output_0'
06/15/2020 23:28:43 MainProcess     detect_s3fd_output_0 _base           _thread_process           DEBUG    threading: (function: 'process_output')
06/15/2020 23:28:43 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'detect_s3fd_output': 1
06/15/2020 23:28:43 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launched detect plugin
06/15/2020 23:28:43 MainProcess     MainThread      pipeline        detected_faces            DEBUG    Running Detection. Phase: '['detect']'
06/15/2020 23:28:48 MainProcess     detect_s3fd_output_0 multithreading  run                       DEBUG    Error in thread (detect_s3fd_output_0): cannot convert float infinity to integer
06/15/2020 23:28:48 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'OverflowError'>, OverflowError('cannot convert float infinity to integer'), <traceback object at 0x7f80c1db9e10>)]
Traceback (most recent call last):
  File "/Users/shairazi/faceswap/lib/cli/launcher.py", line 155, in execute_script
    process.process()
  File "/Users/shairazi/faceswap/scripts/extract.py", line 116, in process
    self._run_extraction()
  File "/Users/shairazi/faceswap/scripts/extract.py", line 212, in _run_extraction
    for idx, extract_media in enumerate(status_bar):
  File "/Users/shairazi/opt/anaconda3/envs/faceswap/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
    for obj in iterable:
  File "/Users/shairazi/faceswap/plugins/extract/pipeline.py", line 229, in detected_faces
    if self._check_and_raise_error():
  File "/Users/shairazi/faceswap/plugins/extract/pipeline.py", line 648, in _check_and_raise_error
    if plugin.check_and_raise_error():
  File "/Users/shairazi/faceswap/plugins/extract/_base.py", line 300, in check_and_raise_error
    err = thread.check_and_raise_error()
  File "/Users/shairazi/faceswap/lib/multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "/Users/shairazi/faceswap/lib/multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/shairazi/faceswap/plugins/extract/_base.py", line 433, in _thread_process
    for item in self.finalize(batch):
  File "/Users/shairazi/faceswap/plugins/extract/detect/_base.py", line 158, in finalize
    for faces in batch["prediction"]]
  File "/Users/shairazi/faceswap/plugins/extract/detect/_base.py", line 158, in <listcomp>
    for faces in batch["prediction"]]
  File "/Users/shairazi/faceswap/plugins/extract/detect/_base.py", line 157, in <listcomp>
    for face in faces]
  File "/Users/shairazi/faceswap/plugins/extract/detect/_base.py", line 195, in to_detected_face
    y=int(round(top)),
OverflowError: cannot convert float infinity to integer

============ System Information ============
encoding:            UTF-8
git_branch:          master
git_commits:         127d3db Dependencies update (#1028)
gpu_cuda:            Unsupported OS. Check Conda packages for Conda Cuda
gpu_cudnn:           Unsupported OS. Check Conda packages for Conda cuDNN
gpu_devices:         GPU_0: AMD - AMD Radeon Pro 555X Compute Engine (experimental)
gpu_devices_active:  GPU_0
gpu_driver:          ['1.2 (Jun  2 2020 00:13:49)']
gpu_vram:            GPU_0: 4096MB
os_machine:          x86_64
os_platform:         Darwin-19.6.0-x86_64-i386-64bit
os_release:          19.6.0
py_command:          /Users/shairazi/faceswap/faceswap.py extract -i /Users/shairazi/Documents/Faceswap Test/data_dst.mp4 -o /Users/shairazi/Documents/Faceswap Test/Output -D s3fd -A fan -nm none -min 0 -l 0.4 -een 1 -sz 256 -si 0 -L INFO -gui
py_conda_version:    conda 4.8.2
py_implementation:   CPython
py_version:          3.7.7
py_virtual_env:      True
sys_cores:           12
sys_processor:       i386
sys_ram:             Total: 16384MB, Available: 6590MB, Used: 9398MB, Free: 119MB

=============== Pip Packages ===============
absl-py==0.9.0
astor==0.8.0
certifi==2020.4.5.1
cffi==1.14.0
cloudpickle==1.4.1
cycler==0.10.0
cytoolz==0.10.1
dask==2.17.2
decorator==4.4.2
enum34==1.1.10
fastcluster==1.1.26
ffmpy==0.2.3
gast==0.3.3
grpcio==1.16.1
h5py==2.10.0
imageio==2.8.0
imageio-ffmpeg==0.4.2
joblib==0.15.1
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.2.0
Markdown==3.1.1
matplotlib==3.1.3
mkl-fft==1.0.15
mkl-random==1.1.1
mkl-service==2.3.0
networkx==2.4
numpy==1.18.1
nvidia-ml-py3==7.352.1
olefile==0.46
opencv-python==4.2.0.34
pathlib==1.0.1
Pillow==7.1.2
plaidml==0.6.4
plaidml-keras==0.6.4
protobuf==3.12.3
psutil==5.7.0
pycparser==2.20
pynvx==1.0.0
pyparsing==2.4.7
python-dateutil==2.8.1
PyWavelets==1.1.1
PyYAML==5.3.1
scikit-image==0.16.2
scikit-learn==0.22.1
scipy==1.4.1
six==1.15.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.4
tqdm==4.46.0
Werkzeug==1.0.1
wrapt==1.12.1

============== Conda Packages ==============
# packages in environment at /Users/shairazi/opt/anaconda3/envs/faceswap:
#
# Name                    Version                   Build  Channel
_tflow_select             2.3.0                       mkl  
absl-py 0.9.0 py37_0
astor 0.8.0 py37_0
blas 1.0 mkl
c-ares 1.15.0 h1de35cc_1001
ca-certificates 2020.1.1 0
certifi 2020.4.5.1 py37_0
cffi 1.14.0 pypi_0 pypi cloudpickle 1.4.1 py_0
cycler 0.10.0 py37_0
cytoolz 0.10.1 py37h1de35cc_0
dask-core 2.17.2 py_0
decorator 4.4.2 py_0
enum34 1.1.10 pypi_0 pypi fastcluster 1.1.26 pypi_0 pypi ffmpy 0.2.3 pypi_0 pypi freetype 2.9.1 hb4e5f40_0
gast 0.3.3 py_0
grpcio 1.16.1 py37h044775b_1
h5py 2.10.0 py37h3134771_0
hdf5 1.10.4 hfa1e0ec_0
imageio 2.8.0 py_0
imageio-ffmpeg 0.4.2 pypi_0 pypi intel-openmp 2019.4 233
joblib 0.15.1 py_0
jpeg 9b he5867d9_2
keras 2.2.4 0
keras-applications 1.0.8 py_0
keras-base 2.2.4 py37_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.2.0 py37h04f5b5a_0
libcxx 10.0.0 1
libedit 3.1.20181209 hb402a30_0
libffi 3.3 h0a44026_1
libgfortran 3.0.1 h93005f0_2
libpng 1.6.37 ha441bb4_0
libprotobuf 3.12.3 hab81aa3_0
libtiff 4.1.0 hcb84e12_1
llvm-openmp 10.0.0 h28b9765_0
lz4-c 1.9.2 h0a44026_0
markdown 3.1.1 py37_0
matplotlib 3.1.3 py37_0
matplotlib-base 3.1.3 py37h9aa3819_0
mkl 2019.4 233
mkl-service 2.3.0 py37hfbe908c_0
mkl_fft 1.0.15 py37h5e564d8_0
mkl_random 1.1.1 py37h959d312_0
ncurses 6.2 h0a44026_1
networkx 2.4 py_0
numpy 1.18.1 py37h7241aed_0
numpy-base 1.18.1 py37h3304bdc_1
nvidia-ml-py3 7.352.1 pypi_0 pypi olefile 0.46 py37_0
opencv-python 4.2.0.34 pypi_0 pypi openssl 1.1.1g h1de35cc_0
pathlib 1.0.1 py37_1
pillow 7.1.2 py37h4655f20_0
pip 20.0.2 py37_3
plaidml 0.6.4 pypi_0 pypi plaidml-keras 0.6.4 pypi_0 pypi protobuf 3.12.3 py37hb1e8313_0
psutil 5.7.0 py37h1de35cc_0
pycparser 2.20 pypi_0 pypi pynvx 1.0.0 pypi_0 pypi pyparsing 2.4.7 py_0
python 3.7.7 hf48f09d_4
python-dateutil 2.8.1 py_0
pywavelets 1.1.1 py37h1de35cc_0
pyyaml 5.3.1 py37h1de35cc_0
readline 8.0 h1de35cc_0
scikit-image 0.16.2 py37h6c726b0_0
scikit-learn 0.22.1 py37h27c97d8_0
scipy 1.4.1 py37h9fa6033_0
setuptools 47.1.1 py37_0
six 1.15.0 py_0
sqlite 3.31.1 h5c1f38d_1
tensorboard 1.14.0 py37h80053f4_0
tensorflow 1.14.0 mkl_py37h085be34_0
tensorflow-base 1.14.0 mkl_py37h5a24fda_0
tensorflow-estimator 1.14.0 py_0
termcolor 1.1.0 py37_1
tk 8.6.8 ha441bb4_0
toolz 0.10.0 py_0
toposort 1.5 pypi_0 pypi tornado 6.0.4 py37h1de35cc_1
tqdm 4.46.0 py_0
werkzeug 1.0.1 py_0
wheel 0.34.2 py37_0
wrapt 1.12.1 py37h1de35cc_1
xz 5.2.5 h1de35cc_0
yaml 0.1.7 hc338f04_2
zlib 1.2.11 h1de35cc_3
zstd 1.4.4 h1990bb4_3 ================= Configs ================== --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.match_hist] threshold: 99.0 [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate [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 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [scaling.sharpen] method: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 --------- 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 --------- .faceswap --------- backend: amd --------- extract.ini --------- [global] allow_growth: False [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.cv2_dnn] confidence: 50 [detect.s3fd] confidence: 70 batch-size: 4 [align.fan] batch-size: 12 [mask.unet_dfl] batch-size: 8 [mask.vgg_obstructed] batch-size: 2 [mask.vgg_clear] batch-size: 6 --------- train.ini --------- [global] coverage: 68.75 mask_type: none mask_blur_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.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.dlight] features: best details: good output_size: 256 [model.villain] lowmem: False [model.original] lowmem: False [model.dfl_h128] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4
by bryanlyon » Wed Jun 17, 2020 2:51 am

AMD is supported, but it does run into issues from time to time. My suggestion is to try MTCNN instead of S3FD as I seem to recall there were some issues in the past with that (which have been fixed but may not be working on Mac). Sadly none of the main devs have AMD and none of us have Macs so we can only provide limited support for either.

Go to full post
User avatar
Tekniklee
Posts: 37
Joined: Fri Jan 31, 2020 6:03 pm
Has thanked: 7 times
Been thanked: 3 times

Re: Error when extracting on Mac using AMD GPU

Post by Tekniklee »

I could be wrong on this, but I think FaceSwap currently only works with NVidia GPU's. The only other option is CPU (Intel or AMD okay there).

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: Error when extracting on Mac using AMD GPU

Post by bryanlyon »

AMD is supported, but it does run into issues from time to time. My suggestion is to try MTCNN instead of S3FD as I seem to recall there were some issues in the past with that (which have been fixed but may not be working on Mac). Sadly none of the main devs have AMD and none of us have Macs so we can only provide limited support for either.

User avatar
shairazi
Posts: 2
Joined: Mon Jun 15, 2020 3:29 pm

Re: Error when extracting on Mac using AMD GPU

Post by shairazi »

oh cool. seems to work with MTCNN.
Thanks for the help!

Locked