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
Method
process_text
(input_: str)
mmpretrain/apis/multimodal_retrieval.py:239
Method
process_video
(self, data_samples)
mmdet/evaluation/metrics/mot_challenge_metric.py:222
Function
profile_time
Print time spent by CPU and GPU. Useful as a temporary context manager to find sweet spots of code suitable for async implementation.
mmdet/utils/profiling.py:11
Method
project_
(self, homography_matrix)
tests/test_structures/test_bbox/utils.py:36
Method
proposals
(self)
mmdet/structures/det_data_sample.py:125
Function
py_focal_loss_with_prob
PyTorch version of `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Different from `py_sigmoid_focal_loss`, this function accepts probability
mmdet/models/losses/focal_loss.py:63
Function
py_sigmoid_focal_loss
PyTorch version of `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Args: pred (torch.Tensor): The prediction with shape (N, C), C is th
mmdet/models/losses/focal_loss.py:13
Function
quality_focal_loss
r"""Quality Focal Loss (QFL) is from `Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection <ht
mmdet/models/losses/gfocal_loss.py:13
Function
quality_focal_loss_tensor_target
`QualityFocal Loss <https://arxiv.org/abs/2008.13367>`_ Args: pred (torch.Tensor): The prediction with shape (N, C), C is the
mmdet/models/losses/gfocal_loss.py:57
Function
quality_focal_loss_with_prob
r"""Quality Focal Loss (QFL) is from `Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection <ht
mmdet/models/losses/gfocal_loss.py:98
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:444
Method
random
Generate random polygon masks for demo / testing purposes. Adapted from [1]_ References: .. [1] https://gitlab.kitware.c
mmdet/structures/mask/structures.py:1011
Method
random
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
mmdet/models/task_modules/samplers/sampling_result.py:182
Method
random
Create random AssignResult for tests or debugging. Args: num_preds: number of predicted boxes num_gts: number of true
mmdet/models/task_modules/assigners/assign_result.py:97
Function
register_all_modules
Register all modules in mmpretrain into the registries. Args: init_default_scope (bool): Whether initialize the mmpretrain default
mmpretrain/utils/setup_env.py:8
Function
register_buffer
(module, name, buffer, *args, **kwargs)
mmpretrain/apis/utils.py:153
Function
register_parameter
(module, name, param)
mmpretrain/apis/utils.py:145
Function
replace_to_ceph
(cfg)
mmdet/testing/_utils.py:428
Function
require
A wrapper of function for extra package requirements. Args: dep (str): The dependency package name, like ``transformers`` or
mmpretrain/utils/dependency.py:38
Method
rescale
Rescale masks as large as possible while keeping the aspect ratio. For details can refer to `mmcv.imrescale`. Args: scale
mmdet/structures/mask/structures.py:21
Method
rescale
see :func:`BaseInstanceMasks.rescale`
mmdet/structures/mask/structures.py:689
Method
rescale
(param, layer_id)
mmpretrain/models/necks/beitv2_neck.py:116
Method
rescale
(param, layer_id)
mmpretrain/models/necks/itpn_neck.py:286
Method
rescale
(param, layer_id)
mmpretrain/models/selfsup/beit.py:235
Method
rescale
(param, layer_id)
mmpretrain/models/selfsup/itpn.py:120
Method
reset
Reset the buffer of the tracker.
mmdet/models/trackers/quasi_dense_tracker.py:76
Method
reset_cluster_size
(self, device)
mmpretrain/models/utils/vector_quantizer.py:170
Method
resize
Resize masks to the given out_shape. Args: out_shape: Target (h, w) of resized mask. interpolation (str): See :func:`
mmdet/structures/mask/structures.py:34
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/base_boxes.py:455
Method
resize_
(self, scale_factor)
tests/test_structures/test_bbox/utils.py:42
Method
resize_pos_embed
Interface for backward-compatibility.
mmpretrain/models/backbones/revvit.py:582
Method
resize_pos_embed
Interface for backward-compatibility.
mmpretrain/models/backbones/vision_transformer.py:421
Method
restart_opt
(self)
mmpretrain/engine/optimizers/adan_t.py:91
Method
reweight_loss_single
Reweight loss values at each level. Reassign loss values at each level by masking those where the pre-calculated loss is too large. T
mmdet/models/dense_heads/fsaf_head.py:405
Method
rfp_forward
Forward function for RFP.
mmdet/models/backbones/detectors_resnet.py:336
Function
roi2bbox
Convert rois to bounding box format. Args: rois (Tensor): RoIs with the shape (n, 5) where the first column indicates batch i
mmdet/structures/bbox/transforms.py:105
Method
rotate
Rotate the masks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). angle (int | float): Rotation a
mmdet/structures/mask/structures.py:180
Method
rotate
See :func:`BaseInstanceMasks.rotate`.
mmdet/structures/mask/structures.py:916
Method
rotate_
Rotate all boxes in-place. Args: center (Tuple[float, float]): Rotation origin. angle (float): Rotation angle represe
mmdet/structures/bbox/base_boxes.py:418
Method
run
Launch validation for model teacher and student.
mmdet/engine/runner/loops.py:12
Method
run
Launch val.
mmpretrain/engine/runners/retrieval_loop.py:23
Method
run
Launch test.
mmpretrain/engine/runners/retrieval_loop.py:104
Method
run_once
Executes the benchmark once.
mmdet/utils/benchmark.py:208
Method
run_once
Executes the benchmark once.
mmdet/utils/benchmark.py:339
Method
run_once
Executes the benchmark once.
mmdet/utils/benchmark.py:448
Method
sample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Bbox assigning results
mmdet/models/task_modules/samplers/pseudo_sampler.py:26
Method
sample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Mask assigning results
mmdet/models/task_modules/samplers/mask_pseudo_sampler.py:29
Method
sample
Sample positive and negative bboxes. Args: assign_result (:obj:`AssignResult`): Assigning results from MultiInsta
mmdet/models/task_modules/samplers/multi_instance_random_sampler.py:66
Method
sample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdet/models/task_modules/samplers/score_hlr_sampler.py:236
Method
save_attn_gradients
(self, attn_gradients)
mmpretrain/models/multimodal/blip/language_model.py:182
Function
scaled_dot_product_attention_pyimpl
(query, key, value,
mmpretrain/models/utils/attention.py:29
Method
score_samples
(self, loss)
tests/test_models/test_dense_heads/test_paa_head.py:31
Function
seesaw_ce_loss
Calculate the Seesaw CrossEntropy loss. Args: cls_score (Tensor): The prediction with shape (N, C), C is the number of class
mmdet/models/losses/seesaw_loss.py:15
Function
seesaw_ce_loss
Calculate the Seesaw CrossEntropy loss. Args: cls_score (torch.Tensor): The prediction with shape (N, C), C is the number of
mmpretrain/models/losses/seesaw_loss.py:11
Function
sem_seg_postprocess
Return semantic segmentation predictions in the original resolution. The input images are often resized when entering semantic segmentor. Mor
projects/XDecoder/xdecoder/utils.py:93
Method
setUp
(self)
tests/test_engine/test_runner/test_loops.py:80
Method
setUp
Setup the model and optimizer which are used in every test method. TestCase calls functions in this order: setUp() -> testMethod() ->
tests/test_engine/test_schedulers/test_quadratic_warmup.py:28
Method
setUp
(self)
tests/test_engine/test_hooks/test_mean_teacher_hook.py:94
Method
setUp
(self)
tests/test_engine/test_hooks/test_num_class_check_hook.py:16
Method
setUp
(self)
tests/test_engine/test_hooks/test_visualization_hook.py:30
Method
setUp
(self)
tests/test_engine/test_hooks/test_visualization_hook.py:75
Method
setUp
(self)
tests/test_utils/test_benchmark.py:71
Method
setUp
(self)
tests/test_utils/test_benchmark.py:166
Method
setUp
(self)
tests/test_utils/test_benchmark.py:245
Method
setUp
(self)
tests/test_evaluation/test_metrics/test_coco_video_metric.py:105
Method
setUp
(self)
tests/test_evaluation/test_metrics/test_coco_metric.py:102
Method
setUp
(self)
tests/test_evaluation/test_metrics/test_cityscapes_metric.py:20
Method
setUp
(self)
tests/test_evaluation/test_metrics/test_crowdhuman_metric.py:22
Method
setUp
(self)
tests/test_evaluation/test_metrics/test_lvis_metric.py:108
Method
setUp
(self)
tests/test_evaluation/test_metrics/test_youtube_vis_metric.py:22
Method
setUp
(self)
tests/test_evaluation/test_metrics/test_coco_panoptic_metric.py:159
Method
setUp
(self)
tests/test_models/test_roi_heads/test_trident_roi_head.py:15
Method
setUp
(self)
tests/test_models/test_roi_heads/test_dynamic_roi_head.py:15
Method
setUp
(self)
tests/test_models/test_roi_heads/test_mask_scoring_roI_head.py:14
Method
setUp
(self)
tests/test_models/test_roi_heads/test_pisa_roi_head.py:15
Method
setUp
(self)
tests/test_models/test_roi_heads/test_grid_roi_head.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_ddq_detr.py:16
Method
setUp
(self)
tests/test_models/test_detectors/test_rpn.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_cornernet.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_single_stage_instance_seg.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_panoptic_two_stage_segmentor.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_maskformer.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_maskformer.py:118
Method
setUp
(self)
tests/test_models/test_detectors/test_kd_single_stage.py:16
Method
setUp
(self)
tests/test_models/test_detectors/test_dab_detr.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_detr.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_two_stage.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_two_stage.py:128
Method
setUp
(self)
tests/test_models/test_detectors/test_dino.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_deformable_detr.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_single_stage.py:17
Method
setUp
(self)
tests/test_models/test_detectors/test_glip.py:15
Method
setUp
(self)
tests/test_models/test_detectors/test_conditional_detr.py:15
Method
setUp
Setup the model and optimizer which are used in every test method. TestCase calls functions in this order: setUp() -> testMethod() ->
tests/test_models/test_data_preprocessors/test_data_preprocessor.py:328
Method
setUp
(self)
tests/test_models/test_tta/test_det_tta.py:16
Method
setUp
(self)
tests/test_models/test_task_modules/test_assigners/test_region_assigner.py:13
Method
setUp
(self)
tests/test_models/test_tracking_heads/test_quasi_dense_track_head.py:26
Method
setUp
(self)
tests/test_structures/test_bbox/test_box_type.py:15
Method
setUp
(self)
tests/test_datasets/test_lvis.py:17
Method
setUp
(self)
tests/test_datasets/test_coco_api_wrapper.py:12
← previous
next →
5,701–5,800 of 6,823, ranked by callers