set_backend

lib.utils.set_backend(backend: str) None

Override the configured backend with the given backend.

Parameters:

backend (str) – The backend to set faceswap to

Return type:

None

Example

>>> from lib.utils import set_backend
>>> set_backend("nvidia")