Functions | |
def | preprocess_input (x) |
def | conv2d_bn (x, nb_filter, num_row, num_col, padding='same', strides=(1, 1), use_bias=False) |
def | block_inception_a (input) |
def | block_reduction_a (input) |
def | block_inception_b (input) |
def | block_reduction_b (input) |
def | block_inception_c (input) |
def | inception_v4_base (input) |
def | inception_v4 (num_classes, dropout_keep_prob, weights, input_shape, include_top, transfer_learning=None) |
def | create_model (num_classes=1001, dropout_prob=0.2, weights=None, include_top=True, transfer_learning=None, input_shape=None) |
Variables | |
string | WEIGHTS_PATH = 'https://github.com/kentsommer/keras-inceptionV4/releases/download/2.1/inception-v4_weights_tf_dim_ordering_tf_kernels.h5' |
Implements the Inception Network v4 (http://arxiv.org/pdf/1602.07261v1.pdf) in Keras. More... | |
string | WEIGHTS_PATH_NO_TOP = 'https://github.com/kentsommer/keras-inceptionV4/releases/download/2.1/inception-v4_weights_tf_dim_ordering_tf_kernels_notop.h5' |
Copyright 2017 TensorFlow Authors and Kent Sommer Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
def inception_v4.block_inception_a | ( | input | ) |
Definition at line 71 of file inception_v4.py.
def inception_v4.block_inception_b | ( | input | ) |
Definition at line 111 of file inception_v4.py.
def inception_v4.block_inception_c | ( | input | ) |
Definition at line 156 of file inception_v4.py.
def inception_v4.block_reduction_a | ( | input | ) |
Definition at line 93 of file inception_v4.py.
def inception_v4.block_reduction_b | ( | input | ) |
Definition at line 136 of file inception_v4.py.
def inception_v4.conv2d_bn | ( | x, | |
nb_filter, | |||
num_row, | |||
num_col, | |||
padding = 'same' , |
|||
strides = (1, 1) , |
|||
use_bias = False |
|||
) |
Utility function to apply conv + BN. (Slightly modified from https://github.com/fchollet/keras/blob/master/keras/applications/inception_v3.py)
Definition at line 51 of file inception_v4.py.
def inception_v4.create_model | ( | num_classes = 1001 , |
|
dropout_prob = 0.2 , |
|||
weights = None , |
|||
include_top = True , |
|||
transfer_learning = None , |
|||
input_shape = None |
|||
) |
Definition at line 319 of file inception_v4.py.
def inception_v4.inception_v4 | ( | num_classes, | |
dropout_keep_prob, | |||
weights, | |||
input_shape, | |||
include_top, | |||
transfer_learning = None |
|||
) |
Creates the inception v4 network Args: num_classes: number of classes dropout_keep_prob: float, the fraction to keep before final layer. Returns: logits: the logits outputs of the model.
Definition at line 242 of file inception_v4.py.
def inception_v4.inception_v4_base | ( | input | ) |
Definition at line 184 of file inception_v4.py.
def inception_v4.preprocess_input | ( | x | ) |
Definition at line 43 of file inception_v4.py.
string inception_v4.WEIGHTS_PATH = 'https://github.com/kentsommer/keras-inceptionV4/releases/download/2.1/inception-v4_weights_tf_dim_ordering_tf_kernels.h5' |
Implements the Inception Network v4 (http://arxiv.org/pdf/1602.07261v1.pdf) in Keras.
#
Definition at line 39 of file inception_v4.py.
string inception_v4.WEIGHTS_PATH_NO_TOP = 'https://github.com/kentsommer/keras-inceptionV4/releases/download/2.1/inception-v4_weights_tf_dim_ordering_tf_kernels_notop.h5' |
Definition at line 40 of file inception_v4.py.