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
_process_input
Scatter the broadcasting targets to a list of inputs of the wrapped transforms. Args: data (dict): The original input dat
mmdet/datasets/transforms/wrappers.py:232
↓ 1 callers
Method
_process_masks
Process gt_masks and filter invalid polygons. Args: results (dict): Result dict from :obj:``mmengine.BaseDataset``. Retu
mmdet/datasets/transforms/loading.py:336
↓ 1 callers
Method
_process_output
Gathering and renaming data items. Args: output_scatters (list[dict, dict]): The output of the wrapped pipeline.
mmdet/datasets/transforms/wrappers.py:262
↓ 1 callers
Method
_process_predictions
Process results of the corresponding class of the detection bboxes. Note: It will choose to do the following two processing according to
mmdet/evaluation/metrics/openimages_metric.py:87
↓ 1 callers
Function
_rand_bboxes
(num_boxes, h, w)
tests/test_engine/test_hooks/test_visualization_hook.py:16
↓ 1 callers
Method
_rand_offset
Randomly generate crop offset. Args: margin (Tuple[int, int]): The upper bound for the offset generated randomly.
mmdet/datasets/transforms/transforms.py:957
↓ 1 callers
Method
_rand_params
Get random parameters including magnitudes and indices of transforms.
mmpretrain/datasets/transforms/processing.py:957
↓ 1 callers
Method
_random_disable
Randomly disable the transform.
mmdet/datasets/transforms/colorspace.py:71
↓ 1 callers
Method
_random_disable
Randomly disable the transform.
mmdet/datasets/transforms/geometric.py:150
↓ 1 callers
Method
_random_flags
(self)
mmdet/datasets/transforms/transforms.py:1124
↓ 1 callers
Method
_random_jitter
Ramdom jitter positive proposals for training. Args: sampling_results (List[obj:SamplingResult]): Assign results of
mmdet/models/roi_heads/grid_roi_head.py:38
↓ 1 callers
Method
_random_left_top
(self, ratio: float, h: int, w: int)
mmdet/datasets/transforms/transforms.py:1270
↓ 1 callers
Method
_random_mode
(self)
mmdet/datasets/transforms/transforms.py:1386
↓ 1 callers
Method
_random_permutation
(self)
mmdet/datasets/transforms/wrappers.py:142
↓ 1 callers
Method
_random_prob
(self)
mmdet/datasets/transforms/transforms.py:636
↓ 1 callers
Method
_random_prob
(self)
mmdet/datasets/transforms/transforms.py:1262
↓ 1 callers
Method
_random_ratio
(self)
mmdet/datasets/transforms/transforms.py:1266
↓ 1 callers
Function
_recalls
(all_ious, proposal_nums, thrs)
mmdet/evaluation/functional/recall.py:11
↓ 1 callers
Method
_record_homography_matrix
Record the homography matrix for the RandomFlip.
mmdet/datasets/transforms/transforms.py:549
↓ 1 callers
Method
_record_homography_matrix
Record the homography matrix for the geometric transformation.
mmdet/datasets/transforms/geometric.py:141
↓ 1 callers
Method
_refine_roi
Multi-stage refinement of RoI. Args: x (tuple[Tensor]): List of multi-level img features. rois (Tensor): shape (n, 5)
projects/Detic/detic/detic_roi_head.py:39
↓ 1 callers
Method
_refine_roi
Multi-stage refinement of RoI. Args: x (tuple[Tensor]): List of multi-level img features. rois (Tensor): shape (n, 5)
projects/Detic_new/detic/detic_roi_head.py:62
↓ 1 callers
Method
_register_state_dict_hooks
Register state dict hooks. Register state dict saving hooks to save only the lora parameters to the state dict. And register state di
mmpretrain/models/peft/lora.py:167
↓ 1 callers
Method
_replace_module
Replace target layer with LoRA linear layer in place.
mmpretrain/models/peft/lora.py:149
↓ 1 callers
Method
_reset_parameters
(self)
mmdet/models/utils/vlfuse_helper.py:122
↓ 1 callers
Method
_reset_parameters
(self)
projects/XDecoder/xdecoder/transformer_blocks.py:245
↓ 1 callers
Method
_reset_parameters
(self)
projects/XDecoder/xdecoder/transformer_blocks.py:319
↓ 1 callers
Method
_reset_parameters
(self)
projects/XDecoder/xdecoder/transformer_blocks.py:397
↓ 1 callers
Method
_reset_parameters
(self)
projects/XDecoder/xdecoder/pixel_decoder.py:38
↓ 1 callers
Method
_reshape
Reshape HOG Features for output.
mmpretrain/models/selfsup/maskfeat.py:68
↓ 1 callers
Method
_resize_img
Resize images with ``results['scale']``.
mmpretrain/datasets/transforms/processing.py:823
↓ 1 callers
Method
_sample_neg
Sample negative samples.
mmdet/models/task_modules/samplers/base_sampler.py:44
↓ 1 callers
Method
_sample_neg
Randomly sample some negative samples. Args: assign_result (:obj:`AssignResult`): Bbox assigning results. num_expecte
mmdet/models/task_modules/samplers/multi_instance_random_sampler.py:46
↓ 1 callers
Method
_sample_neg
Sample negative samples. Score-HLR sampler is done in the following steps: 1. Take the maximum positive score prediction of each nega
mmdet/models/task_modules/samplers/score_hlr_sampler.py:122
↓ 1 callers
Method
_sample_pos
Sample positive samples.
mmdet/models/task_modules/samplers/base_sampler.py:38
↓ 1 callers
Method
_sample_pos
Randomly sample some positive samples. Args: assign_result (:obj:`AssignResult`): Bbox assigning results. num_expecte
mmdet/models/task_modules/samplers/multi_instance_random_sampler.py:26
↓ 1 callers
Method
_sample_pos
Randomly sample some positive samples. Args: assign_result (:obj:`AssignResult`): Bbox assigning results. num_expecte
mmdet/models/task_modules/samplers/score_hlr_sampler.py:105
↓ 1 callers
Method
_select_object
Select some objects from the source results.
mmdet/datasets/transforms/transforms.py:3087
↓ 1 callers
Method
_set_decoder_layers
Set decoder layers according to attribute name.
mmpretrain/models/multimodal/flamingo/adapter.py:63
↓ 1 callers
Method
_set_grad_false
(self, module_list=[])
mmdet/rsprompter/models.py:77
↓ 1 callers
Method
_set_grad_false
(self, module_list=[])
mmdet/rsprompter/models.py:197
↓ 1 callers
Method
_set_lora_trainable
Set only the lora parameters trainable.
mmpretrain/models/peft/lora.py:159
↓ 1 callers
Method
_set_things_to_void
Merge thing classes to one class. In PanopticFPN, the background labels will be reset from `0` to `self.num_stuff_classes-1`, the for
mmdet/models/seg_heads/panoptic_fpn_head.py:87
↓ 1 callers
Function
_single_tensor_adan
( params: List[Tensor], grads: List[Tensor], exp_avgs: List[Tensor], exp_avg_sqs: List[Tensor]
mmpretrain/engine/optimizers/adan_t.py:201
↓ 1 callers
Method
_slice_pos_feats
Get features from pos rois. Args: feats (Tensor): Input features. sampling_results (list["obj:`SamplingResult`]): Sam
mmdet/models/roi_heads/scnet_roi_head.py:106
↓ 1 callers
Function
_str_to_torch_dtype
mapping str format dtype to torch.dtype.
mmpretrain/datasets/transforms/processing.py:31
↓ 1 callers
Method
_switch_batch_augments
switch the train augments.
mmpretrain/engine/hooks/switch_recipe_hook.py:124
↓ 1 callers
Method
_switch_loss
switch the loss module.
mmpretrain/engine/hooks/switch_recipe_hook.py:158
↓ 1 callers
Method
_switch_train_pipeline
switch the train loader dataset pipeline.
mmpretrain/engine/hooks/switch_recipe_hook.py:133
↓ 1 callers
Method
_test_aug
Around padding the original image without cropping. The padding mode and value are from ``test_pad_mode``. Args: results
mmdet/datasets/transforms/transforms.py:2102
↓ 1 callers
Function
_to_cfgnode_list
Convert the key and value of mmengine.ConfigDict into a list. Args: cfg (ConfigDict): The detectron2 model config. config_list (l
mmdet/models/detectors/d2_wrapper.py:26
↓ 1 callers
Method
_train_aug
Random crop and around padding the original image. Args: results (dict): Image infomations in the augment pipeline. Retu
mmdet/datasets/transforms/transforms.py:2028
↓ 1 callers
Method
_transform_bboxes
Random erasing the bboxes.
mmdet/datasets/transforms/transforms.py:3283
↓ 1 callers
Method
_transform_bboxes
Transform the bboxes.
mmdet/datasets/transforms/geometric.py:136
↓ 1 callers
Method
_transform_img
Transform the image.
mmdet/datasets/transforms/colorspace.py:66
↓ 1 callers
Method
_transform_img
Random erasing the image.
mmdet/datasets/transforms/transforms.py:3277
↓ 1 callers
Method
_transform_img
Transform the image.
mmdet/datasets/transforms/geometric.py:120
↓ 1 callers
Method
_transform_masks
Random erasing the masks.
mmdet/datasets/transforms/transforms.py:3303
↓ 1 callers
Method
_transform_masks
Transform the masks.
mmdet/datasets/transforms/geometric.py:124
↓ 1 callers
Method
_transform_seg
Random erasing the segmentation map.
mmdet/datasets/transforms/transforms.py:3310
↓ 1 callers
Method
_transform_seg
Transform the segmentation map.
mmdet/datasets/transforms/geometric.py:128
↓ 1 callers
Method
_update_palette
Update palette after loading metainfo. If length of palette is equal to classes, just return the palette. If palette is not defined,
mmdet/datasets/base_semseg_dataset.py:182
↓ 1 callers
Function
add_decomposed_rel_pos
Borrowed from https://github.com/facebookresearch/segment-anything/ Calculate decomposed Relative Positional Embeddings from :paper:`mvitv2`.
mmpretrain/models/backbones/vit_sam.py:117
↓ 1 callers
Function
add_decomposed_rel_pos
Spatial Relative Positional Embeddings.
mmpretrain/models/backbones/mvit.py:57
↓ 1 callers
Function
add_decomposed_rel_pos
Args: attn (Tensor): attention map. q (Tensor): query q in the attention layer with shape (B, q_h * q_w, C).
projects/ViTDet/vitdet/vit.py:93
↓ 1 callers
Method
add_mask_to_image
( self, image: np.ndarray, data_sample: DataSample, resize: Union[int, Tuple[i
mmpretrain/visualization/visualizer.py:259
↓ 1 callers
Function
add_mim_extension
Add extra files that are required to support MIM into the package. These files will be added by creating a symlink to the originals if the pa
setup.py:134
↓ 1 callers
Function
add_plot_parser
(subparsers)
tools/analysis_tools/analyze_logs.py:101
↓ 1 callers
Method
add_pred_to_datasample
Add predictions to `DetDataSample`. Args: data_samples (list[:obj:`DetDataSample`], optional): A batch of data sa
mmdet/models/detectors/maskformer.py:112
↓ 1 callers
Method
add_pred_to_datasample
Add predictions to `DetDataSample`. Args: data_samples (list[:obj:`DetDataSample`]): The annotation data of every
mmdet/models/detectors/panoptic_two_stage_segmentor.py:215
↓ 1 callers
Function
add_time_parser
(subparsers)
tools/analysis_tools/analyze_logs.py:139
↓ 1 callers
Method
adjust_width_group
Adjusts the compatibility of widths and groups. Args: widths (list[int]): Width of each stage. bottleneck_ratio (floa
mmdet/models/backbones/regnet.py:297
↓ 1 callers
Method
adjust_width_group
Adjusts the compatibility of widths and groups. Args: widths (list[int]): Width of each stage. bottleneck_ratio (floa
mmpretrain/models/backbones/regnet.py:253
↓ 1 callers
Function
ae_loss_per_image
Associative Embedding Loss in one image. Associative Embedding Loss including two parts: pull loss and push loss. Pull loss makes embedding v
mmdet/models/losses/ae_loss.py:9
↓ 1 callers
Method
after_test_iter
Run after every testing iteration. Args: runner (:obj:`Runner`): The runner of the testing process. batch_idx (int):
mmdet/engine/hooks/visualization_hook.py:247
↓ 1 callers
Method
after_val_iter
Run after every ``self.interval`` validation iterations. Args: runner (:obj:`Runner`): The runner of the validation process.
mmdet/engine/hooks/visualization_hook.py:76
↓ 1 callers
Method
albu_builder
Import a module from albumentations. It inherits some of :func:`build_from_cfg` logic. Args: cfg (dict): Config dict. It
mmpretrain/datasets/transforms/processing.py:1196
↓ 1 callers
Function
align_ts_output
(inputs, metainfo, device)
tools/deployment/test_torchserver.py:37
↓ 1 callers
Function
aligned_box_iou
(boxes1: torch.Tensor, boxes2: torch.Tensor)
mmpretrain/evaluation/metrics/visual_grounding_eval.py:11
↓ 1 callers
Function
all_reduce_dict
Apply all reduce function for python dict object. The code is modified from https://github.com/Megvii- BaseDetection/YOLOX/blob/main/yolox/ut
mmdet/utils/dist_utils.py:89
↓ 1 callers
Function
analyze_per_img_dets
Analyze detection results on each image. Args: confusion_matrix (ndarray): The confusion matrix, has shape (num_classes + 1,
tools/analysis_tools/confusion_matrix.py:93
↓ 1 callers
Function
analyze_results
(res_file, ann_file, res_types, out_dir,
tools/analysis_tools/coco_error_analysis.py:235
↓ 1 callers
Method
anchor_center
Get anchor centers from anchors. Args: anchors (Tensor): Anchor list with shape (N, 4), "xyxy" format. Returns:
mmdet/models/dense_heads/tood_head.py:316
↓ 1 callers
Method
any_requires_grad
(self, x)
mmpretrain/models/backbones/densenet.py:57
↓ 1 callers
Method
apply_deltas
Apply transformation `deltas` (dx, dy, dw, dh) to `boxes`. Args: deltas (Tensor): transformation deltas of shape (N, k*4),
projects/DiffusionDet/diffusiondet/head.py:937
↓ 1 callers
Method
apply_lora
Apply LoRA to target layers.
mmpretrain/models/peft/lora.py:123
↓ 1 callers
Method
assign_fpn_level
Inputs: boxes: n x 4 size_ranges: L x 2 Return: is_cared_in_the_level: n x L
projects/Detic_new/detic/centernet_rpn_head.py:478
↓ 1 callers
Method
assign_ids
(self, match_scores: Tensor)
mmdet/models/trackers/masktrack_rcnn_tracker.py:78
↓ 1 callers
Method
assign_one_hot_gt_indices
Assign only one gt index to each prior box. Gts with large gt_priority are more likely to be assigned. Args: is_prior_in
mmdet/models/task_modules/assigners/center_region_assigner.py:286
↓ 1 callers
Function
asymmetric_loss
r"""asymmetric loss. Please refer to the `paper <https://arxiv.org/abs/2009.14119>`__ for details. Args: pred (torch.Tensor): Th
mmpretrain/models/losses/asymmetric_loss.py:9
↓ 1 callers
Method
attention
(self, x: torch.Tensor, key_padding_mask: torch.Tensor = None)
projects/XDecoder/xdecoder/language_model.py:233
↓ 1 callers
Method
attention_masking
Generate attention mask for MILAN. This is what is different from MAEViT, which uses random masking. Attention masking generates atte
mmpretrain/models/selfsup/milan.py:62
↓ 1 callers
Method
attention_pool
Extract direction-specific features fx and fy with attention methanism.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:236
↓ 1 callers
Method
aug_box
Augment bboxes with jitter.
mmdet/models/detectors/soft_teacher.py:358
↓ 1 callers
Method
aug_test_bboxes
Test det bboxes with test time augmentation, can be applied in DenseHead except for ``RPNHead`` and its variants, e.g., ``GARPNHead``,
mmdet/models/dense_heads/dense_test_mixins.py:53
↓ 1 callers
Method
aug_test_rpn
Test with augmentation for only for ``RPNHead`` and its variants, e.g., ``GARPNHead``, etc. Args: feats (tuple[Tensor]):
mmdet/models/dense_heads/dense_test_mixins.py:135
↓ 1 callers
Method
average_multiple_runs
Average the results of multiple runs.
mmdet/utils/benchmark.py:116
↓ 1 callers
Function
average_precision
Calculate average precision (for single or multiple scales). Args: recalls (ndarray): shape (num_scales, num_dets) or (num_dets, )
mmdet/evaluation/functional/mean_ap.py:13
↓ 1 callers
Function
balanced_l1_loss
Calculate balanced L1 loss. Please see the `Libra R-CNN <https://arxiv.org/pdf/1904.02701.pdf>`_ Args: pred (torch.Tensor): The pred
mmdet/models/losses/balanced_l1_loss.py:11
↓ 1 callers
Function
basic_blocks
generate RIFormer blocks for a stage.
mmpretrain/models/backbones/riformer.py:132
← previous
next →
1,401–1,500 of 6,823, ranked by callers