Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KyanChen/RSPrompter
/ functions
Functions
6,823 in github.com/KyanChen/RSPrompter
⨍
Functions
6,823
◇
Types & classes
1,658
↳
Endpoints
29
↓ 1 callers
Method
_add_conv_branch
Add the fc branch which consists of a sequential of conv layers.
mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:143
↓ 1 callers
Method
_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmdet/models/tracking_heads/roi_embed_head.py:84
↓ 1 callers
Method
_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs. Args: num_branch_convs (int): The number of convoluational l
mmdet/models/tracking_heads/quasi_dense_embed_head.py:93
↓ 1 callers
Method
_add_fc_branch
Add the fc branch which consists of a sequential of fc layers.
mmdet/models/roi_heads/bbox_heads/double_bbox_head.py:155
↓ 1 callers
Function
_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
mmdet/utils/dist_utils.py:15
↓ 1 callers
Method
_apply_transforms
Apply ``self.transforms``. Args: inputs (list[dict, dict]): list of input data. Returns: list[dict]: The out
mmdet/datasets/transforms/wrappers.py:247
↓ 1 callers
Function
_average_precision
r"""Calculate the average precision for a single class. AP summarizes a precision-recall curve as the weighted mean of maximum precisions obt
mmpretrain/evaluation/metrics/multi_label.py:371
↓ 1 callers
Method
_bbox_decode
Decode the prediction to bounding box. Args: points (Tensor): shape (h_i * w_i, 2). bbox_pred (Tensor): shape (h_i *
mmdet/models/dense_heads/reppoints_head.py:865
↓ 1 callers
Method
_bbox_decode
Function to decode bbox. Args: priors (Tensor): Center proiors of an image, has shape (num_instances, 2).
mmdet/models/dense_heads/fovea_head.py:480
↓ 1 callers
Method
_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/htc_roi_head.py:71
↓ 1 callers
Method
_bbox_mask_post_process
bbox and mask post-processing method. The boxes would be rescaled to the original image scale and do the nms operation. Usually `with
mmdet/models/dense_heads/rtmdet_ins_head.py:425
↓ 1 callers
Method
_bbox_post_process
bbox post-processing method. The boxes would be rescaled to the original image scale and do the nms operation. Usually `with_nms` is
mmdet/models/dense_heads/base_dense_head.py:430
↓ 1 callers
Method
_bbox_post_process
bbox post-processing method. The boxes would be rescaled to the original image scale and do the nms operation. Usually `with_nms` is
mmdet/models/dense_heads/yolact_head.py:526
↓ 1 callers
Method
_bbox_post_process
bbox post-processing method. The boxes would be rescaled to the original image scale and do the nms operation. Usually `with_nms` is
mmdet/models/dense_heads/yolox_head.py:351
↓ 1 callers
Method
_bboxes_nms
bboxes nms.
mmdet/models/dense_heads/centernet_head.py:435
↓ 1 callers
Method
_bboxes_nms
bboxes nms.
mmdet/models/dense_heads/corner_head.py:830
↓ 1 callers
Method
_binary_cross_entropy
Args: cls_pred (Tensor): The prediction with shape (num_queries, 1, *) or (num_queries, *). gt_labels
mmdet/models/task_modules/assigners/match_cost.py:476
↓ 1 callers
Method
_binary_mask_dice_loss
Args: mask_preds (Tensor): Mask prediction in shape (num_queries, *). gt_masks (Tensor): Ground truth in shape (num_g
mmdet/models/task_modules/assigners/match_cost.py:410
↓ 1 callers
Method
_build_diffusion
(self)
projects/DiffusionDet/diffusiondet/head.py:234
↓ 1 callers
Method
_build_predictor
Initialize predictor layers of a single level head.
mmdet/models/dense_heads/yolox_head.py:182
↓ 1 callers
Function
_calculateAp_for_sample
(pred, target, mode)
mmpretrain/evaluation/metrics/retrieval.py:374
↓ 1 callers
Method
_check_branches
(self, num_branches, num_blocks, in_channels, num_channels)
mmdet/models/backbones/hrnet.py:49
↓ 1 callers
Method
_check_branches
(self, num_branches, num_blocks, in_channels, num_channels)
mmpretrain/models/backbones/hrnet.py:68
↓ 1 callers
Method
_check_policy
Check whether the sub-policy dict is available.
mmpretrain/datasets/transforms/auto_augment.py:242
↓ 1 callers
Method
_compat_classes
Merge the old style ``classes`` arguments to ``metainfo``.
mmpretrain/datasets/base_dataset.py:157
↓ 1 callers
Method
_compute_batch_pq_stats
Process gts and predictions when ``outfile_prefix`` is not set, gts are from dataset or a json file which is defined by ``ann_file``.
mmdet/evaluation/metrics/coco_panoptic_metric.py:309
↓ 1 callers
Method
_compute_gamma
Compute the value of gamma according to paper. gamma is the parameter of bernoulli distribution, which controls the number of features
mmdet/models/layers/dropblock.py:63
↓ 1 callers
Method
_compute_pred_stats
Parse semantic segmentation predictions. Args: pred_label (torch.tensor): Prediction segmentation map or predict
mmdet/evaluation/metrics/semseg_metric.py:140
↓ 1 callers
Method
_convert_conv_to_fc
convert conv_k1 to fc, which is still a conv_k2, and the k2 > k1.
mmpretrain/models/backbones/repmlp.py:285
↓ 1 callers
Method
_convert_hierarchy_tree
Get matrix of the corresponding relationship between the parent class and the child class. Args: hierarchy_map (dict): In
mmdet/datasets/openimages.py:241
↓ 1 callers
Method
_copy_paste
CopyPaste transform function. Args: dst_results (dict): Result dict of the destination image. src_results (dict): Res
mmdet/datasets/transforms/transforms.py:3107
↓ 1 callers
Method
_create_buffer
Compute the mask and the index of positive samples. Args: batch_size (int): The batch size. device (torch.device): Th
mmpretrain/models/selfsup/simclr.py:38
↓ 1 callers
Method
_create_dummy_results
(self)
tests/test_evaluation/test_metrics/test_crowdhuman_metric.py:13
↓ 1 callers
Method
_create_dummy_results
(self)
tests/test_evaluation/test_metrics/test_openimages_metric.py:14
↓ 1 callers
Method
_create_image_index
(self)
mmpretrain/datasets/visual_genome.py:46
↓ 1 callers
Method
_create_panoptic_data_samples
(self)
tests/test_evaluation/test_metrics/test_coco_panoptic_metric.py:110
↓ 1 callers
Method
_create_panoptic_gt_annotations
(self, ann_file, seg_map_dir)
tests/test_evaluation/test_metrics/test_coco_panoptic_metric.py:22
↓ 1 callers
Method
_crop_data
Function to randomly crop images, bounding boxes, masks, semantic segmentation maps. Args: results (dict): Result dict fr
mmdet/datasets/transforms/transforms.py:873
↓ 1 callers
Function
_cv2_show_wrong_tracks
Show the wrong tracks with opencv. Args: img (str or ndarray): The image to be displayed. bboxes (ndarray): A ndarray of shape (k
mmdet/utils/mot_error_visualize.py:32
↓ 1 callers
Method
_decode_heatmap
Transform outputs into detections raw bbox prediction. Args: center_heatmap_pred (Tensor): center predict heatmap,
mmdet/models/dense_heads/centernet_head.py:384
↓ 1 callers
Method
_del_block_plugins
delete plugins for block if exist. Args: plugin_names (list[str]): List of plugins name to delete.
mmdet/models/backbones/resnext.py:98
↓ 1 callers
Method
_dequeue_and_enqueue
Update queue.
mmpretrain/models/selfsup/densecl.py:84
↓ 1 callers
Method
_dequeue_and_enqueue
Update queue.
mmpretrain/models/selfsup/moco.py:75
↓ 1 callers
Method
_dequeue_and_enqueue
(self, image_feat, text_feat, idxs=None)
mmpretrain/models/heads/itc_head.py:138
↓ 1 callers
Method
_dequeue_and_enqueue2
Update queue2.
mmpretrain/models/selfsup/densecl.py:101
↓ 1 callers
Function
_do_paste_mask
Paste instance masks according to boxes. This implementation is modified from https://github.com/facebookresearch/detectron2/ Args:
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:400
↓ 1 callers
Method
_download
Download and extract data files.
mmpretrain/datasets/mnist.py:136
↓ 1 callers
Function
_dummy_bbox_sampling
Create sample results that can be passed to Head.get_targets.
tests/test_models/test_tracking_heads/test_roi_embed_head.py:12
↓ 1 callers
Function
_dummy_bbox_sampling
Create sample results that can be passed to Head.get_targets.
tests/test_models/test_tracking_heads/test_quasi_dense_embed_head.py:12
↓ 1 callers
Method
_expand_config_path
(metainfo: Model, config_prefix: Union[str, PathLike] = None)
mmpretrain/apis/model.py:68
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
mmpretrain/models/multimodal/blip2/modeling_opt.py:74
↓ 1 callers
Function
_expand_onehot_labels
(labels, label_weights, label_channels)
mmdet/models/losses/ghm_loss.py:10
↓ 1 callers
Function
_expand_onehot_labels
Expand onehot labels to match the size of prediction.
mmdet/models/losses/cross_entropy_loss.py:65
↓ 1 callers
Function
_fake_mask_feature_head
()
tests/test_models/test_dense_heads/test_condinst_head.py:24
↓ 1 callers
Function
_fake_mask_feature_head
()
tests/test_models/test_dense_heads/test_boxinst_head.py:25
↓ 1 callers
Function
_fake_proposals
Create a fake proposal list.
tests/test_models/test_tracking_heads/test_quasi_dense_track_head.py:13
↓ 1 callers
Method
_fill_pixels
Fill pixels to the patch of image.
mmpretrain/datasets/transforms/processing.py:605
↓ 1 callers
Method
_filter_boxes
Check whether the center of each box is in the patch. Args: patch (list[int]): The cropped area, [left, top, right, bottom].
mmdet/datasets/transforms/transforms.py:1961
↓ 1 callers
Function
_filter_gt_instances_by_score
Filter ground truth (GT) instances by score. Args: batch_data_samples (SampleList): The Data Samples. It usually includes inf
mmdet/models/utils/misc.py:471
↓ 1 callers
Function
_filter_gt_instances_by_size
Filter ground truth (GT) instances by size. Args: batch_data_samples (SampleList): The Data Samples. It usually includes info
mmdet/models/utils/misc.py:493
↓ 1 callers
Method
_find_samples
find samples from ``data_prefix``.
mmpretrain/datasets/custom.py:221
↓ 1 callers
Function
_fixed_scale_size
Rescale a size by a ratio. Args: size (tuple[int]): (w, h). scale (float | tuple(float)): Scaling factor. Returns: t
mmdet/datasets/transforms/transforms.py:42
↓ 1 callers
Method
_focal_loss_cost
Args: cls_pred (Tensor): Predicted classification logits, shape (num_queries, num_class). gt_labels (
mmdet/models/task_modules/assigners/match_cost.py:263
↓ 1 callers
Method
_focal_loss_cost
Args: cls_pred (Tensor): Predicted classification logits, shape (num_queries, num_class). gt_labels (
mmdet/models/task_modules/assigners/match_cost.py:337
↓ 1 callers
Method
_format_one_video_gts
Convert the annotation to the format of YouTube-VIS. This operation is to make it easier to use the official eval API. Args:
mmdet/evaluation/metrics/youtube_vis_metric.py:258
↓ 1 callers
Method
_format_one_video_preds
Convert the annotation to the format of YouTube-VIS. This operation is to make it easier to use the official eval API. Args:
mmdet/evaluation/metrics/youtube_vis_metric.py:199
↓ 1 callers
Method
_format_output
(self, x)
mmpretrain/models/backbones/vit_sam.py:604
↓ 1 callers
Method
_format_output
(self, x, hw)
mmpretrain/models/backbones/beit.py:602
↓ 1 callers
Method
_format_output
(self, x, hw)
mmpretrain/models/backbones/revvit.py:659
↓ 1 callers
Method
_format_output
(self, x, hw)
mmpretrain/models/backbones/t2t_vit.py:435
↓ 1 callers
Method
_format_output
(self, x, hw)
mmpretrain/models/backbones/vision_transformer.py:490
↓ 1 callers
Method
_format_output
(self, x, hw)
mmpretrain/models/backbones/deit.py:105
↓ 1 callers
Method
_forward
Network forward process. Usually includes backbone, neck and head forward without any post- processing.
mmdet/models/detectors/base.py:115
↓ 1 callers
Method
_forward
Network forward process. Usually includes backbone, neck and head forward without any post-processing. Args: inputs (Dic
mmdet/models/mot/base.py:130
↓ 1 callers
Method
_forward_cls_reg
Forward function for classification and regression parts. Args: x (Tensor): Input feature. Returns: tuple[Te
mmdet/models/roi_heads/bbox_heads/scnet_bbox_head.py:42
↓ 1 callers
Method
_forward_shared
Forward function for shared part. Args: x (Tensor): Input feature. Returns: Tensor: Shared feature.
mmdet/models/roi_heads/bbox_heads/scnet_bbox_head.py:18
↓ 1 callers
Method
_freeze_stages
(self)
mmdet/models/backbones/darknet.py:163
↓ 1 callers
Method
_freeze_stages
(self)
mmdet/models/backbones/csp_darknet.py:263
↓ 1 callers
Method
_freeze_stages
(self)
mmdet/models/backbones/swin.py:649
↓ 1 callers
Method
_freeze_stages
(self)
mmdet/models/backbones/efficientnet.py:405
↓ 1 callers
Method
_freeze_stages
(self)
mmdet/models/backbones/mobilenet_v2.py:168
↓ 1 callers
Method
_freeze_stages
(self)
mmdet/models/backbones/cspnext.py:172
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/vig.py:837
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/mobilenet_v3.py:204
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/edgenext.py:386
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/repvgg.py:599
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/vit_sam.py:545
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/xcit.py:689
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/beit.py:538
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/replknet.py:645
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/cspnet.py:376
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/van.py:398
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/tinyvit.py:760
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/swin_transformer.py:472
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/shufflenet_v2.py:256
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/davit.py:801
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/shufflenet_v1.py:244
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/hornet.py:461
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/efficientnet_v2.py:330
↓ 1 callers
Method
_freeze_stages
(self)
mmpretrain/models/backbones/mobileone.py:489
← previous
next →
1,101–1,200 of 6,823, ranked by callers