MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 1,143 callersMethodsize
Reload new_zeros from self.tensor.
mmdet/structures/bbox/base_boxes.py:205
↓ 922 callersMethodcat
Cancatenates a box instance list into one single box instance. Similar to ``torch.cat``. Args: box_list (Sequence[T]): A
mmdet/structures/bbox/base_boxes.py:321
↓ 703 callersMethodreshape
Reload ``reshape`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:260
↓ 660 callersMethodview
Reload ``view`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:256
↓ 480 callersMethodupdate
Update the tracker. Args: kwargs (dict[str: Tensor | int]): The `str` indicates the name of the input variable. `
mmdet/models/trackers/base_tracker.py:53
↓ 424 callersMethodpermute
Reload ``permute`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:279
↓ 406 callersMethodunsqueeze
Reload ``unsqueeze`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:315
↓ 347 callersMethodget
Get the buffer of a specific item. Args: item (str): The demanded item. ids (list[int], optional): The demanded ids.
mmdet/models/trackers/base_tracker.py:142
↓ 293 callersMethodstack
Concatenates a sequence of tensors along a new dimension. Similar to ``torch.stack``. Args: box_list (Sequence[T]): A seq
mmdet/structures/bbox/base_boxes.py:344
↓ 270 callersFunctionbuild_norm_layer
Build normalization layer. Args: cfg (dict): The norm layer config, which should contain: - type (str): Layer type.
mmpretrain/models/utils/norm.py:93
↓ 268 callersMethodto
Reload ``to`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:236
↓ 244 callersMethodrepeat
Reload ``repeat`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:268
↓ 233 callersMethodflatten
Reload ``flatten`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:304
↓ 233 callersMethodtranspose
Reload ``transpose`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:272
↓ 229 callersMethodsplit
Reload ``split`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:284
↓ 224 callersMethodget
Get the model's metainfo by the model name. Args: model_name (str): The name of model. Returns: modelindex.m
mmpretrain/apis/model.py:47
↓ 223 callersMethodnew_zeros
Reload ``new_zeros`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:201
↓ 190 callersMethodnumpy
Reload ``numpy`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:232
↓ 165 callersMethoddetach
Reload ``detach`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:252
↓ 161 callersMethodsqueeze
Reload ``squeeze`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:309
↓ 160 callersMethodnew_tensor
Reload ``new_tensor`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:185
↓ 155 callersMethodempty
Whether the buffer is empty or not.
mmdet/models/trackers/base_tracker.py:39
↓ 155 callersMethodexpand
Reload ``expand`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:264
↓ 137 callersMethoddim
Reload ``dim`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:210
↓ 119 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
mmdet/models/task_modules/samplers/sampling_result.py:142
↓ 113 callersMethodnumel
Reload ``numel`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:228
↓ 105 callersMethodinfo
dict: a dictionary of info about the object
mmdet/models/task_modules/assigners/assign_result.py:65
↓ 104 callersMethodcpu
Reload ``cpu`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:240
↓ 103 callersMethodclone
Reload ``clone`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:248
↓ 90 callersFunctionmulti_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
mmdet/models/utils/misc.py:200
↓ 89 callersMethodnorm
Normalization.
mmdet/models/reid/fc_module.py:60
↓ 86 callersMethoddecode
Decode the predicted bboxes according to prediction and base boxes.
mmdet/models/task_modules/coders/base_bbox_coder.py:24
↓ 86 callersMethodnew_full
Reload ``new_full`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:189
↓ 83 callersFunctionprint_log
Print a log message.
mmdet/utils/benchmark.py:39
↓ 74 callersFunctiondemo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: batch_size (int): batch size. Defaults to 2. image_shapes
mmdet/testing/_utils.py:90
↓ 68 callersMethodload
Loading information for evaluation. Args: record (dict): Label information or test results. The format might look
mmdet/evaluation/metrics/crowdhuman_metric.py:546
↓ 68 callersMethodnew_ones
Reload ``new_ones`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:197
↓ 67 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
mmdet/models/utils/misc.py:427
↓ 66 callersMethodcpu
Overrides this method to set the :attr:`device` Returns: nn.Module: The model itself.
mmdet/models/data_preprocessors/data_preprocessor.py:558
↓ 65 callersFunctionget_detector_cfg
Grab configs necessary to create a detector. These are deep copied to allow for safe modification of parameters without influencing other tes
mmdet/testing/_utils.py:40
↓ 63 callersMethodforward
(self, *args, **kwargs)
tests/test_utils/test_benchmark.py:24
↓ 61 callersMethodcuda
Reload ``cuda`` from self.tensor.
mmdet/structures/bbox/base_boxes.py:244
↓ 57 callersFunctionbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (List[Union[Tensor, :obj:`BaseBoxes`]): a list of bboxes correspondin
mmdet/structures/bbox/transforms.py:82
↓ 57 callersMethodnormalize
(x)
mmdet/models/dense_heads/autoassign_head.py:301
↓ 56 callersFunctionreduce_mean
Obtain the mean of tensor on different GPUs.
mmdet/utils/dist_utils.py:59
↓ 56 callersMethodupdate
(self, example)
projects/gradio_demo/launch.py:503
↓ 54 callersFunctioncheck_result_same
Check whether the ``pipeline_results`` is the same with the predefined ``results``. Args: results (dict): Predefined results which sh
tests/test_datasets/test_transforms/utils.py:55
↓ 52 callersMethodrandom
Generate random bitmap masks for demo / testing purposes. Example: >>> from mmdet.data_elements.mask.structures import BitmapMask
mmdet/structures/mask/structures.py:560
↓ 51 callersMethodassign
Assign gt to priors. The assignment is done in following steps 1. compute iou between all prior (prior of all pyramid levels) and gt
mmdet/models/task_modules/assigners/atss_assigner.py:74
↓ 50 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdet/models/utils/misc.py:222
↓ 48 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdet/models/task_modules/samplers/base_sampler.py:49
↓ 47 callersMethodevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalVids :return: None
mmdet/evaluation/functional/ytviseval.py:140
↓ 47 callersFunctionregister_all_modules
Register all modules in mmdet into the registries. Args: init_default_scope (bool): Whether initialize the mmdet default scope.
mmdet/utils/setup_env.py:86
↓ 45 callersMethodgather
Integrate test results.
mmdet/evaluation/metrics/crowdhuman_metric.py:470
↓ 42 callersMethodloss
(self, batch_inputs: Tensor, batch_data_samples: SampleList)
mmdet/rsprompter/models.py:1085
↓ 41 callersFunctionget_box_tensor
Get tensor data from box type boxes. Args: boxes (Tensor or BaseBoxes): boxes with type of tensor or box type. If its type is
mmdet/structures/bbox/transforms.py:437
↓ 38 callersFunctionbbox_cxcywh_to_xyxy
Convert bbox coordinates from (cx, cy, w, h) to (x1, y1, x2, y2). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
mmdet/structures/bbox/transforms.py:265
↓ 38 callersFunctionbbox_overlaps
Calculate overlap between two set of bboxes. FP16 Contributed by https://github.com/open-mmlab/mmdetection/pull/4889 Note: Assume bbo
mmdet/structures/bbox/bbox_overlaps.py:13
↓ 37 callersMethodpad
See :func:`BaseInstanceMasks.pad`.
mmdet/structures/mask/structures.py:336
↓ 33 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmpretrain/models/backbones/hrnet.py:408
↓ 32 callersFunctiondemo_mm_proposals
Create a list of fake porposals. Args: image_shapes (list[tuple[int]]): Batch image shapes. num_proposals (int): The number of fa
mmdet/testing/_utils.py:215
↓ 31 callersFunctionconstruct_toy_data
(poly2mask, use_box_type=False)
tests/test_datasets/test_transforms/utils.py:28
↓ 30 callersMethodinit_weights
(self)
mmdet/models/necks/rfp.py:104
↓ 30 callersMethodtrain
Convert the model into training mode will keeping the normalization layer freezed.
mmdet/models/backbones/hrnet.py:581
↓ 30 callersFunctionunpack_gt_instances
Unpack ``gt_instances``, ``gt_instances_ignore`` and ``img_metas`` based on ``batch_data_samples`` Args: batch_data_samples (List[:ob
mmdet/models/utils/misc.py:89
↓ 27 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
mmpretrain/models/backbones/hrnet.py:413
↓ 27 callersMethodto
Since teacher_model is registered as a plain object, it is necessary to put the teacher model to other device when calling ``to`` func
mmdet/models/detectors/kd_one_stage.py:96
↓ 26 callersMethodadd_datasample
Draw datasample and save to all backends. - If GT and prediction are plotted at the same time, they are displayed in a stitched image
mmdet/visualization/local_visualizer.py:393
↓ 26 callersFunctionempty_instances
Handle predicted instances when RoI is empty. Note: If ``instance_results`` is not None, it will be modified in place internally, and then re
mmdet/models/utils/misc.py:125
↓ 26 callersMethodinsert
(self, word)
mmpretrain/models/multimodal/ofa/ofa.py:29
↓ 26 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical overflow. Defaults
mmdet/models/layers/transformer/utils.py:100
↓ 25 callersFunctionbbox_xyxy_to_cxcywh
Convert bbox coordinates from (x1, y1, x2, y2) to (cx, cy, w, h). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
mmdet/structures/bbox/transforms.py:279
↓ 25 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. batch_i
mmdet/models/dense_heads/vfnet_head.py:577
↓ 25 callersMethodgrid_priors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
mmdet/models/task_modules/prior_generators/anchor_generator.py:230
↓ 23 callersMethodflip
See :func:`BaseInstanceMasks.flip`.
mmdet/structures/mask/structures.py:323
↓ 22 callersFunctiondemo_track_inputs
Create a superset of inputs needed to run test or train batches. Args: batch_size (int): batch size. Default to 1. num_frames (in
mmdet/testing/_utils.py:285
↓ 22 callersMethodextract_feat
Extract features from images.
mmdet/models/detectors/base.py:126
↓ 22 callersFunctionresize_pos_embed
Resize pos_embed weights. Args: pos_embed (torch.Tensor): Position embedding weights with shape [1, L, C]. src_shape
mmpretrain/models/utils/embed.py:16
↓ 21 callersMethodfull_init
(self)
tests/test_utils/test_benchmark.py:62
↓ 21 callersMethodloss_by_feat
Compute losses of the head. Args: cls_scores (list[Tensor]): Cls and quality scores for each scale level has shap
mmdet/models/dense_heads/ld_head.py:185
↓ 20 callersMethodfrom_pretrained
( cls, pretrained_model_name_or_path, *init_inputs, **kwargs, )
mmpretrain/models/utils/tokenizer.py:98
↓ 19 callersMethodencode
Encode deltas between bboxes and ground truth boxes.
mmdet/models/task_modules/coders/base_bbox_coder.py:20
↓ 19 callersMethodget_cat_ids
(self, cat_names=[], sup_names=[], cat_ids=[])
mmdet/datasets/api_wrappers/coco_api.py:32
↓ 19 callersMethodpredict
(self, loss)
tests/test_models/test_dense_heads/test_lad_head.py:27
↓ 19 callersMethodrun
benchmark entry method. Args: repeat_num (int): Number of repeat benchmark. Defaults to 1.
mmdet/utils/benchmark.py:96
↓ 19 callersFunctionselect_single_mlvl
Extract a multi-scale single image tensor from a multi-scale batch tensor based on batch index. Note: The default value of detach is True, be
mmdet/models/utils/misc.py:277
↓ 18 callersMethod__init__
(self, normalized_shape, eps=1e-6)
mmdet/rsprompter/models.py:38
↓ 18 callersFunctionget_roi_head_cfg
Grab configs necessary to create a roi_head. These are deep copied to allow for safe modification of parameters without influencing other tes
mmdet/testing/_utils.py:51
↓ 18 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
mmpretrain/datasets/transforms/formatting.py:17
↓ 17 callersFunction_equal
(a, b)
tests/test_structures/test_det_data_sample.py:11
↓ 17 callersMethodencode
Encode the input images and get corresponding results.
mmpretrain/models/selfsup/beit.py:79
↓ 17 callersMethodloss_and_target
Calculate the loss based on the features extracted by the DIIHead. Args: cls_score (Tensor): Classification prediction
mmdet/models/roi_heads/bbox_heads/dii_head.py:206
↓ 16 callersMethod__init__
(self, config, layer_num)
mmpretrain/models/multimodal/blip/language_model.py:465
↓ 16 callersFunctionbbox_project
Geometric transformation for bbox. Args: bboxes (Union[torch.Tensor, np.ndarray]): Shape (n, 4) for bboxes. homography_matrix (Un
mmdet/structures/bbox/transforms.py:321
↓ 16 callersMethodget_targets
Get targets for PAA head. This method is almost the same as `AnchorHead.get_targets()`. We direct return the results from _get_target
mmdet/models/dense_heads/paa_head.py:385
↓ 16 callersMethodpredict_by_feat
Transform a batch of output features extracted from the head into bbox results. This method is same as `BaseDenseHead.get_results()`.
mmdet/models/dense_heads/paa_head.py:494
↓ 16 callersMethodto_tensor
See :func:`BaseInstanceMasks.to_tensor`.
mmdet/structures/mask/structures.py:555
↓ 16 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Optional[Tensor], optional): Element-w
mmdet/models/losses/utils.py:30
↓ 15 callersMethod__init__
(self, magnitude: Union[int, float, None] = None, pad_val: Union[int, Sequen
mmpretrain/datasets/transforms/auto_augment.py:396
↓ 15 callersMethodbn
(self, x: Tensor)
mmdet/models/task_modules/tracking/aflink.py:36
next →1–100 of 6,823, ranked by callers