MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 2 callersFunction_rand_masks
(num_items, bboxes, img_w, img_h)
tests/test_models/test_dense_heads/test_solo_head.py:16
↓ 2 callersFunction_register_box
Register a box type. Args: name (str): The name of box type. box_type (type): Box mode class to be registered. force (boo
mmdet/structures/bbox/box_type.py:17
↓ 2 callersFunction_register_box_converter
Register a box converter. Args: src_type (str or type): source box type name or class. dst_type (str or type): destination box ty
mmdet/structures/bbox/box_type.py:89
↓ 2 callersMethod_register_mmpretrain_models
(cls)
mmpretrain/apis/model.py:81
↓ 2 callersMethod_resize_bboxes
Resize bounding boxes with ``results['scale_factor']``.
mmdet/datasets/transforms/transforms.py:196
↓ 2 callersMethod_resize_img
Resize images with ``results['scale']``.
mmdet/datasets/transforms/transforms.py:254
↓ 2 callersMethod_resize_masks
Resize masks with ``results['scale']``
mmdet/datasets/transforms/transforms.py:186
↓ 2 callersMethod_save_one_video_gts_preds
Save the gt and prediction results.
mmdet/evaluation/metrics/mot_challenge_metric.py:243
↓ 2 callersMethod_test_evaluate
Test using the metric in the same way as Evaluator.
tests/test_evaluation/test_metrics/test_mot_challenge_metrics.py:88
↓ 2 callersFunction_tood_head
Set type of tood head.
tests/test_models/test_dense_heads/test_tood_head.py:12
↓ 2 callersFunction_transpose
This function is used to transpose image first tensors to level first ones.
mmdet/models/dense_heads/centernet_update_head.py:21
↓ 2 callersFunctionaddAnnItem
(annotation_id, image_id, category_id, bbox, difficult_flag)
tools/dataset_converters/pascal_voc.py:107
↓ 2 callersMethodadd_cls_pos_inds
Provide additional adaptive positive samples to the classification branch. Args: flatten_points (Tensor): The point after
mmdet/models/dense_heads/centernet_update_head.py:406
↓ 2 callersMethodadd_gt_
Add ground truth as assigned results. Args: gt_labels (torch.Tensor): Labels of gt boxes
mmdet/models/task_modules/assigners/assign_result.py:185
↓ 2 callersMethodafter_test_iter
Regularly record memory information. Args: runner (:obj:`Runner`): The runner of the testing process. batch_idx (int)
mmdet/engine/hooks/memory_profiler_hook.py:104
↓ 2 callersMethodafter_train_iter
Regularly record memory information. Args: runner (:obj:`Runner`): The runner of the training process. batch_idx (int
mmdet/engine/hooks/memory_profiler_hook.py:68
↓ 2 callersMethodafter_val_iter
Run after every ``self.interval`` validation iteration. Args: runner (:obj:`Runner`): The runner of the validation process.
mmdet/engine/hooks/visualization_hook.py:209
↓ 2 callersMethodafter_val_iter
Regularly record memory information. Args: runner (:obj:`Runner`): The runner of the validation process. batch_idx (i
mmdet/engine/hooks/memory_profiler_hook.py:85
↓ 2 callersMethodalbu_builder
Import a module from albumentations. It inherits some of :func:`build_from_cfg` logic. Args: cfg (dict): Config dict. It
mmdet/datasets/transforms/transforms.py:1643
↓ 2 callersFunctionassert_params_all_zeros
Check if the parameters of the module is all zeros. Args: module (nn.Module): The module to be checked. Returns: bool: Wheth
tests/test_models/test_backbones/test_resnet.py:14
↓ 2 callersMethodassign
Assign gt to bboxes. The assignment is done in following steps 1. compute alignment metric between all bbox (bbox of all pyramid
mmdet/models/task_modules/assigners/task_aligned_assigner.py:41
↓ 2 callersFunctionautolabel
Attach a text label above each bar in *rects*, displaying its height.
tools/analysis_tools/coco_error_analysis.py:54
↓ 2 callersMethodbackward
Reversible Backward pass. Any intermediate activations from `buffer_layers` are recovered from ctx. Each layer implements its own loi
mmpretrain/models/backbones/revvit.py:62
↓ 2 callersMethodbackward_pass
Activation re-compute with the following equation. x2 = y2 - g(y1), g = FFN x1 = y1 - f(x2), f = MSHA
mmpretrain/models/backbones/revvit.py:236
↓ 2 callersFunctionbatch_label_to_onehot
Convert a concated label tensor to onehot format. Args: batch_label (torch.Tensor): A concated label tensor from multiple sam
mmpretrain/structures/utils.py:99
↓ 2 callersFunctionbatch_shuffle_ddp
Batch shuffle, for making use of BatchNorm. Args: x (torch.Tensor): Data in each GPU. Returns: Tuple[torch.Tensor, torch.Ten
mmpretrain/models/utils/batch_shuffle.py:9
↓ 2 callersFunctionbbox2delta
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h of proposals w.r.t ground truth bboxes to get regression t
mmdet/models/task_modules/coders/delta_xywh_bbox_coder.py:214
↓ 2 callersMethodbbox_loss
Perform forward propagation and loss calculation of the bbox head on the features of the upstream network. Args: x (tuple
mmdet/models/roi_heads/pisa_roi_head.py:79
↓ 2 callersMethodbbox_loss
Perform forward propagation and loss calculation of the bbox head on the features of the upstream network. Args: stage (i
mmdet/models/roi_heads/sparse_roi_head.py:93
↓ 2 callersMethodbbox_loss
Perform forward propagation and loss calculation of the bbox head on the features of the upstream network. Args: x (tuple
projects/CO-DETR/codetr/co_roi_head.py:78
↓ 2 callersFunctionbbox_mapping
Map bboxes from the original image scale to testing scale.
mmdet/structures/bbox/transforms.py:58
↓ 2 callersMethodbbox_pred_split
Split batch bbox prediction back to each image.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:301
↓ 2 callersFunctionbbox_rescale
Rescale bounding box w.r.t. scale_factor. Args: bboxes (Tensor): Shape (n, 4) for bboxes or (n, 5) for rois scale_factor (float):
mmdet/structures/bbox/transforms.py:233
↓ 2 callersMethodbottleneck_fn
(self, xs)
mmpretrain/models/backbones/densenet.py:49
↓ 2 callersFunctionbuild_prior_generator
(cfg, default_args=None)
mmdet/models/task_modules/builder.py:51
↓ 2 callersMethodcalc_reweight_factor
Compute reweight_factor for regression and classification loss.
mmdet/models/dense_heads/ddod_head.py:292
↓ 2 callersMethodcalculate
Calculate the average recall. Args: pred (torch.Tensor | np.ndarray | Sequence): The prediction results. A :obj:`
mmpretrain/evaluation/metrics/retrieval.py:134
↓ 2 callersMethodcalculate
Calculate the precision, recall, f1-score and support. Args: pred (torch.Tensor | np.ndarray | Sequence): The prediction
mmpretrain/evaluation/metrics/single_label.py:498
↓ 2 callersFunctioncast_tensor_type
(x, scale=1., dtype=None)
mmdet/models/task_modules/assigners/iou2d_calculator.py:8
↓ 2 callersMethodcat
Concatenate a sequence of masks into one single mask instance. Args: masks (Sequence[BitmapMasks]): A sequence of mask instances.
mmdet/structures/mask/structures.py:581
↓ 2 callersFunctioncat_batch_labels
Concat a batch of label tensor to one tensor. Args: elements (List[tensor]): A batch of labels. Returns: Tuple[torch.Tensor,
mmpretrain/structures/utils.py:80
↓ 2 callersFunctioncenter_of_mass
Calculate the centroid coordinates of the mask. Args: mask (Tensor): The mask to be calculated, shape (h, w). esp (float): Avoid
mmdet/models/utils/misc.py:357
↓ 2 callersFunctionchannel_shuffle
Channel Shuffle operation. This function enables cross-group information flow for multiple groups convolution layers. Args: x (T
mmpretrain/models/utils/channel_shuffle.py:5
↓ 2 callersFunctioncheck_integrity
(fpath, md5=None)
mmpretrain/datasets/utils.py:45
↓ 2 callersFunctioncheck_optimizer_lr_wd
(optimizer, gt_lr_wd)
tests/test_engine/test_optimizers/test_layer_decay_optimizer_constructor.py:131
↓ 2 callersMethodclean
Perform text cleaning before tokenizer.
mmpretrain/datasets/transforms/processing.py:1673
↓ 2 callersMethodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/coco_occluded_metric.py:74
↓ 2 callersMethodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
mmdet/evaluation/metrics/voc_metric.py:109
↓ 2 callersMethodcompute_position_embedding
(self)
mmpretrain/models/utils/position_encoding.py:209
↓ 2 callersMethodcompute_recall
Compute the recall of occluded or separated masks. Args: result_dict (dict): Processed mask results. gt_ann (list): O
mmdet/evaluation/metrics/coco_occluded_metric.py:147
↓ 2 callersMethodcondition_attend_previous
Set attend previous.
mmpretrain/models/multimodal/flamingo/modules.py:361
↓ 2 callersMethodcondition_media_locations
Set condition media locations.
mmpretrain/models/multimodal/flamingo/modules.py:357
↓ 2 callersMethodcondition_vis_x
Set condition vision features.
mmpretrain/models/multimodal/flamingo/modules.py:353
↓ 2 callersMethodconstruct_target
Construct the reconstruction target. In addition to splitting images into tokens, this module will also normalize the image according
mmpretrain/models/heads/mae_head.py:70
↓ 2 callersMethodconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
mmpretrain/models/utils/tokenizer.py:151
↓ 2 callersFunctionconvert_crowdhuman
Convert CrowdHuman dataset in COCO style. Args: ann_dir (str): The path of CrowdHuman dataset. save_dir (str): The path to save a
tools/dataset_converters/crowdhuman2coco.py:36
↓ 2 callersFunctionconvert_grounding_to_cls_scores
Convert logits to class scores.
mmdet/models/dense_heads/atss_vlfusion_head.py:31
↓ 2 callersMethodcorner2hbox
Convert box coordinates from corners ((x1, y1), (x2, y1), (x1, y2), (x2, y2)) to (x1, y1, x2, y2). Args: corners (Tensor)
mmdet/structures/bbox/horizontal_boxes.py:220
↓ 2 callersFunctioncreate_figure
Create a independent figure. Different from the :func:`plt.figure`, the figure from this function won't be managed by matplotlib. And it has
mmpretrain/visualization/utils.py:33
↓ 2 callersFunctioncreate_full_masks
(gt_bboxes, img_w, img_h)
tests/test_datasets/test_transforms/utils.py:18
↓ 2 callersFunctioncreate_positive_map
construct a map such that positive_map[i,j] = True if box i is associated to token j Args: tokenized: The tokenized input. to
mmdet/models/detectors/glip.py:98
↓ 2 callersFunctioncreate_positive_map_label_to_token
Create a dictionary mapping the label to the token. Args: positive_map (Tensor): The positive map tensor. plus (int, optional): Va
mmdet/models/detectors/glip.py:151
↓ 2 callersMethodcrop_mask_preds
Crop predicted masks by zeroing out everything not in the predicted bbox. Args: mask_preds (list[Tensor]): Predicted prot
mmdet/models/dense_heads/yolact_head.py:913
↓ 2 callersMethodcutmix_bbox_and_lam
Generate bbox and apply lambda correction. Args: img_shape (tuple): Image shape as tuple lam (float): Cutmix lambda v
mmpretrain/models/utils/batch_augments/cutmix.py:115
↓ 2 callersFunctioncvt_annotations
(devkit_path, years, split, out_file)
tools/dataset_converters/pascal_voc.py:69
↓ 2 callersMethodcxcywh_to_xyxy
Convert box coordinates from (cx, cy, w, h) to (x1, y1, x2, y2). Args: boxes (Tensor): cxcywh boxes tensor with shape of (..., 4)
mmdet/structures/bbox/horizontal_boxes.py:63
↓ 2 callersFunctiondemo_mm_sampling_results
Create sample results that can be passed to BBoxHead.get_targets.
mmdet/testing/_utils.py:236
↓ 2 callersMethoddevice
(self)
projects/Detic_new/detic/detic.py:29
↓ 2 callersFunctiondispatch_model
Split and dispatch a model across devices. The function depends on the `accelerate` package. Refers to https://huggingface.co/docs/accelerate
mmpretrain/apis/utils.py:16
↓ 2 callersFunctiondownload_and_extract_archive
(url, download_root, extract_root=None,
mmpretrain/datasets/utils.py:210
↓ 2 callersFunctiondownload_one
(url, dir)
tools/misc/download_dataset.py:39
↓ 2 callersFunctiondownload_single
(url, dir)
tools/misc/download_dataset.py:69
↓ 2 callersFunctiondownload_url_to_file
Download object at the given URL to a local path. Modified from https://pytorch.org/docs/stable/hub.html#torch.hub.download_url_to_file
mmpretrain/datasets/utils.py:53
↓ 2 callersFunctiondtype_bytes
(dtype: torch.dtype)
mmpretrain/apis/utils.py:238
↓ 2 callersFunctionema_inplace
Update moving average.
mmpretrain/models/utils/vector_quantizer.py:14
↓ 2 callersMethodemd_loss
Calculate the emd loss. Note: This implementation is modified from https://github.com/Purkialo/ CrowdDet/blob/master/
mmdet/models/roi_heads/bbox_heads/multi_instance_bbox_head.py:430
↓ 2 callersMethodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes``. Args: bboxe
projects/EfficientDet/efficientdet/tensorflow/yxyx_bbox_coder.py:16
↓ 2 callersMethodencode_img
The function to encode the images.
mmpretrain/models/multimodal/minigpt4/minigpt4.py:177
↓ 2 callersFunctioneval_map
Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates images,
mmdet/evaluation/functional/mean_ap.py:525
↓ 2 callersMethodevaluate
Evaluate the model performance of the whole dataset after processing all batches. Args: size (int): Length of the entire
mmdet/evaluation/metrics/mot_challenge_metric.py:340
↓ 2 callersFunctionexpanduser
(data_prefix)
mmpretrain/datasets/coco_retrieval.py:14
↓ 2 callersMethodextract_feat
(self, batch_inputs: Tensor)
mmdet/rsprompter/models.py:97
↓ 2 callersMethodextract_feat
(self, batch_inputs: Tensor)
mmdet/rsprompter/models.py:217
↓ 2 callersMethodextract_feat
Extract feature from the input `x`, and split the output to a list. Args: x (Tensor): of shape [N, C, H, W]. N is the number of p
mmdet/models/tracking_heads/roi_embed_head.py:126
↓ 2 callersMethodextract_feat
Extract features from the input tensor with shape (N, C, ...). Args: inputs (Tensor): A batch of inputs. The shape of it should b
mmpretrain/models/multimodal/blip/blip_grounding.py:101
↓ 2 callersMethodfast_eval_recall
Evaluate proposal recall with COCO's fast_eval_recall. Args: results (List[dict]): Results of the dataset. proposal_n
projects/EfficientDet/efficientdet/tensorflow/coco_90metric.py:121
↓ 2 callersMethodfind_inside_points
Find inside box points. Boxes dimension must be 2. Args: points (Tensor): Points coordinates. Has shape of (m, 2). is
mmdet/structures/bbox/horizontal_boxes.py:308
↓ 2 callersMethodformat_input
(input_)
mmpretrain/datasets/transforms/formatting.py:106
↓ 2 callersFunctionformat_score
Convert various python types to score-format tensor. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`Sequence`.
mmpretrain/structures/utils.py:55
↓ 2 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/vfnet_head.py:222
↓ 2 callersMethodforward
Forward feature from the upstream network to get prototypes and linearly combine the prototypes, using masks coefficients, into instan
mmdet/models/dense_heads/condinst_head.py:939
↓ 2 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/gfl_head.py:174
↓ 2 callersMethodforward
Forward features from the upstream network. Args: x (Tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/yolox_head.py:214
↓ 2 callersMethodforward
resize a batch of images and bboxes.
mmdet/models/data_preprocessors/data_preprocessor.py:599
↓ 2 callersMethodforward
Sparse layer norm forward function with 2D data. Args: x (torch.Tensor): The input tensor. data_format (str): The for
mmpretrain/models/utils/sparse_modules.py:104
↓ 2 callersMethodforward
Generate features for masked images. The function supports two kind of forward behaviors. If the ``mask`` is ``True``, the function w
mmpretrain/models/selfsup/itpn.py:282
↓ 2 callersMethodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mmpretrain/models/multimodal/blip/language_model.py:496
↓ 2 callersMethodforward_attn
Forward process for `ConditionalAttention`. Args: query (Tensor): The input query with shape [bs, num_queries, em
mmdet/models/layers/transformer/utils.py:502
↓ 2 callersMethodforward_decoder
Forward with Transformer decoder. The forward procedure of the transformer is defined as: 'pre_transformer' -> 'encoder' -> 'pre_deco
mmdet/models/detectors/dino.py:216
↓ 2 callersMethodforward_features
(self, x)
mmpretrain/models/backbones/replknet.py:621
← previousnext →701–800 of 6,823, ranked by callers