MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 2 callersMethod__init__
(self, num_shared_convs: int = 0, num_shared_fcs: int = 0,
mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:25
↓ 2 callersMethod__init__
(self, channels: int, ratio: int = 4, conv_cfg: OptConfigTy
mmdet/models/layers/se_layer.py:93
↓ 2 callersMethod__init__
(self, in_channels: int, out_channels: int, expand_ratio: f
mmdet/models/layers/csp_layer.py:181
↓ 2 callersMethod__init__
(self, data_root: str, question_file: str, ann_file: str =
mmpretrain/datasets/flamingo.py:89
↓ 2 callersMethod__init__
(self, in_channels: int, out_channels: int, mid_channels: i
mmpretrain/models/necks/spark_neck.py:20
↓ 2 callersMethod__init__
(self, scales=4, base_width=26, style='pytorch',
mmpretrain/models/backbones/res2net.py:295
↓ 2 callersMethod__init__
(self, in_channels, out_channels, norm_cfg=dict(type='BN'),
mmpretrain/models/backbones/repvgg.py:272
↓ 2 callersMethod__init__
(self, arch='tiny', sub_ln=False, drop_rate=0.,
mmpretrain/models/backbones/vit_eva02.py:270
↓ 2 callersMethod__init__
(self, arch: str = 'base', img_size: int = 224, patch_size:
mmpretrain/models/backbones/vit_sam.py:405
↓ 2 callersMethod__init__
(self, arch='base', img_size=224, patch_size=16,
mmpretrain/models/backbones/deit3.py:291
↓ 2 callersMethod__init__
(self, arch='base', img_size=224, patch_size=16,
mmpretrain/models/backbones/beit.py:344
↓ 2 callersMethod__init__
(self, in_features)
mmpretrain/models/backbones/riformer.py:21
↓ 2 callersMethod__init__
(self, embed_dims, num_heads, window_size=7,
mmpretrain/models/backbones/swin_transformer.py:49
↓ 2 callersMethod__init__
(self, mode: str)
mmpretrain/models/backbones/revvit.py:300
↓ 2 callersMethod__init__
(self, img_size=224, in_channels=3, embed_dims=384,
mmpretrain/models/backbones/t2t_vit.py:280
↓ 2 callersMethod__init__
(self, embed_dims, num_heads, window_size=8,
mmpretrain/models/backbones/swin_transformer_v2.py:51
↓ 2 callersMethod__init__
(self, img_size=224, in_channels=3, embed_dims=768,
mmpretrain/models/utils/embed.py:135
↓ 2 callersMethod__init__
(self, embed_dims, patch_resolution, theta=10000.,
mmpretrain/models/utils/position_encoding.py:194
↓ 2 callersMethod__init__
(self, topk: Union[int, Sequence[int]] = (1, ), thrs: Union[float, Sequence[
mmpretrain/evaluation/metrics/single_label.py:123
↓ 2 callersMethod__init__
( self, in_channels, conv_dim: int, mask_dim: int, mask_on: bool,
projects/XDecoder/xdecoder/pixel_decoder.py:57
↓ 2 callersMethod__init__
(self)
tests/test_engine/test_runner/test_loops.py:22
↓ 2 callersMethod__init__
(self)
tests/test_engine/test_optimizers/test_layer_decay_optimizer_constructor.py:92
↓ 2 callersMethod__len__
Get the length of the whole dataset. Returns: int: The length of filtered dataset.
mmpretrain/datasets/multi_task.py:290
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
mmdet/utils/util_mixins.py:76
↓ 2 callersMethod__setattr__
Set attribute, i.e. self.name = value This reloading prevent the teacher model from being registered as a nn.Module. The teacher modu
mmdet/models/detectors/kd_one_stage.py:111
↓ 2 callersMethod_bbox_decode
Decode regression results (delta_x, delta_x, w, h) to bboxes (tl_x, tl_y, br_x, br_y). Args: priors (Tensor): Center proi
mmdet/models/dense_heads/yolox_head.py:326
↓ 2 callersMethod_bbox_forward
Box head forward function used in both training and testing. Returns all regression, classification results and a intermediate feature.
mmdet/models/roi_heads/sparse_roi_head.py:173
↓ 2 callersMethod_bbox_forward
Box head forward function used in both training and testing. Args: x (tuple[Tensor]): List of multi-level img features.
mmdet/models/roi_heads/multi_instance_roi_head.py:35
↓ 2 callersMethod_bbox_forward
Box head forward function used in both training and testing. Args: stage (int): The current stage in Cascade RoI Head.
mmdet/models/roi_heads/cascade_roi_head.py:122
↓ 2 callersMethod_bbox_post_process
bbox post-processing method. The boxes would be rescaled to the original image scale and do the nms operation. Args:
mmdet/models/dense_heads/rpn_head.py:236
↓ 2 callersMethod_build_stacked_convs
Initialize conv layers of a single level head.
mmdet/models/dense_heads/yolox_head.py:158
↓ 2 callersMethod_check_exists
Check the exists of data files.
mmpretrain/datasets/mnist.py:124
↓ 2 callersMethod_check_head
Check whether the `num_classes` in head matches the length of `classes` in `dataset.metainfo`. Args: runner (:obj:`Runner
mmdet/engine/hooks/num_class_check_hook.py:14
↓ 2 callersMethod_check_integrity
Check the integrity of data files.
mmpretrain/datasets/cifar.py:160
↓ 2 callersMethod_clean
Perform text cleaning before tokenizer.
mmpretrain/datasets/transforms/processing.py:1657
↓ 2 callersMethod_convert_to_d2_inputs
Convert inputs type to support Detectron2's model. Args: batch_inputs (Tensor): Input images of shape (N, C, H, W).
mmdet/models/detectors/d2_wrapper.py:222
↓ 2 callersMethod_create_heatmaps_from_dist
Generate heatmaps of classification branch based on weighted distance map.
mmdet/models/dense_heads/centernet_update_head.py:482
↓ 2 callersMethod_create_image_index
(self)
mmpretrain/datasets/coco_vqa.py:47
↓ 2 callersFunction_create_panoptic_data
(num_boxes, h, w)
tests/test_visualization/test_local_visualizer.py:26
↓ 2 callersMethod_crop_image_and_paste
Crop image with a given center and size, then paste the cropped image to a blank image with two centers align. This function is equiv
mmdet/datasets/transforms/transforms.py:1977
↓ 2 callersMethod_decode_heatmap
Transform outputs into detections raw bbox prediction. Args: tl_heat (Tensor): Top-left corner heatmap for current level with
mmdet/models/dense_heads/corner_head.py:850
↓ 2 callersMethod_decode_init_proposals
Decode init_proposal_bboxes according to the size of images and expand dimension of init_proposal_features to batch_size. Args:
mmdet/models/dense_heads/embedding_rpn_head.py:61
↓ 2 callersMethod_do_switch
do the switch aug process.
mmpretrain/engine/hooks/switch_recipe_hook.py:109
↓ 2 callersMethod_draw_instances
Draw instances of GT or prediction. Args: image (np.ndarray): The image to draw. instances (:obj:`InstanceData`): Dat
mmdet/visualization/local_visualizer.py:108
↓ 2 callersMethod_draw_instances
Draw instances of GT or prediction. Args: image (np.ndarray): The image to draw. instances (:obj:`InstanceData`): Dat
mmdet/visualization/local_visualizer.py:554
↓ 2 callersMethod_draw_panoptic_seg
Draw panoptic seg of GT or prediction. Args: image (np.ndarray): The image to draw. panoptic_seg (:obj:`PixelData`):
mmdet/visualization/local_visualizer.py:237
↓ 2 callersMethod_draw_samples
Visualize every ``self.interval`` samples from a data batch. Args: batch_idx (int): The index of the current batch in the val loo
mmpretrain/engine/hooks/visualization_hook.py:51
↓ 2 callersMethod_draw_sem_seg
Draw semantic seg of GT or prediction. Args: image (np.ndarray): The image to draw. sem_seg (:obj:`PixelData`): Data
mmdet/visualization/local_visualizer.py:321
↓ 2 callersMethod_extract_feat
Extract features from the single modality. Args: inputs (Union[torch.Tensor, dict]): A batch of inputs. For image
mmpretrain/models/multimodal/blip/blip_retrieval.py:309
↓ 2 callersFunction_fake_mask_feature_head
()
tests/test_models/test_dense_heads/test_solov2_head.py:25
↓ 2 callersFunction_fake_roi_head
Set a fake roi head config.
tests/test_models/test_roi_heads/test_multi_instance_roi_head.py:15
↓ 2 callersFunction_format_pred
format various label to List[indices].
mmpretrain/evaluation/metrics/retrieval.py:399
↓ 2 callersFunction_format_target
format various label to List[indices].
mmpretrain/evaluation/metrics/retrieval.py:423
↓ 2 callersMethod_forward
Network forward process. Usually includes backbone, neck and head forward without any post-processing. Args: batch_input
projects/SparseInst/sparseinst/sparseinst.py:66
↓ 2 callersMethod_forward_head
(self, decoder_out: Tensor, mask_feature: Tensor, attn_mask_target_size: Tuple[int, int]
mmdet/rsprompter/models.py:332
↓ 2 callersMethod_forward_head
Forward for head part which is called after every decoder layer. Args: decoder_out (Tensor): in shape (batch_size, num_queries, c
mmdet/models/dense_heads/mask2former_head.py:340
↓ 2 callersMethod_forward_head
Forward for head part which is called after every decoder layer. Args: decoder_out (Tensor): in shape (num_queries, batch_size, c
mmdet/models/tracking_heads/mask2former_track_head.py:440
↓ 2 callersMethod_freeze_stages
(self)
mmpretrain/models/backbones/vig.py:658
↓ 2 callersMethod_freeze_stages
(self)
mmpretrain/models/backbones/densenet.py:320
↓ 2 callersMethod_freeze_stages
(self)
mmpretrain/models/backbones/convnext.py:356
↓ 2 callersMethod_freeze_stages
(self)
mmpretrain/models/backbones/riformer.py:363
↓ 2 callersMethod_freeze_stages
(self)
mmpretrain/models/backbones/efficientformer.py:586
↓ 2 callersMethod_freeze_stages
(self)
mmpretrain/models/backbones/convmixer.py:171
↓ 2 callersMethod_freeze_stages
(self)
mmpretrain/models/backbones/poolformer.py:396
↓ 2 callersMethod_freeze_stages
(self)
mmpretrain/models/backbones/resnet.py:621
↓ 2 callersMethod_freeze_stages
Freeze patch_embed layer, some parameters and stages.
mmpretrain/models/selfsup/mocov3.py:108
↓ 2 callersMethod_fuse_glbctx
Fuse global context feats with roi feats. Args: roi_feats (Tensor): RoI features. glbctx_feat (Tensor): Global contex
mmdet/models/roi_heads/scnet_roi_head.py:82
↓ 2 callersMethod_get_align_detr_targets_single
AlignDETR: Get label targets, label weights, and bbox weights based on `t`, the weighted geometric average of the confident score and
projects/AlignDETR/align_detr/align_detr_head.py:399
↓ 2 callersMethod_get_border
Get final border for the target size. This function generates a ``final_border`` according to image's shape. The area between ``final
mmdet/datasets/transforms/transforms.py:1942
↓ 2 callersFunction_get_config_module
Load a configuration as a python module.
mmdet/testing/_utils.py:32
↓ 2 callersMethod_get_fine_grained_point_feats
Sample fine grained feats from each level feature map and concatenate them together. Args: x (tuple[Tensor]): Feature map
mmdet/models/roi_heads/point_rend_roi_head.py:130
↓ 2 callersMethod_get_predictions
Post-process the output of head. Including softmax and set ``pred_label`` of data samples.
mmpretrain/models/heads/cls_head.py:137
↓ 2 callersMethod_get_src_permutation_idx
(self, indices)
projects/SparseInst/sparseinst/loss.py:76
↓ 2 callersMethod_get_unfold_size
(unfold: nn.Unfold, input_size)
mmpretrain/models/backbones/t2t_vit.py:169
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
projects/XDecoder/xdecoder/utils.py:18
↓ 2 callersFunction_imrenormalize
Re-normalize the image.
mmdet/models/utils/image.py:35
↓ 2 callersMethod_indices_of_rank
Slice the infinite indices by rank.
mmdet/datasets/samplers/multi_source_sampler.py:117
↓ 2 callersMethod_init_layers
Initialize layers of the head.
mmdet/models/dense_heads/condinst_head.py:766
↓ 2 callersMethod_init_predictor
Initialize predictor layers of the head.
projects/Detic/detic/centernet_rpn_head.py:32
↓ 2 callersFunction_interpolate_as
Interpolate the `source` (4D) to the shape of the `target`.
mmdet/models/utils/misc.py:69
↓ 2 callersMethod_load_bboxes
Private function to load bounding box annotations. Args: results (dict): Result dict from :obj:``mmengine.BaseDataset``.
mmdet/datasets/transforms/loading.py:271
↓ 2 callersMethod_load_labels
Private function to load label annotations. Args: results (dict): Result dict from :obj:``mmengine.BaseDataset``. Return
mmdet/datasets/transforms/loading.py:292
↓ 2 callersMethod_mask_forward
Mask head forward function used in both training and testing. Args: stage (int): The current stage in Cascade RoI Head.
projects/Detic/detic/detic_roi_head.py:197
↓ 2 callersMethod_mask_forward
Mask head forward function used in both training and testing. Args: stage (int): The current stage in Cascade RoI Head.
projects/Detic_new/detic/detic_roi_head.py:193
↓ 2 callersMethod_mask_predict_by_feat_single
Generate mask logits from mask features with dynamic convs. Args: mask_feat (Tensor): Mask prototype features. Ha
mmdet/models/dense_heads/rtmdet_ins_head.py:542
↓ 2 callersMethod_meshgrid
(self, x: Tensor, y: Tensor, row_major: bool = True)
mmdet/models/task_modules/prior_generators/point_generator.py:120
↓ 2 callersMethod_mosaic_combine
Calculate global coordinate of mosaic image and local coordinate of cropped sub-image. Args: loc (str): Index for the sub
mmdet/datasets/transforms/transforms.py:2441
↓ 2 callersMethod_parse_instance_info
parse instance information. Args: raw_ann_info (ElementTree): ElementTree object. minus_one (bool): Whether to subtra
mmdet/datasets/xml_style.py:114
↓ 2 callersMethod_parse_predictions
Parse panoptic segmentation predictions. Args: pred (dict): Panoptic segmentation predictions. img_id (int): Image id
mmdet/evaluation/metrics/coco_panoptic_metric.py:250
↓ 2 callersMethod_perform_precise_bn
perform precise bn.
mmpretrain/engine/hooks/precise_bn_hook.py:180
↓ 2 callersMethod_predict_by_feat_single
Transform a single image's features extracted from the head into mask results. Args: kernel_preds (Tensor): Dynamic kerne
mmdet/models/dense_heads/solov2_head.py:672
↓ 2 callersMethod_predict_by_feat_single
Transform a single image's features extracted from the head into mask results. Args: cls_scores (Tensor): Classification
mmdet/models/dense_heads/solo_head.py:512
↓ 2 callersMethod_predict_by_feat_single
Transform a single image's features extracted from the head into mask results. Args: cls_scores (Tensor): Classification
mmdet/models/dense_heads/solo_head.py:974
↓ 2 callersMethod_process_answer
(self, answer)
mmpretrain/evaluation/metrics/gqa.py:75
↓ 2 callersMethod_process_answer
(self, answer)
mmpretrain/evaluation/metrics/vqa.py:262
↓ 2 callersFunction_process_digit_article
(inText)
mmpretrain/evaluation/metrics/vqa.py:32
↓ 2 callersFunction_process_evaluator
(evaluator, name)
mmdet/testing/_utils.py:460
↓ 2 callersFunction_process_punctuation
(inText)
mmpretrain/evaluation/metrics/vqa.py:13
↓ 2 callersFunction_rand_masks
(rng, num_boxes, bboxes, img_w, img_h)
mmdet/testing/_utils.py:79
↓ 2 callersFunction_rand_masks
(num_items, bboxes, img_w, img_h)
tests/test_models/test_dense_heads/test_solov2_head.py:14
← previousnext →601–700 of 6,823, ranked by callers