MCPcopy Create free account

hub / github.com/OpenGVLab/InternImage / functions

Functions2,414 in github.com/OpenGVLab/InternImage

Methodforward
(self, x)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/backbones/internimage.py:694
Methodforward
(self, x)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/backbones/ops_dcnv3/modules/dcnv3.py:24
Methodforward
(self, x)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/backbones/ops_dcnv3/modules/dcnv3.py:33
Methodforward
(self, query, center_feature_scale_proj_weight, center_feature
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/backbones/ops_dcnv3/modules/dcnv3.py:81
Methodforward
:param query (N, H, W, C) :return output (N, H, W, C)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/backbones/ops_dcnv3/modules/dcnv3.py:182
Methodforward
:param query (N, H, W, C) :return output (N, H, W, C)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/backbones/ops_dcnv3/modules/dcnv3.py:309
Methodforward
( ctx, input, offset, mask, kernel_h, kernel_w, stride_h, stride_w, pad_h,
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/backbones/ops_dcnv3/functions/dcnv3_func.py:20
Methodforward
Forward function. Args: mlvl_feats (tuple[Tensor]): Features from the upstream network, each is a 5D-tensor with s
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/dense_heads/bevformer_occ_head.py:87
Methodforward
Calls either forward_train or forward_test depending on whether return_loss=True. Note this setting will change the expected inputs. W
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/detectors/bevformer_occ.py:139
Methodforward
(self, x)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/backbones/vovnet.py:160
Methodforward
(self, x)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/backbones/vovnet.py:171
Methodforward
(self, x)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/backbones/vovnet.py:209
Methodforward
(self, x)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/backbones/vovnet.py:340
Methodforward
(self, x)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/grid_mask.py:88
Methodforward
Forward function for `LearnedPositionalEncoding`. Args: mask (Tensor): ByteTensor mask. Non-zero values representing
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/positional_encoding.py:37
Methodforward
(self, tensor)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/position_embedding.py:18
Methodforward_dummy
Dummy forward function.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:116
Methodforward_dummy
Dummy forward function.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:116
Methodforward_dummy
(self, img)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/detectors/road_bev.py:119
Methodforward_dummy
(self, img)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/detectors/bevformer_occ.py:135
Methodforward_onnx
Forward function for exporting to ONNX. Over-write `forward` because: `masks` is directly created with zero (valid position tag) and
detection/mmdet_custom/models/dense_heads/detr_head.py:816
Methodforward_single
Forward function for a single feature level. Args: x (Tensor): Input feature from backbone's single stage, shape
detection/mmdet_custom/models/dense_heads/detr_head.py:237
Methodforward_single
(self, x, img_metas)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/custom_detr_head.py:124
Methodforward_single_onnx
Forward function for a single feature level with ONNX exportation. Args: x (Tensor): Input feature from backbone's single stage,
detection/mmdet_custom/models/dense_heads/detr_head.py:844
Methodforward_test
Test segment without test-time aumengtation. Only the output of last decoder layers was used. Args: inputs (list[Tensor]
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:560
Methodforward_test
inference pipeline
autonomous_driving/Online-HD-Map-Construction/src/models/mapers/vectormapnet.py:131
Methodforward_test
(self, img, img_metas, **kwargs)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/detectors/baseline.py:190
Methodforward_train
(self, x, img_metas, gt_bboxes,
detection/mmdet_custom/models/dense_heads/cbdino_head.py:51
Methodforward_train
(self, x, img_metas, gt_bboxes,
detection/mmdet_custom/models/dense_heads/dino_head.py:43
Methodforward_train
Forward function for training mode. Args: x (list[Tensor]): Features from backbone. img_metas (list[dict]): Meta info
detection/mmdet_custom/models/dense_heads/detr_head.py:656
Methodforward_train
(self, img, img_metas, gt_bboxes,
detection/mmdet_custom/models/detectors/cbnet_dino.py:53
Methodforward_train
Forward function for training mode. Args: x (list[Tensor]): Multi-level features from the upstream network, each
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:530
Methodforward_train
Forward function for training mode. Args: x (list[Tensor]): Multi-level features from the upstream network, each
segmentation/mmseg_custom/models/decode_heads/maskformer_head.py:463
Methodforward_train
Args: img: torch.Tensor of shape [B, N, 3, H, W] N: number of cams vectors: list[list[Tuple(lines, le
autonomous_driving/Online-HD-Map-Construction/src/models/mapers/vectormapnet.py:70
Methodforward_train
(self, img, img_metas, gt_lc=None,
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/detectors/baseline.py:123
Methodforward_train
(self, o1_feats, o1_assign_results, o2_feats, o2_assign_results, gt_adj)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/relationship_head.py:52
Functionfp16_compress_hook
This DDP communication hook implements a simple gradient compression approach that casts ``GradBucket`` tensor to half-precision floating-poi
classification/ddp_hooks.py:43
Functionfp16_compress_wrapper
This wrapper casts the input gradient tensor of a given DDP communication hook to half-precision floating point format (``torch.float16``), a
classification/ddp_hooks.py:111
Functionfp16_compress_wrapper_hook
( hook_state, bucket: dist.GradBucket)
classification/ddp_hooks.py:126
Functionfrechet_distance
Calculate frechet distance between two lines. Make sure the lines are interpolated. Args: line1 (array): coordinates of line1
autonomous_driving/Online-HD-Map-Construction/src/datasets/evaluation/distance.py:24
Functionfrechet_distance
r""" Calculate discrete Frechet distance. Parameters ---------- gt : np.ndarray Curve of (G, N) shape, where G is the
autonomous_driving/openlane-v2/openlanev2/evaluation/distance.py:98
Methodgather_single
(self, idx)
autonomous_driving/openlane-v2/tools/data_converter/kitti_data_utils.py:353
Functiongenerate_square_subsequent_mask
Generate the attention mask for causal decoding
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detgen_utils/causal_trans.py:278
FunctiongetCellCoordinates
(points, voxelSize)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/datasets/occ_metrics.py:35
MethodgetNbOutputs
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:174
FunctiongetNumUniqueCells
(cells)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/datasets/occ_metrics.py:39
MethodgetOutputDataType
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:164
MethodgetOutputDimensions
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:76
MethodgetPluginName
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:219
MethodgetPluginType
IPluginV2 Methods
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:170
MethodgetPluginVersion
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:172
MethodgetSerializationSize
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:176
MethodgetWorkspaceSize
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:105
Methodget_ann_info
Get COCO annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified inde
detection/mmdet_custom/datasets/crowd_human.py:50
Methodget_bboxes
Transform network outputs for a batch into bbox predictions. Args: all_cls_scores (Tensor): Classification score of all
detection/mmdet_custom/models/dense_heads/deformable_detr_head.py:283
Methodget_epoch_values
(self, epoch: int)
classification/lr_scheduler.py:101
Methodget_fed_loss_classes
Args: gt_classes: a long tensor of shape R that contains the gt class label of each proposal. num_fed_loss_classes: m
detection/mmdet_custom/models/dense_heads/detr_head.py:345
Methodget_frame_via_index
r""" Returns a frame with the given index. Parameters ---------- index : int Returns -------
autonomous_driving/openlane-v2/openlanev2/dataset/collection.py:68
Methodget_infos
Get data infos. This method gets information from the raw data. Args: num_workers (int, optional): Number of threads to
autonomous_driving/openlane-v2/tools/data_converter/sunrgbd_data_utils.py:129
Methodget_proposal_pos_embed
Get the position embedding of proposal.
autonomous_driving/Online-HD-Map-Construction/src/models/transformer_utils/deformable_transformer.py:223
Methodget_reference_points
Get the reference points used in decoder. Args: spatial_shapes (Tensor): The shape of all feature maps, has shape
autonomous_driving/Online-HD-Map-Construction/src/models/transformer_utils/deformable_transformer.py:181
Methodget_rgb_image
r""" Retuens the RGB image given a camera. Parameters ---------- camera : str Returns -------
autonomous_driving/openlane-v2/openlanev2/dataset/frame.py:87
Methodget_sample
Get data sample. For each sample, map extractor will be applied to extract map elements. Args: idx (int): data index
autonomous_driving/Online-HD-Map-Construction/src/datasets/argo_dataset.py:51
Functionget_sample_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
autonomous_driving/occupancy_prediction/tools/analysis_tools/visual.py:131
Methodget_update_values
(self, num_updates: int)
classification/lr_scheduler.py:107
Methodgrid_points
(self, featmap_size, stride=16, device='cuda')
segmentation/mmseg_custom/core/anchor/point_generator.py:19
Methodgrid_priors
Generate grid points of multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
segmentation/mmseg_custom/core/anchor/point_generator.py:78
Methodhook
(module, input, output, new_name=new_name)
classification/extract_feature.py:46
Functionimport_plugin
import modules, registry will be update
autonomous_driving/Online-HD-Map-Construction/tools/visualization/visualize.py:42
Methodinference
Inference Function. This function is used to make a prediction call on the given input request. Args: data (`LiD
autonomous_driving/openlane-v2/tools/deployment/mmdet3d_handler.py:73
Methodinfo
Returns a dictionary of info about the object.
segmentation/mmseg_custom/core/box/samplers/mask_sampling_result.py:49
Methodinfo
Returns a dictionary of info about the object.
segmentation/mmseg_custom/core/box/samplers/sampling_result.py:79
Methodinit_layers
Initialize layers of the DinoTransformer.
detection/mmdet_custom/models/utils/transformer.py:149
Methodinit_weights
(self)
detection/mmdet_custom/models/backbones/intern_image.py:662
Methodinit_weights
Initialize weights of the DeformDETR head.
detection/mmdet_custom/models/dense_heads/deformable_detr_head.py:96
Methodinit_weights
Initialize weights of the transformer head.
detection/mmdet_custom/models/dense_heads/detr_head.py:178
Methodinit_weights
(self)
detection/mmdet_custom/models/utils/transformer.py:158
Methodinit_weights
(self)
segmentation/mmseg_custom/models/backbones/intern_image.py:662
Methodinit_weights
Initialize the transformer weights.
segmentation/mmseg_custom/models/utils/transformer.py:675
Methodinit_weights
(self)
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:143
Methodinit_weights
Initialize weights.
segmentation/mmseg_custom/models/plugins/msdeformattn_pixel_decoder.py:134
Methodinit_weights
Initialize weights.
segmentation/mmseg_custom/models/plugins/pixel_decoder.py:76
Methodinit_weights
Initialize weights.
segmentation/mmseg_custom/models/plugins/pixel_decoder.py:175
Methodinit_weights
(self)
autonomous_driving/Online-HD-Map-Construction/src/models/backbones/internimage.py:639
Methodinit_weights
Initialize the transformer weights.
autonomous_driving/Online-HD-Map-Construction/src/models/transformer_utils/deformable_transformer.py:166
Methodinit_weights
Initialize the weights in detector. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to Non
autonomous_driving/Online-HD-Map-Construction/src/models/heads/base_map_head.py:16
Methodinit_weights
Initialize the transformer weights.
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/modules/bevformer_constructer.py:84
Methodinit_weights
Initialize the transformer weights.
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/modules/transformer.py:46
Methodinit_weights
Initialize weights of the DeformDETR head.
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/lc_deformable_detr_head.py:178
Methodinit_weights
Initialize weights of the DeformDETR head.
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/te_deformable_detr_head.py:104
Methodinit_weights
Initialize the transformer weights.
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/modules/transformer_occ.py:154
Methodinit_weights
Initialize the transformer weights.
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/modules/transformer.py:83
Methodinit_weights
Initialize weights of the DeformDETR head.
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/dense_heads/bevformer_occ_head.py:78
Methodinterp_fixed_dist
Interpolate a line at fixed interval. Args: line (LineString): line Returns: points (array): interpolated p
autonomous_driving/Online-HD-Map-Construction/src/datasets/pipelines/vectorize.py:64
Methodinterp_fixed_num
Interpolate a line to fixed number of points. Args: line (LineString): line Returns: points (array): interp
autonomous_driving/Online-HD-Map-Construction/src/datasets/pipelines/vectorize.py:48
Methodinterp_fixed_num
Interpolate a polyline. Args: vector (array): line coordinates, shape (M, 2) num_pts (int): Returns:
autonomous_driving/Online-HD-Map-Construction/src/datasets/evaluation/vector_eval.py:52
Functioniou_distance
r""" Calculate IoU distance, which is 1 - IoU. Parameters ---------- gt : np.ndarray Bounding box in form [[x1, y1], [x2,
autonomous_driving/openlane-v2/openlanev2/evaluation/distance.py:124
Functionkitti_anno_to_label_file
(annos, folder)
autonomous_driving/openlane-v2/tools/data_converter/kitti_data_utils.py:511
Methodlist_files
(path, extension=None)
classification/dataset/zipreader.py:66
Methodlist_folder
(path)
classification/dataset/zipreader.py:48
← previousnext →2,201–2,300 of 2,414, ranked by callers