Sorting Causes Crash - TfDeviceCaptureOp' object has no attribute '_set_device_from_string'

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
reactive
Posts: 1
Joined: Fri Jul 24, 2020 12:47 am

Sorting Causes Crash - TfDeviceCaptureOp' object has no attribute '_set_device_from_string'

Post by reactive »

Heres the log:

Code: Select all

 
07/23/2020 19:42:07 MainProcess     MainThread      logger          log_setup                 INFO     Log level set to: INFO
07/23/2020 19:42:07 MainProcess     MainThread      launcher        execute_script            DEBUG    Executing: sort. PID: 15924
07/23/2020 19:42:09 MainProcess     MainThread      launcher        _test_for_tf_version      DEBUG    Installed Tensorflow Version: 1.15
07/23/2020 19:42:09 MainProcess     MainThread      queue_manager   __init__                  DEBUG    Initializing QueueManager
07/23/2020 19:42:09 MainProcess     MainThread      queue_manager   __init__                  DEBUG    Initialized QueueManager
07/23/2020 19:42:09 MainProcess     MainThread      sort            process                   VERBOSE  No output directory provided. Using input dir as output dir.
07/23/2020 19:42:09 MainProcess     MainThread      config          __init__                  DEBUG    Initializing: Config
07/23/2020 19:42:09 MainProcess     MainThread      config          get_config_file           DEBUG    Config File location: 'C:\Users\ebens\faceswap\config\extract.ini'
07/23/2020 19:42:09 MainProcess     MainThread      _config         set_defaults              DEBUG    Setting defaults
07/23/2020 19:42:09 MainProcess     MainThread      _config         set_globals               DEBUG    Setting global config
07/23/2020 19:42:09 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'global', info: 'Options that apply to all extraction plugins')
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'global', title: 'allow_growth', datatype: '<class 'bool'>', default: 'False', info: '[Nvidia Only]. Enable the Tensorflow GPU `allow_growth` configuration option. This option prevents Tensorflow from allocating all of the GPU VRAM at launch but can lead to higher VRAM fragmentation and slower performance. Should only be enabled if you are having problems running extraction.', rounding: 'None', min_max: None, choices: None, gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: fan_defaults.py, module_path: plugins.extract.align, plugin_type: align
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.extract.align.fan_defaults
07/23/2020 19:42:09 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'align.fan', info: 'FAN Aligner options.Fast on GPU, slow on CPU. Best aligner.')
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'align.fan', title: 'batch-size', datatype: '<class 'int'>', default: '12', info: 'The batch size to use. To a point, higher batch sizes equal better performance, but setting it too high can harm performance.\n\n	Nvidia users: If the batchsize is set higher than the your GPU can accomodate then this will automatically be lowered.\n	AMD users: A batchsize of 8 requires about 4 GB vram.', rounding: '1', min_max: (1, 64), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: align.fan
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: cv2_dnn_defaults.py, module_path: plugins.extract.detect, plugin_type: detect
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.extract.detect.cv2_dnn_defaults
07/23/2020 19:42:09 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'detect.cv2_dnn', info: 'CV2 DNN Detector options.\nA CPU only extractor, is the least reliable, but uses least resources and runs fast on CPU. Use this if not using a GPU and time is important')
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.cv2_dnn', title: 'confidence', datatype: '<class 'int'>', default: '50', info: 'The confidence level at which the detector has succesfully found a face.\nHigher levels will be more discriminating, lower levels will have more false positives.', rounding: '5', min_max: (25, 100), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: detect.cv2_dnn
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: mtcnn_defaults.py, module_path: plugins.extract.detect, plugin_type: detect
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.extract.detect.mtcnn_defaults
07/23/2020 19:42:09 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'detect.mtcnn', info: 'MTCNN Detector options.\nFast on GPU, slow on CPU. Uses fewer resources than other GPU detectors but can often return more false positives.')
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.mtcnn', title: 'minsize', datatype: '<class 'int'>', default: '20', info: 'The minimum size of a face (in pixels) to be accepted as a positive match.\nLower values use significantly more VRAM and will detect more false positives.', rounding: '10', min_max: (20, 1000), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.mtcnn', title: 'threshold_1', datatype: '<class 'float'>', default: '0.6', info: 'First stage threshold for face detection. This stage obtains face candidates.', rounding: '2', min_max: (0.1, 0.9), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.mtcnn', title: 'threshold_2', datatype: '<class 'float'>', default: '0.7', info: 'Second stage threshold for face detection. This stage refines face candidates.', rounding: '2', min_max: (0.1, 0.9), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.mtcnn', title: 'threshold_3', datatype: '<class 'float'>', default: '0.7', info: 'Third stage threshold for face detection. This stage further refines face candidates.', rounding: '2', min_max: (0.1, 0.9), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.mtcnn', title: 'scalefactor', datatype: '<class 'float'>', default: '0.709', info: 'The scale factor for the image pyramid.', rounding: '3', min_max: (0.1, 0.9), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.mtcnn', title: 'batch-size', datatype: '<class 'int'>', default: '8', info: 'The batch size to use. To a point, higher batch sizes equal better performance, but setting it too high can harm performance.\n\n	Nvidia users: If the batchsize is set higher than the your GPU can accomodate then this will automatically be lowered.', rounding: '1', min_max: (1, 64), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: detect.mtcnn
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: s3fd_defaults.py, module_path: plugins.extract.detect, plugin_type: detect
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.extract.detect.s3fd_defaults
07/23/2020 19:42:09 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'detect.s3fd', info: 'S3FD Detector options.Fast on GPU, slow on CPU. Can detect more faces and fewer false positives than other GPU detectors, but is a lot more resource intensive.')
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.s3fd', title: 'confidence', datatype: '<class 'int'>', default: '70', info: 'The confidence level at which the detector has succesfully found a face.\nHigher levels will be more discriminating, lower levels will have more false positives.', rounding: '5', min_max: (25, 100), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'detect.s3fd', title: 'batch-size', datatype: '<class 'int'>', default: '4', info: 'The batch size to use. To a point, higher batch sizes equal better performance, but setting it too high can harm performance.\n\n	Nvidia users: If the batchsize is set higher than the your GPU can accomodate then this will automatically be lowered.\n	AMD users: A batchsize of 8 requires about 2 GB vram.', rounding: '1', min_max: (1, 64), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: detect.s3fd
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: unet_dfl_defaults.py, module_path: plugins.extract.mask, plugin_type: mask
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.extract.mask.unet_dfl_defaults
07/23/2020 19:42:09 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'mask.unet_dfl', info: 'UNET_DFL options. Mask designed to provide smart segmentation of mostly frontal faces.\nThe mask model has been trained by community members. Insert more commentary on testing here. Profile faces may result in sub-par performance.')
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'mask.unet_dfl', title: 'batch-size', datatype: '<class 'int'>', default: '8', info: 'The batch size to use. To a point, higher batch sizes equal better performance, but setting it too high can harm performance.\n\n	Nvidia users: If the batchsize is set higher than the your GPU can accomodate then this will automatically be lowered.', rounding: '1', min_max: (1, 64), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: mask.unet_dfl
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: vgg_clear_defaults.py, module_path: plugins.extract.mask, plugin_type: mask
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.extract.mask.vgg_clear_defaults
07/23/2020 19:42:09 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'mask.vgg_clear', info: 'VGG_Clear options. Mask designed to provide smart segmentation of mostly frontal faces clear of obstructions.\nProfile faces and obstructions may result in sub-par performance.')
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'mask.vgg_clear', title: 'batch-size', datatype: '<class 'int'>', default: '6', info: 'The batch size to use. To a point, higher batch sizes equal better performance, but setting it too high can harm performance.\n\n	Nvidia users: If the batchsize is set higher than the your GPU can accomodate then this will automatically be lowered.', rounding: '1', min_max: (1, 64), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: mask.vgg_clear
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: vgg_obstructed_defaults.py, module_path: plugins.extract.mask, plugin_type: mask
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.extract.mask.vgg_obstructed_defaults
07/23/2020 19:42:09 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'mask.vgg_obstructed', info: 'VGG_Obstructed options. Mask designed to provide smart segmentation of mostly frontal faces.\nThe mask model has been specifically trained to recognize some facial obstructions (hands and eyeglasses). Profile faces may result in sub-par performance.')
07/23/2020 19:42:09 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'mask.vgg_obstructed', title: 'batch-size', datatype: '<class 'int'>', default: '2', info: 'The batch size to use. To a point, higher batch sizes equal better performance, but setting it too high can harm performance.\n\n	Nvidia users: If the batchsize is set higher than the your GPU can accomodate then this will automatically be lowered.', rounding: '1', min_max: (1, 64), choices: [], gui_radio: False, fixed: True, group: None)
07/23/2020 19:42:09 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: mask.vgg_obstructed
07/23/2020 19:42:09 MainProcess     MainThread      config          handle_config             DEBUG    Handling config
07/23/2020 19:42:09 MainProcess     MainThread      config          check_exists              DEBUG    Config file exists: 'C:\Users\ebens\faceswap\config\extract.ini'
07/23/2020 19:42:09 MainProcess     MainThread      config          load_config               VERBOSE  Loading config: 'C:\Users\ebens\faceswap\config\extract.ini'
07/23/2020 19:42:09 MainProcess     MainThread      config          validate_config           DEBUG    Validating config
07/23/2020 19:42:09 MainProcess     MainThread      config          check_config_change       DEBUG    Default config has not changed
07/23/2020 19:42:09 MainProcess     MainThread      config          check_config_choices      DEBUG    Checking config choices
07/23/2020 19:42:09 MainProcess     MainThread      config          check_config_choices      DEBUG    Checked config choices
07/23/2020 19:42:09 MainProcess     MainThread      config          validate_config           DEBUG    Validated config
07/23/2020 19:42:09 MainProcess     MainThread      config          handle_config             DEBUG    Handled config
07/23/2020 19:42:09 MainProcess     MainThread      config          __init__                  DEBUG    Initialized: Config
07/23/2020 19:42:09 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'global', option: 'allow_growth')
07/23/2020 19:42:09 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'bool'>, value: False)
07/23/2020 19:42:09 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'global', option: 'allow_growth')
07/23/2020 19:42:09 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'bool'>, value: False)
07/23/2020 19:42:09 MainProcess     MainThread      vgg_face2_keras __init__                  DEBUG    Initializing VGGFace2: (backend: CPU, allow_growth: False, loglevel: INFO)
07/23/2020 19:42:09 MainProcess     MainThread      utils           download_model            INFO     Downloading model: 'vggface2_resnet50' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v1.10.2/vggface2_resnet50_v2.zip
07/23/2020 19:42:10 MainProcess     MainThread      utils           download_model            DEBUG    header info: {x-amz-id-2: n9zXTRb3JZ6UimRSEebGpdyw7kQ1x60/W21YTBgyFva2kbyFBr64xuskGbYQ+EsJXlIVyeN29b4=\nx-amz-request-id: 9342FCB7A6581D10\nDate: Fri, 24 Jul 2020 00:43:01 GMT\nLast-Modified: Fri, 12 Jul 2019 22:26:21 GMT\nETag: "838180971b59b95f51d2fd6eaea5dc2d"\nContent-Disposition: attachment; filename=vggface2_resnet50_v2.zip\nAccept-Ranges: bytes\nContent-Type: application/octet-stream\nContent-Length: 91407875\nServer: AmazonS3\nConnection: close\n\n}
07/23/2020 19:42:10 MainProcess     MainThread      utils           download_model            DEBUG    Return Code: 200
07/23/2020 19:42:27 MainProcess     MainThread      utils           unzip_model               INFO     Extracting: 'vggface2_resnet50'
07/23/2020 19:42:27 MainProcess     MainThread      utils           write_model               DEBUG    Zipfile: Filenames: ['vggface2_resnet50_v2.h5'], Total Size: 98979928
07/23/2020 19:42:27 MainProcess     MainThread      utils           write_model               DEBUG    Extracting from: 'C:\Users\ebens\faceswap\plugins\extract\recognition\.cache\vggface2_resnet50_v2.zip' to 'C:\Users\ebens\faceswap\plugins\extract\recognition\.cache\vggface2_resnet50_v2.h5'
07/23/2020 19:42:29 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:517: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.\n
07/23/2020 19:42:30 MainProcess     MainThread      module_wrapper  _tfmw_add_deprecation_warning DEBUG    From C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:245: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.\n
Traceback (most recent call last):
  File "C:\Users\ebens\faceswap\lib\cli\launcher.py", line 155, in execute_script
    process.process()
  File "C:\Users\ebens\faceswap\tools\sort\sort.py", line 67, in process
    loglevel=self.args.loglevel)
  File "C:\Users\ebens\faceswap\lib\vgg_face2_keras.py", line 51, in __init__
    self.model = self._get_model(git_model_id, model_filename, backend, allow_growth)
  File "C:\Users\ebens\faceswap\lib\vgg_face2_keras.py", line 101, in _get_model
    "L2_normalize":  L2_normalize
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\engine\saving.py", line 419, in load_model
    model = _deserialize_model(f, custom_objects, compile)
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\engine\saving.py", line 225, in _deserialize_model
    model = model_from_config(model_config, custom_objects=custom_objects)
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\engine\saving.py", line 458, in model_from_config
    return deserialize(config, custom_objects=custom_objects)
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\layers\__init__.py", line 55, in deserialize
    printable_module_name='layer')
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\utils\generic_utils.py", line 145, in deserialize_keras_object
    list(custom_objects.items())))
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\engine\network.py", line 1032, in from_config
    process_node(layer, node_data)
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\engine\network.py", line 991, in process_node
    layer(unpack_singleton(input_tensors), **kwargs)
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\engine\base_layer.py", line 457, in __call__
    output = self.call(inputs, **kwargs)
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\layers\normalization.py", line 185, in call
    epsilon=self.epsilon)
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py", line 1858, in normalize_batch_in_training
    if not _has_nchw_support() and list(reduction_axes) == [0, 2, 3]:
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py", line 291, in _has_nchw_support
    explicitly_on_cpu = _is_current_explicit_device('CPU')
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py", line 266, in _is_current_explicit_device
    device = _get_current_tf_device()
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py", line 247, in _get_current_tf_device
    g._apply_device_functions(op)
  File "C:\Users\ebens\anaconda3\envs\faceswap\lib\site-packages\tensorflow_core\python\framework\ops.py", line 4398, in _apply_device_functions
    op._set_device_from_string(device_string)
AttributeError: '_TfDeviceCaptureOp' object has no attribute '_set_device_from_string'

============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         2f15597 requirements.txt - typofix
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_devices_active:
gpu_driver: No Nvidia driver found gpu_vram:
os_machine: AMD64 os_platform: Windows-10-10.0.18362-SP0 os_release: 10 py_command: C:\Users\ebens\faceswap\tools.py sort -i C:/Users/ebens/Desktop/Faceswap/Projects/Trump -s face -t -1.0 -fp rename -g hist -b 5 -be CPU -lf sort_log.json -L INFO -gui py_conda_version: conda 4.8.3 py_implementation: CPython py_version: 3.7.7 py_virtual_env: True sys_cores: 8 sys_processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel sys_ram: Total: 8078MB, Available: 3727MB, Used: 4351MB, Free: 3727MB =============== Pip Packages =============== absl-py==0.9.0 aiohttp==3.6.2 altgraph==0.17 animation==0.0.6 astor==0.8.0 async-timeout==3.0.1 attrs==19.3.0 blinker==1.4 brotlipy==0.7.0 cachetools==4.1.0 certifi==2020.4.5.1 cffi==1.14.0 chardet==3.0.4 click==7.1.2 cloudpickle @ file:///tmp/build/80754af9/cloudpickle_1594141588948/work colorama==0.4.3 cryptography==2.9.2 cycler==0.10.0 cytoolz==0.10.1 dask @ file:///tmp/build/80754af9/dask-core_1594156306305/work decorator==4.4.2 dhooks==1.1.3 discord.py==1.3.3 emoji==0.5.4 fastcluster==1.1.26 ffmpy==0.2.3 future==0.18.2 gast==0.2.2 google-auth @ file:///tmp/build/80754af9/google-auth_1594357566944/work google-auth-oauthlib==0.4.1 google-pasta==0.2.0 grpcio==1.27.2 h5py==2.10.0 idna==2.9 imageio @ file:///tmp/build/80754af9/imageio_1594161405741/work imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1589202782679/work joblib @ file:///tmp/build/80754af9/joblib_1594236160679/work Keras==2.2.4 Keras-Applications @ file:///tmp/build/80754af9/keras-applications_1594366238411/work Keras-Preprocessing==1.1.0 kiwisolver==1.2.0 Markdown==3.1.1 matplotlib @ file:///C:/ci/matplotlib-base_1592846084747/work mkl-fft==1.1.0 mkl-random==1.1.1 mkl-service==2.3.0 multidict==4.7.6 networkx @ file:///tmp/build/80754af9/networkx_1594377231366/work numpy==1.18.5 nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6 oauthlib==3.1.0 olefile==0.46 opencv-python==4.3.0.36 opt-einsum==3.1.0 pefile==2019.4.18 Pillow==7.1.2 playsound==1.2.2 pluginbase==1.0.0 protobuf==3.12.3 psutil==5.7.0 py-cpuinfo==5.0.0 pyasn1==0.4.8 pyasn1-modules==0.2.7 pycparser==2.20 PyInstaller==3.6 PyJWT==1.7.1 PyNaCl==1.3.0 pyOpenSSL @ file:///tmp/build/80754af9/pyopenssl_1594392929924/work pyparsing==2.4.7 pyperclip==1.8.0 pyreadline==2.1 PySide2==5.14.2.1 PySimpleGUI==4.11.0 PySimpleGUIQt==0.34.0 PySocks==1.7.1 python-dateutil==2.8.1 PyWavelets==1.1.1 pywin32==227 pywin32-ctypes==0.2.0 PyYAML==5.3.1 requests==2.23.0 requests-oauthlib==1.3.0 rsa==4.0 scikit-image==0.16.2 scikit-learn @ file:///C:/ci/scikit-learn_1592847564598/work scipy @ file:///C:/ci/scipy_1592916958183/work selenium==3.141.0 shiboken2==5.14.2.1 six==1.15.0 tensorboard==2.2.1 tensorboard-plugin-wit==1.6.0 tensorflow==1.15.0 tensorflow-estimator==1.15.1 termcolor==1.1.0 threadpoolctl @ file:///tmp/tmp9twdgx9k/threadpoolctl-2.1.0-py3-none-any.whl toolz==0.10.0 toposort==1.5 tornado==6.0.4 tqdm @ file:///tmp/build/80754af9/tqdm_1593446365756/work urllib3==1.25.9 websocket-client==0.57.0 websockets==8.1 Werkzeug==0.16.1 win-inet-pton==1.1.0 wincertstore==0.2 wrapt==1.12.1 yarl==1.4.2 youtube-dl==2020.5.8 ============== Conda Packages ============== # packages in environment at C:\Users\ebens\anaconda3\envs\faceswap: # # Name Version Build Channel _tflow_select 2.2.0 eigen
absl-py 0.9.0 py37_0
astor 0.8.0 py37_0
blas 1.0 mkl
blinker 1.4 py37_0
brotlipy 0.7.0 py37he774522_1000
ca-certificates 2020.6.24 0
cachetools 4.1.0 py_1
certifi 2020.6.20 py37_0
cffi 1.14.0 py37h7a1dbc1_0
chardet 3.0.4 py37_1003
click 7.1.2 py_0
cloudpickle 1.5.0 py_0
cryptography 2.9.2 py37h7a1dbc1_0
cycler 0.10.0 py37_0
cytoolz 0.10.1 py37he774522_0
dask-core 2.20.0 py_0
decorator 4.4.2 py_0
fastcluster 1.1.26 py37h9b59f54_1 conda-forge ffmpeg 4.3 ha925a31_0 conda-forge ffmpy 0.2.3 pypi_0 pypi freetype 2.10.2 hd328e21_0
gast 0.2.2 py37_0
git 2.23.0 h6bb4b03_0
google-auth 1.17.2 py_0
google-auth-oauthlib 0.4.1 py_2
google-pasta 0.2.0 py_0
grpcio 1.27.2 py37h351948d_0
h5py 2.10.0 py37h5e291fa_0
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.10 py_0
imageio 2.9.0 py_0
imageio-ffmpeg 0.4.2 py_0 conda-forge intel-openmp 2020.1 216
joblib 0.16.0 py_0
jpeg 9b hb83a4c4_2
keras 2.2.4 0
keras-applications 1.0.8 py_1
keras-base 2.2.4 py37_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.2.0 py37h74a9793_0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.12.3 h7bd577a_0
libtiff 4.1.0 h56a325e_1
lz4-c 1.9.2 h62dcd97_0
markdown 3.1.1 py37_0
matplotlib 3.2.2 0
matplotlib-base 3.2.2 py37h64f37c6_0
mkl 2020.1 216
mkl-service 2.3.0 py37hb782905_0
mkl_fft 1.1.0 py37h45dec08_0
mkl_random 1.1.1 py37h47e9c7a_0
networkx 2.4 py_1
numpy 1.18.5 py37h6530119_0
numpy-base 1.18.5 py37hc3f5095_0
nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 py_0
olefile 0.46 py37_0
opencv-python 4.3.0.36 pypi_0 pypi openssl 1.1.1g he774522_0
opt_einsum 3.1.0 py_0
pathlib 1.0.1 py37_2
pillow 7.2.0 py37hcc1f983_0
pip 20.1.1 py37_1
protobuf 3.12.3 py37h33f27b4_0
pyasn1 0.4.8 py_0
pyasn1-modules 0.2.7 py_0
pycparser 2.20 py_2
pyjwt 1.7.1 py37_0
pyopenssl 19.1.0 py_1
pyparsing 2.4.7 py_0
pyqt 5.9.2 py37h6538335_2
pyreadline 2.1 py37_1
pysocks 1.7.1 py37_1
python 3.7.7 h81c818b_4
python-dateutil 2.8.1 py_0
python_abi 3.7 1_cp37m conda-forge pywavelets 1.1.1 py37he774522_0
pywin32 227 py37he774522_1
pyyaml 5.3.1 py37he774522_1
qt 5.9.7 vc14h73c81de_0
requests 2.24.0 py_0
requests-oauthlib 1.3.0 py_0
rsa 4.0 py_0
scikit-image 0.16.2 py37h47e9c7a_0
scikit-learn 0.23.1 py37h25d0782_0
scipy 1.5.0 py37h9439919_0
setuptools 49.2.0 py37_0
sip 4.19.8 py37h6538335_0
six 1.15.0 py_0
sqlite 3.32.3 h2a8f88b_0
tensorboard 2.2.1 pyh532a8cf_0
tensorboard-plugin-wit 1.6.0 py_0
tensorflow 1.15.0 eigen_py37h9f89a44_0
tensorflow-base 1.15.0 eigen_py37h07d2309_0
tensorflow-estimator 1.15.1 pyh2649769_0
termcolor 1.1.0 py37_1
threadpoolctl 2.1.0 pyh5ca1d4c_0
tk 8.6.10 he774522_0
toolz 0.10.0 py_0
toposort 1.5 py_3 conda-forge tornado 6.0.4 py37he774522_1
tqdm 4.47.0 py_0
urllib3 1.25.9 py_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_3
werkzeug 0.16.1 py_0
wheel 0.34.2 py37_0
win_inet_pton 1.1.0 py37_0
wincertstore 0.2 py37_0
wrapt 1.12.1 py37he774522_1
xz 5.2.5 h62dcd97_0
yaml 0.2.5 he774522_0
zlib 1.2.11 h62dcd97_4
zstd 1.4.5 ha9fde0e_0 ================= Configs ================== --------- .faceswap --------- backend: cpu --------- 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 [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: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: Sorting Causes Crash - TfDeviceCaptureOp' object has no attribute '_set_device_from_string'

Post by torzdf »

I would guess that somehow the download of the vgg_face model got corrupted.

Try deleting the contents of <faceswap folder>/plugins/extract/recognition/.cache/ and try again

My word is final

Locked