Convert

class scripts.convert.Convert(arguments: Namespace)

Bases: object

The Faceswap Face Conversion Process.

The conversion process is responsible for swapping the faces on source frames with the output from a trained model.

It leverages a series of user selected post-processing plugins, executed from lib.convert.Converter.

The convert process is self contained and should not be referenced by any other scripts, so it contains no public properties.

Parameters:

arguments (Namespace) – The arguments to be passed to the convert process as generated from Faceswap’s command line arguments

Methods Summary

process()

The entry point for triggering the Conversion Process.

Methods Documentation

process() None

The entry point for triggering the Conversion Process.

Should only be called from lib.cli.launcher.ScriptExecutor

Raises:

FaceswapError – Error raised if the process runs out of memory

Return type:

None

process() None

The entry point for triggering the Conversion Process.

Should only be called from lib.cli.launcher.ScriptExecutor

Raises:

FaceswapError – Error raised if the process runs out of memory

Return type:

None