MCPcopy Create free account

hub / github.com/InternRobotics/P3Former / functions

Functions134 in github.com/InternRobotics/P3Former

↓ 10 callersFunctionconvert_quaternion_to_matrix
Compute a transform matrix by given quaternion and translation vector.
tools/dataset_converters/update_infos_to_v2.py:35
↓ 8 callersFunctionclear_instance_unused_keys
(instance)
tools/dataset_converters/update_infos_to_v2.py:204
↓ 8 callersFunctionget_empty_instance
Empty annotation for single instance.
tools/dataset_converters/update_infos_to_v2.py:45
↓ 8 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
datasets/transforms/formating.py:16
↓ 7 callersFunctionclear_data_info_unused_keys
(data_info)
tools/dataset_converters/update_infos_to_v2.py:212
↓ 7 callersFunctionget_empty_standard_data_info
( camera_types=['CAM0', 'CAM1', 'CAM2', 'CAM3', 'CAM4'])
tools/dataset_converters/update_infos_to_v2.py:175
↓ 4 callersMethod__init__
(self, in_channels: int, out_channels: int, norm_cfg: Confi
p3former/backbones/cylinder3d.py:332
↓ 4 callersFunctionget_semantickitti_info
Create info file in the form of data_infos={ 'metainfo': {'DATASET': 'SemanticKITTI'}, 'data_list': {
tools/dataset_converters/semantickitti_converter.py:38
↓ 4 callersFunctionupdate_pkl_infos
(dataset, out_dir, pkl_path)
tools/dataset_converters/update_infos_to_v2.py:1154
↓ 3 callersMethod__init__
(self, channels)
p3former/decode_heads/p3former_head.py:164
↓ 3 callersMethod_remove_prefix
(self, key: str)
datasets/transforms/formating.py:83
↓ 3 callersFunctionget_empty_img_info
()
tools/dataset_converters/update_infos_to_v2.py:124
↓ 3 callersFunctionget_empty_multicamera_instances
(camera_types)
tools/dataset_converters/update_infos_to_v2.py:87
↓ 3 callersFunctionget_single_lidar_sweep
()
tools/dataset_converters/update_infos_to_v2.py:163
↓ 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:9
↓ 3 callersMethodpack_single_results
Method to pack the single input data. when the value in this dict is a list, it usually is in Augmentations Testing. Args:
datasets/transforms/formating.py:123
↓ 2 callersMethodforward
(self, features, voxel_coors)
p3former/decode_heads/p3former_head.py:399
↓ 2 callersFunctionget_empty_lidar_points
()
tools/dataset_converters/update_infos_to_v2.py:95
↓ 2 callersFunctionget_kitti_style_2d_boxes
()
tools/dataset_converters/update_infos_to_v2.py:29
↓ 2 callersFunctionget_single_image_sweep
(camera_types)
tools/dataset_converters/update_infos_to_v2.py:148
↓ 2 callersMethodget_targets
( self, sampling_results, gt_sem_masks=None, gt_sem_classes=None, posi
p3former/decode_heads/p3former_head.py:590
↓ 2 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/dataset_converters/nuscenes_converter.py:297
↓ 2 callersMethodpa_seg
(self, queries, features, mpe, layer)
p3former/decode_heads/p3former_head.py:712
↓ 2 callersMethodpreprocess_img
(self, _batch_img: torch.Tensor)
p3former/data_preprocessors/data_preprocessor.py:202
↓ 2 callersMethodsample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Mask assigning results
p3former/task_modules/samplers/mask_pseduo_sampler.py:54
↓ 2 callersMethodsimple_process
Perform normalization, padding and bgr2rgb conversion for img data based on ``BaseDataPreprocessor``, and voxelize point cloud if `voxel`
p3former/data_preprocessors/data_preprocessor.py:139
↓ 1 callersMethod__init__
(self, **kwargs)
p3former/task_modules/samplers/mask_pseduo_sampler.py:43
↓ 1 callersFunction_fill_trainval_infos
Generate the train/val infos from the raw data. Args: nusc (:obj:`NuScenes`): Dataset class in the nuScenes dataset. train_scenes
tools/dataset_converters/nuscenes_converter.py:162
↓ 1 callersMethod_get_pad_shape
Get the pad_shape of each image based on data and pad_size_divisor.
p3former/data_preprocessors/data_preprocessor.py:295
↓ 1 callersMethod_load_attr_labels
Private function to load label annotations. Args: results (dict): Result dict from :obj:`mmdet3d.CustomDataset`. Returns
datasets/transforms/loading.py:178
↓ 1 callersMethod_load_bboxes_3d
Private function to move the 3D bounding box annotation from `ann_info` field to the root of `results`. Args: results (di
datasets/transforms/loading.py:137
↓ 1 callersMethod_load_bboxes_depth
Private function to load 2.5D bounding box annotations. Args: results (dict): Result dict from :obj:`mmdet3d.CustomDataset`.
datasets/transforms/loading.py:151
↓ 1 callersMethod_load_labels_3d
Private function to load label annotations. Args: results (dict): Result dict from :obj:`mmdet3d.CustomDataset`. Returns
datasets/transforms/loading.py:165
↓ 1 callersMethod_load_masks_3d
Private function to load 3D mask annotations. Args: results (dict): Result dict from :obj:`mmdet3d.CustomDataset`. Retur
datasets/transforms/loading.py:190
↓ 1 callersMethod_load_panoptic_3d
Private function to load 3D panoptic segmentation annotations. Args: results (dict): Result dict from :obj:`mmdet3d.CustomDataset
datasets/transforms/loading.py:250
↓ 1 callersMethod_load_semantic_seg_3d
Private function to load 3D semantic segmentation annotations. Args: results (dict): Result dict from :obj:`mmdet3d.CustomDataset
datasets/transforms/loading.py:216
↓ 1 callersMethodadd_panoptic_sample
Add one sample of panoptic predictions and ground truths for evaluation. Args: semantic_preds (np.ndarray): Semantic pred
evaluation/functional/panoptic_seg_eval.py:280
↓ 1 callersMethodadd_semantic_sample
Add one batch of semantic predictions and ground truths. Args: semantic_preds (np.ndarray): Semantic predictions. gt_
evaluation/functional/panoptic_seg_eval.py:268
↓ 1 callersMethodbipartite_matching
(self, class_preds, mask_preds, pos_mask_preds, batch_data_samples)
p3former/decode_heads/p3former_head.py:447
↓ 1 callersMethodcollate_data
Copying data to the target device and Performs normalization, padding and bgr2rgb conversion and stack based on ``BaseDataPreprocessor
p3former/data_preprocessors/data_preprocessor.py:219
↓ 1 callersFunctionconvert_annos
()
tools/dataset_converters/update_infos_to_v2.py:32
↓ 1 callersMethodevaluate
Evaluate the predictions. Args: gt_labels (list[dict[np.ndarray]]): Ground Truth. seg_preds (list[dict[np.ndarray]]):
evaluation/functional/panoptic_seg_eval.py:75
↓ 1 callersMethodformat_results
r"""Format the results to txt file. Refer to `ScanNet documentation <http://kaldir.vc.in.tum.de/scannet_benchmark/documentation>`_. A
evaluation/metrics/panoptic_seg_metric.py:84
↓ 1 callersMethodforward_single
(self, queries, features, mask_preds)
p3former/decode_heads/p3former_head.py:141
↓ 1 callersFunctiongenerate_kitti_camera_instances
(ori_info_dict)
tools/dataset_converters/update_infos_to_v2.py:1106
↓ 1 callersMethodgenerate_mask_class_target
(self, batch_data_samples)
p3former/decode_heads/p3former_head.py:741
↓ 1 callersFunctiongenerate_nuscenes_camera_instances
(info, nusc)
tools/dataset_converters/update_infos_to_v2.py:240
↓ 1 callersMethodgenerate_panoptic_results
Get panoptic results from mask predictions and corresponding class predictions. Args: class_preds (list[torch.Tensor]): C
p3former/decode_heads/p3former_head.py:783
↓ 1 callersFunctiongenerate_record
Generate one 2D annotation record given various information on top of the 2D bounding box coordinates. Args: ann_rec (dict): Original
tools/dataset_converters/nuscenes_converter.py:588
↓ 1 callersFunctiongenerate_waymo_camera_instances
(ori_info_dict, cam_keys)
tools/dataset_converters/update_infos_to_v2.py:1118
↓ 1 callersFunctionget_2d_boxes
Get the 2D annotation records for a given `sample_data_token`. Args: sample_data_token (str): Sample data token belonging to a camera
tools/dataset_converters/nuscenes_converter.py:423
↓ 1 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/dataset_converters/nuscenes_converter.py:121
↓ 1 callersFunctionget_empty_radar_points
()
tools/dataset_converters/update_infos_to_v2.py:110
↓ 1 callersMethodget_iou
Get results of IOU metric. Returns: tuple(np.ndarray): iou of all class and each class.
evaluation/functional/panoptic_seg_eval.py:231
↓ 1 callersMethodget_iou_stats
Get IOU statistics of TP, FP and FN. Returns: tuple(np.ndarray): TP, FP, FN of all class.
evaluation/functional/panoptic_seg_eval.py:249
↓ 1 callersMethodget_pq
Get results of PQ metric. Returns: tuple(np.ndarray): PQ, SQ, RQ of each class and all class.
evaluation/functional/panoptic_seg_eval.py:205
↓ 1 callersMethodget_voxel_seg
Get voxel-wise segmentation label and point2voxel map. Args: res_coors (Tensor): The voxel coordinates of points, Nx3.
p3former/data_preprocessors/data_preprocessor.py:455
↓ 1 callersMethodinit_inputs
(self, features, voxel_coors, batch_size)
p3former/decode_heads/p3former_head.py:310
↓ 1 callersMethodlaser_mix_transform
LaserMix transform function. Args: input_dict (dict): Result dict from loading pipeline. mix_results (dict): Mixed di
datasets/transforms/transforms_3d.py:275
↓ 1 callersMethodloss_single_layer
(self, class_preds, mask_preds, pos_mask_preds, class_targets, mask_targets, label_weights, layer, reduction_o
p3former/decode_heads/p3former_head.py:517
↓ 1 callersFunctionmain
()
train.py:63
↓ 1 callersFunctionmain
()
test.py:84
↓ 1 callersMethodmpe
Encode features with sparse indices.
p3former/decode_heads/p3former_head.py:330
↓ 1 callersFunctionpanoptic_seg_eval
Panoptic Segmentation Evaluation. Evaluate the result of the panoptic segmentation. Args: gt_labels (list[dict[np.ndarray]]): Ground
evaluation/functional/panoptic_seg_eval.py:365
↓ 1 callersFunctionparse_args
()
train.py:14
↓ 1 callersFunctionparse_args
()
test.py:14
↓ 1 callersFunctionparse_args
()
tools/dataset_converters/update_infos_to_v2.py:1134
↓ 1 callersMethodpolar_mix_transform
PolarMix transform function. Args: input_dict (dict): Result dict from loading pipeline. mix_results (dict): Mixed di
datasets/transforms/transforms_3d.py:75
↓ 1 callersFunctionpost_process_coords
Get the intersection of the convex hull of the reprojected bbox corners and the image canvas, return None if no intersection. Args: c
tools/dataset_converters/nuscenes_converter.py:555
↓ 1 callersMethodpostprocess_result
(self, pts_semantic_preds, pts_instance_preds, batch_data_samples)
p3former/segmentors/p3former.py:65
↓ 1 callersMethodprint_results
Print results. Returns: dict[float]: The computed metrics. The keys are the names of the metrics, and the values are
evaluation/functional/panoptic_seg_eval.py:108
↓ 1 callersMethodravel_hash
Get voxel coordinates hash for np.unique(). Args: x (np.ndarray): The voxel coordinates of points, Nx3. Returns:
p3former/data_preprocessors/data_preprocessor.py:512
↓ 1 callersMethodreset
Reset class variables.
evaluation/functional/panoptic_seg_eval.py:61
↓ 1 callersFunctionsemantickitti_data_prep
Prepare the info file for SemanticKITTI dataset. Args: info_prefix (str): The prefix of info filenames. out_dir (str): Output dir
tools/create_data.py:42
↓ 1 callersMethodsparse_quantize
Sparse Quantization for voxel coordinates used in Minkunet. Args: coords (np.ndarray): The voxel coordinates of points, Nx3.
p3former/data_preprocessors/data_preprocessor.py:534
↓ 1 callersFunctiontrigger_visualization_hook
(cfg, args)
test.py:63
↓ 1 callersFunctionupdate_kitti_infos
(pkl_path, out_dir)
tools/dataset_converters/update_infos_to_v2.py:409
↓ 1 callersFunctionupdate_lyft_infos
(pkl_path, out_dir)
tools/dataset_converters/update_infos_to_v2.py:778
↓ 1 callersFunctionupdate_nuscenes_infos
(pkl_path, out_dir)
tools/dataset_converters/update_infos_to_v2.py:266
↓ 1 callersFunctionupdate_s3dis_infos
(pkl_path, out_dir)
tools/dataset_converters/update_infos_to_v2.py:550
↓ 1 callersFunctionupdate_scannet_infos
(pkl_path, out_dir)
tools/dataset_converters/update_infos_to_v2.py:622
↓ 1 callersFunctionupdate_sunrgbd_infos
(pkl_path, out_dir)
tools/dataset_converters/update_infos_to_v2.py:699
↓ 1 callersFunctionupdate_waymo_infos
(pkl_path, out_dir)
tools/dataset_converters/update_infos_to_v2.py:892
↓ 1 callersMethodvoxelize
Apply voxelization to point cloud. Args: points (List[Tensor]): Point cloud in one data batch. data_samples: (list[:o
p3former/data_preprocessors/data_preprocessor.py:335
Method__init__
(self, data_root: Optional[str] = None, ann_file: str = '',
datasets/semantickitti_dataset.py:65
Method__init__
(self, instance_classes: List[int], swap_ratio: float = 0.5,
datasets/transforms/transforms_3d.py:57
Method__init__
(self, num_areas: List[int], pitch_angles: Sequence[float],
datasets/transforms/transforms_3d.py:253
Method__init__
(self, with_bbox_3d: bool = True, with_label_3d: bool = True,
datasets/transforms/loading.py:102
Method__init__
( self, keys: tuple, meta_keys: tuple = ('img_path', 'ori_shape', 'img_shape', 'lidar2
datasets/transforms/formating.py:64
Method__init__
(self, thing_class_inds: List[int], stuff_class_inds: List[int],
evaluation/metrics/panoptic_seg_metric.py:17
Method__init__
(self, classes: List[str], thing_classes: List[str], stuff_
evaluation/functional/panoptic_seg_eval.py:32
Method__init__
(self, voxel_encoder: ConfigType, backbone: ConfigType, dec
p3former/segmentors/p3former.py:11
Method__init__
(self, in_channels: int, out_channels: int, norm_cfg: Confi
p3former/backbones/cylinder3d.py:34
Method__init__
(self, in_channels: int, out_channels: int, norm_cfg: Confi
p3former/backbones/cylinder3d.py:123
Method__init__
(self, in_channels: int, out_channels: int, norm_cfg: Confi
p3former/backbones/cylinder3d.py:236
Method__init__
(self, grid_size: int, input_channels: int, base_channels:
p3former/backbones/cylinder3d.py:410
Method__init__
(self, voxel: bool = False, voxel_type: str = 'hard', voxel
p3former/data_preprocessors/data_preprocessor.py:78
Method__init__
(self, pos_inds: Tensor, neg_inds: Tensor, masks: Tensor,
p3former/task_modules/samplers/mask_pseduo_sampler.py:18
Method__init__
(self, in_channels=256, feat_channels=64, out_channels=None
p3former/decode_heads/p3former_head.py:17
Method__init__
( self, embed_dims, cross_attn_cfg=dict( type='_Masked_Foc
p3former/decode_heads/p3former_head.py:105
next →1–100 of 134, ranked by callers