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
Method
_apply_hard_mining
Applies hard mining to anchorwise losses. Args: location_losses: Float tensor of shape [batch_size, num_anchors] representing ancho
meta_architectures/ssd_meta_arch.py:748
↓ 1 callers
Function
_apply_with_random_selector
Computes func(x, sel), with sel sampled from [0...num_cases-1]. If both preprocess_vars_cache AND key are the same between two calls, sel will be
core/preprocessor.py:81
↓ 1 callers
Function
_arg_scope_func_key
Returns a key that can be used to index arg_scope dictionary.
core/box_predictor.py:774
↓ 1 callers
Method
_assert_correct_number_of_anchors
Assert that correct number of anchors was generated. Args: anchors_list: A list of box_list.BoxList object holding anchors generated.
core/anchor_generator.py:128
↓ 1 callers
Method
_assert_model_fn_for_predict
(self, configs)
model_lib_test.py:137
↓ 1 callers
Method
_assign_targets
Assign groundtruth targets. Adds a background class to each one-hot encoding of groundtruth classes and uses target assigner to obtain regres
meta_architectures/ssd_meta_arch.py:658
↓ 1 callers
Function
_build_activation_fn
Builds a callable activation from config. Args: activation_fn: hyperparams_pb2.Hyperparams.activation Returns: Callable activation funct
builders/hyperparams_builder.py:86
↓ 1 callers
Method
_build_arg_scope_with_conv_hyperparams
(self)
core/box_predictor_test.py:164
↓ 1 callers
Method
_build_arg_scope_with_hyperparams
(self, hyperparams_text_proto,
meta_architectures/faster_rcnn_meta_arch_test_lib.py:64
↓ 1 callers
Function
_build_batch_norm_params
Build a dictionary of batch_norm params from config. Args: batch_norm: hyperparams_pb2.ConvHyperparams.batch_norm proto. is_training: Wheth
builders/hyperparams_builder.py:162
↓ 1 callers
Function
_build_classification_loss
Builds a classification loss based on the loss config. Args: loss_config: A losses_pb2.ClassificationLoss object. Returns: Loss based on
builders/losses_builder.py:177
↓ 1 callers
Method
_build_conv_arg_scope_no_batch_norm
(self)
core/box_predictor_test.py:445
↓ 1 callers
Function
_build_detection_graph
Build the detection graph.
exporter.py:339
↓ 1 callers
Function
_build_faster_rcnn_feature_extractor
Builds a faster_rcnn_meta_arch.FasterRCNNFeatureExtractor based on config. Args: feature_extractor_config: A FasterRcnnFeatureExtractor proto c
builders/model_builder.py:215
↓ 1 callers
Function
_build_faster_rcnn_model
Builds a Faster R-CNN or R-FCN detection model based on the model config. Builds R-FCN model if the second_stage_box_predictor in the config is of
builders/model_builder.py:254
↓ 1 callers
Function
_build_initializer
Build a tf initializer from config. Args: initializer: hyperparams_pb2.Hyperparams.regularizer proto. Returns: tf initializer. Raises
builders/hyperparams_builder.py:127
↓ 1 callers
Function
_build_localization_loss
Builds a localization loss based on the loss config. Args: loss_config: A losses_pb2.LocalizationLoss object. Returns: Loss based on the
builders/losses_builder.py:147
↓ 1 callers
Function
_build_nasnet_base
Constructs a NASNet image model.
models/faster_rcnn_nas_feature_extractor.py:53
↓ 1 callers
Function
_build_non_max_suppressor
Builds non-max suppresson based on the nms config. Args: nms_config: post_processing_pb2.PostProcessing.BatchNonMaxSuppression proto. Return
builders/post_processing_builder.py:63
↓ 1 callers
Function
_build_plain_hierarchy
Expands tree hierarchy representation to parent-child dictionary. Args: hierarchy: labels hierarchy as JSON file. skip_root: if true skips ro
dataset_tools/oid_hierarchical_labels_expansion.py:41
↓ 1 callers
Function
_build_pnasnet_base
Constructs a PNASNet image model for proposal classifier features.
models/faster_rcnn_pnas_feature_extractor.py:74
↓ 1 callers
Function
_build_regularizer
Builds a tf-slim regularizer from config. Args: regularizer: hyperparams_pb2.Hyperparams.regularizer proto. Returns: tf-slim regularizer
builders/hyperparams_builder.py:107
↓ 1 callers
Function
_build_score_converter
Builds score converter based on the config. Builds one of [tf.identity, tf.sigmoid, tf.softmax] score converters based on the config. Args:
builders/post_processing_builder.py:101
↓ 1 callers
Function
_build_ssd_feature_extractor
Builds a ssd_meta_arch.SSDFeatureExtractor based on config. Args: feature_extractor_config: A SSDFeatureExtractor proto config from ssd.proto.
builders/model_builder.py:105
↓ 1 callers
Function
_build_ssd_model
Builds an SSD detection model based on the model config. Args: ssd_config: A ssd.proto object containing the config for the desired SSDMe
builders/model_builder.py:141
↓ 1 callers
Function
_center_size_bbox_to_corners_bbox
Converts bbox center-size representation to corners representation. Args: centers: a tensor with shape [N, 2] representing bounding box centers
anchor_generators/grid_anchor_generator.py:194
↓ 1 callers
Method
_compare
(self, boxlist1, boxlist2)
core/region_similarity_calculator.py:54
↓ 1 callers
Method
_compute_clip_window
Computes clip window to use during post_processing. Computes a new clip window to use during post-processing based on `resized_image_shapes`
meta_architectures/ssd_meta_arch.py:313
↓ 1 callers
Method
_compute_is_class_correctly_detected_in_image
Compute CorLoc score for a single class. Args: detected_boxes: A numpy array of shape [N, 4] representing detected box coordinate
utils/per_image_evaluation.py:187
↓ 1 callers
Method
_compute_loss
Method to be overridden by implementations. Args: prediction_tensor: a tensor representing predicted quantities target_tensor: a tens
core/losses.py:77
↓ 1 callers
Function
_compute_new_dynamic_size
Compute new dynamic shape for resize_to_range method.
core/preprocessor.py:2087
↓ 1 callers
Function
_compute_new_static_size
Compute new static shape for resize_to_range method.
core/preprocessor.py:2051
↓ 1 callers
Method
_compute_tp_fp
Labels as true/false positives detection tuples across all classes. Args: detected_box_tuples: A numpy array of structures with shape [N,],
utils/per_image_vrd_evaluation.py:83
↓ 1 callers
Method
_compute_tp_fp
Labels true/false positives of detections of an image across all classes. Args: detected_boxes: A float numpy array of shape [N, 4], repres
utils/per_image_evaluation.py:231
↓ 1 callers
Method
_compute_tp_fp_for_single_class
Labels boxes detected with the same class from the same image as tp/fp. Detection boxes are expected to be already sorted by score. Args:
utils/per_image_vrd_evaluation.py:181
↓ 1 callers
Method
_create_classification_targets
Create classification targets for each anchor. Assign a classification target of for each anchor to the matching groundtruth label that is pr
core/target_assigner.py:248
↓ 1 callers
Method
_create_classification_weights
Create classification weights for each anchor. Positive (matched) anchors are associated with a weight of positive_class_weight and negative
core/target_assigner.py:291
↓ 1 callers
Method
_create_feature_extractor
Constructs a SsdInceptionV3FeatureExtractor. Args: depth_multiplier: float depth multiplier for feature extractor pad_to_multiple: th
models/ssd_inception_v3_feature_extractor_test.py:27
↓ 1 callers
Method
_create_feature_extractor
Constructs a SsdInceptionV2FeatureExtractor. Args: depth_multiplier: float depth multiplier for feature extractor pad_to_multiple: th
models/ssd_inception_v2_feature_extractor_test.py:27
↓ 1 callers
Method
_create_grads_and_vars
(self)
utils/variables_helper_test.py:106
↓ 1 callers
Method
_create_regression_targets
Returns a regression target for each anchor. Args: anchors: a BoxList representing N anchors groundtruth_boxes: a BoxList representin
core/target_assigner.py:197
↓ 1 callers
Method
_create_regression_weights
Set regression weight for each anchor. Only positive anchors are set to contribute to the regression loss, so this method returns a weight of
core/target_assigner.py:272
↓ 1 callers
Method
_decode
Method to be overriden by implementations. Args: rel_codes: a tensor representing N relative-encoded boxes anchors: BoxList of anchor
core/box_coder.py:102
↓ 1 callers
Method
_default_regression_target
Returns the default target for anchors to regress to. Default regression targets are set to zero (though in this implementation what these ta
core/target_assigner.py:235
↓ 1 callers
Method
_encode
Method to be overriden by implementations. Args: boxes: BoxList holding N boxes to be encoded anchors: BoxList of N anchors Retu
core/box_coder.py:89
↓ 1 callers
Function
_export_inference_graph
Export helper.
exporter.py:365
↓ 1 callers
Method
_extract_box_classifier_features
Extracts second stage box classifier features, to be overridden.
meta_architectures/faster_rcnn_meta_arch.py:191
↓ 1 callers
Function
_extract_predictions_and_losses
Constructs tensorflow detection graph and returns output tensors. Args: model: model to perform predictions with. create_input_dict_fn: fun
evaluator.py:55
↓ 1 callers
Method
_extract_proposal_features
Extracts first stage RPN features, to be overridden.
meta_architectures/faster_rcnn_meta_arch.py:168
↓ 1 callers
Method
_extract_rpn_feature_maps
Extracts RPN features. This function extracts two feature maps: a feature map to be directly fed to a box predictor (to predict location and
meta_architectures/faster_rcnn_meta_arch.py:904
↓ 1 callers
Method
_filter_features
(self, image_features)
models/ssd_resnet_v1_fpn_feature_extractor.py:105
↓ 1 callers
Function
_filter_scaling
Compute the expected filter scaling at given PNASNet cell start_cell_num. In the pnasnet.py code, filter_scaling starts at 1.0. We instead adapt
models/faster_rcnn_pnas_feature_extractor.py:48
↓ 1 callers
Method
_flatten_first_two_dimensions
Flattens `K-d` tensor along batch dimension to be a `(K-1)-d` tensor. Converts `inputs` with shape [A, B, ..., depth] into a tensor of shape
meta_architectures/faster_rcnn_meta_arch.py:1035
↓ 1 callers
Function
_flip_boxes_left_right
Left-right flip the boxes. Args: boxes: rank 2 float32 tensor containing the bounding boxes -> [N, 4]. Boxes are in normalized form
core/preprocessor.py:340
↓ 1 callers
Function
_flip_boxes_up_down
Up-down flip the boxes. Args: boxes: rank 2 float32 tensor containing the bounding boxes -> [N, 4]. Boxes are in normalized form mea
core/preprocessor.py:359
↓ 1 callers
Function
_flip_masks_left_right
Left-right flip masks. Args: masks: rank 3 float32 tensor with shape [num_instances, height, width] representing instance masks. Retur
core/preprocessor.py:400
↓ 1 callers
Function
_flip_masks_up_down
Up-down flip masks. Args: masks: rank 3 float32 tensor with shape [num_instances, height, width] representing instance masks. Returns:
core/preprocessor.py:414
↓ 1 callers
Method
_fpn_scope_name
(self)
models/ssd_resnet_v1_fpn_feature_extractor_testbase.py:32
↓ 1 callers
Method
_gather_instance_masks
Gathers the masks that correspond to classes. Args: instance_masks: A 4-D float32 tensor with shape [K, num_classes, mask_height, m
meta_architectures/faster_rcnn_meta_arch.py:886
↓ 1 callers
Method
_generate
To be overridden by implementations. Args: feature_map_shape_list: list of (height, width) pairs in the format [(height_0, width_0)
core/anchor_generator.py:113
↓ 1 callers
Function
_generate_filenames
(filenames)
metrics/offline_eval_map_corloc.py:69
↓ 1 callers
Function
_generate_sharded_filenames
(filename)
metrics/offline_eval_map_corloc.py:57
↓ 1 callers
Method
_get_agnostic_target_assigner
(self)
core/target_assigner_test.py:467
↓ 1 callers
Function
_get_data_path
Returns an absolute path to TFRecord file.
model_lib_test.py:43
↓ 1 callers
Function
_get_dict_from_proto
Helper function to put all proto fields into a dictionary. For many preprocessing steps, there's an trivial 1-1 mapping from proto fields to func
builders/preprocessor_builder.py:45
↓ 1 callers
Method
_get_feature_map_spatial_dims
Return list of spatial dimensions for each feature map in a list. Args: feature_maps: a list of tensors where the ith tensor has shape
meta_architectures/ssd_meta_arch.py:422
↓ 1 callers
Function
_get_labelmap_path
Returns an absolute path to label map file.
model_lib_test.py:55
↓ 1 callers
Method
_get_mask_predictor_conv_depth
Computes the depth of the mask predictor convolutions. Computes the depth of the mask predictor convolutions given feature channels and numbe
core/box_predictor.py:434
↓ 1 callers
Function
_get_mobilenet_conv_no_last_stride_defs
(conv_depth_ratio_in_percentage)
models/faster_rcnn_mobilenet_v1_feature_extractor.py:28
↓ 1 callers
Method
_get_model
(self, box_predictor, **common_kwargs)
meta_architectures/faster_rcnn_meta_arch_test_lib.py:137
↓ 1 callers
Method
_get_multi_dimensional_target_assigner
(self, target_dimensions)
core/target_assigner_test.py:486
↓ 1 callers
Function
_get_outputs_from_inputs
(input_tensors, detection_model, output_collection_name)
exporter.py:327
↓ 1 callers
Method
_get_overlaps_and_scores_box_mode
Computes overlaps and scores between detected and groudntruth boxes. Args: detected_boxes: A numpy array of shape [N, 4] representing detec
utils/per_image_evaluation.py:351
↓ 1 callers
Method
_get_overlaps_and_scores_mask_mode
Computes overlaps and scores between detected and groudntruth masks. Args: detected_boxes: A numpy array of shape [N, 4] representing detec
utils/per_image_evaluation.py:306
↓ 1 callers
Method
_get_overlaps_and_scores_relation_tuples
Computes overlaps and scores between detected and groundtruth tuples. Both detections and groundtruth boxes have the same class tuples. Args
utils/per_image_vrd_evaluation.py:150
↓ 1 callers
Function
_get_padding_shapes
Returns shapes to pad dataset tensors to before batching. Args: dataset: tf.data.Dataset object. max_num_boxes: Max number of groundtruth b
builders/dataset_builder.py:33
↓ 1 callers
Method
_get_second_stage_box_predictor
(self, num_classes, is_training, predict_masks, masks_are_class_agnostic
meta_architectures/faster_rcnn_meta_arch_test_lib.py:120
↓ 1 callers
Method
_get_second_stage_box_predictor_text_proto
(self)
meta_architectures/faster_rcnn_meta_arch_test_lib.py:71
↓ 1 callers
Function
_get_step_config_from_proto
Returns the value of a field named step_name from proto. Args: preprocessor_step_config: A preprocessor_pb2.PreprocessingStep object. step_
builders/preprocessor_builder.py:24
↓ 1 callers
Method
_image_batch_shape_2d
Takes a 1-D image batch shape tensor and converts it to a 2-D tensor. Example: If 1-D image batch shape tensor is [2, 300, 300, 3]. The corre
meta_architectures/faster_rcnn_meta_arch.py:669
↓ 1 callers
Function
_image_to_gray
(image)
core/preprocessor.py:840
↓ 1 callers
Function
_is_generic_key
Determines whether the key starts with a generic config dictionary key.
utils/config_util.py:281
↓ 1 callers
Method
_is_valid_boxes
Check whether data fullfills the format of N*[ymin, xmin, ymax, xmin]. Args: data: a numpy array of shape [N, 4] representing box coordinat
utils/np_box_list.py:119
↓ 1 callers
Method
_loss_box_classifier
Computes scalar box classifier loss tensors. Uses self._detector_target_assigner to obtain regression and classification targets for the seco
meta_architectures/faster_rcnn_meta_arch.py:1696
↓ 1 callers
Method
_loss_rpn
Computes scalar RPN loss tensors. Uses self._proposal_target_assigner to obtain regression and classification targets for the first stage RPN
meta_architectures/faster_rcnn_meta_arch.py:1616
↓ 1 callers
Method
_match
Method to be overridden by implementations. Args: similarity_matrix: Float tensor of shape [N, M] with pairwise similarity where hi
core/matcher.py:243
↓ 1 callers
Method
_padded_batched_proposals_indicator
Creates indicator matrix of non-pad elements of padded batch proposals. Args: num_proposals: Tensor of type tf.int32 with shape [batch_size
meta_architectures/faster_rcnn_meta_arch.py:1921
↓ 1 callers
Method
_predict_boxes_and_classes
Predicts boxes and class scores. Args: image_features: A float tensor of shape [batch_size, height, width, channels] containing fea
core/box_predictor.py:390
↓ 1 callers
Method
_predict_masks
Performs mask prediction. Args: image_features: A float tensor of shape [batch_size, height, width, channels] containing features f
core/box_predictor.py:465
↓ 1 callers
Method
_predict_rpn_proposals
Adds box predictors to RPN feature map to predict proposals. Note resulting tensors will not have been postprocessed. Args: rpn_box_pr
meta_architectures/faster_rcnn_meta_arch.py:945
↓ 1 callers
Method
_predict_second_stage
Predicts the output tensors from second stage of Faster R-CNN. Args: rpn_box_encodings: 4-D float tensor of shape [batch_size, num_
meta_architectures/faster_rcnn_meta_arch.py:687
↓ 1 callers
Method
_predict_third_stage
Predicts non-box, non-class outputs using refined detections. For training, masks as predicted directly on the box_classifier_features, which
meta_architectures/faster_rcnn_meta_arch.py:787
↓ 1 callers
Function
_prepare_groundtruth_for_eval
Extracts groundtruth data from detection_model and prepares it for eval. Args: detection_model: A `DetectionModel` object. class_agnostic:
model_lib.py:52
↓ 1 callers
Method
_process_detection_boxes
Pre-processes boxes before adding them to the VRDDetectionEvaluation. Phrase detection and Relation detection subclasses re-implement this method
utils/vrd_evaluation.py:100
↓ 1 callers
Method
_process_groundtruth_boxes
Pre-processes boxes before adding them to the VRDDetectionEvaluation. Phrase detection and Relation detection subclasses re-implement this method
utils/vrd_evaluation.py:83
↓ 1 callers
Method
_remove_invalid_anchors_and_predictions
Removes anchors that (partially) fall outside an image. Also removes associated box encodings and objectness predictions. Args: box_en
meta_architectures/faster_rcnn_meta_arch.py:987
↓ 1 callers
Method
_remove_invalid_boxes
Removes entries with invalid boxes. A box is invalid if either its xmax is smaller than its xmin, or its ymax is smaller than its ymin.
utils/per_image_evaluation.py:552
↓ 1 callers
Method
_resized_image_given_text_proto
(self, image, text_proto)
builders/image_resizer_builder_test.py:84
↓ 1 callers
Method
_resnet_scope_name
(self)
models/ssd_resnet_v1_fpn_feature_extractor_testbase.py:28
↓ 1 callers
Function
_rot90_boxes
Rotate boxes counter-clockwise by 90 degrees. Args: boxes: rank 2 float32 tensor containing the bounding boxes -> [N, 4]. Boxes are
core/preprocessor.py:378
← previous
next →
301–400 of 2,187, ranked by callers