MCPcopy Create free account

hub / github.com/bruceyang2012/Face-detection-with-mobilenet-ssd / functions

Functions57 in github.com/bruceyang2012/Face-detection-with-mobilenet-ssd

↓ 16 callersFunction_depthwise_conv_block_detection
(input, layer_name, strides=(1, 1), kernel_size=3,
mn_model.py:202
↓ 13 callersFunction_depthwise_conv_block_classification
(inputs, pointwise_conv_filters, alpha, depth_multiplier=1, strides=(
mn_model.py:179
↓ 9 callersFunctionconvert_coordinates
Convert coordinates for axis-aligned 2D boxes between two coordinate formats. Creates a copy of `tensor`, i.e. does not operate in place. Cu
ssd_box_encode_decode_utils.py:70
↓ 8 callersFunctionbn_conv_layer
(input_layer, layer_name, nb_filter, nb_row, nb_col, subsample=(1, 1), border_mode='same', b
mn_model.py:294
↓ 4 callersFunctionbn_conv
(input_layer, layer_name, nb_filter, nb_row, nb_col, subsample=(1, 1), border_mode='same', bias=co
mn_model.py:283
↓ 4 callersMethodgenerate_anchor_boxes
Compute an array of the spatial positions and sizes of the anchor boxes for one particular classification layer of size `feature_map_
ssd_box_encode_decode_utils.py:571
↓ 4 callersFunctioniou
Compute the intersection-over-union similarity (also known as Jaccard similarity) of two axis-aligned 2D rectangular boxes or of multiple axi
ssd_box_encode_decode_utils.py:26
↓ 2 callersFunction_brightness
Randomly change the brightness of the input image. Protected against overflow.
face_generator.py:181
↓ 2 callersFunction_flip
Flip the input image horizontally or vertically.
face_generator.py:153
↓ 2 callersFunction_scale
Scale the input image by a random factor picked from a uniform distribution over [min, max]. Returns: The scaled image, the asso
face_generator.py:163
↓ 2 callersFunction_translate
Randomly translate the input image horizontally and vertically. Arguments: image (array-like): The image to be translated. h
face_generator.py:128
↓ 2 callersFunctionhistogram_eq
Perform histogram equalization on the input image. See https://en.wikipedia.org/wiki/Histogram_equalization.
face_generator.py:201
↓ 2 callersFunctionmake_npy
(annotation_file, relative_img_path)
wider_extract.py:4
↓ 1 callersMethod__init__
(self, init_weights=1.0, bias=True, trainable=True, **kwargs)
mn_model.py:238
↓ 1 callersFunction_conv_block
(inputs, filters, alpha, kernel=(3, 3), strides=(1, 1))
mn_model.py:271
↓ 1 callersFunction_greedy_nms
The same greedy non-maximum suppression algorithm as above, but slightly modified for use as an internal function for per-class NMS in `decod
ssd_box_encode_decode_utils.py:193
↓ 1 callersFunction_greedy_nms2
The same greedy non-maximum suppression algorithm as above, but slightly modified for use as an internal function in `decode_y2()`.
ssd_box_encode_decode_utils.py:210
↓ 1 callersMethodencode_y
Convert ground truth bounding box data into a suitable format to train an SSD model. For each image in the batch, each ground truth
ssd_box_encode_decode_utils.py:802
↓ 1 callersMethodgenerate_encode_template
Produces an encoding template for the ground truth label tensor for a given batch. Note that all tensor creation, reshaping and conc
ssd_box_encode_decode_utils.py:704
↓ 1 callersMethodget_config
(self)
mn_model.py:262
↓ 1 callersMethodlog_loss
Compute the softmax log loss. Arguments: y_true (nD tensor): A TensorFlow tensor of any shape containing the ground trut
keras_ssd_loss.py:80
↓ 1 callersMethodsmooth_L1_loss
Compute smooth L1 loss, see references. Arguments: y_true (nD tensor): A TensorFlow tensor of any shape containing the g
keras_ssd_loss.py:56
Method__init__
Arguments: images_path (str): The filepath to the image samples. include_classes (list, optional): Either 'all' or a
face_generator.py:229
Method__init__
All arguments need to be set to the same values as in the box encoding process, otherwise the behavior is undefined. Arguments:
keras_layer_AnchorBoxes.py:57
Method__init__
Arguments: img_height (int): The height of the input images. img_width (int): The width of the input images.
ssd_box_encode_decode_utils.py:447
Method__init__
(self, kernel_size, strides=(1, 1), padding='valid',
mn_model.py:53
Method__init__
Arguments: neg_pos_ratio (int, optional): The maximum number of negative (i.e. background) ground truth boxes to
keras_ssd_loss.py:28
Method__init__
(self, gamma_init=20, **kwargs)
keras_layer_L2Normalization.py:46
Functionadd_inception
(input_layer, list_nb_filter, base_name)
mn_model.py:305
Methodbuild
(self, input_shape)
keras_layer_AnchorBoxes.py:127
Methodbuild
(self, input_shape)
mn_model.py:87
Methodbuild
(self, input_shape)
mn_model.py:245
Methodbuild
(self, input_shape)
keras_layer_L2Normalization.py:51
Methodcall
Return an anchor box tensor based on the shape of the input tensor. The logic implemented here is identical to the logic in the modu
keras_layer_AnchorBoxes.py:131
Methodcall
(self, inputs, training=None)
mn_model.py:124
Methodcall
(self, x, mask=None)
mn_model.py:256
Methodcall
(self, x, mask=None)
keras_layer_L2Normalization.py:58
Methodcompute_loss
Compute the loss of the SSD model prediction against the ground truth. Arguments: y_true (array): A Numpy array of shape
keras_ssd_loss.py:101
Methodcompute_output_shape
(self, input_shape)
keras_layer_AnchorBoxes.py:229
Methodcompute_output_shape
(self, input_shape)
mn_model.py:144
Functionconvert_coordinates2
A pure matrix multiplication implementation of `convert_coordinates()`. Although elegant, it turns out to be marginally slower on average th
ssd_box_encode_decode_utils.py:111
Functiondecode_y
Convert model prediction output back to a format that contains only the positive box predictions (i.e. the same format that `enconde_y()` tak
ssd_box_encode_decode_utils.py:227
Functiondecode_y2
Convert model prediction output back to a format that contains only the positive box predictions (i.e. the same format that `enconde_y()` tak
ssd_box_encode_decode_utils.py:333
Methodf1
()
keras_ssd_loss.py:176
Methodf2
()
keras_ssd_loss.py:180
Methodgenerate
Generate batches of samples and corresponding labels indefinitely from lists of filenames and labels. Returns two numpy arra
face_generator.py:508
Methodget_config
(self)
mn_model.py:166
Methodget_filenames_labels
Returns: The list of filenames and the list of labels.
face_generator.py:1013
Methodget_n_samples
Returns: The number of image files in the initialized dataset.
face_generator.py:1020
Functiongreedy_nms
Perform greedy non-maximum suppression on the input boxes. Greedy NMS works by selecting the box with the highest score and removing all
ssd_box_encode_decode_utils.py:140
Functionmn_model
(image_size, n_classes, min_scale=0.1, max_scale=0.9, scal
mn_model.py:327
Methodparse_csv
Arguments: labels_path (str, optional): The filepath to a CSV file that contains one ground truth bounding box per line
face_generator.py:270
Methodparse_xml
This is a parser for the Pascal VOC datasets. It might be used for other datasets with minor changes to the code, but in its current
face_generator.py:363
Methodprocess_offline
Perform offline image processing. This function the same image processing capabilities as the generator function above, but
face_generator.py:1027
Functionrelu6
(x)
mn_model.py:48
Functionsave_bb
(path, filename, results, prediction=True)
face_generator.py:49
Functionseparable_res_block1
(input_layer, layer_name, nb_filter, nb_row, subsample=(1, 1))
mn_model.py:36