FFHQ-Aging-Dataset / src /utils /constant_util.py
PIEthonista's picture
update
452723c
"""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)}