ProcessWrapper

class lib.gui.wrapper.ProcessWrapper

Bases: object

Builds command, launches and terminates the underlying faceswap process. Updates GUI display depending on state

Attributes Summary

task

The object that controls the underlying faceswap process

Methods Summary

terminate(message)

Finalize wrapper when process has exited.

Attributes Documentation

task

The object that controls the underlying faceswap process

Type:

FaceswapControl

Methods Documentation

terminate(message: str) None

Finalize wrapper when process has exited. Stops the progress bar, sets the status message. If the terminating task is ‘train’, then triggers the training close down actions

Parameters:

message (str) – The message to display in the status bar

Return type:

None

property task: FaceswapControl

The object that controls the underlying faceswap process

Type:

FaceswapControl

terminate(message: str) None

Finalize wrapper when process has exited. Stops the progress bar, sets the status message. If the terminating task is ‘train’, then triggers the training close down actions

Parameters:

message (str) – The message to display in the status bar

Return type:

None