MCPcopy Index your code

hub / github.com/DerrickXuNu/v2x-vit / functions

Functions300 in github.com/DerrickXuNu/v2x-vit

↓ 8 callersMethodcollate_batch
Customized pytorch data loader collate function. Parameters ---------- batch : list / dict Batched data.
v2xvit/data_utils/pre_processor/bev_preprocessor.py:101
↓ 7 callersFunctionload_yaml
Load yaml file and return a dictionary. Parameters ---------- file : string yaml file path. opt : argparser Ar
v2xvit/hypes_yaml/yaml_utils.py:9
↓ 5 callersMethod__init__
(self, dim, RTE_ratio=2)
v2xvit/models/sub_modules/v2xvit_basic.py:63
↓ 5 callersMethod__len__
(self)
v2xvit/data_utils/datasets/basedataset.py:172
↓ 5 callersFunctionbbx2oabb
Convert the torch tensor bounding box to o3d oabb for visualization. Parameters ---------- bbx_corner : torch.Tensor shape:
v2xvit/visualization/vis_utils.py:68
↓ 5 callersFunctiondownsample_lidar_minimum
Given a list of pcd, find the minimum number and downsample all point clouds to the minimum number. Parameters ---------- pcd_np
v2xvit/utils/pcd_utils.py:175
↓ 5 callersFunctionget_projection_length_for_vector_projection
Get projection length for the Vector projection of a onto b s.t. a_projected = length * b. (2D version) See https://en.wikipedia.org/wiki
v2xvit/utils/box_utils.py:550
↓ 5 callersFunctionx1_to_x2
Transformation matrix from x1 to x2. Parameters ---------- x1 : list The pose of x1 under world coordinates. x2 : list
v2xvit/utils/transformation_utils.py:52
↓ 4 callersMethod__init__
(self, dim, fn)
v2xvit/models/sub_modules/base_transformer.py:8
↓ 4 callersFunctionbuild_dataset
(dataset_cfg, visualize=False, train=True)
v2xvit/data_utils/datasets/__init__.py:17
↓ 4 callersFunctionbuild_preprocessor
(preprocess_cfg, train)
v2xvit/data_utils/pre_processor/__init__.py:14
↓ 4 callersFunctioncheck_numpy_to_torch
(x)
v2xvit/utils/common_utils.py:10
↓ 4 callersFunctioncolor_encoding
Encode the single-channel intensity to 3 channels rgb color. Parameters ---------- intensity : np.ndarray Lidar intensity, s
v2xvit/visualization/vis_utils.py:195
↓ 4 callersMethodgenerate_object_center
Retrieve all objects in a format of (n, 7), where 7 represents x, y, z, l, w, h, yaw or x, y, z, h, w, l, yaw. Parameters
v2xvit/data_utils/post_processor/base_postprocessor.py:100
↓ 4 callersFunctionget_transformation_matrix
r""" Return transformation matrix for torch.affine_grid. Args: M : torch.Tensor Transformation matrix with shape :math:`(N
v2xvit/models/sub_modules/torch_transformation_utils.py:283
↓ 4 callersFunctionmask_ego_points
Remove the lidar points of the ego vehicle itself. Parameters ---------- points : np.ndarray Lidar points under lidar sensor
v2xvit/utils/pcd_utils.py:65
↓ 4 callersFunctionmask_points_by_range
Remove the lidar points out of the boundary. Parameters ---------- points : np.ndarray Lidar points under lidar sensor coord
v2xvit/utils/pcd_utils.py:36
↓ 4 callersMethodretrieve_base_data
Given the index, return the corresponding data. Parameters ---------- idx : int Index given by dataloade
v2xvit/data_utils/datasets/basedataset.py:181
↓ 4 callersFunctionshuffle_points
(points)
v2xvit/utils/pcd_utils.py:86
↓ 4 callersFunctiontorch_tensor_to_numpy
Convert a torch tensor to numpy. Parameters ---------- torch_tensor : torch.Tensor Returns ------- A numpy array.
v2xvit/utils/common_utils.py:160
↓ 4 callersFunctionwarp_affine
r""" Transform the src based on transformation matrix M. Args: src : torch.Tensor Input feature map with shape :math:`(B,C
v2xvit/models/sub_modules/torch_transformation_utils.py:318
↓ 3 callersMethodaugment
Data augmentation operation.
v2xvit/data_utils/datasets/basedataset.py:502
↓ 3 callersFunctionbbx2linset
Convert the torch tensor bounding box to o3d lineset for visualization. Parameters ---------- bbx_corner : torch.Tensor shap
v2xvit/visualization/vis_utils.py:18
↓ 3 callersFunctionbuild_postprocessor
(anchor_cfg, train)
v2xvit/data_utils/post_processor/__init__.py:10
↓ 3 callersFunctioncalculate_ap
Calculate the average precision and recall, and save them into a txt. Parameters ---------- result_stat : dict A dictionary
v2xvit/utils/eval_utils.py:90
↓ 3 callersFunctioneye_like
r""" Return a 2-D tensor with ones on the diagonal and zeros elsewhere with the same batch size as the input. Args: n : int
v2xvit/models/sub_modules/torch_transformation_utils.py:195
↓ 3 callersFunctionf
(low, high, r)
v2xvit/hypes_yaml/yaml_utils.py:191
↓ 3 callersMethodgenerate_anchor_box
(self)
v2xvit/data_utils/post_processor/bev_postprocessor.py:27
↓ 3 callersMethodgenerate_gt_bbx
The base postprocessor will generate 3d groundtruth bounding box. Parameters ---------- data_dict : dict
v2xvit/data_utils/post_processor/base_postprocessor.py:41
↓ 3 callersMethodgenerate_label
Generate targets for training. Parameters ---------- kwargs : list gt_box_center:(max_num, 7) R
v2xvit/data_utils/post_processor/bev_postprocessor.py:30
↓ 3 callersFunctionget_discretized_transformation_matrix
Get disretized transformation matrix. Parameters ---------- matrix : torch.Tensor Shape -- (B, L, 4, 4) where B is the batch
v2xvit/models/sub_modules/torch_transformation_utils.py:109
↓ 3 callersFunctionlineset_assign
Assign the attributes of lineset2 to lineset1. Parameters ---------- lineset1 : open3d.LineSet lineset2 : open3d.LineSet Re
v2xvit/visualization/vis_utils.py:174
↓ 3 callersMethodpreprocess
Preprocess the lidar points to BEV representations. Parameters ---------- pcd_raw : np.ndarray The raw l
v2xvit/data_utils/pre_processor/bev_preprocessor.py:16
↓ 3 callersMethodto_out
(self, x, types)
v2xvit/models/sub_modules/hmsa.py:99
↓ 3 callersMethodto_qkv
(self, x, types)
v2xvit/models/sub_modules/hmsa.py:38
↓ 2 callersMethod_extend_for_multilayer
(param, num_layers)
v2xvit/models/sub_modules/convgru.py:193
↓ 2 callersFunction_torch_inverse_cast
r""" Helper function to make torch.inverse work with other than fp32/64. The function torch.inverse is only implemented for fp32/64 which make
v2xvit/models/sub_modules/torch_transformation_utils.py:138
↓ 2 callersMethodadd_loc_noise
Add localization noise to the pose. Parameters ---------- pose : list x,y,z,roll,yaw,pitch xyz_
v2xvit/data_utils/datasets/basedataset.py:354
↓ 2 callersFunctionboxes_to_corners_3d
4 -------- 5 /| /| 7 -------- 6 . | | | | . 0 -------- 1 |/ |/ 3 -------- 2 P
v2xvit/utils/box_utils.py:139
↓ 2 callersMethoddenormalize_reg_map
Denormalize the regression map Parameters ---------- reg_map : np.ndarray / torch.Tensor Regression outp
v2xvit/data_utils/post_processor/bev_postprocessor.py:161
↓ 2 callersMethodget_item_single_car
Process a single CAV's information for the train/test pipeline. Parameters ---------- selected_cav_base : dict
v2xvit/data_utils/datasets/late_fusion_dataset.py:39
↓ 2 callersFunctionget_roi_and_cav_mask
Get mask for the combination of cav_mask and rorated ROI mask. Parameters ---------- shape : tuple Shape of (B, L, H, W, C).
v2xvit/models/sub_modules/torch_transformation_utils.py:12
↓ 2 callersFunctionget_rotated_roi
Get rorated ROI mask. Parameters ---------- shape : tuple Shape of (B,L,C,H,W). correction_matrix : torch.Tensor
v2xvit/models/sub_modules/torch_transformation_utils.py:78
↓ 2 callersMethodmerge_features_to_dict
Merge the preprocessed features from different cavs to the same dictionary. Parameters ---------- processed_
v2xvit/data_utils/datasets/intermediate_fusion_dataset.py:253
↓ 2 callersFunctionnormal_transform_pixel
r""" Compute the normalization matrix from image size in pixels to [-1, 1]. Args: height : int Image height. width
v2xvit/models/sub_modules/torch_transformation_utils.py:161
↓ 2 callersMethodpost_process
Process the outputs of the model to 2D/3D bounding box. Parameters ---------- data_dict : dict The dicti
v2xvit/data_utils/datasets/late_fusion_dataset.py:252
↓ 2 callersMethodreg_map_to_bbx_corners
Construct bbx from the regression output of the model. Parameters ---------- reg_map : torch.Tensor Regr
v2xvit/data_utils/post_processor/bev_postprocessor.py:294
↓ 2 callersMethodreturn_timestamp_key
Given the timestamp index, return the correct timestamp key, e.g. 2 --> '000078'. Parameters ---------- scen
v2xvit/data_utils/datasets/basedataset.py:271
↓ 2 callersFunctionsave_o3d_visualization
Save the open3d drawing to folder. Parameters ---------- element : list List of o3d.geometry objects. save_path : str
v2xvit/visualization/vis_utils.py:610
↓ 2 callersMethodsmooth_l1_loss
(diff, beta)
v2xvit/loss/point_pillar_loss.py:32
↓ 2 callersFunctionx_to_world
The transformation matrix from x-coordinate system to carla world system Parameters ---------- pose : list [x, y, z, roll, y
v2xvit/utils/transformation_utils.py:8
↓ 1 callersMethod__init__
(self, dim, heads, dim_head, drop_out, window_size, relative_pos_embedding)
v2xvit/models/sub_modules/mswin.py:20
↓ 1 callersMethod__init__
:param input_size: (int, int) Height and width of input tensor as (height, width). :param input_dim: int e.g. 256
v2xvit/models/sub_modules/convgru.py:74
↓ 1 callersMethod__init__
(self, feature_dim)
v2xvit/models/sub_modules/self_attn.py:37
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size, stride, padding)
v2xvit/models/sub_modules/downsample_conv.py:17
↓ 1 callersMethod__init__
(self, in_channels, out_channels, use_norm=True,
v2xvit/models/sub_modules/pillar_vfe.py:11
↓ 1 callersMethod__init__
(self, input_dim)
v2xvit/models/sub_modules/split_attn.py:31
↓ 1 callersMethod__init__
(self, args)
v2xvit/loss/point_pillar_loss.py:69
↓ 1 callersMethod_init_hidden
(self, batch_size, device=None, dtype=None)
v2xvit/models/sub_modules/convgru.py:178
↓ 1 callersFunction_read_requirements_file
Return the elements in requirements.txt.
setup.py:11
↓ 1 callersMethodadd_sin_difference
(boxes1, boxes2, dim=6)
v2xvit/loss/point_pillar_loss.py:196
↓ 1 callersMethodbackbone_fix
Fix the parameters of backbone during finetune on timedelay。
v2xvit/models/point_pillar_opv2v.py:44
↓ 1 callersMethodbackbone_fix
Fix the parameters of backbone during finetune on timedelay。
v2xvit/models/point_pillar_fcooper.py:44
↓ 1 callersMethodbackbone_fix
Fix the parameters of backbone during finetune on timedelay。
v2xvit/models/point_pillar_transformer.py:46
↓ 1 callersMethodbackbone_fix
Fix the parameters of backbone during finetune on timedelay。
v2xvit/models/point_pillar_v2vnet.py:45
↓ 1 callersMethodcalc_dist_to_ego
Calculate the distance to ego for each cav.
v2xvit/data_utils/datasets/basedataset.py:296
↓ 1 callersMethodcls_loss_func
Args: input: (B, #anchors, #classes) float tensor. Predicted logits for each class target: (B, #ancho
v2xvit/loss/point_pillar_loss.py:143
↓ 1 callersMethodcollate_batch_dict
Collate batch if the batch is a dictionary, eg: {'voxel_features': [feature1, feature2...., feature n]} Parameters -
v2xvit/data_utils/pre_processor/sp_voxel_preprocessor.py:117
↓ 1 callersMethodcollate_batch_dict
Collate batch if the batch is a dictionary, eg: {'voxel_features': [feature1, feature2...., feature n]} Parameters -
v2xvit/data_utils/pre_processor/voxel_preprocessor.py:125
↓ 1 callersMethodcollate_batch_dict
Customized pytorch data loader collate function. Parameters ---------- batch : dict Dict of list. Each e
v2xvit/data_utils/pre_processor/bev_preprocessor.py:78
↓ 1 callersMethodcollate_batch_list
Customized pytorch data loader collate function. Parameters ---------- batch : list List of dictionary.
v2xvit/data_utils/pre_processor/sp_voxel_preprocessor.py:82
↓ 1 callersMethodcollate_batch_list
Customized pytorch data loader collate function. Parameters ---------- batch : list List of dictionary.
v2xvit/data_utils/pre_processor/voxel_preprocessor.py:94
↓ 1 callersMethodcollate_batch_list
Customized pytorch data loader collate function. Parameters ---------- batch : list List of dictionary.
v2xvit/data_utils/pre_processor/bev_preprocessor.py:55
↓ 1 callersMethodcollate_batch_train
(self, batch)
v2xvit/data_utils/datasets/intermediate_fusion_dataset.py:283
↓ 1 callersFunctioncombine_roi_and_cav_mask
Combine ROI mask and CAV mask Parameters ---------- roi_mask : torch.Tensor Mask for ROI region after considering the spatia
v2xvit/models/sub_modules/torch_transformation_utils.py:53
↓ 1 callersFunctionconvert_affinematrix_to_homography
r""" Convert to homography coordinates Args: A : torch.Tensor The affine matrix with shape :math:`(B,2,3)`. Returns:
v2xvit/models/sub_modules/torch_transformation_utils.py:301
↓ 1 callersFunctioncorner_to_center
Convert 8 corners to x, y, z, dx, dy, dz, yaw. Parameters ---------- corner3d : np.ndarray (N, 8, 3) order : str
v2xvit/utils/box_utils.py:14
↓ 1 callersFunctioncreate_bbx
Create bounding box with 8 corners under obstacle vehicle reference. Parameters ---------- extent : list Width, height, leng
v2xvit/utils/box_utils.py:395
↓ 1 callersFunctioncustom_draw_geometry
(pcd, pred, gt)
v2xvit/visualization/vis_utils.py:274
↓ 1 callersMethoddelta_to_boxes3d
Convert the output delta to 3d bbx. Parameters ---------- deltas : torch.Tensor (N, W, L, 14) an
v2xvit/data_utils/post_processor/voxel_postprocessor.py:345
↓ 1 callersFunctiondist_to_continuous
Convert points discretized format to continuous space for BEV representation. Parameters ---------- p_dist : numpy.array Poin
v2xvit/utils/transformation_utils.py:77
↓ 1 callersFunctiondownsample_lidar
Downsample the lidar points to a certain number. Parameters ---------- pcd_np : np.ndarray The lidar points, (n, 4). nu
v2xvit/utils/pcd_utils.py:148
↓ 1 callersMethodextract_timestamps
Given the list of the yaml files, extract the mocked timestamps. Parameters ---------- yaml_files : list
v2xvit/data_utils/datasets/basedataset.py:246
↓ 1 callersFunctionfindLastCheckpoint
(save_dir)
v2xvit/tools/train_utils.py:30
↓ 1 callersMethodforward
Args: data_dict: points: (N, 3 + C_in) gt_boxes: optional, (N, 7) [x, y, z, dx, dy, dz, heading]
v2xvit/data_utils/augmentor/data_augmentor.py:99
↓ 1 callersMethodget_hetero_edge_weights
(self, x, types)
v2xvit/models/sub_modules/hmsa.py:71
↓ 1 callersMethodget_item_single_car
Project the lidar and bbx to ego space first, and then do clipping. Parameters ---------- selected_cav_base : dict
v2xvit/data_utils/datasets/intermediate_fusion_dataset.py:194
↓ 1 callersMethodget_item_single_car
Project the lidar and bbx to ego space first, and then do clipping. Parameters ---------- selected_cav_base : dict
v2xvit/data_utils/datasets/early_fusion_dataset.py:139
↓ 1 callersMethodget_item_single_car
Project the lidar and bbx to ego space first, and then do clipping. Parameters ---------- selected_cav_base : dict
v2xvit/data_utils/datasets/early_fusion_vis_dataset.py:107
↓ 1 callersMethodget_item_test
(self, base_data_dict)
v2xvit/data_utils/datasets/late_fusion_dataset.py:115
↓ 1 callersMethodget_item_train
(self, base_data_dict)
v2xvit/data_utils/datasets/late_fusion_dataset.py:99
↓ 1 callersMethodget_paddings_indicator
(actual_num, max_num, axis=0)
v2xvit/models/sub_modules/pillar_vfe.py:95
↓ 1 callersMethodget_pairwise_transformation
Get pair-wise transformation matrix across different agents. This is only used for v2vnet and disconet. Currently we set this
v2xvit/data_utils/datasets/intermediate_fusion_dataset.py:167
↓ 1 callersFunctionget_points_in_rotated_box
Get points within a rotated bounding box (2D version). Parameters ---------- p : numpy.array Points to be tested with shape
v2xvit/utils/box_utils.py:477
↓ 1 callersMethodget_relation_type_index
(self, type1, type2)
v2xvit/models/sub_modules/hmsa.py:68
↓ 1 callersFunctionget_relative_distances
(window_size)
v2xvit/models/sub_modules/mswin.py:12
↓ 1 callersFunctionget_rotation_matrix2d
r""" Return rotation matrix for torch.affine_grid based on transformation matrix. Args: M : torch.Tensor Transformation ma
v2xvit/models/sub_modules/torch_transformation_utils.py:255
↓ 1 callersFunctioninference_early_fusion
Model inference for early fusion. Parameters ---------- batch_data : dict model : opencood.object dataset : opencood.EarlyFu
v2xvit/tools/infrence_utils.py:39
↓ 1 callersMethodinit_hidden
(self, batch_size)
v2xvit/models/sub_modules/convgru.py:44
↓ 1 callersMethodload_camera_files
Retrieve the paths to all camera files. Parameters ---------- cav_path : str The full file path of curre
v2xvit/data_utils/datasets/basedataset.py:454
next →1–100 of 300, ranked by callers