[45a3e1]: / darkflow / net / ops / __init__.py

Download this file

29 lines (25 with data), 616 Bytes

 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
from .simple import *
from .convolution import *
from .baseop import HEADER, LINE
op_types = {
'convolutional': convolutional,
'conv-select': conv_select,
'connected': connected,
'maxpool': maxpool,
'leaky': leaky,
'dropout': dropout,
'flatten': flatten,
'avgpool': avgpool,
'softmax': softmax,
'identity': identity,
'crop': crop,
'local': local,
'select': select,
'route': route,
'reorg': reorg,
'conv-extract': conv_extract,
'extract': extract
}
def op_create(*args):
layer_type = list(args)[0].type
return op_types[layer_type](*args)