Hi, new here and trying faceswap for the first time. 4G of VRAM, no other applications open, and trying to extract from a folder containing 7 small jpegs. I can't believe I actually am out of VRAM, yet that is apparently what the app is saying.
I've pasted some of the log (Full log exceeds posting limit). Any guidance welcome. Thanks
Code: Select all
11/16/2020 19:53:52 MainProcess MainThread logger log_setup INFO Log level set to: DEBUG
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG Initializing GPUStats
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG OS is not macOS. Trying pynvml
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG GPU Device count: 1
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG Active GPU Devices: [0]
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG GPU Handles found: 1
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG GPU Driver: 451.48
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG GPU Devices: ['GeForce GTX 1650']
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG GPU VRAM: [4096.0]
11/16/2020 19:53:52 MainProcess MainThread gpu_stats _log DEBUG Initialized GPUStats
11/16/2020 19:53:52 MainProcess MainThread launcher _configure_backend DEBUG Executing: extract. PID: 2920
11/16/2020 19:53:52 MainProcess MainThread tpu_cluster_resolver <module> DEBUG Falling back to TensorFlow client; we recommended you install the Cloud TPU client directly with pip install cloud-tpu-client.
11/16/2020 19:53:53 MainProcess MainThread launcher _test_for_tf_version DEBUG Installed Tensorflow Version: 2.2
11/16/2020 19:53:53 MainProcess MainThread queue_manager __init__ DEBUG Initializing QueueManager
11/16/2020 19:53:53 MainProcess MainThread queue_manager __init__ DEBUG Initialized QueueManager
...
11/16/2020 19:53:53 MainProcess MainThread image _get_fps DEBUG 25.0
11/16/2020 19:53:53 MainProcess MainThread utils get_image_paths DEBUG Scanned Folder contains 8 files
11/16/2020 19:53:53 MainProcess MainThread utils get_image_paths DEBUG Returning 7 images
11/16/2020 19:53:53 MainProcess MainThread image _get_count_and_filelist DEBUG count: 7
...
11/16/2020 19:53:53 MainProcess MainThread serializer get_serializer DEBUG <lib.serializer._PickleSerializer object at 0x0000023B6F9174C0>
11/16/2020 19:53:53 MainProcess MainThread serializer get_serializer DEBUG <lib.serializer._CompressedSerializer object at 0x0000023B49AAB490>
11/16/2020 19:53:53 MainProcess MainThread alignments _get_location DEBUG Getting location: (folder: 'C:\Users\ks\Desktop\faces', filename: 'alignments')
...
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG Initializing GPUStats
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG OS is not macOS. Trying pynvml
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG GPU Device count: 1
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG Active GPU Devices: [0]
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG GPU Handles found: 1
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG GPU Driver: 451.48
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG GPU Devices: ['GeForce GTX 1650']
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG GPU VRAM: [4096.0]
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG Initialized GPUStats
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG OS is not macOS. Trying pynvml
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG GPU Device count: 1
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG Active GPU Devices: [0]
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG GPU Handles found: 1
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG GPU VRAM free: [3504.90234375]
11/16/2020 19:53:53 MainProcess MainThread gpu_stats _log DEBUG Active GPU Card with most free VRAM: {'card_id': 0, 'device': 'GeForce GTX 1650', 'free': 3504.90234375, 'total': 4096.0}
11/16/2020 19:53:53 MainProcess MainThread pipeline _get_vram_stats DEBUG {'count': 1, 'device': 'GeForce GTX 1650', 'vram_free': 3248, 'vram_total': 4096}
11/16/2020 19:53:53 MainProcess MainThread pipeline _load_detect DEBUG Loading Detector: 's3fd'
11/16/2020 19:53:53 MainProcess MainThread plugin_loader _import INFO Loading Detect from S3Fd plugin...
11/16/2020 19:53:53 MainProcess MainThread utils find_spec DEBUG Importing 'tf.keras' as keras for backend: 'nvidia'
11/16/2020 19:53:53 MainProcess MainThread utils find_spec DEBUG Scanning: 'C:\Users\ks\faceswap\tensorflow_core\python\keras\api\_v2' for 'keras'
...
11/16/2020 19:53:53 MainProcess MainThread utils find_spec DEBUG Scanning: 'C:\Users\ks\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\api\_v2' for 'keras'
11/16/2020 19:53:53 MainProcess MainThread utils find_spec DEBUG Found spec: ModuleSpec(name='keras', loader=<_frozen_importlib_external.SourceFileLoader object at 0x0000023B6FBCB100>, origin='C:\\Users\\ks\\MiniConda3\\envs\\faceswap\\lib\\site-packages\\tensorflow\\python\\keras\\api\\_v2\\keras\\__init__.py', submodule_search_locations=['C:\\Users\\ks\\MiniConda3\\envs\\faceswap\\lib\\site-packages\\tensorflow\\python\\keras\\api\\_v2\\keras'])
11/16/2020 19:53:53 MainProcess MainThread _base __init__ DEBUG Initializing Detect: (rotation: None, min_size: 20)
11/16/2020 19:53:53 MainProcess MainThread _base __init__ DEBUG Initializing Detect: (git_model_id: 11, model_filename: s3fd_keras_v2.h5, exclude_gpus: None, configfile: None, instance: 0, )
11/16/2020 19:53:53 MainProcess MainThread config __init__ DEBUG Initializing: Config
11/16/2020 19:53:53 MainProcess MainThread config get_config_file DEBUG Config File location: 'C:\Users\ks\faceswap\config\extract.ini'
11/16/2020 19:53:53 MainProcess MainThread _config set_defaults DEBUG Setting defaults
11/16/2020 19:53:53 MainProcess MainThread _config set_globals DEBUG Setting global config
11/16/2020 19:53:53 MainProcess MainThread config add_section DEBUG Add section: (title: 'global', info: 'Options that apply to all extraction plugins')
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Adding defaults: (filename: fan_defaults.py, module_path: plugins.extract.align, plugin_type: align
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Importing defaults module: plugins.extract.align.fan_defaults
11/16/2020 19:53:53 MainProcess MainThread config add_section DEBUG Add section: (title: 'align.fan', info: 'FAN Aligner options.\nFast on GPU, slow on CPU. Best aligner.')
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Added defaults: align.fan
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Adding defaults: (filename: cv2_dnn_defaults.py, module_path: plugins.extract.detect, plugin_type: detect
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Importing defaults module: plugins.extract.detect.cv2_dnn_defaults
11/16/2020 19:53:53 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')
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Added defaults: detect.cv2_dnn
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Adding defaults: (filename: mtcnn_defaults.py, module_path: plugins.extract.detect, plugin_type: detect
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Importing defaults module: plugins.extract.detect.mtcnn_defaults
11/16/2020 19:53:53 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.')
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Added defaults: detect.mtcnn
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Adding defaults: (filename: s3fd_defaults.py, module_path: plugins.extract.detect, plugin_type: detect
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Importing defaults module: plugins.extract.detect.s3fd_defaults
11/16/2020 19:53:53 MainProcess MainThread config add_section DEBUG Add section: (title: 'detect.s3fd', info: 'S3FD Detector options.\nFast on GPU, slow on CPU. Can detect more faces and fewer false positives than other GPU detectors, but is a lot more resource intensive.')
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Added defaults: detect.s3fd
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Adding defaults: (filename: unet_dfl_defaults.py, module_path: plugins.extract.mask, plugin_type: mask
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Importing defaults module: plugins.extract.mask.unet_dfl_defaults
11/16/2020 19:53:53 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.')
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Added defaults: mask.unet_dfl
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Adding defaults: (filename: vgg_clear_defaults.py, module_path: plugins.extract.mask, plugin_type: mask
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Importing defaults module: plugins.extract.mask.vgg_clear_defaults
11/16/2020 19:53:53 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.')
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Added defaults: mask.vgg_clear
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Adding defaults: (filename: vgg_obstructed_defaults.py, module_path: plugins.extract.mask, plugin_type: mask
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Importing defaults module: plugins.extract.mask.vgg_obstructed_defaults
11/16/2020 19:53:53 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.')
11/16/2020 19:53:53 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)
11/16/2020 19:53:53 MainProcess MainThread _config load_module DEBUG Added defaults: mask.vgg_obstructed
11/16/2020 19:53:53 MainProcess MainThread config handle_config DEBUG Handling config
11/16/2020 19:53:53 MainProcess MainThread config check_exists DEBUG Config file exists: 'C:\Users\ks\faceswap\config\extract.ini'
11/16/2020 19:53:53 MainProcess MainThread config load_config VERBOSE Loading config: 'C:\Users\ks\faceswap\config\extract.ini'
11/16/2020 19:53:53 MainProcess MainThread config validate_config DEBUG Validating config
11/16/2020 19:53:53 MainProcess MainThread config check_config_change DEBUG Default config has not changed
11/16/2020 19:53:53 MainProcess MainThread config check_config_choices DEBUG Checking config choices
11/16/2020 19:53:53 MainProcess MainThread config check_config_choices DEBUG Checked config choices
11/16/2020 19:53:53 MainProcess MainThread config validate_config DEBUG Validated config
11/16/2020 19:53:53 MainProcess MainThread config handle_config DEBUG Handled config
11/16/2020 19:53:53 MainProcess MainThread config __init__ DEBUG Initialized: Config
11/16/2020 19:53:53 MainProcess MainThread config get DEBUG Getting config item: (section: 'global', option: 'allow_growth')
11/16/2020 19:53:53 MainProcess MainThread config get DEBUG Returning item: (type: <class 'bool'>, value: True)
11/16/2020 19:53:53 MainProcess MainThread config get DEBUG Getting config item: (section: 'detect.s3fd', option: 'confidence')
11/16/2020 19:53:53 MainProcess MainThread config get DEBUG Returning item: (type: <class 'int'>, value: 70)
11/16/2020 19:53:53 MainProcess MainThread config get DEBUG Getting config item: (section: 'detect.s3fd', option: 'batch-size')
11/16/2020 19:53:53 MainProcess MainThread config get DEBUG Returning item: (type: <class 'int'>, value: 1)
11/16/2020 19:53:53 MainProcess MainThread utils _get DEBUG Model exists: C:\Users\ks\faceswap\plugins\extract\detect\.cache\s3fd_keras_v2.h5
11/16/2020 19:53:53 MainProcess MainThread _base __init__ DEBUG Initialized _base Detect
11/16/2020 19:53:53 MainProcess MainThread _base _get_rotation_angles DEBUG Not setting rotation angles
11/16/2020 19:53:53 MainProcess MainThread _base __init__ DEBUG Initialized _base Detect
11/16/2020 19:53:53 MainProcess MainThread pipeline _load_align DEBUG Loading Aligner: 'fan'
11/16/2020 19:53:53 MainProcess MainThread plugin_loader _import INFO Loading Align from Fan plugin...
11/16/2020 19:53:53 MainProcess MainThread _base __init__ DEBUG Initializing Align: (normalize_method: None)
11/16/2020 19:53:53 MainProcess MainThread _base __init__ DEBUG Initializing Align: (git_model_id: 13, model_filename: face-alignment-network_2d4_keras_v2.h5, exclude_gpus: None, configfile: None, instance: 0, )
11/16/2020 19:53:53 MainProcess MainThread config __init__ DEBUG Initializing: Config
11/16/2020 19:53:53 MainProcess MainThread config get_config_file DEBUG Config File location: 'C:\Users\ks\faceswap\config\extract.ini'
11/16/2020 19:53:53 MainProcess MainThread _config set_defaults DEBUG Setting defaults
11/16/2020 19:53:53 MainProcess MainThread _config set_globals DEBUG Setting global config
11/16/2020 19:53:53 MainProcess MainThread config add_section DEBUG Add section: (title: 'global', info: 'Options that apply to all extraction plugins')
11/16/2020 19:53:53 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 ...
11/16/2020 19:53:53 MainProcess MainThread multithreading __init__ DEBUG Initializing MultiThread: (target: 'detect_s3fd_input', thread_count: 1)
11/16/2020 19:53:53 MainProcess MainThread multithreading __init__ DEBUG Initialized MultiThread: 'detect_s3fd_input'
11/16/2020 19:53:53 MainProcess MainThread _base _add_thread DEBUG Added thread: detect_s3fd_input
11/16/2020 19:53:53 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 0x0000023B6F922040>>, in_queue: <queue.Queue object at 0x0000023B6FC93400>, out_queue: <queue.Queue object at 0x0000023B6FC656A0>)
11/16/2020 19:53:53 MainProcess MainThread multithreading __init__ DEBUG Initializing MultiThread: (target: 'detect_s3fd_predict', thread_count: 1)
11/16/2020 19:53:53 MainProcess MainThread multithreading __init__ DEBUG Initialized MultiThread: 'detect_s3fd_predict'
11/16/2020 19:53:53 MainProcess MainThread _base _add_thread DEBUG Added thread: detect_s3fd_predict
11/16/2020 19:53:53 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 0x0000023B6F922040>>, in_queue: <queue.Queue object at 0x0000023B6FC656A0>, out_queue: <queue.Queue object at 0x0000023B6FC65160>)
11/16/2020 19:53:53 MainProcess MainThread multithreading __init__ DEBUG Initializing MultiThread: (target: 'detect_s3fd_output', thread_count: 1)
11/16/2020 19:53:53 MainProcess MainThread multithreading __init__ DEBUG Initialized MultiThread: 'detect_s3fd_output'
11/16/2020 19:53:53 MainProcess MainThread _base _add_thread DEBUG Added thread: detect_s3fd_output
11/16/2020 19:53:53 MainProcess MainThread _base _compile_threads DEBUG Compiled detect threads: [<lib.multithreading.MultiThread object at 0x0000023B6FC65340>, <lib.multithreading.MultiThread object at 0x0000023B6FC65370>, <lib.multithreading.MultiThread object at 0x0000023B6FC652B0>]
11/16/2020 19:53:53 MainProcess MainThread s3fd __init__ DEBUG Initializing: S3fd: (model_path: 'C:\Users\ks\faceswap\plugins\extract\detect\.cache\s3fd_keras_v2.h5', model_kwargs: {'custom_objects': {'L2Norm': <class 'plugins.extract.detect.s3fd.L2Norm'>, 'SliceO2K': <class 'plugins.extract.detect.s3fd.SliceO2K'>}}, allow_growth: True, exclude_gpus: None, confidence: 0.7)
11/16/2020 19:53:54 MainProcess MainThread session _set_session INFO Setting allow growth for GPU: PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')
11/16/2020 19:53:55 MainProcess MainThread session load_model_weights VERBOSE Initializing plugin model: S3FD
11/16/2020 19:53:55 MainProcess MainThread s3fd __init__ DEBUG Initialized: S3fd
11/16/2020 19:53:55 MainProcess MainThread _base initialize INFO Initialized S3FD (Detect) with batchsize of 1
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Starting thread(s): 'detect_s3fd_input'
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Starting thread 1 of 1: 'detect_s3fd_input_0'
11/16/2020 19:53:55 MainProcess detect_s3fd_input_0 _base _thread_process DEBUG threading: (function: 'process_input')
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Started all threads 'detect_s3fd_input': 1
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Starting thread(s): 'detect_s3fd_predict'
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Starting thread 1 of 1: 'detect_s3fd_predict_0'
11/16/2020 19:53:55 MainProcess detect_s3fd_predict_0 _base _thread_process DEBUG threading: (function: '_predict')
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Started all threads 'detect_s3fd_predict': 1
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Starting thread(s): 'detect_s3fd_output'
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Starting thread 1 of 1: 'detect_s3fd_output_0'
11/16/2020 19:53:55 MainProcess detect_s3fd_output_0 _base _thread_process DEBUG threading: (function: 'process_output')
11/16/2020 19:53:55 MainProcess MainThread multithreading start DEBUG Started all threads 'detect_s3fd_output': 1
11/16/2020 19:53:55 MainProcess MainThread pipeline _launch_plugin DEBUG Launched detect plugin
11/16/2020 19:53:55 MainProcess MainThread pipeline detected_faces DEBUG Running Detection. Phase: '['detect']'
11/16/2020 19:54:11 MainProcess detect_s3fd_predict_0 multithreading run DEBUG Error in thread (detect_s3fd_predict_0): You do not have enough GPU memory available to run detection at the selected batch size. You can try a number of things:\n1) Close any other application that is using your GPU (web browsers are particularly bad for this).\n2) Lower the batchsize (the amount of images fed into the model) by editing the plugin settings (GUI: Settings > Configure extract settings, CLI: Edit the file faceswap/config/extract.ini).\n3) Enable 'Single Process' mode.
11/16/2020 19:54:11 MainProcess MainThread multithreading check_and_raise_error DEBUG Thread error caught: [(<class 'lib.utils.FaceswapError'>, FaceswapError("You do not have enough GPU memory available to run detection at the selected batch size. You can try a number of things:\n1) Close any other application that is using your GPU (web browsers are particularly bad for this).\n2) Lower the batchsize (the amount of images fed into the model) by editing the plugin settings (GUI: Settings > Configure extract settings, CLI: Edit the file faceswap/config/extract.ini).\n3) Enable 'Single Process' mode."), <traceback object at 0x0000023B23F7C340>)]
11/16/2020 19:54:11 MainProcess MainThread launcher execute_script ERROR You do not have enough GPU memory available to run detection at the selected batch size. You can try a number of things:
11/16/2020 19:54:11 MainProcess MainThread launcher execute_script ERROR 1) Close any other application that is using your GPU (web browsers are particularly bad for this).
11/16/2020 19:54:11 MainProcess MainThread launcher execute_script ERROR 2) Lower the batchsize (the amount of images fed into the model) by editing the plugin settings (GUI: Settings > Configure extract settings, CLI: Edit the file faceswap/config/extract.ini).
11/16/2020 19:54:11 MainProcess MainThread launcher execute_script ERROR 3) Enable 'Single Process' mode.
11/16/2020 19:54:11 MainProcess MainThread utils safe_shutdown DEBUG Safely shutting down
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating all queues
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'ImagesLoader'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'extract0_detect_in'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'extract0_align_in'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'extract0_mask_0_in'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'extract0_mask_1_in'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'extract0_mask_2_in'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'extract0_mask_3_in'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'extract0_mask_3_out'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'ImagesSaver'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'detect0_predict_s3fd'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queue DEBUG QueueManager flushing: 'detect0_post_s3fd'
11/16/2020 19:54:11 MainProcess MainThread queue_manager flush_queues DEBUG QueueManager flushed all queues
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'ImagesLoader'
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'extract0_detect_in'
11/16/2020 19:54:11 MainProcess _load_0 image load DEBUG Closing Load Generator
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'extract0_align_in'
11/16/2020 19:54:11 MainProcess _load_0 image close DEBUG Received Close
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'extract0_mask_0_in'
11/16/2020 19:54:11 MainProcess _load_0 multithreading join DEBUG Joining Threads: 'ImagesLoader'
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'extract0_mask_1_in'
11/16/2020 19:54:11 MainProcess _load_0 multithreading join DEBUG Joining Thread: 'ImagesLoader_0'
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'extract0_mask_2_in'
11/16/2020 19:54:11 MainProcess _load_0 multithreading join DEBUG Joined all Threads: 'ImagesLoader'
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'extract0_mask_3_in'
11/16/2020 19:54:11 MainProcess _load_0 image close DEBUG Closed
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'extract0_mask_3_out'
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'ImagesSaver'
11/16/2020 19:54:11 MainProcess MainThread queue_manager terminate_queues DEBUG QueueManager terminating: 'detect0_predict_s3fd'