MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 2 callersMethodforward_transformer
( self, img_feats: Tuple[Tensor], text_dict: Dict, batch_data_samples: OptSamp
mmdet/models/detectors/grounding_dino.py:146
↓ 2 callersMethodfull_init
Loop to ``full_init`` each dataset.
mmdet/datasets/dataset_wrappers.py:91
↓ 2 callersMethodfull_init
Load annotation file and set ``BaseDataset._fully_initialized`` to True. If ``lazy_init=False``, ``full_init`` will be called during
mmdet/datasets/base_det_dataset.py:46
↓ 2 callersFunctionfuse_bn
Fuse the parameters in a branch with a conv and bn. Args: conv (nn.Conv2d): The convolution module to fuse. bn (nn.BatchNorm2d):
mmpretrain/models/backbones/replknet.py:92
↓ 2 callersFunctiongaussian_radius
r"""Generate 2D gaussian radius. This function is modified from the `official github repo <https://github.com/princeton-vl/CornerNet-Lite/blo
mmdet/models/utils/gaussian_target.py:68
↓ 2 callersFunctiongem
(x: Tensor, p: Parameter, eps: float = 1e-6, clamp=True)
mmpretrain/models/necks/gem.py:10
↓ 2 callersMethodgen_base_anchors
Generate base anchors. Returns: list(torch.Tensor): Base anchors of a feature grid in multiple \ feature levels.
mmdet/models/task_modules/prior_generators/anchor_generator.py:141
↓ 2 callersMethodgen_grid_from_reg
Base on the previous bboxes and regression values, we compute the regressed bboxes and generate the grids on the bboxes. Args:
mmdet/models/dense_heads/reppoints_head.py:239
↓ 2 callersMethodgen_single_level_base_anchors
Generate base anchors of a single level. Args: base_size (int | float): Basic size of an anchor. scales (torch.Tensor
mmdet/models/task_modules/prior_generators/anchor_generator.py:161
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
mmpretrain/models/backbones/vig.py:65
↓ 2 callersMethodget_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdet/models/dense_heads/guided_anchor_head.py:307
↓ 2 callersMethodget_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdet/models/dense_heads/sabl_retina_head.py:205
↓ 2 callersMethodget_cat_ids
(self, cat_names=[], sup_names=[], cat_ids=[])
projects/EfficientDet/efficientdet/tensorflow/api_wrappers/coco_api.py:32
↓ 2 callersFunctionget_class_names
(dataset)
projects/Detic/detic/utils.py:39
↓ 2 callersFunctionget_cls_group_ofs
Get `gt_group_of` of a certain class, which is used in Open Images. Args: annotations (list[dict]): Same as `eval_map()`. class_i
mmdet/evaluation/functional/mean_ap.py:504
↓ 2 callersMethodget_dataset_source
(self, idx: int)
mmdet/datasets/dataset_wrappers.py:250
↓ 2 callersMethodget_dn_targets
Get targets in denoising part for a batch of images. Args: batch_gt_instances (list[:obj:`InstanceData`]): Batch of
mmdet/models/dense_heads/dino_head.py:311
↓ 2 callersMethodget_encoder_reference_points
Get the reference points used in encoder. Args: spatial_shapes (Tensor): Spatial shapes of features in all levels,
mmdet/models/layers/transformer/deformable_detr_layers.py:83
↓ 2 callersMethodget_gt_masks
Get gt_masks originally or generated based on bboxes. If gt_masks is not contained in results, it will be generated based on gt_bboxe
mmdet/datasets/transforms/transforms.py:3067
↓ 2 callersMethodget_ignores
Get the number of ignore bboxes.
mmdet/evaluation/metrics/crowdhuman_metric.py:510
↓ 2 callersMethodget_image_rel_pos_bias
(self, image_position_ids, idx)
mmpretrain/models/multimodal/ofa/ofa_modules.py:1271
↓ 2 callersFunctionget_int
Convert bytes to int.
mmpretrain/datasets/mnist.py:181
↓ 2 callersMethodget_match_score
Get the match score. Args: bboxes (torch.Tensor): of shape (num_current_bboxes, 4) in [tl_x, tl_y, br_x, br_y] fo
mmdet/models/trackers/masktrack_rcnn_tracker.py:37
↓ 2 callersFunctionget_model
Get a pre-defined model or create a model from config. Args: model (str | Config): The name of model, the config file path or a
mmpretrain/apis/model.py:97
↓ 2 callersMethodget_pad_shape
(self, input_shape)
mmdet/models/layers/transformer/utils.py:163
↓ 2 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. batch_im
mmdet/models/dense_heads/reppoints_head.py:326
↓ 2 callersMethodget_positive_infos
Get positive information from sampling results. Returns: list[:obj:`InstanceData`]: Positive information of each image,
mmdet/models/dense_heads/condinst_head.py:394
↓ 2 callersMethodget_proposal_pos_embed
Get the position embedding of proposal.
projects/CO-DETR/codetr/transformer.py:686
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Borrowed from https://github.com/facebookresea
mmpretrain/models/backbones/vit_sam.py:78
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of query
projects/ViTDet/vitdet/vit.py:58
↓ 2 callersMethodget_rel_pos_bias
(self, x, idx)
mmpretrain/models/multimodal/ofa/ofa_modules.py:1262
↓ 2 callersMethodget_sampled_approxs
Get sampled approxs and inside flags according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map s
mmdet/models/dense_heads/guided_anchor_head.py:254
↓ 2 callersFunctionget_samples
Make dataset by walking all images under a root. Args: root (string): root directory of folders folder_to_idx (dict): the map fro
mmpretrain/datasets/custom.py:43
↓ 2 callersMethodget_subset_idx
(self, total_num)
mmpretrain/datasets/flamingo.py:48
↓ 2 callersMethodget_targets
(self, sampling_results: List[SamplingResult], batch_gt_instances: InstanceList,
mmdet/rsprompter/models.py:1700
↓ 2 callersMethodget_targets
Compute corresponding GT box and classification targets for proposals. Args: proposals_list (list[Tensor]): Multi level p
mmdet/models/dense_heads/reppoints_head.py:493
↓ 2 callersMethodget_targets
Generate corner targets. Including corner heatmap, corner offset. Optional: corner embedding, corner guiding shift, centripetal shif
mmdet/models/dense_heads/corner_head.py:337
↓ 2 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results. Args: sampling_results (List[obj
mmdet/models/tracking_heads/roi_embed_head.py:183
↓ 2 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results.". Args: sampling_results (List[:
mmdet/models/roi_heads/mask_heads/grid_head.py:264
↓ 2 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results. Almost the same as the implementation in bbo
mmdet/models/roi_heads/bbox_heads/dii_head.py:362
↓ 2 callersMethodget_text_embeds
(self, txts, name='grounding', norm=False)
projects/XDecoder/xdecoder/language_model.py:71
↓ 2 callersFunctionget_text_sine_pos_embed
generate sine position embedding from a position tensor Args: pos_tensor (torch.Tensor): shape: [..., n]. num_pos_feats (int): pro
mmdet/models/layers/transformer/utils.py:879
↓ 2 callersMethodget_tokens_positive_and_prompts
Get the tokens positive and prompts for the caption. Args: original_caption (str): The original caption, e.g. 'bench . car .'
mmdet/models/detectors/grounding_dino.py:121
↓ 2 callersMethodget_tokens_positive_and_prompts
( self, original_caption: Union[str, list, tuple], custom_entities: bool =
mmdet/models/detectors/glip.py:250
↓ 2 callersFunctionget_transform_idx
Returns the index of the transform in a pipeline. Args: pipeline (List[dict] | List[BaseTransform]): The transforms list. target
mmpretrain/datasets/transforms/utils.py:10
↓ 2 callersFunctionget_uncertainty
Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_preds' for t
mmdet/models/utils/point_sample.py:7
↓ 2 callersMethodget_zero_center_bbox_tensor
Get a tensor of bboxes centered at (0, 0). Returns: Tensor: Tensor of bboxes with shape (num_bboxes, 4) in [xmin, ymi
tools/analysis_tools/optimize_anchors.py:129
↓ 2 callersFunctiongetattr_recursive
Return nested attribute of obj Example: getattr_recursive(obj, 'a.b.c') is equivalent to obj.a.b.c
mmpretrain/models/multimodal/flamingo/utils.py:42
↓ 2 callersMethodgt_to_coco_json
Convert ground truth to coco format json file. Args: gt_dicts (Sequence[dict]): Ground truth of the dataset. outfile_
mmdet/evaluation/metrics/coco_metric.py:274
↓ 2 callersMethodgt_to_coco_json
Convert ground truth to coco format json file. Args: gt_dicts (Sequence[dict]): Ground truth of the dataset. outfile_
projects/EfficientDet/efficientdet/tensorflow/coco_90metric.py:246
↓ 2 callersMethodhard_mining
(self, inds, num_expected, bboxes, labels, feats)
mmdet/models/task_modules/samplers/ohem_sampler.py:34
↓ 2 callersMethodhbox2corner
Convert box coordinates from (x1, y1, x2, y2) to corners ((x1, y1), (x2, y1), (x1, y2), (x2, y2)). Args: boxes (Tensor):
mmdet/structures/bbox/horizontal_boxes.py:205
↓ 2 callersFunctionimrenormalize
Re-normalize the image. Args: img (Tensor | ndarray): Input image. If the input is a Tensor, the shape is (1, C, H, W). If th
mmdet/models/utils/image.py:10
↓ 2 callersMethodinit_weights
(self)
mmdet/models/tracking_heads/mask2former_track_head.py:164
↓ 2 callersMethodinstance_postprocess
Instance segmengation postprocess. Args: mask_cls (Tensor): Classfication outputs of shape (num_queries, cls_out_
mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py:126
↓ 2 callersFunctionis_located_in
Are points located in bboxes. Args: points (Tensor): Points, shape: (m, 2). bboxes (Tensor): Bounding boxes, shape: (n, 4).
mmdet/models/task_modules/assigners/center_region_assigner.py:41
↓ 2 callersFunctionjitter_color
Randomly jitter the given color in order to better distinguish instances with the same class. Args: color (tuple): The RGB color tupl
mmdet/visualization/palette.py:95
↓ 2 callersMethodk_step_observation
return the observation k step away before.
mmdet/models/trackers/ocsort_tracker.py:143
↓ 2 callersMethodkmeans_maximization
Maximization part of EM algorithm(Expectation-Maximization)
tools/analysis_tools/optimize_anchors.py:211
↓ 2 callersFunctionl2_loss
L2 loss. Args: pred (torch.Tensor): The prediction. target (torch.Tensor): The learning target of the prediction. Returns:
mmdet/models/losses/l2_loss.py:14
↓ 2 callersMethodload_anns
Load anns with the specified ids. ``self.anns`` is a list of annotation lists instead of a list of annotations. Args:
mmdet/datasets/api_wrappers/coco_api.py:115
↓ 2 callersMethodload_cats
(self, ids)
mmdet/datasets/api_wrappers/coco_api.py:41
↓ 2 callersMethodload_data_list
Load annotations from an annotation file named as ``self.ann_file`` Returns: List[dict]: A list of annotation.
mmdet/datasets/lvis.py:273
↓ 2 callersFunctionlog_img_scale
Log image size. Args: img_scale (tuple): Image size to be logged. shape_order (str, optional): The order of image shape.
mmdet/utils/logger.py:20
↓ 2 callersMethodloss
Perform forward propagation and loss calculation of the detection head on the features of the upstream network. Args: x (
mmdet/models/dense_heads/cascade_rpn_head.py:951
↓ 2 callersMethodloss
Calculate the loss in a batch. Args: bbox_feats (Tensor): of shape [N, C, H, W]. N is the number of bboxes.
mmdet/models/tracking_heads/roi_embed_head.py:231
↓ 2 callersMethodloss
Perform forward propagation and loss calculation of the detection roi on the features of the upstream network. Args: x (t
mmdet/models/roi_heads/scnet_roi_head.py:357
↓ 2 callersMethodloss
Args: batch_inputs (Tensor): Input images of shape (N, C, H, W). These should usually be mean centered and std sc
mmdet/models/detectors/lad.py:64
↓ 2 callersMethodloss
Calculate losses from multi-branch inputs and data samples. Args: multi_batch_inputs (Dict[str, Tensor]): The dict of multi-branc
mmdet/models/detectors/semi_base.py:62
↓ 2 callersMethodloss
generate train_loss from the input tensor and data_samples. Args: images (Tensor): A batch of images. The shape of it should be
mmpretrain/models/multimodal/blip/blip_vqa.py:117
↓ 2 callersMethodloss_and_predict
Perform forward propagation of the head, then calculate loss and predictions from the features and data samples. Args: x
projects/Detic_new/detic/centernet_rpn_head.py:262
↓ 2 callersMethodloss_boxes
(self, outputs, batch_gt_instances, indices)
projects/DiffusionDet/diffusiondet/loss.py:111
↓ 2 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/reppoints_head.py:656
↓ 2 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the mask head. Args: mlvl_kernel_preds (list[Tensor]): Multi-level dynamic
mmdet/models/dense_heads/solov2_head.py:496
↓ 2 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/guided_anchor_head.py:681
↓ 2 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/autoassign_head.py:319
↓ 2 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/paa_head.py:65
↓ 2 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the detection head.
mmdet/models/dense_heads/base_dense_head.py:127
↓ 2 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/ssd_head.py:279
↓ 2 callersMethodloss_by_feat
Compute losses of the head. Args: center_heatmap_preds (list[Tensor]): center predict heatmaps for all levels with
mmdet/models/dense_heads/centernet_head.py:127
↓ 2 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: pred_maps (list[Tensor]): Prediction map
mmdet/models/dense_heads/yolo_head.py:289
↓ 2 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/anchor_head.py:467
↓ 2 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the mask head. Args: mask_preds (list[Tensor]): List of predicted masks, ea
mmdet/models/dense_heads/boxinst_head.py:79
↓ 2 callersMethodloss_by_feat
Compute losses of the head. Args: anchor_list (list[list[Tensor]]): Multi level anchors of each image.
mmdet/models/dense_heads/cascade_rpn_head.py:532
↓ 2 callersMethodloss_by_feat
loss_by_feat() is implemented in StageCascadeRPNHead.
mmdet/models/dense_heads/cascade_rpn_head.py:943
↓ 2 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/fovea_head.py:190
↓ 2 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/free_anchor_retina_head.py:66
↓ 2 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/centernet_update_head.py:165
↓ 2 callersMethodloss_by_feat
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_poin
mmdet/models/dense_heads/fsaf_head.py:209
↓ 2 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/yolof_head.py:129
↓ 2 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/atss_head.py:253
↓ 2 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/centripetal_head.py:213
↓ 2 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the mask head. Args: mask_preds (list[Tensor]): List of predicted masks, ea
mmdet/models/dense_heads/condinst_head.py:989
↓ 2 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: cls_scores (list[Tensor]): Cls and qualit
mmdet/models/dense_heads/gfl_head.py:327
↓ 2 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/ddod_head.py:311
↓ 2 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/pisa_retinanet_head.py:25
↓ 2 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/sabl_retina_head.py:493
↓ 2 callersMethodloss_by_feat
Loss function. Only outputs from the last feature level are used for computing losses by default. Args: all_laye
mmdet/models/dense_heads/detr_head.py:191
↓ 2 callersMethodloss_classification
(self, outputs, batch_gt_instances, indices)
projects/DiffusionDet/diffusiondet/loss.py:87
↓ 2 callersMethodloss_dn
Calculate denoising loss. Args: all_layers_denoising_cls_scores (Tensor): Classification scores of all decoder la
mmdet/models/dense_heads/dino_head.py:168
← previousnext →801–900 of 6,823, ranked by callers