Cannot Convert

Converting source frames into swapped frames
Forum rules
Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.
Post Reply
User avatar
nick22
Posts: 4
Joined: Thu Sep 26, 2019 4:34 pm
Answers: 1

Cannot Convert

Post by nick22 » Fri Sep 27, 2019 8:15 pm

Hello I just finished training and Iam trying to convert a video and swap faces.

I get an error when I try doing it on command line

Here's the log file.

Code: Select all

09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.ffmpeg', title: 'tune', datatype: '<class 'str'>', default: 'none', info: 'Change settings based upon the specifics of your input:\n	 none: Don't perform any additional tuning.\n	 film: [H.264 only] Use for high quality movie content; lowers deblocking.\n	 animation: [H.264 only] Good for cartoons; uses higher deblocking and more reference frames.\n	 grain: Preserves the grain structure in old, grainy film material.\n	 stillimage: [H.264 only] Good for slideshow-like content.\n	 fastdecode: Allows faster decoding by disabling certain filters.\n	 zerolatency: Good for fast encoding and low-latency streaming.', rounding: 'None', min_max: None, choices: ['none', 'film', 'animation', 'grain', 'stillimage', 'fastdecode', 'zerolatency'], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.ffmpeg', title: 'profile', datatype: '<class 'str'>', default: 'auto', info: '[H.264 Only] Limit the output to a specific H.264 profile. Don't change this unless your target device only supports a certain profile.', rounding: 'None', min_max: None, choices: ['auto', 'baseline', 'main', 'high', 'high10', 'high422', 'high444'], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.ffmpeg', title: 'level', datatype: '<class 'str'>', default: 'auto', info: '[H.264 Only] Set the encoder level, Don't change this unless your target device only supports a certain level.', rounding: 'None', min_max: None, choices: ['auto', '1', '1b', '1.1', '1.2', '1.3', '2', '2.1', '2.2', '3', '3.1', '3.2', '4', '4.1', '4.2', '5', '5.1', '5.2', '6', '6.1', '6.2'], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.ffmpeg
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: gif_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.gif_defaults
09/27/2019 15:37:38 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.gif', info: 'Options for outputting converted frames to an animated gif.')
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'fps', datatype: '<class 'int'>', default: '25', info: 'Frames per Second.', rounding: '1', min_max: (1, 60), choices: [], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'loop', datatype: '<class 'int'>', default: '0', info: 'The number of iterations. Set to 0 to loop indefinitely.', rounding: '1', min_max: (0, 100), choices: [], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'palettesize', datatype: '<class 'str'>', default: '256', info: 'The number of colors to quantize the image to. Is rounded to the nearest power of two.', rounding: 'None', min_max: None, choices: ['2', '4', '8', '16', '32', '64', '128', '256'], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.gif', title: 'subrectangles', datatype: '<class 'bool'>', default: 'False', info: 'If True, will try and optimize the GIF by storing only the rectangular parts of each frame that change with respect to the previous.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.gif
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: opencv_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.opencv_defaults
09/27/2019 15:37:38 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.opencv', info: 'Options for outputting converted frames to a series of images using OpenCV\nOpenCV can be faster than other image writers, but lacks some configuration options and formats.')
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'format', datatype: '<class 'str'>', default: 'png', info: 'Image format to use:\n	 bmp: Windows bitmap\n	 jpg: JPEG format\n	 jp2: JPEG 2000 format\n	 png: Portable Network Graphics\n	 ppm: Portable Pixmap Format', rounding: 'None', min_max: None, choices: ['bmp', 'jpg', 'jp2', 'png', 'ppm'], gui_radio: True, fixed: True, group: None)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'draw_transparent', datatype: '<class 'bool'>', default: 'False', info: 'Place the swapped face on a transparent layer rather than the original frame.\nNB: This is only compatible with images saved in png format. If an incompatible format is selected then the image will be saved as a png.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'jpg_quality', datatype: '<class 'int'>', default: '75', info: '[jpg only] Set the jpg quality. 1 is worst 95 is best. Higher quality leads to larger file sizes.', rounding: '1', min_max: (1, 95), choices: [], gui_radio: False, fixed: True, group: compression)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.opencv', title: 'png_compress_level', datatype: '<class 'int'>', default: '3', info: '[png only] ZLIB compression level, 1 gives best speed, 9 gives best compression, 0 gives no compression at all.', rounding: '1', min_max: (0, 9), choices: [], gui_radio: False, fixed: True, group: compression)
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.opencv
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Adding defaults: (filename: pillow_defaults.py, module_path: plugins.convert.writer, plugin_type: writer
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Importing defaults module: plugins.convert.writer.pillow_defaults
09/27/2019 15:37:38 MainProcess     MainThread      config          add_section               DEBUG    Add section: (title: 'writer.pillow', info: 'Options for outputting converted frames to a series of images using Pillow\nPillow is more feature rich than OpenCV but can be slower.')
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'format', datatype: '<class 'str'>', default: 'png', info: 'Image format to use:\n	 bmp: Windows bitmap\n	 gif: Graphics Interchange Format (NB: Not animated)\n	 jpg: JPEG format\n	 jp2: JPEG 2000 format\n	 png: Portable Network Graphics\n	 ppm: Portable Pixmap Format\n	 tif: Tag Image File Format', rounding: 'None', min_max: None, choices: ['bmp', 'gif', 'jpg', 'jp2', 'png', 'ppm', 'tif'], gui_radio: True, fixed: True, group: None)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'draw_transparent', datatype: '<class 'bool'>', default: 'False', info: 'Place the swapped face on a transparent layer rather than the original frame.\nNB: This is only compatible with images saved in png or tif format. If an incompatible format is selected then the image will be saved as a png.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'optimize', datatype: '<class 'bool'>', default: 'False', info: '[gif, jpg and png only] If enabled, indicates that the encoder should make an extra pass over the image in order to select optimal encoder settings.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'gif_interlace', datatype: '<class 'bool'>', default: 'True', info: '[gif only] Set whether to save the gif as interlaced or not.', rounding: 'None', min_max: None, choices: [], gui_radio: False, fixed: True, group: settings)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'jpg_quality', datatype: '<class 'int'>', default: '75', info: '[jpg only] Set the jpg quality. 1 is worst 95 is best. Higher quality leads to larger file sizes.', rounding: '1', min_max: (1, 95), choices: [], gui_radio: False, fixed: True, group: compression)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'png_compress_level', datatype: '<class 'int'>', default: '3', info: '[png only] ZLIB compression level, 1 gives best speed, 9 gives best compression, 0 gives no compression at all. When optimize option is set to True this has no effect (it is set to 9 regardless of a value passed).', rounding: '1', min_max: (0, 9), choices: [], gui_radio: False, fixed: True, group: compression)
09/27/2019 15:37:38 MainProcess     MainThread      config          add_item                  DEBUG    Add item: (section: 'writer.pillow', title: 'tif_compression', datatype: '<class 'str'>', default: 'tiff_deflate', info: '[tif only] The desired compression method for the file.', rounding: 'None', min_max: None, choices: ['none', 'tiff_ccitt', 'group3', 'group4', 'tiff_jpeg', 'tiff_adobe_deflate', 'tiff_thunderscan', 'tiff_deflate', 'tiff_sgilog', 'tiff_sgilog24', 'tiff_raw_16'], gui_radio: False, fixed: True, group: compression)
09/27/2019 15:37:38 MainProcess     MainThread      _config         load_module               DEBUG    Added defaults: writer.pillow
09/27/2019 15:37:38 MainProcess     MainThread      config          handle_config             DEBUG    Handling config
09/27/2019 15:37:38 MainProcess     MainThread      config          check_exists              DEBUG    Config file exists: 'C:\faceswap-master\config\convert.ini'
09/27/2019 15:37:38 MainProcess     MainThread      config          load_config               VERBOSE  Loading config: 'C:\faceswap-master\config\convert.ini'
09/27/2019 15:37:38 MainProcess     MainThread      config          validate_config           DEBUG    Validating config
09/27/2019 15:37:38 MainProcess     MainThread      config          check_config_change       DEBUG    Default config has not changed
09/27/2019 15:37:38 MainProcess     MainThread      config          check_config_choices      DEBUG    Checking config choices
09/27/2019 15:37:38 MainProcess     MainThread      config          check_config_choices      DEBUG    Checked config choices
09/27/2019 15:37:38 MainProcess     MainThread      config          validate_config           DEBUG    Validated config
09/27/2019 15:37:38 MainProcess     MainThread      config          handle_config             DEBUG    Handled config
09/27/2019 15:37:38 MainProcess     MainThread      config          __init__                  DEBUG    Initialized: Config
09/27/2019 15:37:38 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'writer.opencv', option: 'format')
09/27/2019 15:37:38 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'str'>, value: png)
09/27/2019 15:37:38 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'writer.opencv', option: 'draw_transparent')
09/27/2019 15:37:38 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'bool'>, value: False)
09/27/2019 15:37:38 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'writer.opencv', option: 'jpg_quality')
09/27/2019 15:37:38 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'int'>, value: 75)
09/27/2019 15:37:38 MainProcess     MainThread      config          get                       DEBUG    Getting config item: (section: 'writer.opencv', option: 'png_compress_level')
09/27/2019 15:37:38 MainProcess     MainThread      config          get                       DEBUG    Returning item: (type: <class 'int'>, value: 3)
09/27/2019 15:37:38 MainProcess     MainThread      _base           __init__                  DEBUG    config: {'format': 'png', 'draw_transparent': False, 'jpg_quality': 75, 'png_compress_level': 3}
09/27/2019 15:37:38 MainProcess     MainThread      _base           __init__                  DEBUG    Initialized Writer
09/27/2019 15:37:38 MainProcess     MainThread      opencv          get_save_args             DEBUG    (16, 3)
09/27/2019 15:37:38 MainProcess     MainThread      convert         init_threads              DEBUG    Initializing DiskIO Threads
09/27/2019 15:37:38 MainProcess     MainThread      convert         add_queue                 DEBUG    Adding queue for task: 'load'
09/27/2019 15:37:38 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'convert_in'
09/27/2019 15:37:38 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'convert_in'
09/27/2019 15:37:38 MainProcess     MainThread      convert         add_queue                 DEBUG    Added queue for task: 'load'
09/27/2019 15:37:38 MainProcess     MainThread      convert         start_thread              DEBUG    Starting thread: 'load'
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'load', thread_count: 1)
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'load'
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'load'
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'load_0'
09/27/2019 15:37:38 MainProcess     load_0          convert         load                      DEBUG    Load Images: Start
09/27/2019 15:37:38 MainProcess     load_0          fsmedia         load_video_frames         DEBUG    Input is video. Capturing frames
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'load': 1
09/27/2019 15:37:38 MainProcess     MainThread      convert         start_thread              DEBUG    Started thread: 'load'
09/27/2019 15:37:38 MainProcess     MainThread      convert         add_queue                 DEBUG    Adding queue for task: 'save'
09/27/2019 15:37:38 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'convert_out'
09/27/2019 15:37:38 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'convert_out'
09/27/2019 15:37:38 MainProcess     MainThread      convert         add_queue                 DEBUG    Added queue for task: 'save'
09/27/2019 15:37:38 MainProcess     MainThread      convert         start_thread              DEBUG    Starting thread: 'save'
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initializing MultiThread: (target: 'save', thread_count: 1)
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  __init__                  DEBUG    Initialized MultiThread: 'save'
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread(s): 'save'
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  start                     DEBUG    Starting thread 1 of 1: 'save_0'
09/27/2019 15:37:38 MainProcess     save_0          convert         save                      DEBUG    Save Images: Start
09/27/2019 15:37:38 MainProcess     save_0          convert         save                      DEBUG    Write preview for gui: False
09/27/2019 15:37:38 MainProcess     save_0          convert         total_count               DEBUG    573
09/27/2019 15:37:38 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'save': 1
09/27/2019 15:37:38 MainProcess     MainThread      convert         start_thread              DEBUG    Started thread: 'save'
09/27/2019 15:37:38 MainProcess     MainThread      convert         init_threads              DEBUG    Initialized DiskIO Threads
09/27/2019 15:37:38 MainProcess     MainThread      convert         __init__                  DEBUG    Initialized DiskIO
09/27/2019 15:37:38 MainProcess     MainThread      convert         queue_size                DEBUG    32
09/27/2019 15:37:38 MainProcess     MainThread      convert         __init__                  DEBUG    Initializing Predict: (args: Namespace(alignments_path=None, color_adjustment='avg-color', configfile=None, filter=None, frame_ranges=None, func=<bound method ScriptExecutor.execute_script of <lib.cli.ScriptExecutor object at 0x000001B957900F60>>, gpus=1, input_aligned_dir=None, input_dir='C:\\faceswap-master\\video_teste\\teste.mp4', jobs=0, keep_unchanged=False, logfile=None, loglevel='INFO', mask_type='predicted', model_dir='C:\\faceswap\\saved_model_snapshot_100001_iters', nfilter=None, output_dir='C:\\faceswap-master\\aligned_faces\\converted', output_scale=100, redirect_gui=False, ref_threshold=0.4, reference_video=None, scaling='none', singleprocess=False, swap_model=False, trainer=None, writer='opencv'), queue_size: 32, in_queue: <queue.Queue object at 0x000001B97500B630>)
09/27/2019 15:37:38 MainProcess     MainThread      convert         get_batchsize             DEBUG    Getting batchsize
09/27/2019 15:37:38 MainProcess     MainThread      gpu_stats       __init__                  DEBUG    Initializing GPUStats
09/27/2019 15:37:38 MainProcess     MainThread      gpu_stats       initialize                DEBUG    OS is not macOS. Using pynvml
09/27/2019 15:37:38 MainProcess     MainThread      gpu_stats       initialize                WARNING  There was an error reading from the Nvidia Machine Learning Library. Either you do not have an Nvidia GPU (in which case this warning can be ignored) or the most likely cause is incorrectly installed drivers. If this is the case, Please remove and reinstall your Nvidia drivers before reporting.Original Error: NVML Shared Library Not Found
09/27/2019 15:37:38 MainProcess     MainThread      gpu_stats       get_driver                DEBUG    GPU Driver: No Nvidia driver found
09/27/2019 15:37:38 MainProcess     MainThread      gpu_stats       get_devices               DEBUG    GPU Devices: []
09/27/2019 15:37:38 MainProcess     MainThread      gpu_stats       get_vram                  DEBUG    GPU VRAM: []
09/27/2019 15:37:38 MainProcess     MainThread      gpu_stats       __init__                  WARNING  No GPU detected. Switching to CPU mode
09/27/2019 15:37:38 MainProcess     MainThread      convert         get_batchsize             DEBUG    Batchsize: 1
09/27/2019 15:37:38 MainProcess     MainThread      convert         get_batchsize             DEBUG    Got batchsize: 1
09/27/2019 15:37:38 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'patch'
09/27/2019 15:37:38 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'patch'
09/27/2019 15:37:38 MainProcess     MainThread      convert         load_model                DEBUG    Loading Model
09/27/2019 15:37:38 MainProcess     MainThread      utils           get_folder                DEBUG    Requested path: 'C:\faceswap\saved_model_snapshot_100001_iters'
09/27/2019 15:37:38 MainProcess     MainThread      utils           get_folder                DEBUG    C:\faceswap\saved_model_snapshot_100001_iters does not exist
09/27/2019 15:37:38 MainProcess     MainThread      cli             execute_script            ERROR    C:\faceswap\saved_model_snapshot_100001_iters does not exist.
Traceback (most recent call last):
  File "C:\faceswap-master\lib\cli.py", line 127, in execute_script
    process = script(arguments)
  File "C:\faceswap-master\scripts\convert.py", line 47, in __init__
    self.predictor = Predict(self.disk_io.load_queue, self.queue_size, arguments)
  File "C:\faceswap-master\scripts\convert.py", line 425, in __init__
    self.model = self.load_model()
  File "C:\faceswap-master\scripts\convert.py", line 477, in load_model
    raise FaceswapError("{} does not exist.".format(self.args.model_dir))
lib.utils.FaceswapError: C:\faceswap\saved_model_snapshot_100001_iters does not exist.

============ System Information ============
encoding:            cp1252
git_branch:          Not Found
git_commits:         Not Found
gpu_cuda:            10.0
gpu_cudnn:           7.4.2
gpu_devices:         
gpu_devices_active:  
gpu_driver:          No Nvidia driver found
gpu_vram:            
os_machine:          AMD64
os_platform:         Windows-10-10.0.17763-SP0
os_release:          10
py_command:          faceswap.py convert -i /faceswap-master/video_teste/teste.mp4 -o /faceswap-master/aligned_faces/converted -m /faceswap/saved_model_snapshot_100001_iters
py_conda_version:    N/A
py_implementation:   CPython
py_version:          3.6.6
py_virtual_env:      True
sys_cores:           12
sys_processor:       Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
sys_ram:             Total: 32571MB, Available: 26478MB, Used: 6093MB, Free: 26478MB

=============== Pip Packages ===============
absl-py==0.8.0
astor==0.8.0
cycler==0.10.0
decorator==4.4.0
fastcluster==1.1.25
ffmpy==0.2.2
gast==0.3.2
google-pasta==0.1.7
grpcio==1.23.0
h5py==2.9.0
imageio==2.5.0
imageio-ffmpeg==0.3.0
joblib==0.13.2
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
Markdown==3.1.1
matplotlib==2.2.2
networkx==2.3
numpy==1.16.2
opencv-python==4.1.1.26
pathlib==1.0.1
Pillow==6.1.0
protobuf==3.9.2
psutil==5.6.3
pynvml==8.0.3
pyparsing==2.4.2
python-dateutil==2.8.0
pytz==2019.2
PyWavelets==1.0.3
pywin32==225
PyYAML==5.1.2
scikit-image==0.15.0
scikit-learn==0.21.3
scipy==1.3.1
six==1.12.0
tensorboard==1.14.0
tensorflow-estimator==1.14.0
tensorflow-gpu==1.14.0
termcolor==1.1.0
toposort==1.5
tqdm==4.36.1
Werkzeug==0.16.0
wrapt==1.11.2

================= Configs ==================
--------- .faceswap ---------
backend:                  nvidia

--------- convert.ini ---------

[color.color_transfer]
clip:                     True
preserve_paper:           True

[color.manual_balance]
colorspace:               HSV
balance_1:                0.0
balance_2:                0.0
balance_3:                0.0
contrast:                 0.0
brightness:               0.0

[color.match_hist]
threshold:                99.0

[mask.box_blend]
type:                     gaussian
distance:                 11.0
radius:                   5.0
passes:                   1

[mask.mask_blend]
type:                     normalized
radius:                   3.0
passes:                   4
erosion:                  0.0

[scaling.sharpen]
method:                   unsharp_mask
amount:                   150
radius:                   0.3
threshold:                5.0

[writer.ffmpeg]
container:                mp4
codec:                    libx264
crf:                      23
preset:                   medium
tune:                     none
profile:                  auto
level:                    auto

[writer.gif]
fps:                      25
loop:                     0
palettesize:              256
subrectangles:            False

[writer.opencv]
format:                   png
draw_transparent:         False
jpg_quality:              75
png_compress_level:       3

[writer.pillow]
format:                   png
draw_transparent:         False
optimize:                 False
gif_interlace:            True
jpg_quality:              75
png_compress_level:       3
tif_compression:          tiff_deflate

--------- extract.ini ---------

[align.fan]
batch-size:               8

[detect.cv2_dnn]
confidence:               50

[detect.mtcnn]
minsize:                  20
threshold_1:              0.6
threshold_2:              0.7
threshold_3:              0.7
scalefactor:              0.709
batch-size:               8

[detect.s3fd]
confidence:               50
batch-size:               8

--------- gui.ini ---------

[global]
fullscreen:               False
tab:                      extract
options_panel_width:      30
console_panel_height:     20
font:                     default
font_size:                9

--------- train.ini ---------

[global]
coverage:                 68.75
mask_type:                none
mask_blur:                False
icnr_init:                False
conv_aware_init:          False
subpixel_upscaling:       False
reflect_padding:          False
penalized_mask_loss:      True
loss_function:            mae
learning_rate:            5e-05

[model.dfl_h128]
lowmem:                   False

[model.dfl_sae]
input_size:               128
clipnorm:                 True
architecture:             df
autoencoder_dims:         0
encoder_dims:             42
decoder_dims:             21
multiscale_decoder:       False

[model.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

I have a NVIDIA GPU and I just finished a 24 hour train.

I also tried using the GUI to convert but the network did not detect any of the aligned faces from the video I had extracted.

What should I do?

User avatar
bryanlyon
Site Admin
Posts: 96
Joined: Fri Jul 12, 2019 12:49 am
Answers: 10
Location: San Francisco
Has thanked: 3 times
Been thanked: 19 times
Contact:

Re: Cannot Convert

Post by bryanlyon » Fri Sep 27, 2019 8:17 pm

lib.utils.FaceswapError: C:\faceswap\saved_model_snapshot_100001_iters does not exist.
Don't try to use the snapshot for convert, use the standard model folder, the same one you used while training.

Post Reply