tools.model package

tools.model.cli Module

Command Line Arguments for tools

class tools.model.cli.ModelArgs(subparser: _SubParsersAction | None, command: str, description: str = 'default')

Class to perform actions on model files

Parameters:
  • subparser (_SubParsersAction | None)

  • command (str)

  • description (str)

static get_argument_list() list[dict[str, Any]]

Put the arguments in a list so that they are accessible from both argparse and gui

Return type:

list[dict[str, Any]]

static get_info() str

Return command information

Return type:

str

Classes

ModelArgs(subparser, command[, description])

Class to perform actions on model files

Class Inheritance Diagram

Inheritance diagram of tools.model.cli.ModelArgs

tools.model.model Module

Tool to restore models from backup

class tools.model.model.Inference(arguments: argparse.Namespace)

Save an inference model from a trained Faceswap model.

Parameters:

arguments (argparse.Namespace) – The command line arguments calling the model tool

process() None

Run the inference model creation process.

Return type:

None

class tools.model.model.Model(arguments: argparse.Namespace)

Tool to perform actions on a model file.

Parameters:

arguments (argparse.Namespace) – The command line arguments calling the model tool

process() None

Call the selected model job.

Return type:

None

class tools.model.model.NaNScan(arguments: argparse.Namespace)

Tool to scan for NaN and Infs in model weights.

Parameters:

arguments (argparse.Namespace) – The command line arguments calling the model tool

process() None

Scan the loaded model for NaNs and Infs and output summary.

Return type:

None

class tools.model.model.Restore(arguments: argparse.Namespace)

Restore a model from backup.

Parameters:

arguments (argparse.Namespace) – The command line arguments calling the model tool

process() None

Perform the Restore process

Return type:

None

Classes

Inference(arguments)

Save an inference model from a trained Faceswap model.

Model(arguments)

Tool to perform actions on a model file.

NaNScan(arguments)

Tool to scan for NaN and Infs in model weights.

Restore(arguments)

Restore a model from backup.