MCPcopy Create free account

hub / github.com/Zengyi-Qin/TLNet / functions

Functions397 in github.com/Zengyi-Qin/TLNet

↓ 44 callersMethodget
Convenience function for accessing box coordinates. Returns: a tensor with shape [N, 4] representing box coordinates.
avod/core/box_list.py:101
↓ 26 callersMethodmsg
scripts/offline_eval/kitti_native_eval/mail.h:30
↓ 20 callersFunctionarea
Computes area of boxes. Args: boxlist: BoxList holding N boxes scope: name scope. Returns: a tensor with shape [N] represe
avod/core/box_list_ops.py:42
↓ 18 callersMethod_add_placeholder
(self, dtype, shape, name)
avod/core/models/rpn_model.py:189
↓ 18 callersMethodname_scope
Name scope. Must be defined by implementations. Returns: a string representing the name scope of the anchor generation ope
avod/core/anchor_generator.py:43
↓ 14 callersMethodbuild_kitti_dataset
Builds a KittiDataset object using the provided configurations Args: base_cfg: a base dataset configuration use_defau
avod/builders/dataset_builder.py:167
↓ 10 callersMethodnext_batch
Retrieve the next `batch_size` samples from this data set. Args: batch_size: number of samples in the batch
avod/datasets/kitti/kitti_dataset.py:430
↓ 9 callersMethodbuild
(self)
avod/core/models/rpn_model.py:413
↓ 9 callersFunctioneval_class
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline.cpp:643
↓ 9 callersFunctioneval_class
scripts/offline_eval/kitti_native_eval/evaluate_object_3d.cpp:616
↓ 9 callersFunctioneval_class
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline_05_iou.cpp:643
↓ 9 callersMethodget_fake_dataset
(self, data_split, directory)
avod/datasets/kitti/kitti_dataset_test.py:17
↓ 8 callersFunctionintersection
Compute pairwise intersection areas between boxes. Args: boxlist1: BoxList holding N boxes boxlist2: BoxList holding M boxes sc
avod/core/box_list_ops.py:101
↓ 7 callersMethodcreate_path_drop_masks
Determines global path drop decision based on given probabilities. Args: p_img: A tensor of float32, probability of keeping image
avod/core/models/rpn_model.py:1213
↓ 6 callersMethodcopy_config
(cfg)
avod/builders/dataset_builder.py:157
↓ 6 callersFunctiondo_preprocessing
(dataset, indices)
scripts/preprocessing/gen_mini_batches.py:9
↓ 6 callersMethodgenerate
Generates a collection of bounding boxes to be used as anchors.
avod/core/anchor_generator.py:53
↓ 5 callersMethodget_field
Accesses a box collection and associated fields. This function returns specified field with object; if no field is specified, it retu
avod/core/box_list.py:122
↓ 5 callersMethodget_rgb_image_path
(self, sample_name)
avod/datasets/kitti/kitti_dataset.py:192
↓ 5 callersMethodhas_field
(self, field)
avod/core/box_list.py:98
↓ 5 callersMethodload_samples
Loads input-output data for a set of samples. Should only be called when a particular sample dict is required. Otherwise, sam
avod/datasets/kitti/kitti_dataset.py:238
↓ 4 callersFunction_create_learning_rate
Create optimizer learning rate based on config. Args: learning_rate_config: A LearningRate proto message. global_summaries: A set
avod/builders/optimizer_builder.py:86
↓ 4 callersMethodget_cluster_info
(self)
avod/datasets/kitti/kitti_dataset.py:211
↓ 4 callersMethodget_file_path
Gets the full file path to the anchors info Args: classes_name: name of classes ('Car', 'Pedestrian', 'Cyclist',
avod/core/mini_batch_utils.py:99
↓ 4 callersMethodload_dataset_from_config
(dataset_config_path)
avod/builders/dataset_builder.py:147
↓ 4 callersFunctionsaveAndPlotPlots
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline.cpp:754
↓ 4 callersFunctionsaveAndPlotPlots
scripts/offline_eval/kitti_native_eval/evaluate_object_3d.cpp:702
↓ 4 callersFunctionsaveAndPlotPlots
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline_05_iou.cpp:754
↓ 4 callersFunctionsplit_indices
Splits indices between children Args: dataset: Dataset object num_children: Number of children to split samples between Retu
scripts/preprocessing/gen_mini_batches.py:22
↓ 4 callersFunctionsplit_work
Spawns children to do work Args: all_child_pids: List of child pids are appended here, the parent process should use this lis
scripts/preprocessing/gen_mini_batches.py:48
↓ 4 callersMethodsubsample
Returns subsampled minibatch. Args: indicator: boolean tensor of shape [N] whose True entries can be sampled.
avod/core/minibatch_samplers/balanced_positive_negative_sampler.py:51
↓ 4 callersFunctiontoPolygon
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline.cpp:270
↓ 4 callersFunctiontoPolygon
scripts/offline_eval/kitti_native_eval/evaluate_object_3d.cpp:269
↓ 4 callersFunctiontoPolygon
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline_05_iou.cpp:270
↓ 3 callersMethod_compute_loss
Compute loss function. Args: prediction_tensor: A float tensor of shape [batch_size, num_anchors, num_classes] represent
avod/core/losses.py:201
↓ 3 callersMethodadd_field
Add field to box list. This method can be used to add related box data such as weights/labels, etc. Args: field: a
avod/core/box_list.py:86
↓ 3 callersFunctionbuild_output_layers
Builds flattened output layers Args: tensor_in: Input tensor num_final_classes: Final number of output classes, including
avod/core/avod_fc_layers/basic_fc_layers.py:56
↓ 3 callersFunctionbuild_output_layers
Builds flattened output layers Args: tensor_in: Input tensor num_final_classes: Final number of output classes, including
avod/core/avod_fc_layers/fusion_fc_layers.py:92
↓ 3 callersMethodcreate_slice_filter
Creates a slice filter to take a slice of the point cloud between ground_offset_dist and offset_dist above the ground plane Args
avod/datasets/kitti/kitti_utils.py:66
↓ 3 callersMethodfilter_labels
Filters ground truth labels based on class, difficulty, and maximum occlusion Args: objects: A list of ground truth insta
avod/datasets/kitti/kitti_utils.py:116
↓ 3 callersMethodget_extra_fields
Returns all non-box fields (i.e., everything not named 'boxes').
avod/core/box_list.py:82
↓ 3 callersMethodpreprocess_input
Preprocesses the given input. Args: tensor_in: A `Tensor` of shape=(batch_size, height, width, channel) represent
avod/core/feature_extractors/bev_feature_extractor.py:10
↓ 3 callersMethodrun_checkpoint_once
Evaluates network metrics once over all the validation samples. Args: checkpoint_to_restore: The directory of the checkpoint to r
avod/core/evaluator.py:135
↓ 2 callersFunction_copy_extra_fields
Copies the extra fields of boxlist_to_copy_from to boxlist_to_copy_to. Args: boxlist_to_copy_to: BoxList to which extra fields are copied.
avod/core/box_list_ops.py:407
↓ 2 callersFunction_get_cls_loss
Calculates cross entropy loss for classification Args: model: network model cls_logits: predicted classification logits c
avod/builders/avod_loss_builder.py:39
↓ 2 callersMethod_get_cluster_file_path
Returns a unique file path for a text file based on the dataset name, split, object class, and number of clusters. The file p
avod/core/label_cluster_utils.py:49
↓ 2 callersMethod_norm
(self, x)
avod/core/models/rpn_model.py:406
↓ 2 callersMethod_save_to_file
Saves the anchors info matrix to a file Args: classes_name (str): classes name, e.g. 'Car', 'Pedestrian',
avod/core/mini_batch_preprocessor.py:330
↓ 2 callersMethod_shuffle_samples
(self)
avod/datasets/kitti/kitti_dataset.py:425
↓ 2 callersMethod_sub_mean
(self, x)
avod/core/models/avod_model.py:137
↓ 2 callersMethodbuild
Modified VGG for image feature extraction. Note: All the fully_connected layers have been transformed to conv2d layers and are
avod/core/feature_extractors/img_vgg.py:33
↓ 2 callersMethodbuild
(self)
avod/core/models/avod_model.py:142
↓ 2 callersFunctioncalculate_box_3d_info
Calculates the box_3d centroid xz, l, w, and ry from the 4 points of a box_4c. To calculate length and width, points are projected onto the di
avod/core/box_4c_encoder.py:305
↓ 2 callersMethodcalculate_cls_accuracy
Calculates accuracy of predicted objectness/classification wrt to the labels Args: cls_pred: A numpy array containing the
avod/core/evaluator.py:995
↓ 2 callersMethodclass_str_to_index
Converts an object class type string into a integer index Args: class_str: the object type (e.g. 'Car', 'Pedestrian', or
avod/datasets/kitti/kitti_utils.py:48
↓ 2 callersFunctioncomputeStatistics
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline.cpp:457
↓ 2 callersFunctioncomputeStatistics
scripts/offline_eval/kitti_native_eval/evaluate_object_3d.cpp:452
↓ 2 callersFunctioncomputeStatistics
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline_05_iou.cpp:457
↓ 2 callersMethodcreate_feed_dict
To be overridden Creates a feed_dict that can be passed into a tensorflow session Returns: a dictionary with tensors as keys and num
avod/core/model.py:36
↓ 2 callersFunctioneval
scripts/offline_eval/kitti_native_eval/evaluate_object_3d.cpp:765
↓ 2 callersFunctiongather
Gather boxes from BoxList according to indices and return new BoxList. By default, `gather` returns boxes corresponding to the input index list,
avod/core/box_list_ops.py:368
↓ 2 callersMethodget_avod_predicted_boxes_3d_and_scores
Returns the predictions and scores stacked for saving to file. Args: predictions: A dictionary containing the model outputs.
avod/core/evaluator.py:1033
↓ 2 callersMethodget_evaluated_ckpts
Finds the evaluated checkpoints. Examines the evaluation average losses file to find the already evaluated checkpoints. Args
avod/core/evaluator.py:907
↓ 2 callersFunctionget_rotated_3d_bb
Compute rotated 3D bounding box coordinates. :param boxes: a numpy array of the form: [[ry, l, h, w, tx, ty, tz],...
avod/core/obj_utils.py:626
↓ 2 callersMethodget_rpn_proposals_and_scores
Returns the proposals and scores stacked for saving to file. Args: predictions: A dictionary containing the model outputs.
avod/core/evaluator.py:1013
↓ 2 callersFunctionkrt_from_p
Factorize the projection matrix P as P=K*[R;t] and enforce the sign of the focal length to be fsign. Keyword Arguments: ----------------
avod/core/calib_utils.py:115
↓ 2 callersMethodload_sample_names
Load the sample names listed in this dataset's set file (e.g. train.txt, validation.txt) Args: data_split: override the s
avod/datasets/kitti/kitti_dataset.py:221
↓ 2 callersMethodloss
Compute scalar loss tensors with respect to provided groundtruth. Calling this function requires that groundtruth tensors have been p
avod/core/model.py:45
↓ 2 callersFunctionprintAp
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline.cpp:745
↓ 2 callersFunctionprintAp
scripts/offline_eval/kitti_native_eval/evaluate_object_3d_offline_05_iou.cpp:745
↓ 2 callersMethodrun_latest_checkpoints
Evaluation function for evaluating all the existing checkpoints. This function just runs through all the existing checkpoints. Raises
avod/core/evaluator.py:351
↓ 2 callersMethodsample_mini_batch
Samples a mini batch based on anchor ious with ground truth Args: max_ious: a tensor of max ious with ground truth in
avod/core/mini_batch_utils.py:159
↓ 2 callersMethodsubsample_indicator
Subsample indicator vector. Given a boolean indicator vector with M elements set to `True`, the function assigns all but `num_samples
avod/core/minibatch_sampler.py:66
↓ 2 callersFunctiontf_box_8c_diagonal_length
Returns the diagonal lengths of box_8c Args: boxes_3d: An tensor of shape (N x 3 x 8) of boxes in box_8c format. Returns:
avod/core/box_8c_encoder.py:561
↓ 1 callersFunction_basic_fc_layers
(num_layers, layer_sizes, input_rois, input_weights, fusion_method,
avod/core/avod_fc_layers/basic_fc_layers.py:104
↓ 1 callersFunction_build_cls_off_ang_loss
Builds classification, offset, and angle vector losses. Args: model: network model prediction_dict: prediction dictionary Re
avod/builders/avod_loss_builder.py:263
↓ 1 callersFunction_build_cls_off_loss
Builds classification, and offset losses. Args: model: network model prediction_dict: prediction dictionary Returns:
avod/builders/avod_loss_builder.py:323
↓ 1 callersMethod_calculate_anchors_info
Calculates the list of anchor information in the format: N x 8 [max_gt_2d_iou, max_gt_3d_iou, (6 x offsets), class_index]
avod/core/mini_batch_preprocessor.py:72
↓ 1 callersMethod_check_class
This filters an object by class. Args: obj: An instance of ground-truth Object Label Returns: True or False depending on w
avod/datasets/kitti/kitti_utils.py:173
↓ 1 callersMethod_check_dataset_dir
Checks that dataset directory exists in the file system Raises: FileNotFoundError: if the dataset folder is missing
avod/datasets/kitti/kitti_dataset.py:149
↓ 1 callersMethod_check_difficulty
This filters an object by difficulty. Args: obj: An instance of ground-truth Object Label difficulty: An int defining
avod/datasets/kitti/kitti_utils.py:160
↓ 1 callersMethod_check_for_existing
Checks if a mini batch file exists already Args: classes_name (str): classes name, e.g. 'Car', 'Pedestrian',
avod/core/mini_batch_preprocessor.py:308
↓ 1 callersMethod_compute_loss
Method to be overriden by implementations. Args: prediction_tensor: a tensor representing predicted quantities target
avod/core/losses.py:55
↓ 1 callersMethod_create_avod_losses_dict
Returns a dictionary of the losses sum for averaging.
avod/core/evaluator.py:873
↓ 1 callersMethod_create_density_map
(self, num_divisions, voxel_indices_2d,
avod/core/bev_generators/bev_generator.py:23
↓ 1 callersMethod_create_rpn_losses_dict
Returns a dictionary of the losses sum for averaging.
avod/core/evaluator.py:893
↓ 1 callersFunction_deep_fusion_fc_layers
(num_layers, layer_sizes, input_rois, input_weights, fusion_method,
avod/core/avod_fc_layers/fusion_fc_layers.py:236
↓ 1 callersFunction_early_fusion_fc_layers
(num_layers, layer_sizes, input_rois, input_weights, fusion_method,
avod/core/avod_fc_layers/fusion_fc_layers.py:136
↓ 1 callersMethod_fill_anchor_pl_inputs
Fills anchor placeholder inputs with corresponding data Args: anchors_info: anchor info from mini_batch_utils
avod/core/models/rpn_model.py:998
↓ 1 callersMethod_filter_labels_by_class
Splits ground truth labels based on provided classes Args: obj_labels: ObjectLabel list for an image classes
avod/core/label_cluster_utils.py:24
↓ 1 callersMethod_generate
To be overridden by implementations. Args: **params: parameters for anchor generation op Returns: boxes: a BoxLi
avod/core/anchor_generator.py:59
↓ 1 callersFunction_get_off_ang_loss
Calculates the smooth L1 combined offset and angle loss, normalized by the number of positives Args: model: network model
avod/builders/avod_loss_builder.py:108
↓ 1 callersFunction_get_offset_only_loss
Calculates the smooth L1 combined offset and angle loss, normalized by the number of positives Args: model: network model
avod/builders/avod_loss_builder.py:187
↓ 1 callersFunction_get_positive_mask
Gets the positive mask based on the ground truth box classifications Args: positive_selection: positive selection method (e.g
avod/builders/avod_loss_builder.py:71
↓ 1 callersFunction_late_fusion_fc_layers
(num_layers, layer_sizes, input_rois, input_weights, fusion_method,
avod/core/avod_fc_layers/fusion_fc_layers.py:183
↓ 1 callersMethod_mean_image_subtraction
Subtracts the given means from each image channel. For example: means = [123.68, 116.779, 103.939] image = _mean_image_subtra
avod/core/feature_extractors/img_feature_extractor.py:37
↓ 1 callersMethod_parse_anchors_info
Parses anchor indices, offsets, and classes from a matrix Args: anchors_info: an np.ndarray in the form
avod/core/mini_batch_utils.py:241
↓ 1 callersMethod_read_clusters_from_file
Reads cluster information from a text file Args: dataset: Dataset, used to find the saved text file cls: cla
avod/core/label_cluster_utils.py:96
↓ 1 callersMethod_set_up_classes_name
(self)
avod/datasets/kitti/kitti_dataset.py:178
↓ 1 callersMethod_set_up_directories
Sets up data directories.
avod/datasets/kitti/kitti_dataset.py:160
next →1–100 of 397, ranked by callers