File size: 624 Bytes
452723c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""Constants for DeepLab Segmentation CelebASegmentation classes."""

CLASSES = [
    'background', # 0
    'skin',       # 1
    'nose',       # 2
    'eye_g',      # 3
    'l_eye',      # 4
    'r_eye',      # 5
    'l_brow',     # 6
    'r_brow',     # 7
    'l_ear',      # 8
    'r_ear',      # 9
    'mouth',      # 10
    'u_lip',      # 11
    'l_lip',      # 12
    'hair',       # 13
    'hat',        # 14
    'ear_r',      # 15
    'neck_l',     # 16
    'neck',       # 17
    'cloth'       # 18
]

CLASS_TO_ID_MAP = {c:id for id,c in enumerate(CLASSES)}
ID_TO_CLASS_MAP = {id:c for id,c in enumerate(CLASSES)}