MCPcopy Create free account

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

Functions300 in github.com/DerrickXuNu/v2x-vit

Functioncreate_model
Import the module "models/[model_name].py Parameters __________ hypes : dict Dictionary containing parameters. Returns
v2xvit/tools/train_utils.py:82
Functioneval_final_results
(result_stat, save_path)
v2xvit/utils/eval_utils.py:131
Methodforward
(self, data_dict)
v2xvit/models/point_pillar_opv2v.py:69
Methodforward
(self, data_dict)
v2xvit/models/point_pillar_fcooper.py:69
Methodforward
(self, data_dict)
v2xvit/models/point_pillar_transformer.py:71
Methodforward
(self, data_dict)
v2xvit/models/point_pillar.py:35
Methodforward
(self, data_dict)
v2xvit/models/point_pillar_v2vnet.py:82
Methodforward
(self, x)
v2xvit/models/sub_modules/mswin.py:46
Methodforward
(self, x)
v2xvit/models/sub_modules/mswin.py:106
Methodforward
:param self: :param input_tensor: (b, c, h, w) input is actually the target_model :param h_cur: (b, c_hidden, h,
v2xvit/models/sub_modules/convgru.py:48
Methodforward
:param input_tensor: (b, t, c, h, w) or (t,b,c,h,w) depends on if batch first or not extracted features from alexnet :par
v2xvit/models/sub_modules/convgru.py:129
Methodforward
(self, x, mask, prior_encoding)
v2xvit/models/sub_modules/hmsa.py:110
Methodforward
(self, data_dict)
v2xvit/models/sub_modules/base_bev_backbone.py:95
Methodforward
(self, x)
v2xvit/models/sub_modules/naive_compress.py:25
Methodforward
(self, query, key, value)
v2xvit/models/sub_modules/self_attn.py:29
Methodforward
(self, x, record_len)
v2xvit/models/sub_modules/self_attn.py:41
Methodforward
(self, x, record_len)
v2xvit/models/sub_modules/f_cooper_fuse.py:17
Methodforward
(self, x)
v2xvit/models/sub_modules/downsample_conv.py:28
Methodforward
(self, x)
v2xvit/models/sub_modules/downsample_conv.py:49
Methodforward
(self, x, record_len, pairwise_t_matrix, prior_encoding)
v2xvit/models/sub_modules/v2v_fuse.py:48
Methodforward
(self, inputs)
v2xvit/models/sub_modules/pillar_vfe.py:31
Methodforward
(self, batch_dict)
v2xvit/models/sub_modules/pillar_vfe.py:105
Methodforward
(self, x, **kwargs)
v2xvit/models/sub_modules/base_transformer.py:13
Methodforward
(self, x)
v2xvit/models/sub_modules/base_transformer.py:28
Methodforward
(self, x, mask, prior_encoding)
v2xvit/models/sub_modules/base_transformer.py:51
Methodforward
(self, x, mask)
v2xvit/models/sub_modules/base_transformer.py:96
Methodforward
(self, x, mask)
v2xvit/models/sub_modules/base_transformer.py:118
Methodforward
(self, batch_dict)
v2xvit/models/sub_modules/point_pillar_scatter.py:14
Methodforward
(self, x)
v2xvit/models/sub_modules/split_attn.py:12
Methodforward
(self, window_list)
v2xvit/models/sub_modules/split_attn.py:42
Methodforward
(self, x, mask, spatial_correction_matrix)
v2xvit/models/sub_modules/v2xvit_basic.py:17
Methodforward
(self, x, t)
v2xvit/models/sub_modules/v2xvit_basic.py:55
Methodforward
(self, x, dts)
v2xvit/models/sub_modules/v2xvit_basic.py:69
Methodforward
(self, x, mask, prior_encoding)
v2xvit/models/sub_modules/v2xvit_basic.py:116
Methodforward
(self, x, mask, spatial_correction_matrix)
v2xvit/models/sub_modules/v2xvit_basic.py:156
Methodforward
(self, x, mask, spatial_correction_matrix)
v2xvit/models/sub_modules/v2xvit_basic.py:188
Methodforward
Parameters ---------- output_dict : dict target_dict : dict
v2xvit/loss/voxel_net_loss.py:15
Methodforward
Compute loss for pixor network Parameters ---------- output_dict : dict The dictionary that contains the o
v2xvit/loss/pixor_loss.py:15
Methodforward
Args: input: (B, #anchors, #codes) float tensor. Ecoded predicted locations of objects. target: (B, #
v2xvit/loss/point_pillar_loss.py:41
Methodforward
Parameters ---------- output_dict : dict target_dict : dict
v2xvit/loss/point_pillar_loss.py:79
Methodgenerate_anchor_box
(self)
v2xvit/data_utils/post_processor/base_postprocessor.py:34
Methodgenerate_anchor_box
(self)
v2xvit/data_utils/post_processor/voxel_postprocessor.py:23
Methodgenerate_label
(self, *argv)
v2xvit/data_utils/post_processor/base_postprocessor.py:38
Methodgenerate_label
Generate targets for training. Parameters ---------- argv : list gt_box_center:(max_num, 7), anchor:(H,
v2xvit/data_utils/post_processor/voxel_postprocessor.py:73
Functionget_mask_for_boxes_within_range_torch
Generate mask to remove the bounding boxes outside the range. Parameters ---------- boxes : torch.Tensor Groundtruth bbx
v2xvit/utils/box_utils.py:326
Methodget_output_feature_dim
(self)
v2xvit/models/sub_modules/pillar_vfe.py:91
Functionget_points_in_rotated_box_3d
Get points within a rotated bounding box (3D version). Parameters ---------- p : numpy.array Points to be tested with shape
v2xvit/utils/box_utils.py:510
Functionglobal_rotation
Args: gt_boxes: (N, 7 + C), [x, y, z, dx, dy, dz, heading, [vx], [vy]] points: (M, 3 + C), rot_range: [min, max] Retu
v2xvit/data_utils/augmentor/augment_utils.py:44
Functionglobal_scaling
Args: gt_boxes: (N, 7), [x, y, z, dx, dy, dz, heading] points: (M, 3 + C), scale_range: [min, max] Returns:
v2xvit/data_utils/augmentor/augment_utils.py:71
Functioninference_intermediate_fusion
Model inference for early fusion. Parameters ---------- batch_data : dict model : opencood.object dataset : opencood.EarlyFu
v2xvit/tools/infrence_utils.py:68
Functioninference_late_fusion
Model inference for late fusion. Parameters ---------- batch_data : dict model : opencood.object dataset : opencood.LateFusi
v2xvit/tools/infrence_utils.py:10
Functionlidar_project
Given the extrinsic matrix, project lidar data to another space. Parameters ---------- lidar_data : np.ndarray Lidar data, s
v2xvit/utils/pcd_utils.py:93
Functionlinset_assign_list
Associate two lists of lineset. Parameters ---------- vis : open3d.Visualizer lineset_list1 : list lineset_list2 : list
v2xvit/visualization/vis_utils.py:148
Functionload_bev_params
Load bev related geometry parameters s.t. boundary, resolutions, input shape, target shape etc. Parameters ---------- param : di
v2xvit/hypes_yaml/yaml_utils.py:171
Functionload_point_pillar_params
Based on the lidar range and resolution of voxel, calcuate the anchor box and target resolution. Parameters ---------- param : d
v2xvit/hypes_yaml/yaml_utils.py:87
Functionload_saved_model
Load saved model if exiseted Parameters __________ saved_path : str model saved path model : opencood object The
v2xvit/tools/train_utils.py:12
Functionload_second_params
Based on the lidar range and resolution of voxel, calcuate the anchor box and target resolution. Parameters ---------- param : d
v2xvit/hypes_yaml/yaml_utils.py:129
Functionload_voxel_params
Based on the lidar range and resolution of voxel, calcuate the anchor box and target resolution. Parameters ---------- param : d
v2xvit/hypes_yaml/yaml_utils.py:47
Methodlogging
Print out the loss function for current iteration. Parameters ---------- epoch : int Current epoch for
v2xvit/loss/voxel_net_loss.py:58
Methodlogging
Print out the loss function for current iteration. Parameters ---------- epoch : int Current epoch for
v2xvit/loss/point_pillar_loss.py:210
Functionnms_pytorch
Apply non-maximum suppression to avoid detecting too many overlapping bounding boxes for a given object. Parameters ---------- b
v2xvit/utils/box_utils.py:623
Functionnms_rotated
Performs rorated non-maximum suppression and returns indices of kept boxes. Parameters ---------- boxes : torch.tensor The lo
v2xvit/utils/box_utils.py:575
Functionpcd_to_np
Read pcd and return numpy array. Parameters ---------- pcd_file : str The pcd file that contains the point cloud. Retu
v2xvit/utils/pcd_utils.py:9
Methodpost_process
Process the outputs of the model to 2D bounding box. Step1: convert each cav's output to bounding box format Step2: project t
v2xvit/data_utils/post_processor/bev_postprocessor.py:216
Methodpost_process
Process the outputs of the model to 2D/3D bounding box. Step1: convert each cav's output to bounding box format Step2: projec
v2xvit/data_utils/post_processor/voxel_postprocessor.py:231
Methodpost_process
Process the outputs of the model to 2D/3D bounding box. Parameters ---------- data_dict : dict The dicti
v2xvit/data_utils/datasets/intermediate_fusion_dataset.py:394
Methodpost_process
Process the outputs of the model to 2D/3D bounding box. Parameters ---------- data_dict : dict The dicti
v2xvit/data_utils/datasets/early_fusion_dataset.py:250
Methodpreprocess
Preprocess the lidar points by simple sampling. Parameters ---------- pcd_np : np.ndarray The raw lidar.
v2xvit/data_utils/pre_processor/base_preprocessor.py:23
Methodpreprocess
(self, pcd_np)
v2xvit/data_utils/pre_processor/sp_voxel_preprocessor.py:42
Methodpreprocess
Preprocess the lidar points by voxelization. Parameters ---------- pcd_np : np.ndarray The raw lidar.
v2xvit/data_utils/pre_processor/voxel_preprocessor.py:23
Functionproject_box3d
Project the 3d bounding box to another coordinate system based on the transfomration matrix. Parameters ---------- box3d : torch
v2xvit/utils/box_utils.py:258
Functionproject_points_by_matrix_torch
Project the points to another coordinate system based on the transfomration matrix. Parameters ---------- points : torch.Tensor
v2xvit/utils/box_utils.py:299
Methodproject_points_to_bev_map
Project points to BEV occupancy map with default ratio=0.1. Parameters ---------- points : np.ndarray (N
v2xvit/data_utils/pre_processor/base_preprocessor.py:44
Functionproject_world_objects
Project the objects under world coordinates into another coordinate based on the provided extrinsic. Parameters ---------- objec
v2xvit/utils/box_utils.py:422
Functionprojected_lidar_stack
Stack all projected lidar together. Parameters ---------- projected_lidar_list : list The list containing all projected lida
v2xvit/utils/pcd_utils.py:127
Functionrandom_flip_along_x
Args: gt_boxes: (N, 7 + C), [x, y, z, dx, dy, dz, heading, [vx], [vy]] points: (M, 3 + C) Returns:
v2xvit/data_utils/augmentor/augment_utils.py:6
Functionrandom_flip_along_y
Args: gt_boxes: (N, 7 + C), [x, y, z, dx, dy, dz, heading, [vx], [vy]] points: (M, 3 + C) Returns:
v2xvit/data_utils/augmentor/augment_utils.py:25
Methodrandom_world_flip
(self, data_dict=None, config=None)
v2xvit/data_utils/augmentor/data_augmentor.py:32
Methodrandom_world_rotation
(self, data_dict=None, config=None)
v2xvit/data_utils/augmentor/data_augmentor.py:56
Methodrandom_world_scaling
(self, data_dict=None, config=None)
v2xvit/data_utils/augmentor/data_augmentor.py:79
Functionremove_bbx_abnormal_z
Remove bounding box that has negative z axis. Parameters ---------- bbx_3d : torch.Tensor Predcited 3d bounding box, shape:(
v2xvit/utils/box_utils.py:754
Functionremove_ego_from_objects
Avoid adding ego vehicle to the object dictionary. Parameters ---------- objects : dict The dictionary contained all objects
v2xvit/utils/common_utils.py:80
Functionremove_large_pred_bbx
Remove large bounding box. Parameters ---------- bbx_3d : torch.Tensor Predcited 3d bounding box, shape:(N,8,3) Returns
v2xvit/utils/box_utils.py:722
Functionretrieve_ego_id
Retrieve the ego vehicle id from sample(origin format). Parameters ---------- base_data_dict : dict Data sample in origin fo
v2xvit/utils/common_utils.py:96
Functionrotate_points_along_z
Args: points: (B, N, 3 + C) angle: (B), radians, angle along z-axis, angle increases x ==> y Returns:
v2xvit/utils/common_utils.py:28
Functionrotate_points_along_z_2d
Rorate the points along z-axis. Parameters ---------- points : torch.Tensor / np.ndarray (N, 2). angle : torch.Tensor / n
v2xvit/utils/common_utils.py:53
Functionsave_prediction_gt
Save prediction and gt tensor to txt file.
v2xvit/tools/infrence_utils.py:88
Functionsave_yaml
Save the dictionary into a yaml file. Parameters ---------- data : dict The dictionary contains all data. save_name : s
v2xvit/hypes_yaml/yaml_utils.py:222
Functionsetup_lr_schedular
Set up the learning rate schedular. Parameters ---------- hypes : dict The training configurations. optimizer : torch.o
v2xvit/tools/train_utils.py:180
Functionsetup_optimizer
Create optimizer corresponding to the yaml file Parameters ---------- hypes : dict The training configurations. model :
v2xvit/tools/train_utils.py:154
Functionsetup_train
Create folder for saved model based on current timestep and model name Parameters ---------- hypes: dict Config yaml diction
v2xvit/tools/train_utils.py:52
Methodtest
()
v2xvit/models/sub_modules/torch_transformation_utils.py:395
Functionto_device
(inputs, device)
v2xvit/tools/train_utils.py:215
Methodvisualize
Visualize the prediction, ground truth with point cloud together. Parameters ---------- pred_box_tensor : torch.Tens
v2xvit/data_utils/post_processor/voxel_postprocessor.py:393
Functionvisualize_bev
(batch_data)
v2xvit/visualization/vis_utils.py:635
Functionvisualize_inference_sample_dataloader
Visualize a frame during inference for video stream. Parameters ---------- pred_box_tensor : torch.Tensor (N, 8, 3) predicti
v2xvit/visualization/vis_utils.py:501
Functionvisualize_sequence_dataloader
Visualize the batch data in animation. Parameters ---------- dataloader : torch.Dataloader Pytorch dataloader order : s
v2xvit/visualization/vis_utils.py:553
Functionvisualize_sequence_sample_output
(pred_tensor_list, gt_tensor_list, p
v2xvit/visualization/vis_utils.py:315
Functionvisualize_single_sample_output_bev
Visualize the prediction, groundtruth with point cloud together in a bev format. Parameters ---------- pred_box : torch.Tensor
v2xvit/visualization/vis_utils.py:365
Functionvisualize_single_sample_output_gt
Visualize the prediction, groundtruth with point cloud together. Parameters ---------- pred_tensor : torch.Tensor (N, 8, 3)
v2xvit/visualization/vis_utils.py:244
← previous201–300 of 300, ranked by callers