-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.py
63 lines (46 loc) · 1.35 KB
/
enums.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
61
62
63
from enum import Enum
class ModelEnum(Enum):
custom = 'custom'
resnet18 = 'resnet18'
resnet34 = 'resnet34'
resnet50 = 'resnet50'
resnet101 = 'resnet101'
resnet152 = 'resnet152'
resnext50 = 'resnext50'
wide_resnet_16_4 = 'wide_resnet_16_4'
wide_resnet_16_10 = 'wide_resnet_16_10'
wide_resnet_28_10_03 = 'wide_resnet_28_10_03'
densenet121 = 'densenet121'
densenet169 = 'densenet169'
densenet201 = 'densenet201'
densenet161 = 'densenet161'
pyramidnet100_84 = 'pyramidnet100_84'
pyramidnet200_240 = 'pyramidnet200_240'
pyramidnet236_220 = 'pyramidnet236_220'
pyramidnet272_200 = 'pyramidnet272_200'
pyramidnet_custom = 'pyramidnet_custom'
def __str__(self):
return self.value
class OptimizerEnum(Enum):
sgd = 'sgd'
adam = 'adam'
sam = 'sam'
def __str__(self):
return self.value
class LRSchedulerEnum(Enum):
none = 'none'
lambda_lr = 'lambda_lr'
step_lr = 'step_lr'
cos_annealing = 'cos_annealing'
custom_annealing = 'custom_annealing'
one_cycle = 'one_cycle'
cycle = 'cycle'
on_plateau = 'on_plateau'
def __str__(self):
return self.value
class MixEnum(Enum):
none = 'none'
mixup = 'mixup'
cutmix = 'cutmix'
def __str__(self):
return self.value