MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

Methodprocess_text
(input_: str)
mmpretrain/apis/multimodal_retrieval.py:239
Methodprocess_video
(self, data_samples)
mmdet/evaluation/metrics/mot_challenge_metric.py:222
Functionprofile_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
Methodproject_
(self, homography_matrix)
tests/test_structures/test_bbox/utils.py:36
Methodproposals
(self)
mmdet/structures/det_data_sample.py:125
Functionpy_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
Functionpy_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
Functionquality_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
Functionquality_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
Functionquality_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
Methodrand_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
Methodrandom
Generate random polygon masks for demo / testing purposes. Adapted from [1]_ References: .. [1] https://gitlab.kitware.c
mmdet/structures/mask/structures.py:1011
Methodrandom
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
mmdet/models/task_modules/samplers/sampling_result.py:182
Methodrandom
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
Functionregister_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
Functionregister_buffer
(module, name, buffer, *args, **kwargs)
mmpretrain/apis/utils.py:153
Functionregister_parameter
(module, name, param)
mmpretrain/apis/utils.py:145
Functionreplace_to_ceph
(cfg)
mmdet/testing/_utils.py:428
Functionrequire
A wrapper of function for extra package requirements. Args: dep (str): The dependency package name, like ``transformers`` or
mmpretrain/utils/dependency.py:38
Methodrescale
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
Methodrescale
see :func:`BaseInstanceMasks.rescale`
mmdet/structures/mask/structures.py:689
Methodrescale
(param, layer_id)
mmpretrain/models/necks/beitv2_neck.py:116
Methodrescale
(param, layer_id)
mmpretrain/models/necks/itpn_neck.py:286
Methodrescale
(param, layer_id)
mmpretrain/models/selfsup/beit.py:235
Methodrescale
(param, layer_id)
mmpretrain/models/selfsup/itpn.py:120
Methodreset
Reset the buffer of the tracker.
mmdet/models/trackers/quasi_dense_tracker.py:76
Methodreset_cluster_size
(self, device)
mmpretrain/models/utils/vector_quantizer.py:170
Methodresize
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
Methodresize_
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
Methodresize_
(self, scale_factor)
tests/test_structures/test_bbox/utils.py:42
Methodresize_pos_embed
Interface for backward-compatibility.
mmpretrain/models/backbones/revvit.py:582
Methodresize_pos_embed
Interface for backward-compatibility.
mmpretrain/models/backbones/vision_transformer.py:421
Methodrestart_opt
(self)
mmpretrain/engine/optimizers/adan_t.py:91
Methodreweight_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
Methodrfp_forward
Forward function for RFP.
mmdet/models/backbones/detectors_resnet.py:336
Functionroi2bbox
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
Methodrotate
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
Methodrotate
See :func:`BaseInstanceMasks.rotate`.
mmdet/structures/mask/structures.py:916
Methodrotate_
Rotate all boxes in-place. Args: center (Tuple[float, float]): Rotation origin. angle (float): Rotation angle represe
mmdet/structures/bbox/base_boxes.py:418
Methodrun
Launch validation for model teacher and student.
mmdet/engine/runner/loops.py:12
Methodrun
Launch val.
mmpretrain/engine/runners/retrieval_loop.py:23
Methodrun
Launch test.
mmpretrain/engine/runners/retrieval_loop.py:104
Methodrun_once
Executes the benchmark once.
mmdet/utils/benchmark.py:208
Methodrun_once
Executes the benchmark once.
mmdet/utils/benchmark.py:339
Methodrun_once
Executes the benchmark once.
mmdet/utils/benchmark.py:448
Methodsample
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
Methodsample
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
Methodsample
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
Methodsample
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
Methodsave_attn_gradients
(self, attn_gradients)
mmpretrain/models/multimodal/blip/language_model.py:182
Functionscaled_dot_product_attention_pyimpl
(query, key, value,
mmpretrain/models/utils/attention.py:29
Methodscore_samples
(self, loss)
tests/test_models/test_dense_heads/test_paa_head.py:31
Functionseesaw_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
Functionseesaw_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
Functionsem_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
MethodsetUp
(self)
tests/test_engine/test_runner/test_loops.py:80
MethodsetUp
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
MethodsetUp
(self)
tests/test_engine/test_hooks/test_mean_teacher_hook.py:94
MethodsetUp
(self)
tests/test_engine/test_hooks/test_num_class_check_hook.py:16
MethodsetUp
(self)
tests/test_engine/test_hooks/test_visualization_hook.py:30
MethodsetUp
(self)
tests/test_engine/test_hooks/test_visualization_hook.py:75
MethodsetUp
(self)
tests/test_utils/test_benchmark.py:71
MethodsetUp
(self)
tests/test_utils/test_benchmark.py:166
MethodsetUp
(self)
tests/test_utils/test_benchmark.py:245
MethodsetUp
(self)
tests/test_evaluation/test_metrics/test_coco_video_metric.py:105
MethodsetUp
(self)
tests/test_evaluation/test_metrics/test_coco_metric.py:102
MethodsetUp
(self)
tests/test_evaluation/test_metrics/test_cityscapes_metric.py:20
MethodsetUp
(self)
tests/test_evaluation/test_metrics/test_crowdhuman_metric.py:22
MethodsetUp
(self)
tests/test_evaluation/test_metrics/test_lvis_metric.py:108
MethodsetUp
(self)
tests/test_evaluation/test_metrics/test_youtube_vis_metric.py:22
MethodsetUp
(self)
tests/test_evaluation/test_metrics/test_coco_panoptic_metric.py:159
MethodsetUp
(self)
tests/test_models/test_roi_heads/test_trident_roi_head.py:15
MethodsetUp
(self)
tests/test_models/test_roi_heads/test_dynamic_roi_head.py:15
MethodsetUp
(self)
tests/test_models/test_roi_heads/test_mask_scoring_roI_head.py:14
MethodsetUp
(self)
tests/test_models/test_roi_heads/test_pisa_roi_head.py:15
MethodsetUp
(self)
tests/test_models/test_roi_heads/test_grid_roi_head.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_ddq_detr.py:16
MethodsetUp
(self)
tests/test_models/test_detectors/test_rpn.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_cornernet.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_single_stage_instance_seg.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_panoptic_two_stage_segmentor.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_maskformer.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_maskformer.py:118
MethodsetUp
(self)
tests/test_models/test_detectors/test_kd_single_stage.py:16
MethodsetUp
(self)
tests/test_models/test_detectors/test_dab_detr.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_detr.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_two_stage.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_two_stage.py:128
MethodsetUp
(self)
tests/test_models/test_detectors/test_dino.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_deformable_detr.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_single_stage.py:17
MethodsetUp
(self)
tests/test_models/test_detectors/test_glip.py:15
MethodsetUp
(self)
tests/test_models/test_detectors/test_conditional_detr.py:15
MethodsetUp
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
MethodsetUp
(self)
tests/test_models/test_tta/test_det_tta.py:16
MethodsetUp
(self)
tests/test_models/test_task_modules/test_assigners/test_region_assigner.py:13
MethodsetUp
(self)
tests/test_models/test_tracking_heads/test_quasi_dense_track_head.py:26
MethodsetUp
(self)
tests/test_structures/test_bbox/test_box_type.py:15
MethodsetUp
(self)
tests/test_datasets/test_lvis.py:17
MethodsetUp
(self)
tests/test_datasets/test_coco_api_wrapper.py:12
← previousnext →5,701–5,800 of 6,823, ranked by callers