-
Notifications
You must be signed in to change notification settings - Fork 9
/
utils.py
46 lines (44 loc) · 1.53 KB
/
utils.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
MEAN = {'cifar10': [0.4914, 0.4822, 0.4465],
'cifar100': [0.5071, 0.4867, 0.4408],
'svhn': [0.4376, 0.4437, 0.4728],
'ucf101': [0.4995, 0.4988, 0.4998],
'aircraft': [0.4798, 0.5107, 0.5343],
'omniglot': [0.0809, 0.0809, 0.0809],
'dtd': [0.5269, 0.4702, 0.4239],
'imagenet': [0.485, 0.456, 0.406],
'vgg-flowers': [0.4341, 0.3830, 0.2971],
'cub_200': [0.485, 0.456, 0.406],
'stanford-cars':[0.485, 0.456, 0.406],
'sketches': [0.485, 0.456, 0.406],
'wikiart': [0.485, 0.456, 0.406],
}
VAR = {'cifar10': [0.2023, 0.1994, 0.2010],
'cifar100': [0.2675, 0.2565, 0.2761],
'svhn': [0.1980, 0.2010, 0.1970],
'ucf101': [0.1089, 0.1081, 0.1067],
'aircraft': [0.2107, 0.2050, 0.2372],
'omniglot': [0.2704, 0.2704, 0.2704],
'dtd': [0.2522, 0.2409 , 0.2499],
'imagenet': [0.229, 0.224, 0.225],
'vgg-flowers': [0.2850, 0.2384, 0.2639],
'cub_200': [0.229, 0.224, 0.225],
'stanford-cars': [0.229, 0.224, 0.225],
'sketches': [0.229, 0.224, 0.225],
'wikiart': [0.229, 0.224, 0.225],
}
CLASS_NB = {'cifar10': 10,
'cifar100': 100,
'svhn': 10,
'ucf101': 101,
'aircraft': 100,
'omniglot': 1623,
'dtd': 47,
'imagenet': 1000,
'vgg-flowers': 102,
'nyuv2': 13,
'cityscapes': 19,
'cub_200': 200,
'stanford-cars': 196,
'wikiart': 195,
'sketches':250,
}