MCPcopy Create free account

hub / github.com/Xin-Ye-1/BEVDiffuser / functions

Functions674 in github.com/Xin-Ye-1/BEVDiffuser

↓ 79 callersMethodstack
Return a new batched Transform3d representing the batch elements from self and all the given other transforms all batched together.
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:393
↓ 69 callersMethodto
(self, *args, **kwargs)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/boxes3d.py:315
↓ 68 callersMethodsplit
(self, split_sizes, dim=0)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/boxes3d.py:270
↓ 60 callersMethodcat
(cls, boxes_list, dim=0)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/boxes3d.py:253
↓ 19 callersMethodrotate
(self, *args, **kwargs)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:497
↓ 15 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
BEVFormer/projects/bevdiffuser/layout_diffusion/nn.py:27
↓ 15 callersMethodcuda
(self)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:567
↓ 14 callersMethodtranslate
(self, *args, **kwargs)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:487
↓ 13 callersMethodclone
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/boxes3d.py:308
↓ 12 callersFunction_extend_matrix
(mat)
BEVFormer/tools/data_converter/kitti_data_utils.py:136
↓ 12 callersMethodcopy
Return a copy of this pose object. Returns ---------- result: Pose Copied pose object.
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/pose.py:35
↓ 12 callersMethodfrom_pretrained
(self, pretrained_model_name_or_path, subfolder=None)
BEVFormer/projects/bevdiffuser/layout_diffusion/layout_diffusion_unet.py:950
↓ 12 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
BEVFormer/projects/bevdiffuser/layout_diffusion/nn.py:98
↓ 9 callersMethodextract_feat
Extract features from images and points.
BEVFormer/projects/mmdet3d_plugin/bevformer/detectors/bevformer.py:111
↓ 8 callersMethodloss
(self, gt_bboxes_list, gt_labels_list, ret, gt_bboxes_igno
BEVFormer/projects/mmdet3d_plugin/bevformer/dense_heads/bev_head.py:103
↓ 7 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataloade
BEVFormer/projects/mmdet3d_plugin/datasets/builder.py:23
↓ 7 callersMethodpre_pipeline
Initialization before data preparation. Args: results (dict): Dict before data preprocessing. - img_fields (list):
BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:111
↓ 6 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, out_size=None)
BEVFormer/projects/bevdiffuser/layout_diffusion/layout_diffusion_unet.py:83
↓ 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.
BEVFormer/tools/data_converter/kitti_converter.py:232
↓ 6 callersMethodget_matrix
Return a matrix which is the result of composing this transform with others stored in self.transforms. Where necessary transforms
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:314
↓ 5 callersMethod__init__
(self, width)
BEVFormer/projects/bevdiffuser/layout_diffusion/layout_encoder.py:53
↓ 5 callersFunctioncollect_results_cpu
(result_part, size, tmpdir=None)
BEVFormer/projects/mmdet3d_plugin/bevformer/apis/test.py:121
↓ 5 callersMethodcompose
Return a new Transform3d representing the composition of self with the given other transforms, which will be stored as an internal li
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:294
↓ 5 callersMethodcpu
(self)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:564
↓ 5 callersMethoddecode
Decode bboxes. Args: all_cls_scores (Tensor): Outputs from the classification head, \ shape [nb_dec, bs, num_query
BEVFormer/projects/mmdet3d_plugin/core/bbox/coders/nms_free_coder.py:107
↓ 5 callersFunctionget_kitti_info_path
(idx, prefix, info_type='image_2', fil
BEVFormer/tools/data_converter/kitti_data_utils.py:17
↓ 5 callersMethodshow
Results visualization. Args: results (list[dict]): List of bounding boxes results. out_dir (str): Output directory of
BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:603
↓ 5 callersMethodto
Match functionality of torch.Tensor.to() If copy = True or the self Tensor is on a different device, the returned tensor is a
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:522
↓ 4 callersMethod__init__
Args: input_ch(int) : the number of input channel out_features (list[str]): name of the layers whose outputs should
BEVFormer/projects/mmdet3d_plugin/models/backbones/vovnet.py:274
↓ 4 callersFunction_read_imageset_file
(path)
BEVFormer/tools/data_converter/kitti_converter.py:40
↓ 4 callersMethodclone
Deep copy of Transforms object. All internal tensors are cloned individually. Returns: new Transforms object.
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:507
↓ 4 callersMethodconvert
Convert action.
BEVFormer/tools/data_converter/waymo_converter.py:92
↓ 4 callersFunctioncustom_build_dataset
(cfg, default_args=None)
BEVFormer/projects/mmdet3d_plugin/datasets/builder.py:128
↓ 4 callersMethodextract_feat
Extract features from images and points.
BEVFormer/projects/mmdet3d_plugin/bevformer/detectors/bevformerV2.py:106
↓ 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
BEVFormer/tools/analysis_tools/visual.py:320
↓ 4 callersFunctionget_condition
(batch, use_cond=True)
BEVFormer/projects/bevdiffuser/test_bev_diffuser.py:233
↓ 4 callersMethodinit_weight
Default initialization for Parameters of Module.
BEVFormer/projects/mmdet3d_plugin/bevformer/modules/spatial_cross_attention.py:75
↓ 4 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
BEVFormer/projects/mmdet3d_plugin/bevformer/modules/decoder.py:39
↓ 4 callersMethodobtain_history_bev
Obtain history BEV features iteratively. To save GPU memory, gradients are not calculated.
BEVFormer/projects/mmdet3d_plugin/bevformer/detectors/bevformer.py:175
↓ 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
BEVFormer/tools/data_converter/nuscenes_converter.py:325
↓ 4 callersMethodprepare_train_data
Training data preparation. Args: index (int): Index for accessing the target data. Returns: dict: Tra
BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_dataset.py:37
↓ 4 callersFunctionreduce_sum
Adapted from AdelaiDet: https://github.com/aim-uofa/AdelaiDet/blob/master/adet/utils/comm.py
BEVFormer/projects/mmdet3d_plugin/dd3d/utils/comm.py:91
↓ 4 callersMethodrender
Renders various PR and TP curves. :param metrics: DetectionMetrics instance. :param md_list: DetectionMetricDataList instance
BEVFormer/projects/mmdet3d_plugin/datasets/nuscnes_eval.py:684
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
BEVFormer/projects/bevdiffuser/layout_diffusion/nn.py:73
↓ 3 callersMethod__init__
A Transform3d representing a scaling operation, with different scale factors along each coordinate axis. Option I: Scale(s,
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:613
↓ 3 callersFunction_broadcast_bmm
Batch multiply two matrices and broadcast if necessary. Args: a: torch tensor of shape (P, K) or (M, P, K) b: torch tensor o
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:843
↓ 3 callersFunction_calculate_num_points_in_gt
(data_path, infos, relative_path,
BEVFormer/tools/data_converter/kitti_converter.py:46
↓ 3 callersFunction_to_tensor
(x, dim)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/boxes3d.py:47
↓ 3 callersFunctionbuild_unet
(cfg)
BEVFormer/projects/bevdiffuser/model_utils.py:89
↓ 3 callersMethodcorners
(self)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/boxes3d.py:76
↓ 3 callersMethoddevice
(self)
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/image_list.py:90
↓ 3 callersMethodevaluate
Performs the actual evaluation. :return: A tuple of high-level and the raw metric data.
BEVFormer/projects/mmdet3d_plugin/datasets/nuscnes_eval.py:634
↓ 3 callersMethodforward_test
(self, img_metas, img=None, only_bev=False, given_bev=None, return_eval_loss=False, **kwargs)
BEVFormer/projects/mmdet3d_plugin/bevformer/detectors/bevformerV2.py:249
↓ 3 callersMethodforward_test
(self, img_metas, img=None, only_bev=False, given_bev=None, return_eval_loss=False, **kwargs)
BEVFormer/projects/mmdet3d_plugin/bevformer/detectors/bevformer.py:255
↓ 3 callersMethodget_bboxes
(self, ret, img_metas, rescale=False)
BEVFormer/projects/mmdet3d_plugin/bevformer/dense_heads/bev_head.py:113
↓ 3 callersMethodget_bev_features
obtain bev features.
BEVFormer/projects/mmdet3d_plugin/bevformer/modules/transformer.py:112
↓ 3 callersFunctionget_device
Gets the device of the specified variable x if it is a tensor, or falls back to a default CPU device otherwise. Allows overriding by prov
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:36
↓ 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
BEVFormer/tools/data_converter/s3dis_data_utils.py:50
↓ 3 callersFunctionget_kitti_image_info
KITTI annotation format version 2: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: { image_id
BEVFormer/tools/data_converter/kitti_data_utils.py:141
↓ 3 callersFunctionget_velodyne_path
(idx, prefix, training=True, relative_path=T
BEVFormer/tools/data_converter/kitti_data_utils.py:62
↓ 3 callersMethodinit_weights
(self)
BEVFormer/projects/mmdet3d_plugin/dd3d/modeling/fcos2d.py:119
↓ 3 callersFunctionlinear
Create a linear module.
BEVFormer/projects/bevdiffuser/layout_diffusion/nn.py:40
↓ 3 callersFunctionmake_device
Makes an actual torch.device object from the device specified as either a string or torch.device object. If the device is `cuda` without
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:16
↓ 3 callersFunctionnuscenes_data_prep
Prepare data related to nuScenes dataset. Related data consists of '.pkl' files recording basic infos, 2D annotations and groundtruth databas
BEVFormer/tools/create_data.py:57
↓ 3 callersMethodobtain_history_bev
Obtain history BEV features iteratively. To save GPU memory, gradients are not calculated.
BEVFormer/projects/mmdet3d_plugin/bevformer/detectors/bevformerV2.py:186
↓ 3 callersMethodprepare_input_dict
(self, info)
BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_dataset_v2.py:150
↓ 3 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
BEVFormer/projects/bevdiffuser/scheduler_utils.py:19
↓ 3 callersMethodtrain
Convert the model into training mode while keep normalization layer freezed.
BEVFormer/projects/mmdet3d_plugin/models/backbones/vovnet.py:370
↓ 3 callersFunctionunproject_points2d
Parameters ---------- points2d: Tensor xy coordinates. shape=(N, ..., 2) E.g., (N, 2) or (N, K, 2) or (N, H, W, 2) i
BEVFormer/projects/mmdet3d_plugin/dd3d/utils/geometry.py:178
↓ 2 callersMethod__init__
(self, attn_cfgs, feedforward_channels, ffn_dropout=0.0,
BEVFormer/projects/mmdet3d_plugin/bevformer/modules/encoder.py:268
↓ 2 callersMethod__init__
(self, in_channels, out_channels, inter_channels, num_layer, norm_cfg=dict(type='SyncBN'), wi
BEVFormer/projects/mmdet3d_plugin/bevformer/modules/transformerV2.py:25
↓ 2 callersMethod__init__
(self, attr_loss_weight=0.2, speed_loss_weight=0.2)
BEVFormer/projects/mmdet3d_plugin/dd3d/modeling/nuscenes_dd3d.py:205
↓ 2 callersMethod__init__
(self, init_value=1.0)
BEVFormer/projects/mmdet3d_plugin/dd3d/layers/normalization.py:13
↓ 2 callersMethod_decide_interval
(self, runner)
BEVFormer/projects/mmdet3d_plugin/core/evaluation/eval_hooks.py:42
↓ 2 callersMethod_evaluate_single
Evaluation for a single model in nuScenes protocol. Args: result_path (str): Path of the result file. logger (logging.
BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:385
↓ 2 callersMethod_format_bbox
Convert the results to the standard format. Args: results (list[dict]): Testing results of the dataset. jsonfile_prefi
BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:280
↓ 2 callersMethod_get_ego_velocity
Velocity of ego-vehicle in m/s.
BEVFormer/projects/mmdet3d_plugin/dd3d/datasets/nuscenes.py:252
↓ 2 callersFunction_handle_coord
Helper function for _handle_input. Args: c: Python scalar, torch scalar, or 1D torch tensor Returns: c_vec: 1D torch te
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:738
↓ 2 callersFunction_handle_input
Helper function to handle parsing logic for building transforms. The output is always a tensor of shape (N, 3), but there are several types o
BEVFormer/projects/mmdet3d_plugin/dd3d/structures/transform3d.py:757
↓ 2 callersMethod_transpose
This function is used to transpose image first training targets to level first ones :return: level first training targets
BEVFormer/projects/mmdet3d_plugin/dd3d/modeling/prepare_targets.py:221
↓ 2 callersMethod_update_target
(self, runner)
BEVFormer/projects/mmdet3d_plugin/bevformer/hooks/custom_hooks.py:30
↓ 2 callersFunctionadd_difficulty_to_annos
(info)
BEVFormer/tools/data_converter/kitti_data_utils.py:467
↓ 2 callersFunctionbuild_sampler
(cfg, default_args)
BEVFormer/projects/mmdet3d_plugin/datasets/samplers/sampler.py:11
↓ 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 calibratio
BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:680
↓ 2 callersFunctioncollect_results_gpu
(result_part, size)
BEVFormer/projects/mmdet3d_plugin/bevformer/apis/test.py:168
↓ 2 callersMethodcompute_locations
(self, features)
BEVFormer/projects/mmdet3d_plugin/dd3d/modeling/core.py:204
↓ 2 callersFunctionconv1x1
1x1 convolution with padding
BEVFormer/projects/mmdet3d_plugin/models/backbones/vovnet.py:140
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
BEVFormer/projects/mmdet3d_plugin/models/backbones/vovnet.py:120
↓ 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
BEVFormer/tools/data_converter/waymo_converter.py:392
↓ 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
BEVFormer/tools/data_converter/create_gt_database.py:114
↓ 2 callersFunctioncustom_encode_mask_results
Encode bitmap mask to RLE code. Semantic Masks only Args: mask_results (list | tuple[list]): bitmap mask results. In mask scor
BEVFormer/projects/mmdet3d_plugin/bevformer/apis/test.py:30
↓ 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 mode
BEVFormer/projects/mmdet3d_plugin/bevformer/apis/test.py:50
↓ 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
BEVFormer/projects/mmdet3d_plugin/bevformer/apis/train.py:19
↓ 2 callersMethodencode
(self)
BEVFormer/projects/mmdet3d_plugin/core/bbox/coders/nms_free_coder.py:41
↓ 2 callersFunctionevaluate
(unet, bev_model, noise_scheduler, dataset, dataloader,
BEVFormer/projects/bevdiffuser/test_bev_diffuser.py:210
↓ 2 callersFunctionfilter_by_sample_token
(ori_eval_boxes, valid_sample_tokens=[], verbose=False)
BEVFormer/projects/mmdet3d_plugin/datasets/nuscnes_eval.py:431
↓ 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
BEVFormer/projects/mmdet3d_plugin/datasets/nuscnes_eval.py:439
↓ 2 callersMethodformat_results
Format the results to json (standard format for COCO evaluation). Args: results (list[tuple | numpy.ndarray]): Testing results of
BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_mono_dataset.py:451
↓ 2 callersMethodforward_mono_train
img_feats (list[Tensor]): 5-D tensor for each level, (B, N, C, H, W) gt_bboxes (list[list[Tensor]]): Ground truth bboxes for each ima
BEVFormer/projects/mmdet3d_plugin/bevformer/detectors/bevformerV2.py:129
↓ 2 callersMethodforward_pts_train
Forward function' Args: pts_feats (list[torch.Tensor]): Features of point cloud branch gt_bboxes_3d (list[:obj:`BaseIn
BEVFormer/projects/mmdet3d_plugin/bevformer/detectors/bevformer.py:119
next →1–100 of 674, ranked by callers