File size: 364 Bytes
c0bdbd3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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