-
Notifications
You must be signed in to change notification settings - Fork 1
/
arch_config.py
39 lines (38 loc) · 2.01 KB
/
arch_config.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
def get_architectures(arch):
arch = arch.lower()
if (arch == 'pyramid_v1' or arch == 'kp_pyramid_v1' or arch == 'pyramid_v2'
or arch == 'kp_pyramid_v2'):
architecture = [[
'simple', 'resnetb', 'resnetb_strided', 'resnetb',
'resnetb_strided', 'resnetb', 'resnetb_strided', 'resnetb',
'resnetb_strided', 'resnetb', 'resnetb_strided', 'resnetb'
], ['unary', 'unary', 'unary', 'unary'], ['unary', 'unary', 'unary'],
['unary', 'unary'], ['unary']]
elif (arch == 'pyramid_v1_deform' or arch == 'kp_pyramid_v1_deform'
or arch == 'pyramid_v2_deform' or arch == 'kp_pyramid_v2_deform'):
architecture = [[
'simple', 'resnetb', 'resnetb_strided', 'resnetb',
'resnetb_strided', 'resnetb_deformable',
'resnetb_deformable_strided', 'resnetb_deformable',
'resnetb_deformable_strided', 'resnetb_deformable',
'resnetb_deformable_strided', 'resnetb_deformable'
], ['unary', 'unary', 'unary', 'unary'], ['unary', 'unary', 'unary'],
['unary', 'unary'], ['unary']]
elif arch == 'kpconv' or arch == 'kpfcnn':
architecture = [
'simple', 'resnetb', 'resnetb_strided', 'resnetb',
'resnetb_strided', 'resnetb', 'resnetb_strided', 'resnetb',
'resnetb_strided', 'resnetb', 'nearest_upsample', 'unary',
'nearest_upsample', 'unary', 'nearest_upsample', 'unary',
'nearest_upsample', 'unary'
]
elif arch == 'kpconv_deform' or arch == 'kpfcnn_deform':
architecture = [
'simple', 'resnetb', 'resnetb_strided', 'resnetb',
'resnetb_strided', 'resnetb_deformable',
'resnetb_deformable_strided', 'resnetb_deformable',
'resnetb_deformable_strided', 'resnetb_deformable',
'nearest_upsample', 'unary', 'nearest_upsample', 'unary',
'nearest_upsample', 'unary', 'nearest_upsample', 'unary'
]
return architecture