MCPcopy Create free account

hub / github.com/TianzhongSong/Tensorflow-quantization-test / functions

Functions210 in github.com/TianzhongSong/Tensorflow-quantization-test

↓ 124 callersFunctionconv_2d
2D convolution with quantization (float32-->int8)
utils/layers.py:17
↓ 75 callersFunctionconv2d_bn
(x, layer_count, weights, strides=1, padding='SAME')
models/inception_v3.py:38
↓ 40 callersFunctionget_weights_biases
(weights, weight_name, bias_name, quant=True)
models/ssd512.py:22
↓ 36 callersFunctionget_weights_biases
(weights, weight_name, bias_name='bbb', quant=True)
models/ssd300.py:19
↓ 32 callersFunctionmaxpool_2d
(x, k=2, s=2, padding='VALID')
utils/layers.py:69
↓ 21 callersFunctionget_weights_biases_scale
(weights, weight_name, bias_name='bbb', quant=True)
models/unet.py:17
↓ 18 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. C
ssd_layers/bounding_box_utils.py:21
↓ 16 callersFunctionget_weights_biases
(weights, weight_name, bias_name='bbb', quant=True)
models/vgg16.py:16
↓ 13 callersFunctionAnchorBoxes
A TensorFlow layer to create an output tensor containing anchor box coordinates and variances based on the input tensor and the pas
ssd_layers/ssd_AchorBoxes.py:10
↓ 13 callersFunction_depthwise_conv_block
depthwise convolution and pointwise convolution
models/mobilenet.py:39
↓ 13 callersFunctionrand
(a=0, b=1)
utils/yolo_utils.py:33
↓ 13 callersFunctionseparable_conv_block
(x, weights, sep_num, bn_num, strides=1, padding='SAME', activation=True)
models/xception.py:58
↓ 12 callersFunctionavgpool_2d
(x, k=2, s=1, padding='VALID')
utils/layers.py:75
↓ 12 callersFunctionbatch_norm
(x, mean, variance, offset=None, scale=None)
utils/layers.py:13
↓ 12 callersFunctionidentity_block
(inputs, weights, stage, block)
models/resnet50.py:39
↓ 8 callersFunctionfire_module
(x, weights, fire_id)
models/squeezenet.py:35
↓ 7 callersFunctionget_weights_biases_scale
(weights, weight_name, bias_name='bbb', quant=True)
models/resnet50.py:16
↓ 7 callersFunctioniou
Computes the intersection-over-union similarity (also known as Jaccard similarity) of two sets of axis-aligned 2D rectangular boxes. L
ssd_layers/bounding_box_utils.py:270
↓ 6 callersFunctionconv_block
(x, weights, conv_num, bn_num, strides=1, padding='SAME', activation=True)
models/xception.py:44
↓ 6 callersFunctiondenselayer
(x, w, b, weight_scale=0., activation='')
utils/layers.py:57
↓ 6 callersFunctionget_bn_param
(weights, mean, std, beta, gamma)
models/resnet50.py:31
↓ 5 callersFunctionget_weights
(weights, weight_name, bias_name='bbb', quant=True)
models/squeezenet.py:20
↓ 4 callersFunctionconv_block
(inputs, weights, stage, block, strides=2)
models/resnet50.py:71
↓ 4 callersFunctionget_weights
(weights, weight_name, bias_name, quant=True)
models/mobilenet.py:16
↓ 4 callersFunctionget_weights_biases
(weights, weight_name, bias_name='bbb', quant=True)
models/xception.py:16
↓ 4 callersFunctionweight_loader
(weight_file)
utils/load_weights.py:8
↓ 3 callersFunctionget_bn_param
(weights, mean, std, beta, gamma)
models/mobilenet.py:31
↓ 3 callersMethodget_dataset_size
Returns: The number of images in the dataset.
utils/object_detection_2d_data_generator.py:1190
↓ 3 callersFunctionquantize
(x)
utils/layers.py:4
↓ 2 callersFunctionDecodeDetections
All default argument values follow the Caffe implementation. Arguments: confidence_thresh (float, optional): A float in [0,1), the
ssd_layers/ssd_DecodeDetections.py:19
↓ 2 callersFunctionapply_inverse_transforms
Takes a list or Numpy array of decoded predictions and applies a given list of transforms to them. The list of inverse transforms would usual
utils/object_detection_2d_misc_utils.py:18
↓ 2 callersMethodgenerate
Generates batches of samples and (optionally) corresponding labels indefinitely. Can shuffle the samples consistently after each co
utils/object_detection_2d_data_generator.py:810
↓ 2 callersFunctionget_batch
(items, root_path, nClasses, height, width)
utils/segdata_generator.py:9
↓ 2 callersFunctionget_bn_param
(weights, layer_num)
models/xception.py:31
↓ 2 callersFunctionget_weights
(weights, weight_name, bias_name='bbb', quant=True)
models/inception_v3.py:16
↓ 2 callersMethodpredict
(self, inputs)
eval_object_detection.py:60
↓ 1 callersFunctionL2Normalization
(x, gamma)
models/ssd300.py:43
↓ 1 callersFunctionL2Normalization
(x, gamma)
models/ssd512.py:37
↓ 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 `dec
utils/ssd_output_decoder.py:70
↓ 1 callersFunction_greedy_nms2
The same greedy non-maximum suppression algorithm as above, but slightly modified for use as an internal function in `decode_detections_fas
utils/ssd_output_decoder.py:87
↓ 1 callersFunction_greedy_nms_debug
The same greedy non-maximum suppression algorithm as above, but slightly modified for use as an internal function for per-class NMS in `dec
utils/ssd_output_decoder.py:452
↓ 1 callersMethodcompute_average_precisions
Computes the average precision for each class. Can compute the Pascal-VOC-style average precision in both the pre-2010 (k-point sam
utils/average_precision_evaluator.py:764
↓ 1 callersFunctioncompute_iou
(gt, pt)
eval_segmentation.py:10
↓ 1 callersMethodcompute_mean_average_precision
Computes the mean average precision over all classes. Note that `compute_average_precisions()` must be called before calling this m
utils/average_precision_evaluator.py:862
↓ 1 callersMethodcompute_precision_recall
Computes the precisions and recalls for all classes. Note that `match_predictions()` must be called before calling this method.
utils/average_precision_evaluator.py:722
↓ 1 callersFunctionconvert_weights
(weight_file, output_weights)
quantize.py:16
↓ 1 callersFunctiondecode_detections
Convert model prediction output back to a format that contains only the positive box predictions (i.e. the same format that `SSDInputEncode
utils/ssd_output_decoder.py:104
↓ 1 callersFunctiondepthwise_conv2d
(x, w, b=None, strides=1, padding='SAME', activation='')
utils/layers.py:37
↓ 1 callersFunctionfilter_predictions
(batch_item)
ssd_layers/ssd_DecodeDetections.py:118
↓ 1 callersFunctionfilter_single_class
(index)
ssd_layers/ssd_DecodeDetections.py:120
↓ 1 callersMethodgenerate
(self, dataset='voc2007')
eval_object_detection.py:31
↓ 1 callersMethodgenerate
(self, dataset='voc2007')
eval_object_detection.py:74
↓ 1 callersMethodgenerate_anchor_boxes_for_layer
Computes an array of the spatial positions and sizes of the anchor boxes for one predictor layer of size `feature_map_size == [feat
utils/ssd_input_encoder.py:413
↓ 1 callersMethodgenerate_encoding_template
Produces an encoding template for the ground truth label tensor for a given batch. Note that all tensor creation, reshaping and con
utils/ssd_input_encoder.py:541
↓ 1 callersFunctiongenerator
(root_path, path_file, batch_size, n_classes, input_height, input_width, train=True)
utils/segdata_generator.py:49
↓ 1 callersMethodgenerator
(self)
pkl_reader.py:13
↓ 1 callersFunctionget_bn_param
(weights, mean, std, beta)
models/inception_v3.py:31
↓ 1 callersFunctionget_coco_category_maps
Builds dictionaries that map between MS COCO category IDs, transformed category IDs, and category names. The original MS COCO category IDs
utils/coco_utils.py:29
↓ 1 callersMethodget_num_gt_per_class
Counts the number of ground truth boxes for each class across the dataset. Arguments: ignore_neutral_boxes (bool, opti
utils/average_precision_evaluator.py:463
↓ 1 callersFunctionintersection_area_
The same as 'intersection_area()' but for internal use, i.e. without all the safety checks.
ssd_layers/bounding_box_utils.py:213
↓ 1 callersFunctionletterbox_image
resize image with unchanged aspect ratio using padding
utils/yolo_utils.py:19
↓ 1 callersMethodload_hdf5_dataset
Loads an HDF5 dataset that is in the format that the `create_hdf5_dataset()` method produces. Arguments: verb
utils/object_detection_2d_data_generator.py:210
↓ 1 callersMethodload_pickle
(path)
pkl_reader.py:32
↓ 1 callersFunctionmatch_bipartite_greedy
Returns a bipartite matching according to the given weight matrix. The algorithm works as follows: Let the first axis of `weight_matri
utils/matching_utils.py:18
↓ 1 callersFunctionmatch_multi
Matches all elements along the second axis of `weight_matrix` to their best matches along the first axis subject to the constraint that the
utils/matching_utils.py:73
↓ 1 callersMethodmatch_predictions
Matches predictions to ground truth boxes. Note that `predict_on_dataset()` must be called before calling this method. Arg
utils/average_precision_evaluator.py:522
↓ 1 callersMethodparse_json
This is an JSON parser for the MS COCO datasets. It might be applicable to other datasets with minor changes to the code, but in it
utils/object_detection_2d_data_generator.py:529
↓ 1 callersMethodparse_xml
This is an XML parser for the Pascal VOC datasets. It might be applicable to other datasets with minor changes to the code, but in
utils/object_detection_2d_data_generator.py:389
↓ 1 callersFunctionpredict_all_to_json
Runs detection predictions over the whole dataset given a model and saves them in a JSON file in the MS COCO detection results format.
utils/coco_utils.py:60
↓ 1 callersMethodpredict_on_dataset
Runs predictions for the given model over the entire dataset given by `data_generator`. Arguments: img_height (int): T
utils/average_precision_evaluator.py:248
↓ 1 callersMethodpreprocessing
(im, model='vgg', dtype='float32')
pkl_reader.py:43
↓ 1 callersFunctionquantize
(weights)
quantize.py:6
↓ 1 callersFunctionquantize
(weights)
models/ssd300.py:9
↓ 1 callersFunctionquantize
(weights)
models/xception.py:6
↓ 1 callersFunctionquantize
(weights)
models/unet.py:7
↓ 1 callersFunctionquantize
(weights)
models/inception_v3.py:6
↓ 1 callersFunctionquantize
(weights)
models/resnet50.py:6
↓ 1 callersFunctionquantize
(weights)
models/ssd512.py:12
↓ 1 callersFunctionquantize
(weights)
models/vgg16.py:6
↓ 1 callersFunctionquantize
(weights)
models/squeezenet.py:10
↓ 1 callersFunctionquantize
(weights)
models/mobilenet.py:6
↓ 1 callersFunctionseparable_conv2d
(x, dw, pw, dw_scale=0., pw_scale=0., strides=1, padding='SAME', activation='')
utils/layers.py:46
↓ 1 callersFunctionssd_300
Build a Keras model with SSD300 architecture, see references. The base network is a reduced atrous VGG-16, extended by the SSD architecture
models/ssd300.py:48
↓ 1 callersFunctionssd_512
Build a TensorFlow model with SSD512 architecture, see references. The base network is a reduced atrous VGG-16, extended by the SSD
models/ssd512.py:42
↓ 1 callersMethodstr2img
(str_im)
pkl_reader.py:39
↓ 1 callersFunctiontop5_acc
(pred, k=5)
eval_image_classification.py:18
FunctionInceptionV3
(img_input, weights)
models/inception_v3.py:55
FunctionMobileNet
(img_input, weights, alpha)
models/mobilenet.py:72
FunctionResNet50
(x, weights)
models/resnet50.py:112
FunctionSqueezeNet
(x, weights)
models/squeezenet.py:51
FunctionUnet
(inputs, weights, n_classes, input_height, input_width)
models/unet.py:32
FunctionVGG16
(x, weights)
models/vgg16.py:31
FunctionXception
(x, weights)
models/xception.py:75
Method__call__
(self, image, labels=None)
utils/object_detection_2d_photometric_ops.py:40
Method__call__
(self, image, labels=None)
utils/object_detection_2d_photometric_ops.py:74
Method__call__
(self, image, labels=None)
utils/object_detection_2d_photometric_ops.py:93
Method__call__
(self, image, labels=None)
utils/object_detection_2d_photometric_ops.py:123
Method__call__
(self, image, labels=None)
utils/object_detection_2d_photometric_ops.py:150
Method__call__
(self, image, labels=None)
utils/object_detection_2d_photometric_ops.py:177
Method__call__
(self, image, labels=None)
utils/object_detection_2d_photometric_ops.py:207
next →1–100 of 210, ranked by callers