MCPcopy Create free account

hub / github.com/OpenGVLab/InternImage / functions

Functions2,414 in github.com/OpenGVLab/InternImage

Methodload_annotations
Load annotation from COCO style annotation file. Args: ann_file (str): Path of annotation file. Returns: list[
detection/mmdet_custom/datasets/crowd_human.py:23
Methodload_annotations
Load annotations from ann_file. Args: ann_file (str): Path of the annotation file. Returns: list[dict]: List
autonomous_driving/Online-HD-Map-Construction/src/datasets/argo_dataset.py:31
Methodload_annotations
(self, ann_file)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/datasets/openlane_v2_dataset.py:229
Methodload_onto_memory
(self)
classification/dataset/cached_image_folder.py:474
Methodloop_dataset
(i)
autonomous_driving/openlane-v2/tools/data_converter/create_gt_database.py:596
Methodloss
Loss function. Args: all_cls_scores (Tensor): Classification score of all decoder layers, has shape
detection/mmdet_custom/models/dense_heads/deformable_detr_head.py:198
Methodloss
(self, gt: dict, pred: dict)
autonomous_driving/Online-HD-Map-Construction/src/models/heads/polyline_generator.py:346
Methodloss
Compute loss Output: dict( loss: torch.Tensor log_vars: dict( str: fl
autonomous_driving/Online-HD-Map-Construction/src/models/heads/base_map_head.py:31
Methodloss
Loss Function. Args: gt_lines_list (list[Tensor]): Ground truth lines for each image with
autonomous_driving/Online-HD-Map-Construction/src/models/heads/map_element_detector.py:513
Methodloss
Loss Function. Args: gt_lines_list (list[Tensor]): Ground truth lines for each image with
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detr_head.py:382
Methodloss
Loss function. Args: gt_bboxes_list (list[Tensor]): Ground truth bboxes for each image with shape (num_gts, 4) in
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/lc_deformable_detr_head.py:445
Methodloss
Loss function. Args: all_cls_scores (Tensor): Classification score of all decoder layers, has shape
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/te_deformable_detr_head.py:208
Methodloss
(self, all_cls_scores_list, all_bbox_preds_list, gt_bboxes_list,
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/custom_detr_head.py:154
Methodloss_dn_single
(self, dn_cls_scores, dn_bbox_preds, gt_bboxes_list, gt_labels_list, img_metas, dn_meta
detection/mmdet_custom/models/dense_heads/cbdino_head.py:246
Methodloss_dn_single
(self, dn_cls_scores, dn_bbox_preds, gt_bboxes_list, gt_labels_list, img_metas, dn_meta
detection/mmdet_custom/models/dense_heads/dino_head.py:228
Methodloss_name
Loss Name. This function must be implemented and will return the name of this loss function. This name will be used to combine differ
segmentation/mmseg_custom/models/losses/cross_entropy_loss.py:279
Methodloss_single
Loss function for outputs from a single decoder layer. Args: cls_scores (Tensor): Mask score logits from a single decoder layer
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:269
Methodloss_single
Loss function for outputs from a single decoder layer. Args: cls_scores (Tensor): Mask score logits from a single decoder layer
segmentation/mmseg_custom/models/decode_heads/maskformer_head.py:302
Methodloss_single
Loss function for outputs from a single decoder layer of a single feature level. Args: cls_scores
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detr_bbox.py:330
Methodloss_single
Loss function for outputs from a single decoder layer of a single feature level. Args: cls_scores
autonomous_driving/Online-HD-Map-Construction/src/models/heads/map_element_detector.py:440
Methodloss_single
Loss function for outputs from a single decoder layer of a single feature level. Args: cls_scores
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detr_head.py:314
Methodloss_single
(self, cls_scores, bbox_preds, gt_bboxes_list,
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/custom_detr_head.py:199
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/models/intern_image_meta_former.py:732
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/in1k_model/internimage_g_22kto1k_512/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/in1k_model/internimage_xl_22kto1k_384/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/in1k_model/internimage_s_1k_224/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/in1k_model/internimage_h_22kto1k_640/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/in1k_model/internimage_l_22kto1k_384/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/in1k_model/internimage_t_1k_224/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/in1k_model/internimage_b_1k_224/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/22k_model/internimage_l_22k_384/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/22k_model/internimage_g_jointto22k_384/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/22k_model/internimage_xl_22k_384/modeling_internimage.py:722
Methodlr_decay_keywords
(self, decay_ratio=0.87)
classification/huggingface/22k_model/internimage_h_jointto22k_384/modeling_internimage.py:722
Functionmap_func
(idx)
autonomous_driving/openlane-v2/tools/data_converter/kitti_data_utils.py:209
Functionmask2bbox
Obtain tight bounding boxes of binary masks. Args: masks (Tensor): Binary mask of shape (n, h, w). Returns: Tensor: Bboxe wi
segmentation/mmseg_custom/core/mask/utils.py:68
Functionmask_cross_entropy
Calculate the CrossEntropy loss for masks. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of cl
segmentation/mmseg_custom/models/losses/cross_entropy_loss.py:153
Methodmasks
torch.Tensor: concatenated positive and negative boxes
segmentation/mmseg_custom/core/box/samplers/mask_sampling_result.py:36
Functionmiddle
(fn)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/bricks.py:11
Methodmultiscale_neck
(self, bev_embedding)
autonomous_driving/Online-HD-Map-Construction/src/models/mapers/vectormapnet.py:63
Methodnum_base_priors
list[int]: The number of priors (points) at a point on the feature grid
segmentation/mmseg_custom/core/anchor/point_generator.py:63
Methodnum_levels
int: number of feature levels that the generator will be applied
segmentation/mmseg_custom/core/anchor/point_generator.py:58
Methodobtain_history_bev
Obtain history BEV features iteratively. To save GPU memory, gradients are not calculated.
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/detectors/road_bev.py:138
Methodonnx_export
Transform network outputs into bbox predictions, with ONNX exportation. Args: all_cls_scores_list (list[Tensor]): Classif
detection/mmdet_custom/models/dense_heads/detr_head.py:884
Methodonnx_export
(self, **kwargs)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/custom_detr_head.py:394
Functionplot_curve
(log_dicts, args)
autonomous_driving/openlane-v2/tools/analysis_tools/analyze_logs.py:34
Functionplot_curve
(log_dicts, args)
autonomous_driving/occupancy_prediction/tools/analysis_tools/analyze_logs.py:34
Methodpolygon
(self, input_data, key_rep='Bounding Box')
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/datasets/pipelines/transforms.py:367
Methodpost_process
Args: preds_dicts: scores (Tensor): Classification score of all decoder layers, has shape
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detr_bbox.py:418
Methodpost_process
convert model predictions to vectorized outputs the output format should be consistent with the evaluation function
autonomous_driving/Online-HD-Map-Construction/src/models/heads/base_map_head.py:46
Methodpost_process
Args: preds_dicts: scores (Tensor): Classification score of all decoder layers, has shape
autonomous_driving/Online-HD-Map-Construction/src/models/heads/map_element_detector.py:563
Methodpost_process
Args: preds_dict: all_cls_scores (Tensor): Classification score of all decoder layers, has sh
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detr_head.py:432
Methodpostprocess
Postprocess function. This function makes use of the output from the inference and converts it into a torchserve supported response o
autonomous_driving/openlane-v2/tools/deployment/mmdet3d_handler.py:89
Methodpre_eval
do pre eval for every sample of ConcatDataset.
segmentation/mmseg_custom/datasets/dataset_wrappers.py:141
Methodprepare_train_data
(self, index)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/datasets/openlane_v2_dataset.py:328
Methodpreprocess
Preprocess function converts data into LiDARPoints class. Args: data (List): Input data from the request. Returns:
autonomous_driving/openlane-v2/tools/deployment/mmdet3d_handler.py:45
Methodprocess_single_scene
(sample_idx)
autonomous_driving/openlane-v2/tools/data_converter/sunrgbd_data_utils.py:146
Methodprocess_single_scene
(sample_idx)
autonomous_driving/openlane-v2/tools/data_converter/s3dis_data_utils.py:63
Methodprocess_single_scene
(sample_idx)
autonomous_driving/openlane-v2/tools/data_converter/scannet_data_utils.py:105
Functionpy_sigmoid_focal_loss
PyTorch version of `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Args: pred (torch.Tensor): The prediction with shape (N, C), C is th
segmentation/mmseg_custom/models/losses/focal_loss.py:11
Functionquantize_verts
Convert vertices from its original range ([-1,1]) to discrete values in [0, n_bits**2 - 1]. Args: verts: seqlen, 2
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detgen_utils/utils.py:35
Methodrandom
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
segmentation/mmseg_custom/core/box/samplers/sampling_result.py:92
Methodrandom_scaling
bbox: B, paramter_num, 2
autonomous_driving/Online-HD-Map-Construction/src/models/augmentation/sythesis_det.py:32
Methodrandom_shifting
bbox: B, paramter_num, 2
autonomous_driving/Online-HD-Map-Construction/src/models/augmentation/sythesis_det.py:52
Functionrender_annotation
Render selected annotation. :param anntoken: Sample_annotation token. :param margin: How many meters in each direction to include in LIDA
autonomous_driving/occupancy_prediction/tools/analysis_tools/visual.py:31
Functionrotz
Rotation about the z-axis.
autonomous_driving/occupancy_prediction/utils/vis.py:60
Methodrun_iter
(self, data_batch, train_mode, **kwargs)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/runner/epoch_based_runner.py:50
Functionrun_time
(name)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/bricks.py:10
Methodsample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Assigned results
segmentation/mmseg_custom/core/box/samplers/mask_pseudo_sampler.py:26
Functionsave_tensor
(tensor, path, pad_value=254.0, )
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/visual.py:15
Methodsavepath
(name)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/datasets/nuscnes_eval.py:650
Methodserialize
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:184
Methodserialize
Serialize instance into json-friendly format.
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/datasets/nuscnes_eval.py:115
Methodset_epoch
(self, epoch)
classification/dataset/samplers.py:114
Methodset_epoch
(self, epoch)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/datasets/samplers/group_sampler.py:106
Methodset_prob
(self, epoch, max_epoch)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/grid_mask.py:19
Methodset_prob
(self, epoch, max_epoch)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/grid_mask.py:84
Functionsigmoid_focal_loss
r"""A warpper of cuda version `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Args: pred (torch.Tensor): The prediction with shape
segmentation/mmseg_custom/models/losses/focal_loss.py:59
Methodsimple_test
(self, img, img_metas, rescale=False)
detection/mmdet_custom/models/detectors/cbnet_dino.py:90
Methodsimple_test
Simple test with single image.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:255
Methodsimple_test
Simple test with single image.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:259
Methodsimple_test_bboxes
Test det bboxes without test-time augmentation. Args: feats (tuple[torch.Tensor]): Multi-level features from the
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/te_deformable_detr_head.py:509
Functionsingle_gpu_test
(model, data_loader, show=False, out_dir=None,
autonomous_driving/Online-HD-Map-Construction/tools/mmdet_test.py:15
Methodsparse_priors
Generate sparse points according to the ``prior_idxs``. Args: prior_idxs (Tensor): The index of corresponding anchors
segmentation/mmseg_custom/core/anchor/point_generator.py:231
Functionsplit_combined_polys
Split the combined 1-D polys into masks. A mask is represented as a list of polys, and a poly is represented as a 1-D array. In dataset, all
segmentation/mmseg_custom/core/mask/utils.py:8
MethodsupportsFormatCombination
tensorrt/modulated_deform_conv_v3/trt_deform_conv_v3.cpp:90
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
detection/ops_dcnv3/functions/dcnv3_func.py:62
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/ops_dcnv3/functions/dcnv3_func.py:78
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/in1k_model/internimage_g_22kto1k_512/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/in1k_model/internimage_xl_22kto1k_384/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/in1k_model/internimage_s_1k_224/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/in1k_model/internimage_h_22kto1k_640/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/in1k_model/internimage_l_22kto1k_384/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/in1k_model/internimage_t_1k_224/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/in1k_model/internimage_b_1k_224/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/22k_model/internimage_l_22k_384/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/22k_model/internimage_g_jointto22k_384/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/22k_model/internimage_xl_22k_384/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
classification/huggingface/22k_model/internimage_h_jointto22k_384/dcnv3_func.py:81
Methodsymbolic
Symbolic function for mmdeploy::DCNv3. Returns: DCNv3 op for onnx.
segmentation/ops_dcnv3/functions/dcnv3_func.py:62
← previousnext →2,301–2,400 of 2,414, ranked by callers