MCPcopy Create free account

hub / github.com/OpenGVLab/InternImage / functions

Functions2,414 in github.com/OpenGVLab/InternImage

↓ 2 callersFunctionresample_laneline_in_x
Interpolate y, z values at each anchor grid, including those beyond the range of input lnae x range :param input_lane: N x 2 or N x 3 nda
autonomous_driving/openlane-v2/openlanev2/evaluation/f_score.py:42
↓ 2 callersFunctionsave_checkpoint
(save_dir, accelerator, epoch, max_acc, config, lr_scheduler=None)
classification/main_accelerate.py:166
↓ 2 callersMethodsave_image
Parse and save the images in jpg format. Jpg is the original format used by Waymo Open dataset. Saving in png format will cause huge (~3x)
autonomous_driving/openlane-v2/tools/data_converter/waymo_converter.py:132
↓ 2 callersMethodset_epoch
(self, epoch)
classification/dataset/samplers.py:33
↓ 2 callersFunctionset_weight_decay_and_lr
( model, weight_decay, base_lr, skip_list=(), skip_keywords=(), lr_layer_decay=None,
classification/optimizer.py:98
↓ 2 callersMethodsimple_forward
(self, img, img_metas)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/detectors/baseline.py:49
↓ 2 callersMethodsingle_level_grid_priors
Generate grid Points of a single level. Note: This function is usually called by method ``self.grid_priors``. Args:
segmentation/mmseg_custom/core/anchor/point_generator.py:116
↓ 2 callersFunctionspeed_test
(model, input)
classification/export.py:43
↓ 2 callersFunctiontest_single_image
(model, img_name, out_dir, color_palette, opacity)
segmentation/image_demo.py:16
↓ 2 callersMethodtrain
Convert the model into training mode while keep normalization layer freezed.
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/backbones/vovnet.py:365
↓ 2 callersFunctiontrain_detector
(model, dataset, cfg, distributed=False,
autonomous_driving/Online-HD-Map-Construction/tools/mmdet_train.py:36
↓ 2 callersFunctiontrain_model
A function wrapper for launching model training according to cfg. Because we need different eval_hook in runner. Should be deprecated in the
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/apis/train.py:40
↓ 2 callersFunctionupdate_nuscenes_or_lyft_infos
(root_dir, out_dir, pkl_files)
autonomous_driving/openlane-v2/tools/update_data_coords.py:62
↓ 2 callersMethodvoxel2points
(self, voxel)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/datasets/occ_metrics.py:167
↓ 1 callersMethodPolygonization
Process vertices.
autonomous_driving/Online-HD-Map-Construction/src/datasets/pipelines/poly_bbox.py:113
↓ 1 callersFunctionSolveMinCostFlow
Solving an Assignment Problem with MinCostFlow" :param adj_mat: adjacency matrix with binary values indicating possible matchings between
autonomous_driving/openlane-v2/openlanev2/evaluation/f_score.py:73
↓ 1 callersFunction_AP
r""" Calculate AP on given distance threshold. Parameters ---------- gts : dict Dict storing ground truth for all samples.
autonomous_driving/openlane-v2/openlanev2/evaluation/evaluate.py:180
↓ 1 callersFunction_AP_directerd
r""" Calculate average precision on the given adjacent matrixs, where vertices are directedly connected. Parameters ---------- gt
autonomous_driving/openlane-v2/openlanev2/evaluation/evaluate.py:344
↓ 1 callersFunction_AP_undirecterd
r""" Calculate average precision on the given adjacent matrixs, where vertices are undirectedly connected. Parameters ----------
autonomous_driving/openlane-v2/openlanev2/evaluation/evaluate.py:385
↓ 1 callersMethod__init__
(self, interval)
detection/mmcv_custom/__init__.py:37
↓ 1 callersMethod__init__
(self, num_queries, hidden_dim, num_classes,
detection/mmdet_custom/models/utils/query_denoising.py:10
↓ 1 callersMethod__init__
(self, *args, **kwargs)
detection/mmdet_custom/models/utils/transformer.py:146
↓ 1 callersMethod__init__
(self, num_feats, temperature=10000, normalize=False,
segmentation/mmseg_custom/models/utils/positional_encoding.py:35
↓ 1 callersMethod__init__
(self, in_channels, feat_channels, out_channels,
segmentation/mmseg_custom/models/plugins/pixel_decoder.py:31
↓ 1 callersMethod__init__
(self, as_two_stage=False, num_feature_levels=1, two_stage_
autonomous_driving/Online-HD-Map-Construction/src/models/transformer_utils/deformable_transformer.py:138
↓ 1 callersMethod__init__
(self, attn_cfg=None, init_cfg=None, **kwarg)
autonomous_driving/Online-HD-Map-Construction/src/models/transformer_utils/fp16_dattn.py:34
↓ 1 callersMethod__init__
Args: re_zero: If True, alpha scale residuals with zero init.
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detgen_utils/causal_trans.py:100
↓ 1 callersMethod__init__
(self, attn_cfgs, ffn_cfgs, operation_order=None,
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/modules/encoder.py:257
↓ 1 callersMethod__init__
(self, embed_dims=256, num_cams=6, pc_range=None,
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/modules/spatial_cross_attention.py:42
↓ 1 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/relationship_head.py:18
↓ 1 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/topology_head.py:32
↓ 1 callersMethod__init__
(self, *args, return_intermediate=False, **kwargs)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/modules/decoder.py:54
↓ 1 callersMethod__init__
(self, attn_cfgs, feedforward_channels, ffn_dropout=0.0,
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/modules/encoder.py:264
↓ 1 callersMethod__init__
(self, embed_dims=256, num_cams=6, pc_range=None,
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/modules/spatial_cross_attention.py:42
↓ 1 callersMethod__init__
Initialize a DetectionEval object. :param nusc: A NuScenes object. :param config: A DetectionConfig object. :param re
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/datasets/nuscnes_eval.py:480
↓ 1 callersMethod__init__
(self, use_h, use_w, rotate=1, offset=False, ratio=0.5, mode=0, prob=1.)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/utils/grid_mask.py:9
↓ 1 callersMethod__len__
(self)
classification/dataset/cached_image_folder.py:185
↓ 1 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
segmentation/mmseg_custom/core/utils/dist_utils.py:14
↓ 1 callersFunction_allreduce_fut
Averages the input gradient tensor by allreduce and returns a future.
classification/ddp_hooks.py:12
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:99
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:99
↓ 1 callersMethod_binary_cross_entropy
Args: cls_pred (Tensor): The prediction with shape (num_query, 1, *) or (num_query, *). gt_labels (Te
segmentation/mmseg_custom/models/losses/match_costs.py:196
↓ 1 callersMethod_build_transformer
(self, transformer, positional_encoding)
autonomous_driving/Online-HD-Map-Construction/src/models/heads/map_element_detector.py:188
↓ 1 callersMethod_build_transformer
(self, transformer, positional_encoding)
autonomous_driving/Online-HD-Map-Construction/src/models/heads/detr_head.py:94
↓ 1 callersFunction_calc_dynamic_intervals
(start_interval, dynamic_interval_list)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/core/evaluation/eval_hooks.py:14
↓ 1 callersMethod_convert_to_label
Convert class_id in loaded segmentation mask to label.
autonomous_driving/openlane-v2/tools/data_converter/s3dis_data_utils.py:205
↓ 1 callersMethod_convert_to_label
Convert class_id in loaded segmentation mask to label.
autonomous_driving/openlane-v2/tools/data_converter/scannet_data_utils.py:257
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:93
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:93
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:82
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:82
↓ 1 callersMethod_det2json
Convert detection results to COCO json style.
detection/mmdet_custom/datasets/crowd_human.py:190
↓ 1 callersFunction_draw_lane_centerline
(image, lane_centerline, intrinsic, extrinsic, with_attribute)
autonomous_driving/openlane-v2/openlanev2/visualization/pv.py:62
↓ 1 callersFunction_draw_lane_centerline
(image, lane_centerline, with_attribute)
autonomous_driving/openlane-v2/openlanev2/visualization/bev.py:32
↓ 1 callersFunction_draw_topology
(image, topology, intrinsic, extrinsic)
autonomous_driving/openlane-v2/openlanev2/visualization/pv.py:85
↓ 1 callersFunction_draw_traffic_element
(image, traffic_element)
autonomous_driving/openlane-v2/openlanev2/visualization/pv.py:29
↓ 1 callersFunction_draw_vertex
(image, lane_centerline)
autonomous_driving/openlane-v2/openlanev2/visualization/bev.py:54
↓ 1 callersMethod_embed_inputs
Embeds face sequences and adds within and between face positions. Args: seq: B, seqlen=vlen*3, condition_embedding:
autonomous_driving/Online-HD-Map-Construction/src/models/heads/polyline_generator.py:169
↓ 1 callersMethod_embed_kps
(self, bbox)
autonomous_driving/Online-HD-Map-Construction/src/models/heads/polyline_generator.py:115
↓ 1 callersFunction_expand_onehot_labels
Expand onehot labels to match the size of prediction.
segmentation/mmseg_custom/models/losses/cross_entropy_loss.py:65
↓ 1 callersFunction_fill_occ_trainval_infos
Generate the train/val infos from the raw data. Args: nusc (:obj:`NuScenes`): Dataset class in the nuScenes dataset. train_scenes
autonomous_driving/occupancy_prediction/tools/data_converter/nuscenes_occ_converter.py:190
↓ 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
autonomous_driving/openlane-v2/tools/data_converter/nuscenes_converter.py:144
↓ 1 callersFunction_fill_trainval_infos
Generate the train/val infos from the raw data. Args: lyft (:obj:`LyftDataset`): Dataset class in the Lyft dataset. train_scenes
autonomous_driving/openlane-v2/tools/data_converter/lyft_converter.py:94
↓ 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
autonomous_driving/occupancy_prediction/tools/data_converter/nuscenes_converter.py:179
↓ 1 callersMethod_freeze_stages
(self)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/models/backbones/vovnet.py:352
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
detection/ops_dcnv3/functions/dcnv3_func.py:121
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/ops_dcnv3/functions/dcnv3_func.py:138
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/in1k_model/internimage_g_22kto1k_512/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/in1k_model/internimage_xl_22kto1k_384/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/in1k_model/internimage_s_1k_224/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/in1k_model/internimage_h_22kto1k_640/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/in1k_model/internimage_l_22kto1k_384/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/in1k_model/internimage_t_1k_224/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/in1k_model/internimage_b_1k_224/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/22k_model/internimage_l_22k_384/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/22k_model/internimage_g_jointto22k_384/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/22k_model/internimage_xl_22k_384/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
classification/huggingface/22k_model/internimage_h_jointto22k_384/dcnv3_func.py:141
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
segmentation/ops_dcnv3/functions/dcnv3_func.py:121
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/backbones/ops_dcnv3/functions/dcnv3_func.py:122
↓ 1 callersFunction_generate_dilation_grids
(spatial_shapes, kernel_h, kernel_w, dilation_h, dilation_w, group, device)
autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/bevformer/backbones/ops_dcnv3/functions/dcnv3_func.py:122
↓ 1 callersMethod_get_bboxes_single
Transform outputs from the last decoder layer into bbox predictions for each image. Args: cls_score (Tensor): Box score l
autonomous_driving/openlane-v2/plugin/mmdet3d/baseline/models/heads/te_deformable_detr_head.py:585
↓ 1 callersFunction_get_can_bus_info
(nusc, nusc_can_bus, sample)
autonomous_driving/occupancy_prediction/tools/data_converter/nuscenes_converter.py:154
↓ 1 callersFunction_get_can_bus_info
(nusc, nusc_can_bus, sample)
autonomous_driving/occupancy_prediction/tools/data_converter/nuscenes_occ_converter.py:165
↓ 1 callersMethod_get_cb_feats
(self, feats, tmps)
detection/mmdet_custom/models/backbones/cbnet.py:112
↓ 1 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
segmentation/mmseg_custom/core/utils/dist_utils.py:87
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
detection/ops_dcnv3/functions/dcnv3_func.py:90
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/ops_dcnv3/functions/dcnv3_func.py:107
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/in1k_model/internimage_g_22kto1k_512/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/in1k_model/internimage_xl_22kto1k_384/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/in1k_model/internimage_s_1k_224/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/in1k_model/internimage_h_22kto1k_640/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/in1k_model/internimage_l_22kto1k_384/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/in1k_model/internimage_t_1k_224/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/in1k_model/internimage_b_1k_224/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/22k_model/internimage_l_22k_384/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/22k_model/internimage_g_jointto22k_384/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/22k_model/internimage_xl_22k_384/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
classification/huggingface/22k_model/internimage_h_jointto22k_384/dcnv3_func.py:110
↓ 1 callersFunction_get_reference_points
(spatial_shapes, device, kernel_h, kernel_w, dilation_h, dilation_w, pad_h=0, pad_w=0, stride_h=1, stride_w=1)
segmentation/ops_dcnv3/functions/dcnv3_func.py:90
← previousnext →401–500 of 2,414, ranked by callers