MCPcopy Create free account

hub / github.com/Tsinghua-MARS-Lab/CVT-Occ / functions

Functions691 in github.com/Tsinghua-MARS-Lab/CVT-Occ

↓ 12 callersFunction_extend_matrix
(mat)
tools/data_converter/kitti_data_utils.py:185
↓ 10 callersMethodeval
(occ_eval_metrics, runner=None)
projects/mmdet3d_plugin/datasets/waymo_temporal_zlt.py:357
↓ 8 callersMethodpre_pipeline
Initialization before data preparation. Args: results (dict): Dict before data preprocessing. - img_fields (lis
projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:106
↓ 7 callersMethodget_ann_info
Get annotation info according to the given index. Args: index (int): Index of the annotation data to get. Returns:
projects/mmdet3d_plugin/datasets/nuscenes_dataset.py:87
↓ 7 callersMethodinit_weight
Default initialization for Parameters of Module.
projects/mmdet3d_plugin/bevformer/modules/spatial_cross_attention.py:70
↓ 6 callersMethod__init__
(self, in_channels=3, base_channels=64, num_stages=5,
projects/mmdet3d_plugin/bevformer/modules/unet.py:382
↓ 6 callersFunction_create_reduced_point_cloud
Create reduced point clouds for given info. Args: data_path (str): Path of original data. info_path (str): Path of data info.
tools/data_converter/kitti_converter.py:232
↓ 6 callersFunctionmean
nanmean compatible with generators.
projects/mmdet3d_plugin/bevformer/loss/lovasz_losses.py:301
↓ 6 callersMethodshow
Results visualization. Args: results (list[dict]): List of bounding boxes results. out_dir (str): Output directory
projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:598
↓ 5 callersMethoddecode
Decode bboxes. Args: all_cls_scores (Tensor): Outputs from the classification head, \ shape [nb_dec, bs, num_query
projects/mmdet3d_plugin/core/bbox/coders/nms_free_coder.py:102
↓ 5 callersFunctionget_kitti_info_path
( idx, prefix, info_type="image_2", file_tail=".png", training=True, relative_path=Tru
tools/data_converter/kitti_data_utils.py:18
↓ 4 callersMethod__init__
Args: input_ch(int) : the number of input channel out_features (list[str]): name of the layers whose outputs should
projects/mmdet3d_plugin/models/backbones/vovnet.py:270
↓ 4 callersFunction_read_imageset_file
(path)
tools/data_converter/kitti_converter.py:41
↓ 4 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataloade
projects/mmdet3d_plugin/datasets/builder.py:19
↓ 4 callersFunctioncustom_build_dataset
(cfg, default_args=None)
projects/mmdet3d_plugin/datasets/builder.py:140
↓ 4 callersMethodencode
(self)
projects/mmdet3d_plugin/core/bbox/coders/nms_free_coder.py:36
↓ 4 callersFunctionflatten_probas
Flattens predictions in the batch
projects/mmdet3d_plugin/bevformer/loss/lovasz_losses.py:202
↓ 4 callersFunctionget_color
Provides the default colors based on the category names. This method works for the general nuScenes categories, as well as the nuScenes det
tools/analysis_tools/visual.py:369
↓ 4 callersMethodget_geometry
Determine the (x,y,z) locations (in the ego frame) of the points in the point cloud. Returns B x N x D x H/downsample x W/downsample x
projects/mmdet3d_plugin/bevformer/modules/view_transformer.py:130
↓ 4 callersMethodloss
Loss function. Args: voxel_semantics (torch.Tensor): Shape (bs, w, h, total_z) valid_mask (torch.Tensor)
projects/mmdet3d_plugin/bevformer/dense_heads/occformer_head.py:142
↓ 4 callersFunctionmain
(occ_state, occ_show, voxel_size, vis=None, offset=[0, 0, 0])
tools/vis_tools/vis_occ.py:170
↓ 4 callersFunctionobtain_sensor2top
Obtain the info with RT matric from general sensor to Top LiDAR. Args: nusc (class): Dataset class in the nuScenes dataset. senso
tools/data_converter/nuscenes_converter.py:346
↓ 4 callersMethodprepare_train_data
Training data preparation. Args: index (int): Index for accessing the target data. Returns: dict: Tra
projects/mmdet3d_plugin/datasets/nuscenes_occ.py:100
↓ 4 callersMethodrender
Renders various PR and TP curves. :param metrics: DetectionMetrics instance. :param md_list: DetectionMetricDataList instance
projects/mmdet3d_plugin/datasets/nuscenes_eval.py:674
↓ 3 callersMethod__getitem__
Get item from infos according to the given index. Args: idx (int): Index for accessing the target data. Returns:
projects/mmdet3d_plugin/datasets/nuscenes_occ.py:67
↓ 3 callersFunction_calculate_num_points_in_gt
( data_path, infos, relative_path, remove_outside=True, num_features=4 )
tools/data_converter/kitti_converter.py:47
↓ 3 callersMethodadd_batch
The main evalution function. Called by function `eval` in dataset class. Args: CDist_tensor (np.array): (num_classes-1
projects/mmdet3d_plugin/datasets/occ_metrics.py:124
↓ 3 callersMethodbev_encoder
(self, x)
projects/mmdet3d_plugin/bevformer/detectors/bevdet_solo.py:32
↓ 3 callersMethodeval_metrics
Evaluation. Args: voxel_semantics (torch.Tensor): semantic occpuancy ground truth. voxel_semantics_preds
projects/mmdet3d_plugin/bevformer/dense_heads/occformer_head.py:283
↓ 3 callersMethodextract_feat
Extract features from images and points.
projects/mmdet3d_plugin/bevformer/detectors/occformer_waymo.py:112
↓ 3 callersMethodextract_feat
Extract features from images and points.
projects/mmdet3d_plugin/bevformer/detectors/occformer.py:106
↓ 3 callersMethodextract_feat
Extract features from images and points.
projects/mmdet3d_plugin/bevformer/detectors/bevdet_solo.py:44
↓ 3 callersFunctionflatten_binary_scores
Flattens predictions in the batch (binary case) Remove labels equal to 'ignore'
projects/mmdet3d_plugin/bevformer/loss/lovasz_losses.py:114
↓ 3 callersMethodget_bboxes
Convert instance masks to axis-aligned bounding boxes. Args: points (np.array): Scene points of shape (n, 6). pts_ins
tools/data_converter/s3dis_data_utils.py:113
↓ 3 callersMethodget_bev_features
This method is used to obtain Bird's Eye View (BEV) features from multi-level features, BEV queries, and other related parameters.
projects/mmdet3d_plugin/bevformer/modules/occ_transformer.py:206
↓ 3 callersFunctionget_cv_color
(i, begin=0)
tools/vis_tools/utils.py:42
↓ 3 callersMethodget_data_info
get the data info according to the index. Most of them are image meta data. Args: index (Int): the index of the data.
projects/mmdet3d_plugin/datasets/waymo_temporal_zlt.py:209
↓ 3 callersMethodget_data_info
Get data info according to the given index. Args: index (int): Index of the sample data to get. Returns:
projects/mmdet3d_plugin/datasets/nuscenes_occ.py:177
↓ 3 callersMethodget_depth_dist
(self, x)
projects/mmdet3d_plugin/bevformer/modules/view_transformer.py:114
↓ 3 callersMethodget_infos
Get data infos. This method gets information from the raw data. Args: num_workers (int): Number of threads to be used. D
tools/data_converter/s3dis_data_utils.py:41
↓ 3 callersFunctionget_kitti_image_info
KITTI annotation format version 2: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: { image_id
tools/data_converter/kitti_data_utils.py:190
↓ 3 callersMethodget_occ
Generate bboxes from bbox head predictions. Args: preds_dicts (tuple[list[dict]]): Prediction results. Return
projects/mmdet3d_plugin/bevformer/dense_heads/occformer_head.py:237
↓ 3 callersFunctionget_velodyne_path
( idx, prefix, training=True, relative_path=True, exist_check=True, use_prefix_id=Fals
tools/data_converter/kitti_data_utils.py:85
↓ 3 callersMethodmake_layer
(self, in_channels, out_channels, num_blocks=2,
projects/mmdet3d_plugin/bevformer/modules/cost_volume_module.py:50
↓ 3 callersFunctionnuscenes_data_prep
Prepare data related to nuScenes dataset. Related data consists of '.pkl' files recording basic infos, 2D annotations and groundtruth databas
tools/create_data.py:55
↓ 3 callersMethodprint
compute and print the final results. Called by function `eval` in dataset class. Args: None. All information are stor
projects/mmdet3d_plugin/datasets/occ_metrics.py:191
↓ 3 callersFunctionvolume2points
(voxel, voxel_size, point_cloud_range)
tools/vis_tools/utils.py:81
↓ 3 callersMethodvoxel_pooling
(self, geom_feats, x)
projects/mmdet3d_plugin/bevformer/modules/view_transformer.py:176
↓ 2 callersMethod__init__
(self, in_channel=512, feat_channel=256, intrinsic_channel=33)
projects/mmdet3d_plugin/bevformer/modules/view_transformer.py:315
↓ 2 callersMethod__init__
(self, attn_cfgs, feedforward_channels, volume_flag=True
projects/mmdet3d_plugin/bevformer/modules/encoder_waymo.py:410
↓ 2 callersMethod_decide_interval
(self, runner)
projects/mmdet3d_plugin/core/evaluation/eval_hooks.py:37
↓ 2 callersMethod_evaluate_single
Evaluation for a single model in nuScenes protocol. Args: result_path (str): Path of the result file. logger (loggi
projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:380
↓ 2 callersMethod_format_bbox
Convert the results to the standard format. Args: results (list[dict]): Testing results of the dataset. jsonfile_pr
projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:275
↓ 2 callersMethod_get_pts_filename
(self, idx)
projects/mmdet3d_plugin/datasets/zltwaymo.py:104
↓ 2 callersFunctionadd_difficulty_to_annos
(info)
tools/data_converter/kitti_data_utils.py:528
↓ 2 callersMethodbbox2result_kitti
Convert results to kitti format for evaluation and test submission. Args: net_outputs (List[np.ndarray]): list of array storing t
projects/mmdet3d_plugin/datasets/zltwaymo.py:396
↓ 2 callersFunctionbuild_sampler
(cfg, default_args)
projects/mmdet3d_plugin/datasets/samplers/sampler.py:6
↓ 2 callersFunctioncam_nusc_box_to_global
Convert the box from camera to global coordinate. Args: info (dict): Info for a specific sample data, including the calibra
projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:675
↓ 2 callersFunctioncollect_results_cpu
(result_part, size, tmpdir=None)
projects/mmdet3d_plugin/bevformer/apis/test.py:125
↓ 2 callersFunctioncollect_results_gpu
(result_part, size)
projects/mmdet3d_plugin/bevformer/apis/test.py:171
↓ 2 callersFunctionconv1x1
1x1 convolution with padding
projects/mmdet3d_plugin/models/backbones/vovnet.py:136
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
projects/mmdet3d_plugin/models/backbones/vovnet.py:116
↓ 2 callersMethodconvert
Convert action.
tools/data_converter/waymo_converter.py:88
↓ 2 callersMethodconvert_range_image_to_point_cloud
Convert range images to point cloud. Args: frame (:obj:`Frame`): Open dataset frame. range_images (dict): Mapping fro
tools/data_converter/waymo_converter.py:410
↓ 2 callersFunctioncreate_groundtruth_database
Given the raw data, generate the ground truth database. Args: dataset_class_name (str): Name of the input dataset. data_path (str
tools/data_converter/create_gt_database.py:111
↓ 2 callersFunctioncustom_multi_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mo
projects/mmdet3d_plugin/bevformer/apis/test.py:46
↓ 2 callersFunctioncustom_train_model
A function wrapper for launching model training according to cfg. Because we need different eval_hook in runner. Should be deprecated in the
projects/mmdet3d_plugin/bevformer/apis/train.py:11
↓ 2 callersMethodevaluate
(self, occ_results, runner=None, **eval_kwargs)
projects/mmdet3d_plugin/datasets/nuscenes_occ.py:272
↓ 2 callersFunctionfilter_by_sample_token
(ori_eval_boxes, valid_sample_tokens=[], verbose=False)
projects/mmdet3d_plugin/datasets/nuscenes_eval.py:426
↓ 2 callersFunctionfilter_eval_boxes_by_overlap
Applies filtering to boxes. basedon overlap . :param nusc: An instance of the NuScenes class. :param eval_boxes: An instance of the EvalB
projects/mmdet3d_plugin/datasets/nuscenes_eval.py:434
↓ 2 callersFunctionfinite_check
(x, s="", pdb_save=True)
projects/mmdet3d_plugin/bevformer/modules/view_transformer_solo.py:21
↓ 2 callersMethodformat_results
Format the results to pkl file. Args: outputs (list[dict]): Testing results of the dataset. pklfile_prefix (str | Non
projects/mmdet3d_plugin/datasets/zltwaymo.py:181
↓ 2 callersMethodforward_pts_train
Forward function Args: multi_level_feats (list[torch.Tensor]): Multi level img_feats. voxel_semantics (to
projects/mmdet3d_plugin/bevformer/detectors/occformer.py:112
↓ 2 callersMethodforward_test
Forward inference function. Args: (all arg are be wrapped one more list. after we take it out, the type of each param
projects/mmdet3d_plugin/bevformer/detectors/occformer_waymo.py:269
↓ 2 callersMethodforward_test
Forward inference function. Args: (all arg are be wrapped one more list. after we take it out, the type of each param
projects/mmdet3d_plugin/bevformer/detectors/occformer.py:277
↓ 2 callersFunctionfuse_conv_bn
During inference, the functionary of batch norm layers is turned off but only the mean and var alone channels are used, which exposes the chance t
tools/misc/fuse_conv_bn.py:10
↓ 2 callersFunctiongenerate_forward_transformation_matrix
(img_meta_dict)
projects/mmdet3d_plugin/bevformer/detectors/solofusion.py:15
↓ 2 callersFunctiongenerate_the_ego_car
()
tools/vis_tools/vis_occ.py:212
↓ 2 callersFunctionget_2d_boxes
Get the 2D annotation records for a given info. Args: info: Information of the given sample data. occluded: Integer (0, 1, 2, 3)
tools/data_converter/kitti_converter.py:381
↓ 2 callersFunctionget_available_scenes
Get available scenes from the input nuscenes class. Given the raw data, get the information of available scenes for further info generation.
tools/data_converter/nuscenes_converter.py:139
↓ 2 callersFunctionget_calib_path
( idx, prefix, training=True, relative_path=True, exist_check=True, use_prefix_id=Fals
tools/data_converter/kitti_data_utils.py:105
↓ 2 callersFunctionget_image_index_str
(img_idx, use_prefix_id=False)
tools/data_converter/kitti_data_utils.py:11
↓ 2 callersFunctionget_image_path
( idx, prefix, training=True, relative_path=True, exist_check=True, info_type="image_2
tools/data_converter/kitti_data_utils.py:43
↓ 2 callersFunctionget_label_anno
(label_path)
tools/data_converter/kitti_data_utils.py:138
↓ 2 callersFunctionget_label_path
( idx, prefix, training=True, relative_path=True, exist_check=True, info_type="label_2
tools/data_converter/kitti_data_utils.py:64
↓ 2 callersMethodget_lidar_coor
Calculate the locations of the frustum points in the lidar coordinate system. Args: rots (torch.Tensor): Rotation from ca
projects/mmdet3d_plugin/models/necks/view_transformer.py:99
↓ 2 callersMethodget_loss
Calculate multiple losses using different loss functions. Args: loss_occ_fun (dict): A dictionary containing different
projects/mmdet3d_plugin/bevformer/dense_heads/occformer_head_waymo.py:235
↓ 2 callersFunctionget_pose_path
( idx, prefix, training=True, relative_path=True, exist_check=True, use_prefix_id=Fals
tools/data_converter/kitti_data_utils.py:125
↓ 2 callersMethodget_reference_points
Get the reference points used in SCA and TSA. Args: bev_z, bev_h, bev_w: spatial shape of voxel. D: sample D points
projects/mmdet3d_plugin/bevformer/modules/voxel_encoder.py:51
↓ 2 callersMethodget_reference_points
Get the reference points used in SCA and TSA. Args: H, W: spatial shape of bev. Z: hight of pillar. D:
projects/mmdet3d_plugin/bevformer/modules/encoder_3d.py:52
↓ 2 callersMethodget_reference_points
Get the reference points used in SCA and TSA. Args: bev_z, bev_h, bev_w: spatial shape of voxel. D: sample D points
projects/mmdet3d_plugin/bevformer/modules/vol_encoder.py:51
↓ 2 callersMethodget_reference_points
Get the reference points used in SCA and TSA. Args: H, W: spatial shape of bev. Z: hight of pillar. only
projects/mmdet3d_plugin/bevformer/modules/encoder.py:56
↓ 2 callersMethodget_reference_points
Get the reference points used in SCA and TSA. Args: H, W: spatial shape of bev. Z: hight of pillar. D:
projects/mmdet3d_plugin/bevformer/modules/encoder_3d_conv.py:72
↓ 2 callersMethodget_reference_points
Get the reference points used in SCA and TSA. Args: H, W: spatial shape of bev. Z: hight of pillar. only
projects/mmdet3d_plugin/bevformer/modules/encoder_waymo.py:72
↓ 2 callersMethodget_seg_infos
(self)
tools/data_converter/scannet_data_utils.py:269
↓ 2 callersMethodget_voxel_features
obtain bev features.
projects/mmdet3d_plugin/bevformer/modules/hybrid_transformer.py:277
↓ 2 callersMethodimage_encoder
Encoder for image features. Args: img (torch.Tensor): Image tensor. shape (B, N, C=3, H, W) Returns:
projects/mmdet3d_plugin/bevformer/detectors/solofusion.py:152
↓ 2 callersMethodinit_weights
Initialize weights of the DeformDETR head.
projects/mmdet3d_plugin/bevformer/dense_heads/occformer_head.py:68
↓ 2 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
projects/mmdet3d_plugin/bevformer/modules/decoder.py:34
↓ 2 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors See Alg. 1 in paper
projects/mmdet3d_plugin/bevformer/loss/lovasz_losses.py:18
next →1–100 of 691, ranked by callers