MCPcopy Create free account

hub / github.com/cxmomo/RaCFormer / functions

Functions355 in github.com/cxmomo/RaCFormer

↓ 11 callersMethodupdate
(self, trainer, model)
models/hook/ema.py:48
↓ 9 callersMethod__init__
(self, input_channels, hidden_channels, kernel_size)
models/racformer_transformer.py:662
↓ 8 callersMethodinit_weights
(self)
models/racformer_transformer.py:466
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None
models/necks/view_transformer_racformer.py:441
↓ 6 callersFunctionis_parallel
check if model is in parallel mode.
models/hook/utils.py:7
↓ 6 callersFunctiontheta_d2xy_coods
(theta_d_coords, map_size=102.4, r=65.0)
models/bbox/utils.py:82
↓ 5 callersFunctionbev_pool_v2
(depth, feat, ranks_depth, ranks_feat, ranks_bev, bev_feat_shape, interval_starts, interval_le
models/csrc/bev_pool_v2/bev_pool.py:86
↓ 5 callersMethodlog
(self, runner)
utils.py:85
↓ 5 callersFunctionxy2theta_d_coods
(xy_coords_norm, map_size=102.4, r=65.0, norm=True)
models/bbox/utils.py:93
↓ 4 callersMethod__init__
Args: input_ch(int) : the number of input channel out_features (list[str]): name of the layers whose outputs should
models/backbones/vovnet.py:277
↓ 4 callersFunctionadd_sweep_info
(nusc, sample_infos)
tools/gen_sweep_info.py:40
↓ 4 callersFunctioncompose_lidar2img
(ego2global_translation_curr, ego2global_rotation_curr, lidar2ego_
loaders/pipelines/loading.py:15
↓ 4 callersFunctiondecode_bbox
(bboxes, pc_range=None)
models/bbox/utils.py:66
↓ 4 callersMethodextract_pts_feat
Extract features of points.
models/racformer.py:128
↓ 4 callersMethodfrom_file_multisweep
Return a point cloud that aggregates multiple sweeps. As every sweep is in a different coordinate frame, we need to map the coordinat
loaders/nuscenes_dataset.py:240
↓ 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 detec
tools/visual.py:318
↓ 4 callersFunctionnormalize_bbox
(bboxes)
models/bbox/utils.py:7
↓ 3 callersFunctionbuild_dataloader
(dataset, samples_per_gpu, workers_per_gpu, num
loaders/builder.py:9
↓ 3 callersMethodextract_feat
(self, img, radar_points, radar_depth, radar_rcs, img_metas)
models/racformer.py:177
↓ 3 callersMethodextract_img_feat
(self, img)
models/racformer.py:105
↓ 3 callersFunctionpad_multiple
(inputs, img_metas, size_divisor=32)
models/utils.py:104
↓ 3 callersFunctionrun_function
(start, end, functions)
models/checkpoint.py:317
↓ 3 callersMethodsave_checkpoint
(self, runner)
models/hook/ema.py:107
↓ 3 callersMethodtrain
Convert the model into training mode while keep normalization layer freezed.
models/backbones/vovnet.py:374
↓ 2 callersFunction_get_autocast_kwargs
()
models/checkpoint.py:62
↓ 2 callersMethod_save_checkpoint
Save the current checkpoint and delete unwanted checkpoint.
models/hook/check_checkpoint.py:126
↓ 2 callersMethodbbox2result_kitti
Convert 3D detection results to kitti format for evaluation and test submission. Args: net_outputs (list[np.ndarray]): Li
loaders/vod_mono_dataset.py:379
↓ 2 callersMethodbbox2result_kitti2d
Convert 2D detection results to kitti format for evaluation and test submission. Args: net_outputs (list[np.ndarray]): Li
loaders/vod_mono_dataset.py:494
↓ 2 callersMethodcollect_sweeps
(self, index, into_past=60, into_future=60)
loaders/nuscenes_dataset.py:23
↓ 2 callersFunctionconv1x1
1x1 convolution with padding
models/backbones/vovnet.py:137
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
models/backbones/vovnet.py:117
↓ 2 callersFunctionget_cam_info
(nusc, sample_data)
tools/gen_sweep_info.py:18
↓ 2 callersMethodget_data_info
Get data info according to the given index. Args: index (int): Index of the sample data to get. Returns: dic
loaders/vod_mono_dataset.py:168
↓ 2 callersFunctionget_device_states
(*args)
models/checkpoint.py:43
↓ 2 callersMethodget_downsampled_depth
Input: depths: [B, N, H, W] Output: depths: [B*N*h*w, d]
models/necks/view_transformer_racformer.py:593
↓ 2 callersMethodget_lidar_coor
Calculate the locations of the frustum points in the lidar coordinate system. Args: rots (torch.Tensor): Rotation from ca
models/necks/view_transformer_racformer.py:112
↓ 2 callersMethodget_mlp_input
(self, rot, tran, intrin, post_rot, post_tran, bda)
models/necks/view_transformer_racformer.py:325
↓ 2 callersMethodimg_transform
https://github.com/Megvii-BaseDetection/BEVStereo/blob/master/dataset/nusc_mv_det_dataset.py#L48
loaders/pipelines/transforms.py:271
↓ 2 callersFunctionmake_sample_points
query_bbox: [B, Q, 10] offset: [B, Q, num_points, 4], normalized by stride
models/sparsebev_sampling.py:8
↓ 2 callersMethodpoints2depthmap
(self, points, height, width)
loaders/pipelines/loading.py:521
↓ 2 callersFunctionset_device_states
(devices, states)
models/checkpoint.py:57
↓ 2 callersMethodset_temporal_flag
(self, runner, flag)
models/hook/sequentialsontrol.py:38
↓ 2 callersMethodsimple_test_pts
(self, x, bev_feats, radar_bev_feats, img_metas, rescale=False)
models/racformer.py:449
↓ 2 callersMethodview_transform
(self, x, depth_digit, tran_feat, img_metas)
models/necks/view_transformer_racformer.py:297
↓ 2 callersMethodvoxel_pooling_prepare_v2
Data preparation for voxel pooling. Args: coor (torch.tensor): Coordinate of points in the lidar space in shape (
models/necks/view_transformer_racformer.py:202
↓ 1 callersMethod__init__
(self)
models/utils.py:321
↓ 1 callersMethod__init__
(self, alpha: float, gamma: float = 2.0, reduction: str = 'none', eps: Optional[float] = None)
models/necks/focalloss.py:169
↓ 1 callersMethod__init__
(self, embed_dim, num_heads, bias=True, batch_first=True, attention_dropout=0.0, causal=False
models/model_utils/attention.py:101
↓ 1 callersMethod__init__
Args: model (nn.Module): model to apply EMA. decay (float): ema decay reate. updates (int): counter of EM
models/hook/ema.py:31
↓ 1 callersMethod__init__
(self, hisinfo_start_epoch=-1)
models/hook/sequentialsontrol.py:34
↓ 1 callersFunction_checkpoint_without_reentrant
Checkpointining without re-entrant autograd Args: function: describes what to run in the forward pass of the model or part of
models/checkpoint.py:341
↓ 1 callersMethod_forward
(self, x)
models/backbones/vovnet.py:211
↓ 1 callersMethod_freeze_stages
(self)
models/backbones/vovnet.py:361
↓ 1 callersMethod_get_pts_filename
Get point cloud filename according to the given index. Args: index (int): Index of the point cloud file to get. Returns:
loaders/vod_mono_dataset.py:152
↓ 1 callersFunction_in_projection_packed
(q, k, v, w, b = None)
models/model_utils/attention.py:25
↓ 1 callersMethod_init_weight
(self)
models/necks/view_transformer_racformer.py:354
↓ 1 callersMethod_init_weight
(self)
models/necks/view_transformer_racformer.py:430
↓ 1 callersMethod_load_points
Private function to load point clouds data. Args: pts_filename (str): Filename of point clouds data. Returns:
loaders/pipelines/loading.py:193
↓ 1 callersMethod_load_points
Private function to load point clouds data. Args: pts_filename (str): Filename of point clouds data. Returns:
loaders/pipelines/loading.py:348
↓ 1 callersMethod_log_info
(self, log_dict, runner)
utils.py:44
↓ 1 callersMethod_pad_img
(self, img)
loaders/pipelines/transforms.py:30
↓ 1 callersMethod_pad_imgs
(self, results)
loaders/pipelines/transforms.py:41
↓ 1 callersMethod_reset_parameters
(self)
models/model_utils/attention.py:124
↓ 1 callersMethodassign
(self, bbox_pred, cls_pred, gt_bboxes, gt_labels,
models/bbox/assigners/hungarian_assigner_3d.py:27
↓ 1 callersMethodbackward
(ctx, out_grad)
models/csrc/bev_pool_v2/bev_pool.py:44
↓ 1 callersMethodbbox_flip
Flip bboxes horizontally. Args: bboxes (numpy.ndarray): Bounding boxes, shape (..., 4*k) img_shape (tuple[int]): Imag
loaders/pipelines/transforms.py:566
↓ 1 callersFunctionbinary_focal_loss_with_logits
r"""Function that computes Binary Focal loss. .. math:: \text{FL}(p_t) = -\alpha_t (1 - p_t)^{\gamma} \, \text{log}(p_t) where:
models/necks/focalloss.py:180
↓ 1 callersMethodcalc_bbox_dists
(self, bboxes)
models/racformer_transformer.py:320
↓ 1 callersMethodcalc_dn_loss
(self, loss_dict, preds_dicts, num_dec_layers)
models/racformer_head.py:303
↓ 1 callersFunctioncheck_backward_validity
(inputs: Iterable[Any])
models/checkpoint.py:31
↓ 1 callersFunctioncheckpoint
r"""Checkpoint a model or part of the model Checkpointing works by trading compute for memory. Rather than storing all intermediate activatio
models/checkpoint.py:166
↓ 1 callersMethodcheckpoint_check
(self, path)
models/hook/check_checkpoint.py:195
↓ 1 callersFunctionclass_pr_curve
Plot a precision recall curve for the specified class. :param md_list: DetectionMetricDataList instance. :param metrics: DetectionMetrics
tools/render.py:208
↓ 1 callersFunctionclass_tp_curve
Plot the true positive curve for the specified class. :param md_list: DetectionMetricDataList instance. :param metrics: DetectionMetrics
tools/render.py:245
↓ 1 callersMethodconvert_valid_bboxes
Convert the predicted boxes into valid ones. Args: box_dict (dict): Box dictionaries to be converted. - boxes_3d
loaders/vod_mono_dataset.py:605
↓ 1 callersMethodcreate_frustum
Generate the frustum template for each image. Args: depth_cfg (tuple(float)): Config of grid alone depth axis in format
models/necks/view_transformer_racformer.py:87
↓ 1 callersMethodcreate_grid_infos
Generate the grid information including the lower bound, interval, and size. Args: x (tuple(float)): Config of grid alone
models/necks/view_transformer_racformer.py:69
↓ 1 callersMethoddecode
Decode bboxes. Args: all_cls_scores (Tensor): Outputs from the classification head, \ shape [nb_dec, bs, num_query
models/bbox/coders/nms_free_coder.py:90
↓ 1 callersMethoddecode_single
Decode bboxes. Args: cls_scores (Tensor): Outputs from the classification head, \ shape [num_query, cls_out_channe
models/bbox/coders/nms_free_coder.py:37
↓ 1 callersFunctiondenormalize_bbox
(normalized_bboxes)
models/bbox/utils.py:26
↓ 1 callersFunctiondetach_variable
(inputs: Tuple[Any, ...])
models/checkpoint.py:14
↓ 1 callersFunctiondw_conv3x3
3x3 convolution with padding
models/backbones/vovnet.py:93
↓ 1 callersFunctionencode_bbox
(bboxes, pc_range=None)
models/bbox/utils.py:49
↓ 1 callersFunctionevaluate
(dataset, results, epoch)
val.py:19
↓ 1 callersMethodevaluate
Evaluation in KITTI protocol. Args: results (list[dict]): Testing results of the dataset. metric (str | list[str], op
loaders/vod_mono_dataset.py:311
↓ 1 callersFunctionfocal_loss
r"""Criterion that computes Focal loss. According to :cite:`lin2018focal`, the Focal loss is computed as follows: .. math:: \text{FL}(
models/necks/focalloss.py:55
↓ 1 callersMethodformat_results
Format the results to pkl file. Args: outputs (list[dict]): Testing results of the dataset. pklfile_prefix (str): The
loaders/vod_mono_dataset.py:255
↓ 1 callersMethodforward_pts_train
Forward function for point cloud branch. Args: pts_feats (list[torch.Tensor]): Features of point cloud branch gt_bboxe
models/racformer.py:349
↓ 1 callersMethodforward_test
(self, img_metas, img=None, **kwargs)
models/racformer.py:441
↓ 1 callersMethodforward_train
Forward training function. Args: points (list[torch.Tensor], optional): Points of each sample. Defaults to None.
models/racformer.py:398
↓ 1 callersMethodgenerate_points
(self)
models/racformer_head.py:69
↓ 1 callersMethodget_bboxes
(self, preds_dicts, img_metas, rescale=False)
models/racformer_head.py:488
↓ 1 callersMethodget_depth_loss
(self, depth_labels, depth_preds, downsample=0)
models/necks/view_transformer_racformer.py:666
↓ 1 callersMethodget_downsampled_rcs
Input: gt_depths: [B, N, H, W] Output: gt_depths: [B*N*h*w, d]
models/necks/view_transformer_racformer.py:633
↓ 1 callersFunctionget_ext_modules
()
models/csrc/setup.py:37
↓ 1 callersFunctionget_predicted_data
Returns the data path as well as all annotations related to that sample_data. Note that the boxes are transformed into the current sensor's c
tools/visual.py:211
↓ 1 callersMethodget_targets
(self, cls_scores_list, bbox_preds_list, gt_bboxes
models/racformer_head.py:354
↓ 1 callersFunctionhsv_to_rgb
r"""Convert an image from HSV to RGB. The H channel values are assumed to be in the range 0..2pi. S and V are in the range 0..1. Args:
models/utils.py:178
↓ 1 callersMethodinit_acceleration_v2
Pre-compute the necessary information in acceleration including the index of points in the final feature. Args: coor (tor
models/necks/view_transformer_racformer.py:155
↓ 1 callersMethodinit_weights
(self)
models/racformer_head.py:65
next →1–100 of 355, ranked by callers