Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ambakick/Person-Detection-and-Tracking
/ functions
Functions
2,187 in github.com/ambakick/Person-Detection-and-Tracking
⨍
Functions
2,187
◇
Types & classes
295
↓ 1 callers
Function
matched_intersection
Compute intersection areas between corresponding boxes in two boxlists. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding N
core/box_list_ops.py:229
↓ 1 callers
Method
matched_row_indices
Returns row indices that match some column. The indices returned by this op are ordered so as to be in correspondence with the output of matc
core/matcher.py:160
↓ 1 callers
Function
merge_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:294
↓ 1 callers
Function
multiclass_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
core/post_processing.py:26
↓ 1 callers
Function
nasnet_large_arg_scope_for_detection
Defines the default arg scope for the NASNet-A Large for object detection. This provides a small edit to switch batch norm training on and off.
models/faster_rcnn_nas_feature_extractor.py:33
↓ 1 callers
Function
non_max_suppression
Non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high IOU (intersection over
utils/np_box_mask_list_ops.py:161
↓ 1 callers
Function
non_max_suppression
Non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high IOU (intersection over
utils/np_box_list_ops.py:161
↓ 1 callers
Function
non_max_suppression
Non maximum suppression. This op greedily selects a subset of detection bounding boxes, pruning away boxes that have high IOU (intersection over
core/box_list_ops.py:692
↓ 1 callers
Method
num_anchors
(self)
meta_architectures/ssd_meta_arch_test.py:71
↓ 1 callers
Method
num_anchors_per_location
Returns the number of anchors per spatial location. Returns: a list of integers, one for each expected feature map to be passed to th
anchor_generators/multiscale_grid_anchor_generator.py:77
↓ 1 callers
Function
pad_tensor
Pads the input tensor with 0s along the first dimension up to the length. Args: t: the input tensor, assuming the rank is at least 1. lengt
utils/shape_utils.py:51
↓ 1 callers
Method
parse
Parses input and returns a numpy array or a dictionary of numpy arrays. Args: input_data: an input data Returns: A numpy array o
core/data_parser.py:31
↓ 1 callers
Function
pnasnet_large_arg_scope_for_detection
Defines the default arg scope for the PNASNet Large for object detection. This provides a small edit to switch batch norm training on and off. A
models/faster_rcnn_pnas_feature_extractor.py:31
↓ 1 callers
Function
prepare_example
Converts a dictionary with annotations for an image to tf.Example proto. Args: image_path: The complete path to image. annotations: A dicti
dataset_tools/create_kitti_tf_record.py:138
↓ 1 callers
Function
random_crop_pad_image
Randomly crops and pads the image. Given an input image and its bounding boxes, this op first randomly crops the image and then randomly pads the
core/preprocessor.py:1513
↓ 1 callers
Function
random_crop_to_aspect_ratio
Randomly crops an image to the specified aspect ratio. Randomly crops the a portion of the image such that the crop is of the specified aspect ra
core/preprocessor.py:1637
↓ 1 callers
Function
random_jitter_box
Randomly jitter box. Args: box: bounding box [1, 1, 4]. ratio: max ratio between jittered box and original box, a number betwee
core/preprocessor.py:1070
↓ 1 callers
Function
random_pad_image
Randomly pads the image. This function randomly pads the image with zeros. The final size of the padded image will be between min_image_size and
core/preprocessor.py:1394
↓ 1 callers
Function
random_pad_to_aspect_ratio
Randomly zero pads an image to the specified aspect ratio. Pads the image so that the resulting image will have the specified aspect ratio withou
core/preprocessor.py:1801
↓ 1 callers
Function
read_annotation_file
Reads a KITTI annotation file. Converts a KITTI annotation file into a dictionary containing all the relevant information. Args: filename:
dataset_tools/create_kitti_tf_record.py:262
↓ 1 callers
Function
read_data_and_evaluate
Reads pre-computed object detections and groundtruth from tf_record. Args: input_config: input config proto of type object_detection.prot
metrics/offline_eval_map_corloc.py:76
↓ 1 callers
Function
refine_boxes
Refines a pool of boxes using non max suppression and box voting. Args: pool_boxes: (BoxList) A collection of boxes to be refined. pool_boxes m
core/box_list_ops.py:865
↓ 1 callers
Function
replace_variable_values_with_moving_averages
Replaces variable values in the checkpoint with their moving averages. If the current checkpoint has shadow variables maintaining moving averages o
exporter.py:101
↓ 1 callers
Method
restore_from_classification_checkpoint_fn
Returns a map of variables to load from a foreign checkpoint. Args: first_stage_feature_extractor_scope: A scope name for the first stage
meta_architectures/faster_rcnn_meta_arch.py:195
↓ 1 callers
Function
run_inference_for_single_image
(image, graph)
jupyter.py:79
↓ 1 callers
Function
scale
Scale box coordinates in x and y dimensions. Args: boxlist: BoxList holding N boxes y_scale: float x_scale: float Returns: boxli
utils/np_box_list_ops.py:308
↓ 1 callers
Function
sort_by_field
Sort boxes and associated fields according to a scalar field. A common use case is reordering the boxes according to descending scores. Args:
utils/np_box_mask_list_ops.py:141
↓ 1 callers
Function
sort_by_field
Sort boxes and associated fields according to a scalar field. A common use case is reordering the boxes according to descending scores. Args:
core/box_list_ops.py:555
↓ 1 callers
Function
strict_random_crop_image_fn
()
core/preprocessor.py:1353
↓ 1 callers
Function
tile_anchors
Create a tiled set of anchors strided along a grid in image space. This op creates a set of anchor boxes by placing a "basis" collection of boxes
anchor_generators/grid_anchor_generator.py:132
↓ 1 callers
Function
transform_boxes_relative_to_boxes
(boxes, reference_boxes)
utils/ops.py:715
↓ 1 callers
Method
transpose_coordinates
Transpose the coordinate representation in a boxlist. Args: scope: name scope of the function.
core/box_list.py:176
↓ 1 callers
Method
unmatched_or_ignored_column_indices
Returns column indices that are unmatched or ignored. The indices returned by this op are always sorted in increasing order. Returns:
core/matcher.py:150
↓ 1 callers
Method
update_R
(self)
tracker.py:60
↓ 1 callers
Function
write_frozen_graph
Writes frozen graph to disk. Args: frozen_graph_path: Path to write inference graph. frozen_graph_def: tf.GraphDef holding frozen graph.
exporter.py:252
↓ 1 callers
Function
write_graph_and_checkpoint
Writes the graph and the checkpoint into disk.
exporter.py:311
↓ 1 callers
Function
write_metrics
Write metrics to a summary directory. Args: metrics: A dictionary containing metric names and values. global_step: Global step at which the
eval_util.py:36
↓ 1 callers
Function
write_metrics
Write metrics to the output directory. Args: metrics: A dictionary containing metric names and values. output_dir: Directory to write metri
metrics/offline_eval_map_corloc.py:137
↓ 1 callers
Function
write_saved_model
Writes SavedModel to disk. If checkpoint_path is not None bakes the weights into the graph thereby eliminating the need of checkpoint files durin
exporter.py:264
Function
Dump
Wrapper of json.dump that allows specifying the float precision used. Args: obj: The object to dump. fid: The file id to write to. floa
utils/json_utils.py:24
Function
Dumps
Wrapper of json.dumps that allows specifying the float precision used. Args: obj: The object to dump. float_digits: The number of digits of
utils/json_utils.py:42
Function
ExportDetectionsToCOCO
Export detection annotations in numpy arrays to COCO API. This function converts a set of predicted detections represented as numpy arrays to dic
metrics/coco_tools.py:610
Function
ExportGroundtruthToCOCO
Export groundtruth detection annotations in numpy arrays to COCO API. This function converts a set of groundtruth detection annotations represented
metrics/coco_tools.py:412
Function
ExportKeypointsToCOCO
Exports keypoints in numpy arrays to COCO API. This function converts a set of predicted keypoints represented as numpy arrays to dictionaries th
metrics/coco_tools.py:754
Function
ExportSegmentsToCOCO
Export segmentation masks in numpy arrays to COCO API. This function converts a set of predicted instance masks represented as numpy arrays to di
metrics/coco_tools.py:674
Function
PrettyParams
Returns parameters for use with Dump and Dumps to output pretty json. Example usage: ```json_str = json_utils.Dumps(obj, **json_utils.PrettyPar
utils/json_utils.py:67
Method
__call__
Call the loss function. Args: prediction_tensor: an N-d tensor of shape [batch, anchors, ...] representing predicted quantities.
core/losses.py:45
Method
__call__
Computes localization and classification losses after hard mining. Args: location_losses: a float tensor of shape [num_images, num_anchors]
core/losses.py:499
Method
__enter__
(self)
utils/context_manager.py:32
Method
__enter__
(self)
core/box_predictor.py:575
Method
__exit__
(self, exec_type, exec_value, traceback)
utils/context_manager.py:35
Method
__exit__
(self, exc_type, exc_value, traceback)
core/box_predictor.py:578
Method
__init__
(self)
trainer_test.py:55
Method
__init__
(self)
detector.py:19
Method
__init__
(self)
helpers.py:12
Method
__init__
(self, add_detection_keypoints=False, add_detection_masks=False)
exporter_test.py:37
Method
__init__
(self)
tracker.py:11
Method
__init__
Constructs a GridAnchorGenerator. Args: scales: a list of (float) scales, default=(0.5, 1.0, 2.0) aspect_ratios: a list of (float) as
anchor_generators/grid_anchor_generator.py:33
Method
__init__
Constructs a MultiscaleGridAnchorGenerator. To construct anchors, at multiple scale resolutions, one must provide a the minimum level and max
anchor_generators/multiscale_grid_anchor_generator.py:31
Method
__init__
Constructs a MultipleGridAnchorGenerator. To construct anchors, at multiple grid resolutions, one must provide a list of feature_map_shape_li
anchor_generators/multiple_grid_anchor_generator.py:38
Method
__init__
Constructs box collection. Args: data: a numpy array of shape [N, 4] representing box coordinates Raises: ValueError: if bbox da
utils/np_box_list.py:33
Method
__init__
(self, matching_iou_threshold=0.5)
utils/vrd_evaluation.py:277
Method
__init__
(self, matching_iou_threshold=0.5)
utils/vrd_evaluation.py:322
Method
__init__
Constructor. Args: matching_iou_threshold: IOU threshold to use for matching groundtruth boxes to detection boxes.
utils/vrd_evaluation.py:411
Method
__init__
Initialized PerImageVRDEvaluation by evaluation parameters. Args: matching_iou_threshold: A ratio of area intersection to union, which is
utils/per_image_vrd_evaluation.py:31
Method
__init__
Initialized PerImageEvaluation by evaluation parameters. Args: num_groundtruth_classes: Number of ground truth object classes matchin
utils/per_image_evaluation.py:34
Method
__init__
(self, is_training, num_classes)
utils/test_utils.py:45
Method
__init__
Constructs box collection. Args: box_data: a numpy array of shape [N, 4] representing box coordinates mask_data: a numpy array of sha
utils/np_box_mask_list.py:30
Method
__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id uniquely iden
utils/object_detection_evaluation.py:107
Method
__init__
(self, categories, matching_iou_threshold=0.5)
utils/object_detection_evaluation.py:316
Method
__init__
(self, categories, matching_iou_threshold=0.5)
utils/object_detection_evaluation.py:339
Method
__init__
(self, categories, matching_iou_threshold=0.5)
utils/object_detection_evaluation.py:351
Method
__init__
(self, categories, matching_iou_threshold=0.5)
utils/object_detection_evaluation.py:375
Method
__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id uniquely iden
utils/object_detection_evaluation.py:392
Method
__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id uniquely iden
utils/object_detection_evaluation.py:485
Method
__init__
(self, num_groundtruth_classes, matching_iou_threshold=0.5, nms_i
utils/object_detection_evaluation.py:606
Method
__init__
Initializes the BackupHandler handler. If the first Handler's tensors_to_item returns a Tensor with no elements, the second Handler is used.
data_decoders/tf_example_decoder.py:75
Method
__init__
Constructor sets keys_to_features and items_to_handlers. Args: load_instance_masks: whether or not to load and handle instance masks.
data_decoders/tf_example_decoder.py:109
Method
__init__
(self, field_name)
metrics/tf_example_parser.py:30
Method
__init__
(self, field_name)
metrics/tf_example_parser.py:43
Method
__init__
(self, field_name)
metrics/tf_example_parser.py:55
Method
__init__
(self, xmin_field_name, ymin_field_name, xmax_field_name, ymax_field_name)
metrics/tf_example_parser.py:68
Method
__init__
(self)
metrics/tf_example_parser.py:88
Method
__init__
COCOEvalWrapper constructor. Note that for the area-based metrics to be meaningful, detection and groundtruth boxes must be in image coordina
metrics/coco_tools.py:153
Method
__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id uniquely iden
metrics/coco_evaluation.py:27
Method
__init__
Constructs a minibatch sampler.
core/minibatch_sampler.py:43
Method
__init__
Constructs box collection. Args: boxes: a tensor of shape [N, 4] representing box corners Raises: ValueError: if invalid dimensi
core/box_list.py:43
Method
__init__
Constructor. Args: is_training: Indicates whether the BoxPredictor is in training mode. num_classes: number of classes. Note that nu
core/box_predictor.py:151
Method
__init__
Constructor. Args: is_training: Indicates whether the BoxPredictor is in training mode. num_classes: number of classes. Note that nu
core/box_predictor.py:301
Method
__init__
Constructor. Args: is_training: Indicates whether the BoxPredictor is in training mode. num_classes: number of classes. Note that nu
core/box_predictor.py:594
Method
__init__
Constructor. Args: is_training: Indicates whether the BoxPredictor is in training mode. num_classes: number of classes. Note that nu
core/box_predictor.py:795
Method
__init__
(self)
core/preprocessor_cache.py:65
Method
__init__
Constructs a Match object. Args: match_results: Integer tensor of shape [N] with (1) match_results[i]>=0, meaning that column i is
core/matcher.py:49
Method
__init__
Constructs a Matcher. Args: use_matmul_gather: Force constructed match objects to use matrix multiplication based gather instead of
core/matcher.py:212
Method
__init__
Constructor. Args: delta: delta for smooth L1 loss.
core/losses.py:129
Method
__init__
Constructor. Args: gamma: exponent of the modulating factor (1 - p_t) ^ gamma. alpha: optional alpha weighting factor to balance posi
core/losses.py:231
Method
__init__
Constructor. Args: logit_scale: When this value is high, the prediction is "diffused" and when this value is low, the pr
core/losses.py:287
Method
__init__
Constructor. Args: logit_scale: When this value is high, the target is "diffused" and when this value is low, the target
core/losses.py:328
Method
__init__
Constructor. Args: alpha: a float32 scalar tensor between 0 and 1 representing interpolation weight bootstrap_type: set to ei
core/losses.py:386
Method
__init__
Constructor. The hard example mining implemented by this class can replicate the behavior in the two aforementioned papers (Srivastava et al.
core/losses.py:445
← previous
next →
501–600 of 2,187, ranked by callers