File size: 517 Bytes
1f4f019
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
NUM_FRAMES = None
ENHANCE_WEIGHT = None
ENABLE_ENHANCE = False


def set_num_frames(num_frames: int):
    global NUM_FRAMES
    NUM_FRAMES = num_frames


def get_num_frames() -> int:
    return NUM_FRAMES


def enable_enhance():
    global ENABLE_ENHANCE
    ENABLE_ENHANCE = True


def is_enhance_enabled() -> bool:
    return ENABLE_ENHANCE


def set_enhance_weight(enhance_weight: float):
    global ENHANCE_WEIGHT
    ENHANCE_WEIGHT = enhance_weight


def get_enhance_weight() -> float:
    return ENHANCE_WEIGHT