MCPcopy Create free account

hub / github.com/JunshengFu/traffic-light-detector / functions

Functions385 in github.com/JunshengFu/traffic-light-detector

Function_to_absolute_coordinates
(normalized_boxes)
utils/ops.py:65
Function_update_valid_indices_by_removing_high_iou_boxes
( selected_indices, is_index_valid, intersect_over_union, threshold)
utils/np_box_list_ops.py:552
Functionadd_cdf_image_summary
Adds a tf.summary.image for a CDF plot of the values. Normalizes `values` such that they sum to 1, plots the cumulative distribution function and
utils/visualization_utils.py:493
Functionadd_cdf_image_summary
Adds a tf.summary.image for a CDF plot of the values. Normalizes `values` such that they sum to 1, plots the cumulative distribution function and
utils/visualization_utils(backup).py:499
Methodadd_single_detected_image_info
Adds detections for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image. detec
utils/object_detection_evaluation.py:191
Methodadd_single_detected_image_info
Adds detections for a single image to be used for evaluation. Args: image_key: A unique string/integer identifier for the image. dete
utils/object_detection_evaluation.py:476
Methodadd_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image. grou
utils/object_detection_evaluation.py:143
Methodadd_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_key: A unique string/integer identifier for the image. gro
utils/object_detection_evaluation.py:430
Functionbytes_feature
(value)
utils/dataset_util.py:29
Functionbytes_list_feature
(value)
utils/dataset_util.py:33
Functioncdf_plot
Numpy function to plot CDF.
utils/visualization_utils.py:503
Functioncdf_plot
Numpy function to plot CDF.
utils/visualization_utils(backup).py:509
Functionchange_coordinate_frame
Change coordinate frame of the boxlist to be relative to window's frame. Given a window of the form [ymin, xmin, ymax, xmax], changes bounding bo
utils/np_box_list_ops.py:507
Methodclear
Clears the state to prepare for a fresh evaluation.
utils/object_detection_evaluation.py:257
Methodclear_detections
(self)
utils/object_detection_evaluation.py:420
Functionclip_to_window
Clip bounding boxes to a window. This op clips input bounding boxes (represented by bounding box corners) to a window, optionally filtering out b
utils/np_box_list_ops.py:335
Methodcode_size
(self)
utils/test_utils.py:32
Functioncombined_static_and_dynamic_shape
Returns a list containing static and dynamic values for the dimensions. Returns a list of static and dynamic values for shape dimensions. This is
utils/shape_utils.py:116
Functioncompute_average_precision
Compute Average Precision according to the definition in VOCdevkit. Precision is modified to ensure that it does not decrease as recall decrease.
utils/metrics.py:70
Functioncompute_cor_loc
Compute CorLoc according to the definition in the following paper. https://www.robots.ox.ac.uk/~vgg/rg/papers/deselaers-eccv10.pdf Returns nans
utils/metrics.py:122
Functioncompute_precision_recall
Compute precision and recall. Args: scores: A float numpy array representing detection score labels: A boolean numpy array representing tru
utils/metrics.py:22
Functioncosine_decay_with_warmup
Cosine decay schedule with warm up period. Cosine annealing learning rate as described in: Loshchilov and Hutter, SGDR: Stochastic Gradient Des
utils/learning_schedules.py:62
Functioncreate_category_index_from_labelmap
Reads a label map and returns a category index. Args: label_map_path: Path to `StringIntLabelMap` proto text file. Returns: A category i
utils/label_map_util.py:149
Functioncreate_class_agnostic_category_index
Creates a category index with a single `object` class.
utils/label_map_util.py:166
Functioncreate_diagonal_gradient_image
Creates pyramid image. Useful for testing. For example, pyramid_image(5, 6, 1) looks like: # [[[ 5. 4. 3. 2. 1. 0.] # [ 6. 5. 4. 3.
utils/test_utils.py:85
Functioncreate_pipeline_proto_from_configs
Creates a pipeline_pb2.TrainEvalPipelineConfig from configs dictionary. This function nearly performs the inverse operation of get_configs_from_p
utils/config_util.py:55
Functioncreate_random_boxes
Creates random bounding boxes of specific maximum height and width. Args: num_boxes: number of boxes. max_height: maximum height of boxes.
utils/test_utils.py:115
Functiondense_to_sparse_boxes
Converts bounding boxes from dense to sparse form. Args: dense_locations: a [max_num_boxes, 4] tensor in which only the first k rows are
utils/ops.py:224
Functiondraw_bounding_boxes_on_image_array
Draws bounding boxes on image (numpy array). Args: image: a numpy array object. boxes: a 2 dimensional numpy array of [N, 4]: (ymin, xmin,
utils/visualization_utils.py:198
Functiondraw_bounding_boxes_on_image_array
Draws bounding boxes on image (numpy array). Args: image: a numpy array object. boxes: a 2 dimensional numpy array of [N, 4]: (ymin, xmin,
utils/visualization_utils(backup).py:198
Functiondraw_bounding_boxes_on_image_tensors
Draws bounding boxes on batch of image tensors. Args: images: A 4D uint8 image tensor of shape [N, H, W, C]. boxes: [N, max_detections, 4]
utils/visualization_utils.py:261
Functiondraw_bounding_boxes_on_image_tensors
Draws bounding boxes on batch of image tensors. Args: images: A 4D uint8 image tensor of shape [N, H, W, C]. boxes: [N, max_detections, 4]
utils/visualization_utils(backup).py:261
Functiondraw_boxes
Draws boxes on image.
utils/visualization_utils.py:295
Functiondraw_boxes
Draws boxes on image.
utils/visualization_utils(backup).py:295
Functionencode_image_array_as_png_str
Encodes a numpy array into a PNG string. Args: image: a numpy array with shape [height, width, 3]. Returns: PNG encoded image string.
utils/visualization_utils.py:75
Functionencode_image_array_as_png_str
Encodes a numpy array into a PNG string. Args: image: a numpy array with shape [height, width, 3]. Returns: PNG encoded image string.
utils/visualization_utils(backup).py:75
Methodevaluate
Compute evaluation result. Returns: A dictionary of metrics with the following fields - 1. summary_metrics: 'Precision/mAP@<
utils/object_detection_evaluation.py:215
Methodevaluate
Compute evaluation result. Returns: A named tuple with the following fields - average_precision: float numpy array of average preci
utils/object_detection_evaluation.py:559
Functionexponential_decay_with_burnin
Exponential decay schedule with burn-in period. In this schedule, learning rate is fixed at burnin_learning_rate for a fixed period, before trans
utils/learning_schedules.py:21
Functionfilter_groundtruth_with_crowd_boxes
Filters out groundtruth with boxes corresponding to crowd. Args: tensor_dict: a dictionary of following groundtruth tensors - fields.Inpu
utils/ops.py:381
Functionfilter_groundtruth_with_nan_box_coordinates
Filters out groundtruth with no bounding boxes. Args: tensor_dict: a dictionary of following groundtruth tensors - fields.InputDataFields
utils/ops.py:404
Functionfloat_list_feature
(value)
utils/dataset_util.py:37
Functionfreeze_gradients_matching_regex
Freeze gradients whose variable names match a regular expression. Args: grads_and_vars: A list of gradient to variable pairs (tuples). rege
utils/variables_helper.py:79
Functionget_batch_size
Returns batch size from the tensor shape. Args: tensor_shape: A rank 4 TensorShape. Returns: An integer representing the batch size of t
utils/static_shape.py:22
Functionget_configs_from_multiple_files
Reads training configuration from multiple config files. Args: model_config_path: Path to model_pb2.DetectionModel. train_config_path: Path
utils/config_util.py:77
Functionget_configs_from_pipeline_file
Reads configuration from a pipeline_pb2.TrainEvalPipelineConfig. Args: pipeline_config_path: Path to pipeline_pb2.TrainEvalPipelineConfig text
utils/config_util.py:28
Functionget_depth
Returns depth from the tensor shape. Args: tensor_shape: A rank 4 TensorShape. Returns: An integer representing the depth of the tensor.
utils/static_shape.py:61
Functionget_height
Returns height from the tensor shape. Args: tensor_shape: A rank 4 TensorShape. Returns: An integer representing the height of the tenso
utils/static_shape.py:35
Functionget_label_map_dict
Reads a label map and returns a dictionary of label names to id. Args: label_map_path: path to label_map. use_display_name: whether to use
utils/label_map_util.py:129
Functionget_number_of_classes
Returns the number of classes for a detection model. Args: model_config: A model_pb2.DetectionModel. Returns: Number of classes. Rais
utils/config_util.py:130
Functionget_variables_available_in_checkpoint
Returns the subset of variables available in the checkpoint. Inspects given checkpoint and returns the subset of variables that are available in
utils/variables_helper.py:99
Functionget_width
Returns width from the tensor shape. Args: tensor_shape: A rank 4 TensorShape. Returns: An integer representing the width of the tensor.
utils/static_shape.py:48
Functionindices_to_dense_vector
Creates dense vector with indices set to specific value and rest to zeros. This function exists because it is unclear if it is safe to use tf.s
utils/ops.py:255
Functionint64_feature
(value)
utils/dataset_util.py:21
Functionint64_list_feature
(value)
utils/dataset_util.py:25
Functionintersection
Compute pairwise intersection areas between boxes. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding M boxes Returns:
utils/np_box_list_ops.py:53
Functionioa
Computes pairwise intersection-over-area between box collections. Intersection-over-area (ioa) between two boxes box1 and box2 is defined as thei
utils/np_box_ops.py:81
Functioniou
Computes pairwise intersection-over-union between box collections. Args: boxes1: a numpy array with shape [N, 4] holding N boxes. boxes2: a
utils/np_box_ops.py:63
Functioniou
Computes pairwise intersection-over-union between box collections. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding M boxe
utils/np_box_list_ops.py:66
Functionload_categories_from_csv_file
Loads categories from a csv file. The CSV file should have one comma delimited numeric category id and string category name pair per line. For ex
utils/category_util.py:22
Functionmanual_stepping
Manually stepped learning rate schedule. This function provides fine grained control over learning rates. One must specify a sequence of learnin
utils/learning_schedules.py:110
Functionmerge_boxes_with_multiple_labels
Merges boxes with same coordinates and returns K-hot encoded classes. Args: boxes: A tf.float32 tensor with shape [N, 4] holding N boxes. c
utils/ops.py:698
Functionmerge_external_params_with_configs
Updates `configs` dictionary based on supplied parameters. This utility is for modifying specific fields in the object detection configs. Say tha
utils/config_util.py:175
Functionmerge_numpy_boxes
Python function to merge numpy boxes.
utils/ops.py:715
Functionmeshgrid
Tiles the contents of x and y into a pair of grids. Multidimensional analog of numpy.meshgrid, giving the same behavior if x and y are vectors. G
utils/ops.py:79
Functionmulti_class_non_max_suppression
Multi-class version of non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high
utils/np_box_list_ops.py:236
Functionmultiply_gradients_matching_regex
Multiply gradients whose variable names match a regular expression. Args: grads_and_vars: A list of gradient to variable pairs (tuples). re
utils/variables_helper.py:57
Functionnormalize_to_target
L2 normalizes the inputs across the specified dimension to a target norm. This op implements the L2 Normalization layer introduced in Liu, Wei, e
utils/ops.py:429
Functionnormalized_to_image_coordinates
Converts a batch of boxes from normal to image coordinates. Args: normalized_boxes: a float32 tensor of shape [None, num_boxes, 4] in nor
utils/ops.py:51
Methodnum_anchors_per_location
(self)
utils/test_utils.py:70
Functionone_hot_and_pad
()
utils/ops.py:215
Functionpad_or_clip_tensor
Pad or clip the input tensor along the first dimension. Args: t: the input tensor, assuming the rank is at least 1. length: a tensor of sha
utils/shape_utils.py:94
Functionpad_to_multiple
Returns the tensor zero padded to the specified multiple. Appends 0s to the end of the first and second dimension (height and width) of the tenso
utils/ops.py:118
Functionpadded_one_hot_encoding
Returns a zero padded one-hot tensor. This function converts a sparse representation of indices (e.g., [4]) to a zero padded one-hot representati
utils/ops.py:182
Functionposition_sensitive_crop_regions
Position-sensitive crop and pool rectangular regions from a feature grid. The output crops are split into `spatial_bins_y` vertical bins and `spa
utils/ops.py:506
Functionprune_non_overlapping_boxes
Prunes the boxes in boxlist1 that overlap less than thresh with boxlist2. For each box in boxlist1, we want its IOA to be more than minoverlap with
utils/np_box_list_ops.py:369
Functionprune_outside_window
Prunes bounding boxes that fall outside a given window. This function prunes bounding boxes that even partially fall outside the given window. Se
utils/np_box_list_ops.py:392
Functionread_examples_list
Read list of training or validation examples. The file is assumed to contain a single example per line where the first token in the line is an id
utils/dataset_util.py:41
Functionrecursive_parse_xml_to_dict
Recursively parses XML contents to python dict. We assume that `object` tags are the only ones that can appear multiple times at the same level o
utils/dataset_util.py:63
Functionreframe_box_masks_to_image_masks
Transforms the box masks back to full image masks. Embeds masks in bounding boxes of larger masks whose shapes correspond to image shape. Args
utils/ops.py:656
Functionreplace_nan_groundtruth_label_scores_with_ones
Replaces nan label scores with 1.0. Args: label_scores: a tensor containing object annoation label scores. Returns: a tensor where NaN l
utils/ops.py:368
Functionretain_groundtruth_with_positive_classes
Retains only groundtruth with positive class ids. Args: tensor_dict: a dictionary of following groundtruth tensors - fields.InputDataFiel
utils/ops.py:342
Functionsave_categories_to_csv_file
Saves categories to a csv file. Args: categories: A list of dictionaries representing categories to save to file. Each category
utils/category_util.py:60
Functionsave_image_array_as_png
Saves an image (represented as a numpy array) to PNG. Args: image: a numpy array with shape [height, width, 3]. output_path: path to which
utils/visualization_utils.py:63
Functionsave_image_array_as_png
Saves an image (represented as a numpy array) to PNG. Args: image: a numpy array with shape [height, width, 3]. output_path: path to which
utils/visualization_utils(backup).py:63
MethodsetUp
(self)
utils/np_box_list_test.py:71
MethodsetUp
(self)
utils/np_box_ops_test.py:26
MethodsetUp
(self)
utils/per_image_evaluation_test.py:26
MethodsetUp
(self)
utils/per_image_evaluation_test.py:72
MethodsetUp
(self)
utils/per_image_evaluation_test.py:118
MethodsetUp
(self)
utils/np_box_list_ops_test.py:27
MethodsetUp
(self)
utils/np_box_list_ops_test.py:153
MethodsetUp
(self)
utils/np_box_list_ops_test.py:224
MethodsetUp
(self)
utils/np_box_list_ops_test.py:272
MethodsetUp
(self)
utils/object_detection_evaluation_test.py:197
MethodsetUp
(self)
utils/object_detection_evaluation_test.py:330
MethodtestAdamOptimizerWithNewLearningRate
Tests new learning rates for Adam Optimizer.
utils/config_util_test.py:212
MethodtestArea
(self)
utils/np_box_ops_test.py:35
MethodtestCosineDecayWithWarmup
(self)
utils/learning_schedules_test.py:43
MethodtestExponentialDecayWithBurnin
(self)
utils/learning_schedules_test.py:24
← previousnext →101–200 of 385, ranked by callers