-
Notifications
You must be signed in to change notification settings - Fork 1
/
genotypes.py
68 lines (62 loc) · 1.37 KB
/
genotypes.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
64
65
66
from collections import namedtuple
Genotype = namedtuple('Genotype', 'normal normal_concat reduce reduce_concat')
DARTS_ADP_N2 = Genotype(
normal=[
('max_pool_3x3', 1),
('max_pool_3x3', 0),
('dil_conv_5x5', 2),
('max_pool_3x3', 1)
],
normal_concat=range(2, 4),
reduce=[
('sep_conv_5x5', 0),
('max_pool_3x3', 1),
('max_pool_3x3', 2),
('dil_conv_5x5', 0)
],
reduce_concat=range(2, 4)
)
DARTS_ADP_N3 = Genotype(
normal=[
('max_pool_3x3', 0),
('max_pool_3x3', 1),
('sep_conv_5x5', 2),
('max_pool_3x3', 1),
('dil_conv_5x5', 3),
('max_pool_3x3', 1)
],
normal_concat=range(2, 5),
reduce=[
('max_pool_3x3', 0),
('dil_conv_5x5', 1),
('max_pool_3x3', 0),
('max_pool_3x3', 2),
('skip_connect', 1),
('max_pool_3x3', 0)
],
reduce_concat=range(2, 5)
)
DARTS_ADP_N4 = Genotype(
normal=[
('max_pool_3x3', 0),
('max_pool_3x3', 1),
('max_pool_3x3', 0),
('skip_connect', 2),
('max_pool_3x3', 0),
('max_pool_3x3', 2),
('dil_conv_3x3', 4),
('max_pool_3x3', 0)
],
normal_concat=range(2, 6),
reduce=[
('max_pool_3x3', 0),
('max_pool_3x3', 1),
('dil_conv_5x5', 2),
('max_pool_3x3', 0),
('sep_conv_5x5', 2),
('max_pool_3x3', 0),
('dil_conv_3x3', 2),
('max_pool_3x3', 4)
],
reduce_concat=range(2, 6)
)