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
↓ 167 callers
Method
get
Convenience function for accessing box coordinates. Returns: a tensor with shape [N, 4] representing box coordinates.
core/box_list.py:101
↓ 82 callers
Method
get_field
Accesses a box collection and associated fields. This function returns specified field with object; if no field is specified, it returns the
core/box_list.py:122
↓ 77 callers
Method
add_field
Add field to box list. This method can be used to add related box data such as weights/labels, etc. Args: field: a string key to a
core/box_list.py:86
↓ 73 callers
Method
name_scope
Name scope. Must be defined by implementations. Returns: a string representing the name scope of the anchor generation operation.
core/anchor_generator.py:43
↓ 66 callers
Method
encode
Encode a box list relative to an anchor collection. Args: boxes: BoxList holding N boxes to be encoded anchors: BoxList of N anchors
core/box_coder.py:61
↓ 65 callers
Method
execute
Constructs the graph, creates a test session and returns the results. The graph is executed either on TPU or CPU based on the `tpu_test` flag.
utils/test_case.py:81
↓ 52 callers
Method
preprocess
Input preprocessing. To be overridden by implementations. This function is responsible for any scaling/shifting of input values that is
core/model.py:113
↓ 50 callers
Method
get
Convenience function for accesssing box coordinates. Returns: a numpy array of shape [N, 4] representing box corners
utils/np_box_list.py:82
↓ 48 callers
Method
_BytesFeature
(self, value)
data_decoders/tf_example_decoder_test.py:65
↓ 43 callers
Method
createTestBoxes
(self)
core/preprocessor_test.py:68
↓ 39 callers
Method
add_field
Add data to a specified field. Args: field: a string parameter used to speficy a related field to be accessed. field_data: a numpy ar
utils/np_box_list.py:65
↓ 38 callers
Method
get_field
Accesses data associated with the specified field in the box collection. Args: field: a string parameter used to speficy a related field to
utils/np_box_list.py:90
↓ 33 callers
Method
createTestLabels
(self)
core/preprocessor_test.py:113
↓ 29 callers
Method
add_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/vrd_evaluation.py:116
↓ 29 callers
Method
generate
Generates a collection of bounding boxes to be used as anchors. TODO(rathodv): remove **params from argument list and make stride and offse
core/anchor_generator.py:77
↓ 28 callers
Method
extract_proposal_features
Extracts first stage RPN features. This function is responsible for extracting feature maps from preprocessed images. These features are use
meta_architectures/faster_rcnn_meta_arch.py:148
↓ 27 callers
Method
decode
Decode boxes that are encoded relative to an anchor collection. Args: rel_codes: a tensor representing N relative-encoded boxes ancho
core/box_coder.py:74
↓ 26 callers
Function
_logit
(probability)
core/losses_test.py:219
↓ 26 callers
Method
check_extract_features_returns_correct_shape
( self, batch_size, image_height, image_width, depth_multiplier, pad_to_multiple, expected_feature
models/ssd_feature_extractor_test.py:50
↓ 25 callers
Function
_write_config
Writes a config object to disk.
utils/config_util_test.py:32
↓ 25 callers
Method
createTestImages
(self)
core/preprocessor_test.py:48
↓ 25 callers
Method
decode
Decodes serialized tensorflow example and returns a tensor dictionary. Args: tf_example_string_tensor: a string tensor holding a serialized
data_decoders/tf_example_decoder.py:289
↓ 24 callers
Method
_build_model
(self, is_training, number_of_stages, second_stage_ba
meta_architectures/faster_rcnn_meta_arch_test_lib.py:145
↓ 23 callers
Method
_EncodeImage
(self, image_tensor, encoding_type='jpeg')
data_decoders/tf_example_decoder_test.py:39
↓ 22 callers
Method
predict
Predicts unpostprocessed tensors from input tensor. This function takes an input batch of images and runs it through the forward pass of the
meta_architectures/ssd_meta_arch.py:352
↓ 21 callers
Method
_compute_tp_fp_for_single_class
Labels boxes detected with the same class from the same image as tp/fp. Args: detected_boxes: A numpy array of shape [N, 4] representing de
utils/per_image_evaluation.py:393
↓ 21 callers
Function
_get_scope_key
(op)
builders/hyperparams_builder_test.py:29
↓ 20 callers
Method
_assertProtoEqual
Helper function to assert if a proto field equals some value. Args: proto_field: The protobuf field to compare. expectation: The expe
dataset_tools/create_kitti_tf_record_test.py:29
↓ 20 callers
Function
_get_or_create_preprocess_rand_vars
Returns a tensor stored in preprocess_vars_cache or using generator_func. If the tensor was previously generated and appears in the PreprocessorCac
core/preprocessor.py:161
↓ 20 callers
Function
scope_fn
()
builders/hyperparams_builder.py:69
↓ 19 callers
Method
_create_model
(self, apply_hard_mining=True, normalize_loc_loss_by_codesize=False,
meta_architectures/ssd_meta_arch_test.py:84
↓ 19 callers
Method
_testPreprocessorCache
(self, preprocess_options, test_boxes=False,
core/preprocessor_test.py:476
↓ 19 callers
Method
preprocess
(self, resized_inputs)
meta_architectures/faster_rcnn_meta_arch_test_lib.py:46
↓ 19 callers
Method
update
Adds a value to the dictionary. Args: function_id: identifier for the preprocessing function used. key: identifier for the variable s
core/preprocessor_cache.py:88
↓ 18 callers
Method
_FloatFeature
(self, value)
data_decoders/tf_example_decoder_test.py:62
↓ 18 callers
Method
_assertProtoEqual
Helper function to assert if a proto field equals some value. Args: proto_field: The protobuf field to compare. expectation: The expe
dataset_tools/create_coco_tf_record_test.py:29
↓ 18 callers
Method
_save_checkpoint_from_mock_model
(self, checkpoint_path, use_moving_averages)
exporter_test.py:78
↓ 18 callers
Method
provide_groundtruth
Provide groundtruth tensors. Args: groundtruth_boxes_list: a list of 2-D tf.float32 tensors of shape [num_boxes, 4] containing coor
core/model.py:235
↓ 17 callers
Method
has_field
(self, field)
utils/np_box_list.py:62
↓ 17 callers
Method
has_field
(self, field)
core/box_list.py:98
↓ 17 callers
Method
predict
Predict prediction tensors from inputs tensor. Outputs of this function can be passed to loss or postprocess functions. Args: preproce
core/model.py:156
↓ 16 callers
Method
assign
Assign classification and regression targets to each anchor. For a given set of anchors and groundtruth detections, match anchors to groundtr
core/target_assigner.py:93
↓ 15 callers
Method
groundtruth_lists
Access list of groundtruth tensors. Args: field: a string key, options are fields.BoxListFields.{boxes,classes,masks,keypoints}
core/model.py:82
↓ 15 callers
Method
num_boxes
Returns number of boxes held in collection. Returns: a tensor representing the number of boxes held in the collection.
core/box_list.py:59
↓ 14 callers
Method
_FloatFeature
(self, value)
metrics/tf_example_parser_test.py:30
↓ 14 callers
Method
_assertProtoEqual
Helper function to assert if a proto field equals some value. Args: proto_field: The protobuf field to compare. expectation: The expe
dataset_tools/create_pascal_tf_record_test.py:29
↓ 14 callers
Method
match
Computes matches among row and column indices and returns the result. Computes matches among the row and column indices based on the similarity
core/matcher.py:222
↓ 14 callers
Method
num_boxes
Return number of boxes held in collections.
utils/np_box_list.py:54
↓ 13 callers
Method
_Int64Feature
(self, value)
data_decoders/tf_example_decoder_test.py:59
↓ 13 callers
Method
postprocess
Converts prediction tensors to final detections. This function converts raw predictions tensors to final detection results by slicing off the
meta_architectures/ssd_meta_arch.py:438
↓ 12 callers
Method
assert_almost_list_equal
(self, expected_list, actual_list, delta=None)
builders/anchor_generator_builder_test.py:32
↓ 12 callers
Method
createColorfulTestImage
(self)
core/preprocessor_test.py:35
↓ 12 callers
Method
loss
Compute scalar loss tensors with respect to provided groundtruth. Calling this function requires that groundtruth tensors have been provided
meta_architectures/ssd_meta_arch.py:516
↓ 11 callers
Function
_get_configs_for_model
Returns configurations for model.
inputs_test.py:35
↓ 11 callers
Method
add_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/vrd_evaluation.py:163
↓ 11 callers
Method
assert_dictionary_close
Helper to check if two dicts with floatst or integers are close.
builders/preprocessor_builder_test.py:29
↓ 11 callers
Method
createTestKeypoints
(self)
core/preprocessor_test.py:89
↓ 11 callers
Method
get_extra_fields
Return all non-box fields.
utils/np_box_list.py:58
↓ 11 callers
Method
get_masks
Convenience function for accessing masks. Returns: a numpy array of shape [N, height, width] representing masks
utils/np_box_mask_list.py:56
↓ 10 callers
Method
createTestLabelScores
(self)
core/preprocessor_test.py:73
↓ 10 callers
Method
createTestMasks
(self)
core/preprocessor_test.py:79
↓ 10 callers
Method
evaluate
Compute evaluation result. Args: relationships: A dictionary of numerical label-text label mapping; if specified, returns per-relat
utils/vrd_evaluation.py:206
↓ 10 callers
Method
evaluate
Evaluates the detection masks and returns a dictionary of coco metrics. Returns: A dictionary holding - 1. summary_metrics: 'D
metrics/coco_evaluation.py:501
↓ 10 callers
Method
get_center_coordinates_and_sizes
Computes the center coordinates, height and width of the boxes. Args: scope: name scope of the function. Returns: a list of 4 1-
core/box_list.py:158
↓ 10 callers
Method
name_scope
(self)
meta_architectures/ssd_meta_arch_test.py:57
↓ 9 callers
Method
add_single_detected_image_info
Adds detections for a single image to be used for evaluation. If a detection has already been added for this image id, a warning is logged, a
metrics/coco_evaluation.py:106
↓ 9 callers
Method
add_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. If the image has already been added, a warning is logged, and groundtruth is i
metrics/coco_evaluation.py:61
↓ 9 callers
Method
extract_box_classifier_features
Extracts second stage box classifier features. Args: proposal_feature_maps: A 4-D float tensor with shape [batch_size * self.max_nu
meta_architectures/faster_rcnn_meta_arch.py:172
↓ 9 callers
Function
gather
Gather boxes from BoxList according to indices and return new BoxList. By default, `gather` returns boxes corresponding to the input index list, as
core/box_list_ops.py:462
↓ 9 callers
Method
matched_column_indicator
Returns column indices that are matched. Returns: column_indices: int32 tensor of shape [K] with column indices.
core/matcher.py:93
↓ 9 callers
Method
num_boxes_static
Returns number of boxes held in collection. This number is inferred at graph construction time rather than run-time. Returns: Number o
core/box_list.py:67
↓ 9 callers
Method
unmatched_column_indicator
Returns column indices that are unmatched. Returns: column_indices: int32 tensor of shape [K] with column indices.
core/matcher.py:115
↓ 8 callers
Method
add_single_detected_image_info
Adds detections for a single image to be used for evaluation. If a detection has already been added for this image id, a warning is logged, a
metrics/coco_evaluation.py:444
↓ 8 callers
Method
add_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. If the image has already been added, a warning is logged, and groundtruth is i
metrics/coco_evaluation.py:396
↓ 8 callers
Method
clear
Clears the state to prepare for a fresh evaluation.
utils/vrd_evaluation.py:258
↓ 8 callers
Method
dequeue
Dequeues a batch of tensor_dict from the BatchQueue. TODO: use allow_smaller_final_batch to allow running over the whole eval set Returns:
core/batcher.py:103
↓ 8 callers
Method
gather_based_on_match
Gathers elements from `input_tensor` based on match results. For columns that are matched to a row, gathered_tensor[col] is set to input_tens
core/matcher.py:178
↓ 8 callers
Method
preprocess
Faster R-CNN with NAS preprocessing. Maps pixel values to the range [-1, 1]. Args: resized_inputs: A [batch, height_in, width_in, chan
models/faster_rcnn_nas_feature_extractor.py:143
↓ 8 callers
Method
subsample
Returns subsample of entries in indicator. Args: indicator: boolean tensor of shape [N] whose True entries can be sampled. batch_size
core/minibatch_sampler.py:48
↓ 7 callers
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:61
↓ 7 callers
Method
_build_arg_scope_with_hyperparams
(self, op_type=hyperparams_pb2.Hyperparams.FC)
core/box_predictor_test.py:29
↓ 7 callers
Method
_build_feature_extractor
(self, first_stage_features_stride)
models/faster_rcnn_inception_v2_feature_extractor_test.py:26
↓ 7 callers
Method
_build_feature_extractor
(self, first_stage_features_stride, architecture
models/faster_rcnn_resnet_v1_feature_extractor_test.py:26
↓ 7 callers
Method
_build_feature_extractor
(self, first_stage_features_stride)
models/faster_rcnn_mobilenet_v1_feature_extractor_test.py:26
↓ 7 callers
Function
_get_value_for_matching_key
(dictionary, suffix)
meta_architectures/ssd_meta_arch_test.py:75
↓ 7 callers
Method
_load_inference_graph
(self, inference_graph_path)
exporter_test.py:96
↓ 7 callers
Method
execute_cpu
Constructs the graph, executes it on CPU and returns the result. Args: graph_fn: a callable that constructs the tensorflow graph to test. T
utils/test_case.py:56
↓ 7 callers
Method
expectedImagesAfterNormalization
(self)
core/preprocessor_test.py:125
↓ 7 callers
Method
extract_features
Extract features from preprocessed inputs. Args: preprocessed_inputs: a [batch, height, width, channels] float tensor representing
models/ssd_inception_v2_feature_extractor.py:89
↓ 7 callers
Function
gather
Gather boxes from BoxList according to indices and return new BoxList. By default, gather returns boxes corresponding to the input index list, as
utils/np_box_list_ops.py:95
↓ 7 callers
Method
preprocess
(self, inputs)
exporter_test.py:41
↓ 7 callers
Method
subsample_indicator
Subsample indicator vector. Given a boolean indicator vector with M elements set to `True`, the function assigns all but `num_samples` of the
core/minibatch_sampler.py:64
↓ 6 callers
Method
_Int64Feature
(self, value)
metrics/tf_example_parser_test.py:27
↓ 6 callers
Method
_assert_variance_in_range
(self, initializer, shape, variance, tol=1e-2)
builders/hyperparams_builder_test.py:352
↓ 6 callers
Method
_build_arg_scope_with_conv_hyperparams
(self)
core/box_predictor_test.py:424
↓ 6 callers
Method
_build_feature_extractor
(self, first_stage_features_stride)
models/faster_rcnn_nas_feature_extractor_test.py:25
↓ 6 callers
Method
_build_feature_extractor
(self, first_stage_features_stride)
models/faster_rcnn_inception_resnet_v2_feature_extractor_test.py:25
↓ 6 callers
Method
_build_feature_extractor
(self, first_stage_features_stride)
models/faster_rcnn_pnas_feature_extractor_test.py:25
↓ 6 callers
Method
_create_feature_extractor
Constructs a new feature extractor. Args: depth_multiplier: float depth multiplier for feature extractor pad_to_multiple: the nearest
models/ssd_feature_extractor_test.py:34
↓ 6 callers
Method
_create_tf_example
(self, image_array)
exporter_test.py:106
next →
1–100 of 2,187, ranked by callers