Face-Swap-Roop / roop /face_reference.py
prithivMLmods's picture
Upload 20 files
c0bdbd3 verified
raw
history blame
364 Bytes
from typing import Optional
from roop.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