MCPcopy Create free account

hub / github.com/VDIGPKU/HENet / functions

Functions6,925 in github.com/VDIGPKU/HENet

↓ 5 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``Fa
mmdet3d/models/codetr/checkpoint.py:41
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
mmdet3d/models/codetr/checkpoint.py:107
↓ 5 callersMethodloss
(self, all_cls_scores, all_bbox_preds, enc_topk_scores, en
mmdet3d/models/codetr/co_dino_head.py:162
↓ 5 callersFunctionmemory_refresh
(memory, prev_exist)
mmdet3d/models/utils/misc.py:7
↓ 5 callersMethodnonempty
Find boxes that are non-empty. A box is considered empty, if either of its side is no larger than threshold. Returns:
detr2/detectron2/structures/boxes.py:197
↓ 5 callersFunctionpad_multiple
(inputs, img_metas, size_divisor=32)
mmdet3d/models/sparsebev/utils.py:105
↓ 5 callersMethodparallelize
(self, device_map=None)
detr2/projects/DDETRS/ddetrs/models/text/modeling_t5.py:981
↓ 5 callersMethodpoints_in_boxes
(self, points, boxes_override=None)
mmdet3d/core/bbox/structures/base_box3d.py:568
↓ 5 callersMethodprepare_test_data
Prepare data for testing. Args: index (int): Index for accessing the target data. Returns: dict: Testing dat
mmdet3d/datasets/custom_3d.py:242
↓ 5 callersFunctionprint_str
(value, *arg, sstream=None)
mmdet3d/core/evaluation/kitti_utils/eval.py:587
↓ 5 callersFunctionrandom_color
Args: rgb (bool): whether to return RGB colors or BGR colors. maximum (int): either 255 or 1 Returns: ndarray: a vec
detr2/detectron2/utils/colormap.py:112
↓ 5 callersMethodreset_image
Args: img: same as in __init__
detr2/detectron2/utils/visualizer.py:301
↓ 5 callersFunctionretry_if_cuda_oom
Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after calling `torch.cuda.empty_cache()`.
detr2/detectron2/utils/memory.py:26
↓ 5 callersFunctionsampling_4d
Args: sample_points: 3D sampling points in shape [B, Q, T, G, P, 3] mlvl_feats: list of multi-scale features from neck, each in s
mmdet3d/models/sparsebev/sparsebev_sampling.py:31
↓ 5 callersFunctionsampling_bev
Args: sample_points: 3D sampling points in shape [B, Q, T, G, P, 3] mlvl_feats: list of multi-scale features from neck, each in s
mmdet3d/models/sparsebev/sparsebev_sampling.py:390
↓ 5 callersMethodset_input_embeddings
(self, new_embeddings)
detr2/projects/DDETRS/ddetrs/models/text/modeling_t5.py:1022
↓ 5 callersMethodshow
Visualize the points cloud. Args: save_path (str, optional): path to save image. Default: None.
tools/visualize_tools/open3d_vis.py:448
↓ 5 callersFunctionsigmoid_focal_loss
( inputs: torch.Tensor, targets: torch.Tensor, alpha: float = -1, gamma: float = 2, reduct
mmdet3d/models/dense_heads/vanilla_seg_old.py:24
↓ 5 callersFunctionsigmoid_xent_loss
( inputs: torch.Tensor, targets: torch.Tensor, reduction: str = "mean", )
mmdet3d/models/dense_heads/vanilla_seg_old.py:14
↓ 5 callersMethodstate_dict
Hooks are stateless by default, but can be made checkpointable by implementing `state_dict` and `load_state_dict`.
detr2/detectron2/engine/train_loop.py:80
↓ 5 callersFunctiontopk_gather
(feat, topk_indexes)
mmdet3d/models/utils/misc.py:13
↓ 5 callersMethodview_transform
(self, input, depth, tran_feat)
mmdet3d/models/necks/view_transformer.py:410
↓ 5 callersMethodvoxelize
Apply hard voxelization to points.
mmdet3d/models/detectors/sassd.py:55
↓ 4 callersMethod__call__
(self, results)
mmdet3d/datasets/pipelines/loading.py:2714
↓ 4 callersMethod__init__
(self, translation_std=[0.25, 0.25, 0.25], global_rot_range=[0.0, 0.0],
mmdet3d/datasets/pipelines/transforms_3d.py:569
↓ 4 callersMethod__init__
(self, inplace=True)
mmdet3d/models/backbones/vovnet_sparsebev.py:158
↓ 4 callersMethod__init__
(self, in_channels, heads, head_conv=64, f
mmdet3d/models/dense_heads/transfusion_head.py:508
↓ 4 callersMethod__init__
(self)
mmdet3d/models/utils/encoder_utils.py:139
↓ 4 callersMethod__init__
(self, semantic_in_channel=256, semantic_out_channel=256, i
mmdet3d/models/roi_heads/mask_heads/refine_mask_head.py:49
↓ 4 callersMethod__init__
(self, c)
mmdet3d/models/detectors/bevmaepp.py:19
↓ 4 callersMethod__init__
(self, kernel_size, in_size, expand_size, out_size, act, se, stride)
mmdet3d/models/detectors/mobilenetv3.py:44
↓ 4 callersMethod__init__
Args: stem (nn.Module): a stem module stages (list[list[CNNBlockBase]]): several (typically 4) stages,
detr2/detectron2/modeling/backbone/resnet.py:367
↓ 4 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
detr2/projects/DDETRS/ddetrs/models/segmentation_condInst_new_encodfpn.py:1032
↓ 4 callersMethod__init__
(self, config)
detr2/projects/DDETRS/ddetrs/models/deformable_detr/modeling_bert.py:260
↓ 4 callersMethod__init__
(self, d_model=256, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=1024
detr2/projects/DDETRS/ddetrs/models/deformable_detr/deformable_transformer.py:24
↓ 4 callersMethod_assign_primitive_line_targets
Generate targets of line primitive. Args: point_mask (torch.Tensor): Tensor to store the ground truth of mask.
mmdet3d/models/roi_heads/mask_heads/primitive_head.py:802
↓ 4 callersFunction_cast_to_config
(obj)
detr2/detectron2/config/lazy.py:83
↓ 4 callersMethod_create_grayscale_image
Create a grayscale version of the original image. The colors in masked area, if given, will be kept.
detr2/detectron2/utils/visualizer.py:1178
↓ 4 callersFunction_dense_box_regression_loss
Compute loss for dense multi-level box regression. Loss is accumulated over ``fg_mask``. Args: anchors: #lvl anchor boxes, each
detr2/detectron2/modeling/box_regression.py:310
↓ 4 callersFunction_do_paste_mask
Paste instance masks according to boxes. This implementation is modified from https://github.com/facebookresearch/detectron2/ Args:
mmdet3d/models/roi_heads/mask_heads/fcn_mask_head.py:344
↓ 4 callersFunction_draw_points
Draw points on visualizer. Args: points (numpy.array | torch.tensor, shape=[N, 3+C]): points to visualize. vis (:obj:
tools/visualize_tools/open3d_vis.py:16
↓ 4 callersFunction_draw_points
Draw points on visualizer. Args: points (numpy.array | torch.tensor, shape=[N, 3+C]): points to visualize. vis (:obj:
mmdet3d/core/visualizer/open3d_vis.py:15
↓ 4 callersMethod_duplicate_to_list
Repeat x `num` times to form a list.
mmdet3d/datasets/s3dis_dataset.py:422
↓ 4 callersMethod_gather_feat
Given feats and indexes, returns the gathered feats. Args: feats (torch.Tensor): Features to be transposed and gathered
mmdet3d/core/bbox/coders/centerpoint_bbox_coders.py:41
↓ 4 callersFunction_get_activation_fn
Return an activation function given a string
detr2/projects/DDETRS/ddetrs/models/deformable_detr/deformable_transformer.py:370
↓ 4 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdet3d/models/codetr/co_roi_head.py:205
↓ 4 callersMethod_render_layer
Wrapper method that renders individual layers on an axis. :param ax: The matplotlib axes where the layer will get rendered. :
tools/data_converter/map_api.py:1956
↓ 4 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
detr2/projects/DDETRS/ddetrs/models/deformable_detr/fuse_helper.py:37
↓ 4 callersMethod_transpose_dense_predictions
Transpose the dense per-level predictions. Args: predictions: a list of outputs, each is a list of per-level
detr2/detectron2/modeling/meta_arch/dense_detector.py:129
↓ 4 callersFunction_write_obj
Write points into ``obj`` format for meshlab visualization. Args: points (np.ndarray): Points in shape (N, dim). out_filename (st
mmdet3d/core/visualizer/show_result.py:12
↓ 4 callersFunctionadd
detr2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:195
↓ 4 callersMethodadd_batch
(self,semantics_pred,semantics_gt,mask_lidar,mask_camera)
mmdet3d/datasets/occ_metrics.py:117
↓ 4 callersMethodadd_sin_difference
Convert the rotation difference to difference in sine function. Args: boxes1 (torch.Tensor): Original Boxes in shape (NxC), where
mmdet3d/models/dense_heads/anchor3d_head.py:281
↓ 4 callersMethodaug_test
Test function with augmentaiton.
mmdet3d/models/detectors/sassd.py:116
↓ 4 callersFunctionbbox3d2roi
Convert a list of bounding boxes to roi format. Args: bbox_list (list[torch.Tensor]): A list of bounding boxes corresponding
mmdet3d/core/bbox/transforms.py:27
↓ 4 callersMethodbev_encoder_forseg
(self, x)
mmdet3d/models/detectors/bevdet.py:157
↓ 4 callersFunctionbox3d_multiclass_nms
Multi-class NMS for 3D boxes. The IoU used for NMS is defined as the 2D IoU between BEV boxes. Args: mlvl_bboxes (torch.Tensor): Mult
mmdet3d/core/post_processing/box3d_nms.py:8
↓ 4 callersFunctionbox3d_to_corners
(box3d)
mmdet3d/datasets/utils_b2d.py:10
↓ 4 callersFunctionbuild_anchor_generator
Built an anchor generator from `cfg.MODEL.ANCHOR_GENERATOR.NAME`.
detr2/detectron2/modeling/anchor_generator.py:377
↓ 4 callersFunctionbuild_model
Build the whole model architecture, defined by ``cfg.MODEL.META_ARCHITECTURE``. Note that it does not load any weights from ``cfg``.
detr2/detectron2/modeling/meta_arch/build.py:16
↓ 4 callersFunctionbuild_optimizer
Build an optimizer from config.
detr2/detectron2/solver/build.py:114
↓ 4 callersMethodchoose_cams
(self)
mmdet3d/datasets/pipelines/loading.py:1810
↓ 4 callersFunctionclamp_values
(vector, min_val = -50000, max_val = 50000)
detr2/projects/DDETRS/ddetrs/models/deformable_detr/modeling_bert.py:34
↓ 4 callersMethodcompress
(self, x)
mmdet3d/models/backbones/radar_encoder_adapter_old.py:203
↓ 4 callersMethodcompress
(self, x)
mmdet3d/models/backbones/radar_encoder_adapter_old.py:585
↓ 4 callersMethodcompress
(self, x)
mmdet3d/models/backbones/radar_encoder_adapter.py:585
↓ 4 callersMethodcreate
(self)
tools/data_converter/create_gt_database.py:600
↓ 4 callersFunctiondraw_bbox
(gt_boxes, gt_labels, path)
tools/vis_local.py:178
↓ 4 callersMethoddraw_line
Args: x_data (list[int]): a list containing x values of all the points being drawn. Length of list should match t
detr2/detectron2/utils/visualizer.py:1013
↓ 4 callersMethodextract_feat
(self, img, img_metas, radar, gt_bboxes_3d=None)
mmdet3d/models/sparsebev/sparsebev_rc.py:334
↓ 4 callersMethodextract_feat
Extract features from images and points.
mmdet3d/models/detectors/bevmaepp.py:265
↓ 4 callersMethodextract_feat
Extract features from images and points. Return: (BEV Feature, None, depth)
mmdet3d/models/detectors/bevdet_rc_occ.py:900
↓ 4 callersMethodextract_feat
Extract features from images and points. Return: (BEV Feature, None, depth)
mmdet3d/models/detectors/bevdet_rc_occ.py:1296
↓ 4 callersMethodextract_img_feat
(self, img, img_metas, with_bevenco
mmdet3d/models/detectors/render_occ.py:292
↓ 4 callersMethodextract_img_feat
Directly extract features from the img backbone+neck.
mmdet3d/models/detectors/imvotenet.py:271
↓ 4 callersFunctionflatten_to_tuple
Flatten an object so it can be used for PyTorch tracing. Also returns how to rebuild the original object from the flattened outputs. Ret
detr2/detectron2/export/flatten.py:158
↓ 4 callersMethodforward_train
Forward function for training. Args: points (list[torch.Tensor]): List of points of shape [N, C]. img_metas (list): I
mmdet3d/models/segmentors/encoder_decoder.py:147
↓ 4 callersMethodforward_trt
(self, x, query)
mmdet3d/models/sparsebev/sparsebev_transformer_rc.py:650
↓ 4 callersFunctiongeneralized_box_iou
Generalized IoU from https://giou.stanford.edu/ The boxes should be in [x0, y0, x1, y1] format Returns a [N, M] pairwise matrix, where
detr2/projects/DDETRS/ddetrs/util/box_ops.py:64
↓ 4 callersMethodgenerate
( self, pixel_values: Optional[torch.FloatTensor] = None, input_ids: Optio
mmdet3d/models/internvl_model/internvl_chat/modeling_internvl_chat.py:329
↓ 4 callersFunctiongenerate_block_target
(mask_target, boundary_width=3)
mmdet3d/models/losses/cross_entropy_loss.py:12
↓ 4 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. input_m
mmdet3d/models/dense_heads/anchor3d_head.py:174
↓ 4 callersMethodget_fields
Returns: dict: a dict which maps names (str) to data of the fields Modifying the returned dict will modify this instance
detr2/detectron2/structures/instances.py:100
↓ 4 callersMethodget_image
Returns: ndarray: the visualized image of shape (H, W, 3) (RGB) in uint8 type. The shape is scale
detr2/detectron2/utils/visualizer.py:317
↓ 4 callersFunctionget_inner_win_inds
Args: win_inds indicates which windows a voxel belongs to. Voxels share a window have same inds. shape = [N,] Return:
mmdet3d/ops/sst/sst_ops.py:148
↓ 4 callersMethodget_loss
(self, loss, outputs, targets, indices, num_boxes, **kwargs)
detr2/projects/DDETRS/ddetrs/models/deformable_detr/deformable_detr.py:670
↓ 4 callersFunctionget_mAP11
(prec)
mmdet3d/core/evaluation/kitti_utils/eval.py:573
↓ 4 callersFunctionget_mAP40
(prec)
mmdet3d/core/evaluation/kitti_utils/eval.py:580
↓ 4 callersFunctionget_m_ap
(prec)
mmdet3d/core/evaluation/vod_utils/kitti_official_evaluate.py:613
↓ 4 callersFunctionget_m_ap_r40
(prec)
mmdet3d/core/evaluation/vod_utils/kitti_official_evaluate.py:620
↓ 4 callersFunctionget_paddings_indicator
Create boolean mask by actually number of a padded tensor. Args: actual_num ([type]): [description] max_num ([type]): [description
mmdet3d/models/backbones/radar_encoder_adapter_old.py:16
↓ 4 callersFunctionget_paddings_indicator
Create boolean mask by actually number of a padded tensor. Args: actual_num ([type]): [description] max_num ([type]): [description
mmdet3d/models/backbones/radar_encoder.py:16
↓ 4 callersMethodget_patch_coord
Convert patch_box to shapely Polygon coordinates. :param patch_box: Patch box defined as [x_center, y_center, height, width].
tools/data_converter/map_api.py:2315
↓ 4 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. dtype (t
mmdet3d/models/dense_heads/anchor_free_head.py:310
↓ 4 callersFunctionget_points_type
Get the class of points according to coordinate type. Args: points_type (str): The type of points coordinate. The valid value
mmdet3d/core/points/__init__.py:11
↓ 4 callersMethodget_preprocess_shape
Compute the output size given input size and target long side length.
mmdet3d/models/backbones/sam.py:772
↓ 4 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of qu
mmdet3d/models/backbones/sam.py:326
↓ 4 callersFunctionget_world_size
()
detr2/detectron2/utils/comm.py:19
↓ 4 callersMethodgrid_anchors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
mmdet3d/core/anchor/anchor_3d_generator.py:89
↓ 4 callersMethodimg_transform
https://github.com/Megvii-BaseDetection/BEVStereo/blob/master/dataset/nusc_mv_det_dataset.py#L48
mmdet3d/datasets/pipelines/transforms_3d_changan.py:97
← previousnext →301–400 of 6,925, ranked by callers