-
Notifications
You must be signed in to change notification settings - Fork 0
/
dnn_library.py
52 lines (49 loc) · 1.93 KB
/
dnn_library.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
import tensorflow as tf
import tensorflow.contrib.slim as slim
from nets import inception_v1, inception_v2, inception_v3, resnet_v1, resnet_v2, vgg
model={
'resnet_v1_50': {'shape': [1, 224, 224, 3],
'scope': resnet_v1.resnet_arg_scope(),
'net': resnet_v1.resnet_v1_50,
'num_classes': 1000},
'resnet_v1_101': {'shape': [1, 224, 224, 3],
'scope': resnet_v1.resnet_arg_scope(),
'net': resnet_v1.resnet_v1_101,
'num_classes': 1000},
'resnet_v1_152': {'shape': [1, 224, 224, 3],
'scope': resnet_v1.resnet_arg_scope(),
'net': resnet_v1.resnet_v1_152,
'num_classes': 1000},
'resnet_v2_50': {'shape': [1, 224, 224, 3],
'scope': resnet_v2.resnet_arg_scope(),
'net': resnet_v2.resnet_v2_50,
'num_classes': 1000},
'resnet_v2_101': {'shape': [1, 224, 224, 3],
'scope': resnet_v2.resnet_arg_scope(),
'net': resnet_v2.resnet_v2_101,
'num_classes': 1000},
'resnet_v2_152': {'shape': [1, 224, 224, 3],
'scope': resnet_v2.resnet_arg_scope(),
'net': resnet_v2.resnet_v2_152,
'num_classes': 1000},
'inception_v1': {'shape': [1, 224, 224, 3],
'scope': inception_v1.inception_v1_arg_scope(),
'net': inception_v1.inception_v1,
'num_classes': 1000},
'inception_v2': {'shape': [1, 224, 224, 3],
'scope': inception_v2.inception_v2_arg_scope(),
'net': inception_v2.inception_v2,
'num_classes': 1000},
'inception_v3': {'shape': [1, 299, 299, 3],
'scope': inception_v3.inception_v3_arg_scope(),
'net': inception_v3.inception_v3,
'num_classes': 1000},
'vgg_16': {'shape': [1, 224, 224, 3],
'scope': vgg.vgg_arg_scope(),
'net': vgg.vgg_16,
'num_classes': 1000},
'vgg_19': {'shape': [1, 224, 224, 3],
'scope': vgg.vgg_arg_scope(),
'net': vgg.vgg_19,
'num_classes': 1000},
}