MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 3 callersFunctionexpanduser
(path)
mmpretrain/datasets/multi_task.py:14
↓ 3 callersMethodextract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor, has shape (bs, dim, H, W). Returns: tuple[Tenso
mmdet/models/detectors/base_detr.py:227
↓ 3 callersMethodextract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor with shape (N, C, H ,W). Returns: tuple[Tensor]:
mmdet/models/detectors/two_stage.py:100
↓ 3 callersMethodextract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor with shape (N, C, H ,W). Returns: tuple[Tensor]:
mmdet/models/detectors/single_stage_instance_seg.py:51
↓ 3 callersMethodextract_feat
Extract features. Args: batch_inputs (Tensor): Image tensor with shape (N, C, H ,W). Returns: tuple[Tensor]:
mmdet/models/detectors/single_stage.py:136
↓ 3 callersMethodextract_feat
(self, inputs: torch.Tensor)
mmpretrain/models/selfsup/cae.py:423
↓ 3 callersMethodextract_feat
Extract features from the input tensor with shape (N, C, ...). Args: inputs (Tensor): A batch of inputs. The shape of it should b
mmpretrain/models/classifiers/image.py:128
↓ 3 callersMethodextract_feat
Extract features from the input tensor with shape (N, C, ...). Args: inputs (Tensor): A batch of inputs. The shape of it should b
mmpretrain/models/retrievers/image2image.py:159
↓ 3 callersMethodextract_feat
Extract features from the input tensor with shape (N, C, ..). Args: images (Tensor): A batch of images. The shape of it should be
mmpretrain/models/multimodal/blip/blip_vqa.py:91
↓ 3 callersMethodextract_feat
Extract features from the input dict. Args: images (tensor, optional): The images to extract features. Defaults t
mmpretrain/models/multimodal/blip/blip_retrieval.py:250
↓ 3 callersMethodextract_image_feat
The function to extract image latent features.
mmpretrain/models/multimodal/clip/clip.py:171
↓ 3 callersMethodextract_image_feat
The function to extract image latent features.
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:304
↓ 3 callersMethodextract_roi_feats
Extract roi features. Args: feats (list[Tensor]): list of multi-level image features. bboxes (list[Tensor]): list of
mmdet/models/tracking_heads/quasi_dense_track_head.py:63
↓ 3 callersMethodextract_roi_feats
Extract roi features. Args: feats (list[Tensor]): list of multi-level image features. bboxes (list[Tensor]): list of
mmdet/models/tracking_heads/roi_track_head.py:69
↓ 3 callersMethodextract_text_feat
The function to extract text latent features.
mmpretrain/models/multimodal/clip/clip.py:175
↓ 3 callersMethodextract_text_feat
The function to extract text latent features.
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:310
↓ 3 callersMethodflip_
Flip boxes horizontally or vertically in-place. Args: img_shape (Tuple[int, int]): A tuple of image height and width.
mmdet/structures/bbox/horizontal_boxes.py:118
↓ 3 callersFunctionformat_label
Convert various python types to label-format tensor. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`Sequence`, :
mmpretrain/structures/utils.py:24
↓ 3 callersMethodforward
Forward function. Args: inputs (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
mmdet/models/necks/fpn.py:161
↓ 3 callersMethodforward
(self, mlvl_feats, img_metas, dn_label_query=None,
projects/CO-DETR/codetr/co_dino_head.py:109
↓ 3 callersMethodforward_language
(self, texts, norm=False, with_toke
projects/XDecoder/xdecoder/language_model.py:101
↓ 3 callersMethodforward_transformer
Forward process of Transformer, which includes four steps: 'pre_transformer' -> 'encoder' -> 'pre_decoder' -> 'decoder'. We summarized
mmdet/models/detectors/base_detr.py:167
↓ 3 callersFunctionfp16_clamp
(x, min=None, max=None)
mmdet/structures/bbox/bbox_overlaps.py:5
↓ 3 callersFunctionfuse_bn
fuse conv and bn.
mmpretrain/models/backbones/repmlp.py:15
↓ 3 callersFunctiongather_feat
Gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord index. mask (Tenso
mmdet/models/utils/gaussian_target.py:234
↓ 3 callersFunctiongen_gaussian_target
Generate 2D gaussian heatmap. Args: heatmap (Tensor): Input heatmap, the gaussian kernel will cover on it and maintain the ma
mmdet/models/utils/gaussian_target.py:32
↓ 3 callersMethodgetVidIds
Get vid ids that satisfy given filter conditions. :param vidIds (int array) : get vids for given ids :param catIds (int array) : get
mmdet/evaluation/functional/ytvis.py:169
↓ 3 callersMethodget_cls_channels
Get custom classification channels. Args: num_classes (int): The number of classes. Returns: int: The custom
mmdet/models/losses/seesaw_loss.py:157
↓ 3 callersMethodget_data_info
(self, index)
tests/test_utils/test_benchmark.py:40
↓ 3 callersMethodget_data_info
(self, idx)
tests/test_datasets/test_samplers/test_multi_source_sampler.py:26
↓ 3 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (:
mmpretrain/models/multimodal/blip2/Qformer.py:340
↓ 3 callersMethodget_label_assignment
Get label assignment (from teacher). Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (
mmdet/models/dense_heads/lad_head.py:20
↓ 3 callersFunctionget_loading_pipeline
Only keep loading image and annotations related configuration. Args: pipeline (list[dict]): Data pipeline configs. Returns:
mmdet/datasets/utils.py:9
↓ 3 callersFunctionget_local_maximum
Extract local maximum pixel with given kernel. Args: heat (Tensor): Target heatmap. kernel (int): Kernel size of max pooling. Def
mmdet/models/utils/gaussian_target.py:190
↓ 3 callersMethodget_positive_map
(self, tokenized, tokens_positive)
mmdet/models/detectors/grounding_dino.py:115
↓ 3 callersMethodget_positive_map
(self, tokenized, tokens_positive)
mmdet/models/detectors/glip.py:244
↓ 3 callersMethodget_proposal_pos_embed
Get the position embedding of proposal.
projects/CO-DETR/codetr/transformer.py:362
↓ 3 callersMethodget_reference_points
Get the reference points used in decoder. Args: spatial_shapes (Tensor): The shape of all feature maps, has shape
projects/CO-DETR/codetr/transformer.py:319
↓ 3 callersFunctionget_results
(filename, dataset='coco', task='bbox', metric=None,
tools/analysis_tools/robustness_eval.py:168
↓ 3 callersMethodget_targets
Compute regression and classification targets in multiple images. Args: gt_bboxes (list[Tensor]): Ground truth bboxes for each im
mmdet/models/dense_heads/centernet_head.py:201
↓ 3 callersMethodget_targets
A wrapper for computing ATSS and FCOS targets for points in multiple images. Args: cls_scores (list[Tensor]): Box iou-awa
mmdet/models/dense_heads/vfnet_head.py:502
↓ 3 callersMethodget_targets
Get targets for ATSS head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent
projects/CO-DETR/codetr/co_atss_head.py:91
↓ 3 callersMethodget_tokens_and_prompts
Get the tokens positive and prompts for the caption.
mmdet/models/detectors/grounding_dino.py:67
↓ 3 callersMethodget_tokens_and_prompts
Get the tokens positive and prompts for the caption.
mmdet/models/detectors/glip.py:210
↓ 3 callersFunctionget_topk_from_heatmap
Get top k positions from heatmap. Args: scores (Tensor): Target heatmap with shape [batch, num_classes, height, width].
mmdet/models/utils/gaussian_target.py:207
↓ 3 callersMethodinference
Args: box_cls (Tensor): tensor of shape (batch_size, num_proposals, K). The tensor predicts the classification pr
projects/DiffusionDet/diffusiondet/head.py:706
↓ 3 callersMethodinit_weights
(self)
mmdet/rsprompter/models.py:737
↓ 3 callersFunctionisr_p
Importance-based Sample Reweighting (ISR_P), positive part. Args: cls_score (Tensor): Predicted classification scores. bbox_pred
mmdet/models/losses/pisa_loss.py:13
↓ 3 callersMethodload_anns
(self, ids)
projects/EfficientDet/efficientdet/tensorflow/api_wrappers/coco_api.py:46
↓ 3 callersMethodload_imgs
(self, ids)
projects/EfficientDet/efficientdet/tensorflow/api_wrappers/coco_api.py:52
↓ 3 callersMethodloss_by_feat
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/lad_head.py:152
↓ 3 callersMethodloss_by_feat
Loss function. Args: all_layers_cls_scores (Tensor): Classification scores of all decoder layers, has shape (num_
mmdet/models/dense_heads/ddq_detr_head.py:233
↓ 3 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: cls_scores (list[Tensor]): Box scores for
mmdet/models/dense_heads/rpn_head.py:99
↓ 3 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: cls_scores (Sequence[Tensor]): Box scores
mmdet/models/dense_heads/yolox_head.py:399
↓ 3 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: tl_heats (list[Tensor]): Top-left corner
mmdet/models/dense_heads/corner_head.py:525
↓ 3 callersMethodloss_by_feat
Calculate losses. Args: x_split (Tensor): The embed features belonging to key image. ref_x_split (Tensor): The embed
mmdet/models/tracking_heads/roi_embed_head.py:276
↓ 3 callersMethodloss_by_feat_single
Calculate the loss of a single scale level based on the features extracted by the detection head. Args: anchors (Tensor):
mmdet/models/dense_heads/ld_head.py:44
↓ 3 callersFunctionmask2bbox
Obtain tight bounding boxes of binary masks. Args: masks (Tensor): Binary mask of shape (n, h, w). Returns: Tensor: Bboxe wi
mmdet/structures/mask/utils.py:56
↓ 3 callersFunctionmask_matrix_nms
Matrix NMS for multi-class masks. Args: masks (Tensor): Has shape (num_instances, h, w) labels (Tensor): Labels of corresponding
mmdet/models/layers/matrix_nms.py:5
↓ 3 callersFunctionmse_loss
A Wrapper of MSE loss. Args: pred (Tensor): The prediction. target (Tensor): The learning target of the prediction. Returns:
mmdet/models/losses/mse_loss.py:13
↓ 3 callersFunctionnchw_to_nlc
Flatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
mmdet/models/layers/transformer/utils.py:36
↓ 3 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmdet/models/backbones/resnet.py:249
↓ 3 callersMethodpostprocess
Process the predictions and visualization results from ``forward`` and ``visualize``. This method should be responsible for the follo
mmpretrain/apis/base.py:260
↓ 3 callersMethodpre_logits
The process before the final classification head. The input ``feats`` is a tuple of tensor, and each tensor is the feature of a backb
mmpretrain/models/heads/cls_head.py:43
↓ 3 callersMethodpredict
Predict results from a batch of inputs and data samples with post- processing. Args: batch_inputs (Tensor): Inputs with s
mmdet/models/detectors/glip.py:316
↓ 3 callersMethodpredict_all
(self, feats, data_samples, num_images=None,
mmpretrain/models/multimodal/blip/blip_retrieval.py:499
↓ 3 callersMethodpredict_by_feat
predict_by_feat() is implemented in StageCascadeRPNHead.
mmdet/models/dense_heads/cascade_rpn_head.py:947
↓ 3 callersMethodpredict_by_feat
Transform a batch of output features extracted from the head into mask results. Args: mask_preds (tuple[Tensor]): Tuple o
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:218
↓ 3 callersMethodpreprocess
Process the inputs into a model-feedable format. Customize your preprocess by overriding this method. Preprocess should return an ite
projects/XDecoder/xdecoder/inference/texttoimage_regionretrieval_inferencer.py:66
↓ 3 callersFunctionprint_coco_results
(results)
tools/analysis_tools/robustness_eval.py:9
↓ 3 callersMethodprocess
transfer tensors in predictions to CPU.
mmdet/evaluation/metrics/dump_det_results.py:27
↓ 3 callersMethodrefine_bboxes
Refine bboxes through stages.
mmdet/models/dense_heads/cascade_rpn_head.py:751
↓ 3 callersFunctionregister_box
Register a box type. A record will be added to ``bbox_types``, whose key is the box type name and value is the box type itself. Simultaneousl
mmdet/structures/bbox/box_type.py:42
↓ 3 callersFunctionregister_box_converter
Register a box converter. A record will be added to ``box_converter``, whose key is '{src_type_name}2{dst_type_name}' and value is the conver
mmdet/structures/bbox/box_type.py:114
↓ 3 callersFunctionregister_hf_tokenizer
Register HuggingFace-style PreTrainedTokenizerBase class.
mmpretrain/models/utils/huggingface.py:13
↓ 3 callersFunctionreplace_ann
(pipeline)
mmdet/testing/_utils.py:443
↓ 3 callersFunctionreplace_img
(pipeline)
mmdet/testing/_utils.py:439
↓ 3 callersMethodrescale
See :func:`BaseInstanceMasks.rescale`.
mmdet/structures/mask/structures.py:298
↓ 3 callersFunctionrm_suffix
(s, suffix=None)
mmpretrain/datasets/utils.py:21
↓ 3 callersFunctionsamplelist_boxtype2tensor
(batch_data_samples: SampleList)
mmdet/models/utils/misc.py:443
↓ 3 callersFunctionscale_boxes
Expand an array of boxes by a given scale. Args: bboxes (Tensor): Shape (m, 4) scale (float): The scale factor of bboxes Ret
mmdet/models/task_modules/assigners/center_region_assigner.py:14
↓ 3 callersMethodseed_cuda
Fix seeds to allow for stochastic elements such as dropout to be reproduced exactly in activation recomputation in the backward pass.
mmpretrain/models/backbones/revvit.py:183
↓ 3 callersMethodset_gt_label
Set label of ``gt_label``.
mmdet/structures/reid_data_sample.py:81
↓ 3 callersFunctiontensor_split
(input: torch.Tensor, indices: list)
mmpretrain/structures/utils.py:13
↓ 3 callersMethodtile
(x, dim, n_tile)
mmpretrain/models/heads/vqa_head.py:180
↓ 3 callersMethodto
Overrides this method to set the :attr:`device` Args: device (int or torch.device, optional): The desired device of the
mmdet/models/data_preprocessors/data_preprocessor.py:535
↓ 3 callersFunctionwb_align
(file, pair_ls)
projects/RF100-Benchmark/scripts/log_extract.py:169
↓ 2 callersFunctionFeedForward
Feedforward layers. Args: mult (int): Layer expansion muliplier. Defaults to 4.
mmpretrain/models/multimodal/flamingo/modules.py:11
↓ 2 callersMethod__init__
(self, dataset, input_shape, logger, devic
tools/analysis_tools/optimize_anchors.py:84
↓ 2 callersMethod__init__
(self, transforms: List[dict], bbox_params: Optional[dict] = None,
mmdet/datasets/transforms/transforms.py:1602
↓ 2 callersMethod__init__
(self, in_channels, out_channels, num_blocks=6,
mmdet/models/necks/dyhead.py:145
↓ 2 callersMethod__init__
(self, num_scales: int, in_channels: List[int], out_channel
mmdet/models/necks/ssh.py:183
↓ 2 callersMethod__init__
(self, block, inplanes, planes, num_blocks
mmdet/models/backbones/detectors_resnet.py:146
↓ 2 callersMethod__init__
(self, scales=4, base_width=26, style='pytorch',
mmdet/models/backbones/res2net.py:303
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdet/models/backbones/trident_resnet.py:33
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size=1,
mmdet/models/backbones/csp_darknet.py:30
↓ 2 callersMethod__init__
( self, in_channels: int, out_channels: int, kernel_size: Union[int, Tuple[int
mmdet/models/dense_heads/cascade_rpn_head.py:50
↓ 2 callersMethod__init__
(self, in_channels: int, feat_channels: int, start_level: i
mmdet/models/dense_heads/condinst_head.py:739
↓ 2 callersMethod__init__
(self, *args, num_prototypes: int = 8, dyconv_channels: int
mmdet/models/dense_heads/rtmdet_ins_head.py:42
↓ 2 callersMethod__init__
( self, num_classes: int, in_channels: int, feat_channels: int = 256,
mmdet/models/dense_heads/solo_head.py:55
← previousnext →501–600 of 6,823, ranked by callers