-
Notifications
You must be signed in to change notification settings - Fork 18
/
constants.py
60 lines (52 loc) · 1.23 KB
/
constants.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Model constants
DEEPLAB = 'deeplab'
DEEPLAB_50 = 'deeplab_50'
DEEPLAB_34 = 'deeplab_34'
DEEPLAB_18 = 'deeplab_18'
DEEPLAB_MOBILENET = 'deeplab_mn'
DEEPLAB_MOBILENET_DILATION = 'deeplab_mnd'
UNET = 'unet'
UNET_PAPER = 'unet_paper'
UNET_PYTORCH = 'unet_torch'
PSPNET = 'pspnet'
# Dataset constants
DOCUNET = 'docunet'
DOCUNET_INVERTED = 'docunet_inverted'
DOCUNET_IM2IM = 'docunet_im2im'
# Dataset locations
HAZMAT_DATASET = 'hazmat_dataset'
ADDRESS_DATASET = 'address_dataset'
LABELS_DATASET = 'labels_dataset'
# loss constants
DOCUNET_LOSS = 'docunet_loss'
MS_SSIM_LOSS = 'ms_ssim_loss'
MS_SSIM_LOSS_V2 = 'ms_ssim_loss_v2'
SSIM_LOSS = 'ssim_loss'
SSIM_LOSS_V2 = 'ssim_loss_v2'
SMOOTH_L1_LOSS = 'smoothl1_loss'
L1_LOSS = 'l1_loss'
MSE_LOSS = 'mse_loss'
# Optimizers
SGD = 'sgd'
AMSGRAD = 'amsgrad'
ADAM = 'adam'
RMSPROP = 'rmsprop'
ADABOUND = 'adabound'
# Normalization layers
INSTANCE_NORM = 'instance'
BATCH_NORM = 'batch'
SYNC_BATCH_NORM = 'syncbn'
# Init types
NORMAL_INIT = 'normal'
KAIMING_INIT = 'kaiming'
XAVIER_INIT = 'xavier'
ORTHOGONAL_INIT = 'orthogonal'
# Downsampling methods
MAXPOOL = 'maxpool'
STRIDECONV = 'strided'
# Split constants
TRAIN = 'train'
VAL = 'val'
TEST = 'test'
TRAINVAL = 'trainval'
VISUALIZATION = 'visualization'