Classes | |
class | ResnetBuilder |
Functions | |
def | _bn_relu (input) |
def | _conv_bn_relu (conv_params) |
def | _bn_relu_conv (conv_params) |
def | _shortcut (input, residual) |
def | _residual_block (block_function, filters, repetitions, is_first_layer=False) |
def | basic_block (filters, init_strides=(1, 1), is_first_block_of_first_layer=False) |
def | bottleneck (filters, init_strides=(1, 1), is_first_block_of_first_layer=False) |
def | _handle_dim_ordering () |
def | _get_block (identifier) |
Based on https://github.com/raghakot/keras-resnet/blob/master/resnet.py
|
private |
|
private |
|
private |
|
private |
Definition at line 185 of file resnet.py.
|
private |
Builds a residual block with repeating bottleneck blocks.
Definition at line 106 of file resnet.py.
|
private |
def resnet.basic_block | ( | filters, | |
init_strides = (1, 1) , |
|||
is_first_block_of_first_layer = False |
|||
) |
Basic 3 X 3 convolution blocks for use on resnets with layers <= 34. Follows improved proposed scheme in http://arxiv.org/pdf/1603.05027v2.pdf
Definition at line 121 of file resnet.py.
def resnet.bottleneck | ( | filters, | |
init_strides = (1, 1) , |
|||
is_first_block_of_first_layer = False |
|||
) |
Bottleneck architecture for > 34 layer resnet. Follows improved proposed scheme in http://arxiv.org/pdf/1603.05027v2.pdf Returns: A final conv layer of filters * 4
Definition at line 144 of file resnet.py.