Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TianzhongSong/Tensorflow-quantization-test
/ functions
Functions
210 in github.com/TianzhongSong/Tensorflow-quantization-test
⨍
Functions
210
◇
Types & classes
47
↓ 124 callers
Function
conv_2d
2D convolution with quantization (float32-->int8)
utils/layers.py:17
↓ 75 callers
Function
conv2d_bn
(x, layer_count, weights, strides=1, padding='SAME')
models/inception_v3.py:38
↓ 40 callers
Function
get_weights_biases
(weights, weight_name, bias_name, quant=True)
models/ssd512.py:22
↓ 36 callers
Function
get_weights_biases
(weights, weight_name, bias_name='bbb', quant=True)
models/ssd300.py:19
↓ 32 callers
Function
maxpool_2d
(x, k=2, s=2, padding='VALID')
utils/layers.py:69
↓ 21 callers
Function
get_weights_biases_scale
(weights, weight_name, bias_name='bbb', quant=True)
models/unet.py:17
↓ 18 callers
Function
convert_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 callers
Function
get_weights_biases
(weights, weight_name, bias_name='bbb', quant=True)
models/vgg16.py:16
↓ 13 callers
Function
AnchorBoxes
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 callers
Function
_depthwise_conv_block
depthwise convolution and pointwise convolution
models/mobilenet.py:39
↓ 13 callers
Function
rand
(a=0, b=1)
utils/yolo_utils.py:33
↓ 13 callers
Function
separable_conv_block
(x, weights, sep_num, bn_num, strides=1, padding='SAME', activation=True)
models/xception.py:58
↓ 12 callers
Function
avgpool_2d
(x, k=2, s=1, padding='VALID')
utils/layers.py:75
↓ 12 callers
Function
batch_norm
(x, mean, variance, offset=None, scale=None)
utils/layers.py:13
↓ 12 callers
Function
identity_block
(inputs, weights, stage, block)
models/resnet50.py:39
↓ 8 callers
Function
fire_module
(x, weights, fire_id)
models/squeezenet.py:35
↓ 7 callers
Function
get_weights_biases_scale
(weights, weight_name, bias_name='bbb', quant=True)
models/resnet50.py:16
↓ 7 callers
Function
iou
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 callers
Function
conv_block
(x, weights, conv_num, bn_num, strides=1, padding='SAME', activation=True)
models/xception.py:44
↓ 6 callers
Function
denselayer
(x, w, b, weight_scale=0., activation='')
utils/layers.py:57
↓ 6 callers
Function
get_bn_param
(weights, mean, std, beta, gamma)
models/resnet50.py:31
↓ 5 callers
Function
get_weights
(weights, weight_name, bias_name='bbb', quant=True)
models/squeezenet.py:20
↓ 4 callers
Function
conv_block
(inputs, weights, stage, block, strides=2)
models/resnet50.py:71
↓ 4 callers
Function
get_weights
(weights, weight_name, bias_name, quant=True)
models/mobilenet.py:16
↓ 4 callers
Function
get_weights_biases
(weights, weight_name, bias_name='bbb', quant=True)
models/xception.py:16
↓ 4 callers
Function
weight_loader
(weight_file)
utils/load_weights.py:8
↓ 3 callers
Function
get_bn_param
(weights, mean, std, beta, gamma)
models/mobilenet.py:31
↓ 3 callers
Method
get_dataset_size
Returns: The number of images in the dataset.
utils/object_detection_2d_data_generator.py:1190
↓ 3 callers
Function
quantize
(x)
utils/layers.py:4
↓ 2 callers
Function
DecodeDetections
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 callers
Function
apply_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 callers
Method
generate
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 callers
Function
get_batch
(items, root_path, nClasses, height, width)
utils/segdata_generator.py:9
↓ 2 callers
Function
get_bn_param
(weights, layer_num)
models/xception.py:31
↓ 2 callers
Function
get_weights
(weights, weight_name, bias_name='bbb', quant=True)
models/inception_v3.py:16
↓ 2 callers
Method
predict
(self, inputs)
eval_object_detection.py:60
↓ 1 callers
Function
L2Normalization
(x, gamma)
models/ssd300.py:43
↓ 1 callers
Function
L2Normalization
(x, gamma)
models/ssd512.py:37
↓ 1 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Method
compute_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 callers
Function
compute_iou
(gt, pt)
eval_segmentation.py:10
↓ 1 callers
Method
compute_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 callers
Method
compute_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 callers
Function
convert_weights
(weight_file, output_weights)
quantize.py:16
↓ 1 callers
Function
decode_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 callers
Function
depthwise_conv2d
(x, w, b=None, strides=1, padding='SAME', activation='')
utils/layers.py:37
↓ 1 callers
Function
filter_predictions
(batch_item)
ssd_layers/ssd_DecodeDetections.py:118
↓ 1 callers
Function
filter_single_class
(index)
ssd_layers/ssd_DecodeDetections.py:120
↓ 1 callers
Method
generate
(self, dataset='voc2007')
eval_object_detection.py:31
↓ 1 callers
Method
generate
(self, dataset='voc2007')
eval_object_detection.py:74
↓ 1 callers
Method
generate_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 callers
Method
generate_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 callers
Function
generator
(root_path, path_file, batch_size, n_classes, input_height, input_width, train=True)
utils/segdata_generator.py:49
↓ 1 callers
Method
generator
(self)
pkl_reader.py:13
↓ 1 callers
Function
get_bn_param
(weights, mean, std, beta)
models/inception_v3.py:31
↓ 1 callers
Function
get_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 callers
Method
get_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 callers
Function
intersection_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 callers
Function
letterbox_image
resize image with unchanged aspect ratio using padding
utils/yolo_utils.py:19
↓ 1 callers
Method
load_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 callers
Method
load_pickle
(path)
pkl_reader.py:32
↓ 1 callers
Function
match_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 callers
Function
match_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 callers
Method
match_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 callers
Method
parse_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 callers
Method
parse_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 callers
Function
predict_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 callers
Method
predict_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 callers
Method
preprocessing
(im, model='vgg', dtype='float32')
pkl_reader.py:43
↓ 1 callers
Function
quantize
(weights)
quantize.py:6
↓ 1 callers
Function
quantize
(weights)
models/ssd300.py:9
↓ 1 callers
Function
quantize
(weights)
models/xception.py:6
↓ 1 callers
Function
quantize
(weights)
models/unet.py:7
↓ 1 callers
Function
quantize
(weights)
models/inception_v3.py:6
↓ 1 callers
Function
quantize
(weights)
models/resnet50.py:6
↓ 1 callers
Function
quantize
(weights)
models/ssd512.py:12
↓ 1 callers
Function
quantize
(weights)
models/vgg16.py:6
↓ 1 callers
Function
quantize
(weights)
models/squeezenet.py:10
↓ 1 callers
Function
quantize
(weights)
models/mobilenet.py:6
↓ 1 callers
Function
separable_conv2d
(x, dw, pw, dw_scale=0., pw_scale=0., strides=1, padding='SAME', activation='')
utils/layers.py:46
↓ 1 callers
Function
ssd_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 callers
Function
ssd_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 callers
Method
str2img
(str_im)
pkl_reader.py:39
↓ 1 callers
Function
top5_acc
(pred, k=5)
eval_image_classification.py:18
Function
InceptionV3
(img_input, weights)
models/inception_v3.py:55
Function
MobileNet
(img_input, weights, alpha)
models/mobilenet.py:72
Function
ResNet50
(x, weights)
models/resnet50.py:112
Function
SqueezeNet
(x, weights)
models/squeezenet.py:51
Function
Unet
(inputs, weights, n_classes, input_height, input_width)
models/unet.py:32
Function
VGG16
(x, weights)
models/vgg16.py:31
Function
Xception
(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