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
predict_generate
Predict answers in a generation manner.
mmpretrain/models/heads/vqa_head.py:215
↓ 1 callers
Method
predict_mask
( self, x: Tuple[Tensor], batch_img_metas: List[dict], results_list: InstanceL
mmdet/rsprompter/models.py:1511
↓ 1 callers
Method
predict_mask
Perform forward propagation of the mask head and predict detection results on the features of the upstream network. Args:
mmdet/models/roi_heads/htc_roi_head.py:448
↓ 1 callers
Method
predict_noise_from_start
(self, x_t, t, x0)
projects/DiffusionDet/diffusiondet/head.py:700
↓ 1 callers
Method
predict_query_head
(self, mlvl_feats: Tuple[Tensor], batch_data_samples: Sa
projects/CO-DETR/codetr/codetr.py:285
↓ 1 callers
Method
predict_rank
Predict rank in a close-set answer list.
mmpretrain/models/heads/vqa_head.py:138
↓ 1 callers
Method
predict_roi_head
(self, mlvl_feats: Tuple[Tensor], batch_data_samples: Sample
projects/CO-DETR/codetr/codetr.py:292
↓ 1 callers
Function
prefetch_batch_input_shape
(model: nn.Module, ori_wh: Tuple[int, int])
demo/video_gpuaccel_demo.py:47
↓ 1 callers
Function
prefilter_boxes
(boxes, scores, labels, weights, thr)
mmdet/models/utils/wbf.py:134
↓ 1 callers
Method
prepare_data
Get data processed by ''self.pipeline''. Args: idx (int): The index of ''data_info'' Returns: Any: Depends o
mmdet/datasets/reid_dataset.py:63
↓ 1 callers
Method
prepare_data
Get data processed by ``self.pipeline``. Args: idx (int): The index of ``data_info``. Returns: Any: Depends
mmpretrain/datasets/multi_task.py:278
↓ 1 callers
Method
prepare_diffusion
(self, gt_boxes, image_size)
projects/DiffusionDet/diffusiondet/head.py:379
↓ 1 callers
Function
prepare_instance_annotations
(dataset_dir: str)
tools/dataset_converters/ade20k2coco.py:64
↓ 1 callers
Function
prepare_panoptic_annotations
(dataset_dir: str)
tools/dataset_converters/ade20k2coco.py:159
↓ 1 callers
Method
prepare_testing_targets
(self, batch_img_metas, device)
projects/DiffusionDet/diffusiondet/head.py:667
↓ 1 callers
Method
prepare_text_prototype
The function to prepare text prototypes with prompt.
mmpretrain/models/multimodal/clip/clip.py:350
↓ 1 callers
Method
prepare_text_prototype
The function to prepare text prototypes with prompt.
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:397
↓ 1 callers
Method
prepare_training_targets
(self, batch_data_samples)
projects/DiffusionDet/diffusiondet/head.py:341
↓ 1 callers
Method
preprocess
Process the inputs into a model-feedable format. Customize your preprocess by overriding this method. Preprocess should return an ite
mmdet/apis/det_inferencer.py:236
↓ 1 callers
Method
preprocess
Process the inputs into a model-feedable format. Customize your preprocess by overriding this method. Preprocess should return an ite
mmpretrain/apis/base.py:201
↓ 1 callers
Method
preprocess
(self, inputs: List[InputType], batch_size: int = 1)
mmpretrain/apis/feature_extractor.py:95
↓ 1 callers
Method
preprocess_gt
Preprocess the ground truth for all images. It aims to reorganize the `gt`. For example, in the `batch_data_sample.gt_instances.mask`
mmdet/models/tracking_heads/mask2former_track_head.py:175
↓ 1 callers
Method
preprocess_text
(self, data_samples, batch_size, device)
mmpretrain/models/multimodal/ofa/ofa.py:258
↓ 1 callers
Method
preprocess_text
(self, data_samples)
mmpretrain/models/multimodal/blip/blip_retrieval.py:180
↓ 1 callers
Method
preprocess_text
Preprocess text in advance before fed into language model. Args: data_samples (List[DataSample]): The annotation
mmpretrain/models/multimodal/llava/llava.py:198
↓ 1 callers
Method
preprocess_text
Preprocess text in advance before fed into language model. Args: data_samples (List[DataSample]): The annotation
mmpretrain/models/multimodal/flamingo/flamingo.py:238
↓ 1 callers
Function
print_map_summary
Print mAP and results of each class. A table will be printed to show the gts/dets/recall/AP of each class and the mAP. Args: mea
mmdet/evaluation/functional/mean_ap.py:726
↓ 1 callers
Function
print_panoptic_table
Print the panoptic evaluation results table. Args: pq_results(dict): The Panoptic Quality results. classwise_results(dict, option
mmdet/evaluation/metrics/coco_panoptic_metric.py:578
↓ 1 callers
Function
print_recall_summary
Print recalls in a table. Args: recalls (ndarray): calculated from `bbox_recalls` proposal_nums (ndarray or list): top N proposal
mmdet/evaluation/functional/recall.py:118
↓ 1 callers
Function
print_semantic_table
Print semantic segmentation evaluation results table. Args: results (dict): The evaluation results. class_names (list): Class nam
mmdet/evaluation/metrics/semseg_metric.py:244
↓ 1 callers
Function
print_timm_feature_info
Print feature_info of timm backbone to help development and debug. Args: feature_info (list[dict] | timm.models.features.FeatureInfo | No
mmpretrain/models/backbones/timm_backbone.py:11
↓ 1 callers
Method
process
Process one batch of data samples and predictions. The processed results should be stored in ``self.results``, which will be used to c
mmdet/evaluation/metrics/crowdhuman_metric.py:145
↓ 1 callers
Method
process_bbox
(self, bbox)
mmpretrain/models/heads/grounding_head.py:211
↓ 1 callers
Function
process_checkpoint
(in_file, out_file, save_keys=['meta', 'state_dict'])
tools/model_converters/publish_model.py:25
↓ 1 callers
Method
process_image
(self, data_samples, video_len)
mmdet/evaluation/metrics/mot_challenge_metric.py:201
↓ 1 callers
Method
process_predictions_and_anchors
Compute common vars for regression and classification targets. Args: anchor_list (List[List[Tensor]]): anchors of each image.
mmdet/models/dense_heads/ddod_head.py:421
↓ 1 callers
Method
process_video
(self, data_samples)
mmdet/evaluation/metrics/youtube_vis_metric.py:69
↓ 1 callers
Method
project_pseudo_instances
Project pseudo instances.
mmdet/models/detectors/semi_base.py:161
↓ 1 callers
Function
pvt_convert
(ckpt)
mmdet/models/backbones/pvt.py:595
↓ 1 callers
Method
q_sample
(self, x_start, time, noise=None)
projects/DiffusionDet/diffusiondet/head.py:419
↓ 1 callers
Method
quantize_float
Converts a float to closest non-zero int divisible by divisor. Args: number (int): Original number to be quantized. d
mmdet/models/backbones/regnet.py:285
↓ 1 callers
Method
quantize_float
Converts a float to closest non-zero int divisible by divior. Args: number (int): Original number to be quantized. di
mmpretrain/models/backbones/regnet.py:241
↓ 1 callers
Method
rand_bbox
Standard CutMix bounding-box that generates a random square bbox based on lambda value. This implementation includes support for enfor
mmpretrain/models/utils/batch_augments/cutmix.py:87
↓ 1 callers
Method
rand_bbox_minmax
Min-Max CutMix bounding-box Inspired by Darknet cutmix implementation. It generates a random rectangular bbox based on min/max percent
mmpretrain/models/utils/batch_augments/cutmix.py:56
↓ 1 callers
Method
rand_crop_params
Get parameters for ``crop`` for a random crop. Args: img (ndarray): Image to be cropped. Returns: tuple: Par
mmpretrain/datasets/transforms/processing.py:164
↓ 1 callers
Method
rand_crop_params
Get parameters for ``crop`` for a random sized crop. Args: img (ndarray): Image to be cropped. Returns: tupl
mmpretrain/datasets/transforms/processing.py:307
↓ 1 callers
Method
rand_translate_params
(self, dh, dw)
mmpretrain/datasets/transforms/processing.py:1717
↓ 1 callers
Method
random_choice
Randomly select some elements from the gallery. If `gallery` is a Tensor, the returned indices will be a Tensor; If `gallery` is a nd
mmdet/models/task_modules/samplers/score_hlr_sampler.py:75
↓ 1 callers
Method
random_choice
Random select some elements from the gallery. It seems that Pytorch's implementation is slower than numpy so we use numpy to randperm
mmdet/models/losses/margin_loss.py:132
↓ 1 callers
Method
random_choice
Random select some elements from the gallery. It seems that Pytorch's implementation is slower than numpy so we use numpy to randperm
mmdet/models/losses/l2_loss.py:124
↓ 1 callers
Function
random_color
Random a color according to the input seed.
mmdet/visualization/local_visualizer.py:509
↓ 1 callers
Method
random_disable
Randomly disable the transform.
mmpretrain/datasets/transforms/processing.py:622
↓ 1 callers
Method
random_masking
Generate the mask for MixMIM Pretraining. Args: x (torch.Tensor): Image with data augmentation applied, which is
mmpretrain/models/selfsup/mixmim.py:121
↓ 1 callers
Method
random_patch
Randomly generate patch the erase.
mmpretrain/datasets/transforms/processing.py:627
↓ 1 callers
Method
random_pipeline_index
(self)
mmdet/datasets/transforms/augment_wrappers.py:242
↓ 1 callers
Method
random_policy_indices
Return the random chosen transform indices.
mmpretrain/datasets/transforms/auto_augment.py:255
↓ 1 callers
Method
rcnn_cls_loss_by_pseudo_instances
Calculate classification loss from a batch of inputs and pseudo data samples. Args: x (tuple[Tensor]): List of multi-leve
mmdet/models/detectors/soft_teacher.py:169
↓ 1 callers
Method
rcnn_reg_loss_by_pseudo_instances
Calculate rcnn regression loss from a batch of inputs and pseudo data samples. Args: x (tuple[Tensor]): List of multi-lev
mmdet/models/detectors/soft_teacher.py:259
↓ 1 callers
Function
readGTImage
Read an image from path. Same as obj:``cityscapesscripts.evaluation. evalInstanceLevelSemanticLabeling.readGTImage``, but support loading
mmdet/evaluation/functional/cityscapes_utils.py:143
↓ 1 callers
Function
readPredInfo
A wrapper of obj:``cityscapesscripts.evaluation. evalInstanceLevelSemanticLabeling.readPredInfo``. Args: prediction_file (str): The p
mmdet/evaluation/functional/cityscapes_utils.py:166
↓ 1 callers
Function
read_image_file
Read images from SN3 image file.
mmpretrain/datasets/mnist.py:228
↓ 1 callers
Function
read_label_file
Read labels from SN3 label file.
mmpretrain/datasets/mnist.py:219
↓ 1 callers
Function
readme
()
setup.py:16
↓ 1 callers
Function
reduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
mmdet/models/losses/utils.py:10
↓ 1 callers
Function
reduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
mmpretrain/models/losses/utils.py:8
↓ 1 callers
Method
refine_bboxes
Refine bboxes during training. Args: sampling_results (List[:obj:`SamplingResult`]): Sampling results. bbox_results (
mmdet/models/roi_heads/bbox_heads/sabl_head.py:597
↓ 1 callers
Method
refine_bboxes
Refine bboxes during training. Args: bbox_results (dict): Usually is a dictionary with keys: - `cls_score` (Tens
projects/Detic_new/detic/detic_bbox_head.py:320
↓ 1 callers
Method
reg_forward
forward of regression branch.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:311
↓ 1 callers
Method
region_targets
Compute regression and classification targets for anchors when using RegionAssigner. Args: anchor_list (list[list[Tensor]
mmdet/models/dense_heads/cascade_rpn_head.py:270
↓ 1 callers
Method
register_model_index
Parse the model-index file and register all models. Args: model_index_path (str | PathLike): The path of the model-index
mmpretrain/apis/model.py:22
↓ 1 callers
Function
register_multimodal_placeholder
(names, registry)
mmpretrain/utils/dependency.py:73
↓ 1 callers
Function
register_vision_transforms
Register transforms in ``torchvision.transforms`` to the ``TRANSFORMS`` registry. Returns: List[str]: A list of registered transforms
mmpretrain/datasets/transforms/processing.py:70
↓ 1 callers
Method
regress
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: priors (Tensor): Priors from `rpn_head` or last stage
projects/Detic_new/detic/detic_bbox_head.py:410
↓ 1 callers
Method
regress_by_class
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: rois (Tensor): shape (n, 4) or (n, 5) label (T
mmdet/models/roi_heads/bbox_heads/sabl_head.py:660
↓ 1 callers
Function
relative_coordinate_maps
Generate the relative coordinate maps with feat_stride. Args: locations (Tensor): The prior location of mask feature map. It
mmdet/models/utils/misc.py:573
↓ 1 callers
Function
remove_punctuation
Remove punctuation from a text. Args: text (str): The input text. Returns: str: The text with punctuation removed.
mmdet/models/detectors/glip.py:51
↓ 1 callers
Method
reparameterize
Fuse all the parameters of all branches. Returns: tuple[torch.Tensor, torch.Tensor]: Parameters after fusion of all
mmpretrain/models/backbones/repvgg.py:188
↓ 1 callers
Method
reparameterize
Fuse all the parameters of all branches. Returns: tuple[torch.Tensor, torch.Tensor]: Parameters after fusion of all
mmpretrain/models/backbones/mobileone.py:184
↓ 1 callers
Function
replace_value
(cfg)
mmdet/utils/replace_cfg_vals.py:29
↓ 1 callers
Method
rescale_
Rescale boxes w.r.t. rescale_factor in-place. Note: Both ``rescale_`` and ``resize_`` will enlarge or shrink boxes w.
mmdet/structures/bbox/horizontal_boxes.py:236
↓ 1 callers
Method
rescale_
(self, scale_factor)
tests/test_structures/test_bbox/utils.py:39
↓ 1 callers
Method
rescale_init_weight
Rescale the initialized weights.
mmpretrain/models/necks/itpn_neck.py:283
↓ 1 callers
Method
rescale_init_weight
Rescale the initialized weights.
mmpretrain/models/selfsup/beit.py:232
↓ 1 callers
Method
rescale_init_weight
Rescale the initialized weights.
mmpretrain/models/selfsup/itpn.py:117
↓ 1 callers
Method
rescale_patch_aggregation_init_weight
Rescale the initialized weights.
mmpretrain/models/necks/beitv2_neck.py:113
↓ 1 callers
Function
rescale_size
Calculate the new size to be rescaled to. Args: old_size (tuple[int]): The old size (w, h) of image. scale (float | tuple[int]):
mmdet/datasets/transforms/transforms.py:62
↓ 1 callers
Function
rescoring_mask
(scores, mask_pred, masks)
projects/SparseInst/sparseinst/sparseinst.py:17
↓ 1 callers
Function
reset_cls_layer_weight
(model, weight)
projects/Detic/detic/utils.py:60
↓ 1 callers
Function
reset_cls_layer_weight
(roi_head, weight)
projects/Detic_new/detic/detic.py:98
↓ 1 callers
Method
resize
see :func:`BaseInstanceMasks.resize`
mmdet/structures/mask/structures.py:698
↓ 1 callers
Method
resize_
Resize the box width and height w.r.t scale_factor in-place. Note: Both ``rescale_`` and ``resize_`` will enlarge or shrink boxes
mmdet/structures/bbox/horizontal_boxes.py:254
↓ 1 callers
Method
resize_pos_embed
Resize pos_embed weights. Resize pos_embed using bilinear interpolate method. Args: pos_embed (torch.Tensor): Position e
mmdet/models/backbones/pvt.py:323
↓ 1 callers
Method
resize_pos_embed
Interface for backward-compatibility.
mmpretrain/models/backbones/beit.py:534
↓ 1 callers
Method
responsible_flags
Generate responsible anchor flags of grid cells in multiple scales. Args: featmap_sizes (List[tuple]): List of feature map sizes
mmdet/models/dense_heads/yolo_head.py:493
↓ 1 callers
Method
result2json
Dump the panoptic results to a COCO style json file and a directory. Args: results (Sequence[dict]): Testing results of the datas
mmdet/evaluation/metrics/coco_panoptic_metric.py:216
↓ 1 callers
Method
results2json
Dump the detection results to a json file.
mmdet/evaluation/metrics/crowdhuman_metric.py:121
↓ 1 callers
Method
rotate
Rotate the BitmapMasks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). angle (int | float): Rota
mmdet/structures/mask/structures.py:506
↓ 1 callers
Method
rotate_
Rotate all boxes in-place. Args: center (Tuple[float, float]): Rotation origin. angle (float): Rotation angle represe
mmdet/structures/bbox/horizontal_boxes.py:164
↓ 1 callers
Method
rotate_
(self, center, angle)
tests/test_structures/test_bbox/utils.py:33
↓ 1 callers
Method
rpn_loss_by_pseudo_instances
Calculate rpn loss from a batch of inputs and pseudo data samples. Args: x (tuple[Tensor]): Features from FPN. batch_
mmdet/models/detectors/soft_teacher.py:137
← previous
next →
2,301–2,400 of 6,823, ranked by callers