vfs-api-1 / DeepFakeAI /face_reference.py
ahjvdjf33's picture
Upload 104 files
9c2551a verified
raw
history blame
335 Bytes
from typing import Optional
from DeepFakeAI.typing import Face
FACE_REFERENCE = None
def get_face_reference() -> Optional[Face]:
return FACE_REFERENCE
def set_face_reference(face : Face) -> None:
global FACE_REFERENCE
FACE_REFERENCE = face
def clear_face_reference() -> None:
global FACE_REFERENCE
FACE_REFERENCE = None