MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 1 callersMethodrun_once
Executes the benchmark once.
mmdet/utils/benchmark.py:112
↓ 1 callersFunctionsample_vectors
Sample vectors according to the given number.
mmpretrain/models/utils/vector_quantizer.py:27
↓ 1 callersMethodsample_via_interval
Sample according to the iou interval. Args: max_overlaps (torch.Tensor): IoU between bounding boxes and ground tr
mmdet/models/task_modules/samplers/iou_balanced_neg_sampler.py:47
↓ 1 callersMethodsampling_frames
Sampling frames. Args: video_length (int): The length of the video. key_frame_id (int): The key frame id. Re
mmdet/datasets/transforms/frame_sampling.py:113
↓ 1 callersMethodsave_attention_map
(self, attention_map)
mmpretrain/models/multimodal/blip/language_model.py:188
↓ 1 callersMethodsave_pred_results
Save the results to a zip file (standard format for YouTube-VIS Challenge). Args: pred_results (list): Testing results of
mmdet/evaluation/metrics/youtube_vis_metric.py:355
↓ 1 callersMethodsave_prototype
(self, path)
mmpretrain/apis/image_retrieval.py:141
↓ 1 callersMethodsave_prototype
(self, path)
mmpretrain/apis/multimodal_retrieval.py:186
↓ 1 callersMethodsave_prototype
(self, path)
mmpretrain/apis/multimodal_retrieval.py:451
↓ 1 callersFunctionsave_result
Saving predictions as json file for evaluation.
mmdet/evaluation/metrics/coco_caption_metric.py:97
↓ 1 callersMethodscore_samples
(self, loss)
tests/test_models/test_dense_heads/test_lad_head.py:31
↓ 1 callersMethodscore_voting
Implementation of score voting method works on each remaining boxes after NMS procedure. Args: det_bboxes (Tensor): Remai
mmdet/models/dense_heads/paa_head.py:666
↓ 1 callersFunctionselect_group
(data_batch, current_tag)
mmdet/utils/split_batch.py:32
↓ 1 callersMethodsemantic_loss
Semantic segmentation loss. Args: x (Tuple[Tensor]): Tuple of multi-level img features. batch_data_samples (list[:obj
mmdet/models/roi_heads/scnet_roi_head.py:303
↓ 1 callersFunctionseparate_coco_semantic_from_panoptic
Create semantic segmentation annotations from panoptic segmentation annotations, to be used by PanopticFPN. It maps all thing categories to c
tools/dataset_converters/prepare_coco_semantic_annos_from_panoptic_annos.py:829
↓ 1 callersMethodsetDetParams
(self)
mmdet/evaluation/functional/ytviseval.py:585
↓ 1 callersMethodsetKpParams
(self)
mmdet/evaluation/functional/ytviseval.py:600
↓ 1 callersMethodset_dataset_classes
Pass the category of the corresponding year to metainfo. Args: dataset_version (str): Select dataset year version.
mmdet/datasets/youtube_vis_dataset.py:19
↓ 1 callersMethodset_decoder_layers_attr_name
Set decoder layers attribute name.
mmpretrain/models/multimodal/flamingo/adapter.py:55
↓ 1 callersMethodset_epoch
(self, epoch)
mmdet/datasets/samplers/track_img_sampler.py:145
↓ 1 callersMethodset_grad_checkpointing
(self, enable=True)
mmpretrain/models/multimodal/chinese_clip/bert.py:191
↓ 1 callersMethodset_gt_score
Set score of ``gt_label``.
mmdet/structures/reid_data_sample.py:92
↓ 1 callersMethodset_margins
set margins of arcface head. Args: margins (Union[Sequence[float], float]): The marigins.
mmpretrain/models/heads/margin_head.py:195
↓ 1 callersMethodset_mask
(self, value: Union[torch.Tensor, np.ndarray])
mmpretrain/structures/data_sample.py:116
↓ 1 callersMethodset_nms
NMS for multi-instance prediction. Please refer to https://github.com/Purkialo/CrowdDet for more details. Args: bboxes (T
mmdet/models/roi_heads/bbox_heads/multi_instance_bbox_head.py:573
↓ 1 callersMethodset_param
Set the parameter.
mmpretrain/engine/hooks/warmup_param_hook.py:44
↓ 1 callersFunctionset_recall_param
Check proposal_nums and iou_thrs and set correct format.
mmdet/evaluation/functional/recall.py:44
↓ 1 callersFunctionsetattr_recursive
Set nested attribute of obj Example: setattr_recursive(obj, 'a.b.c', val) is equivalent to obj.a.b.c = val
mmpretrain/models/multimodal/flamingo/utils.py:56
↓ 1 callersFunctionsetup
(app)
docs/en/conf.py:115
↓ 1 callersFunctionshift_rbboxes
Shift rotated bboxes with offset. Args: bboxes (Tensor): The rotated bboxes need to be translated. With shape (n, 5), which m
mmdet/utils/large_image.py:11
↓ 1 callersMethodside_aware_feature_extractor
Refine and extract side-aware features without split them.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:249
↓ 1 callersMethodsigmoid_cross_entropy_loss
(self, cls_score, labels)
projects/Detic_new/detic/detic_bbox_head.py:253
↓ 1 callersFunctionsigmoid_focal_loss
r"""Sigmoid focal loss. Args: pred (torch.Tensor): The prediction with shape (N, \*). target (torch.Tensor): The ground truth lab
mmpretrain/models/losses/focal_loss.py:9
↓ 1 callersMethodsimilarity_fn
Returns a function that calculates the similarity.
mmpretrain/models/retrievers/image2image.py:99
↓ 1 callersFunctionsine_func
(x: torch.Tensor)
mmdet/models/layers/transformer/utils.py:902
↓ 1 callersMethodsingle_assigner
(self, pred_instances, gt_instances, img_meta)
projects/DiffusionDet/diffusiondet/loss.py:212
↓ 1 callersMethodsingle_level_grid_anchors
Generate grid anchors of a single level. Note: This function is usually called by method ``self.grid_anchors``. Args:
mmdet/models/task_modules/prior_generators/anchor_generator.py:370
↓ 1 callersMethodsingle_level_grid_priors
Generate grid Points of a single level. Note: This function is usually called by method ``self.grid_priors``. Args:
mmdet/models/task_modules/prior_generators/point_generator.py:173
↓ 1 callersMethodsingle_level_valid_flags
Generate the valid flags of points of a single feature map. Args: featmap_size (tuple[int]): The size of feature maps, arrange as
mmdet/models/task_modules/prior_generators/point_generator.py:263
↓ 1 callersMethodsingle_level_valid_flags
Generate the valid flags of anchor in a single feature map. Args: featmap_size (tuple[int]): The size of feature maps, arrange
mmdet/models/task_modules/prior_generators/anchor_generator.py:446
↓ 1 callersFunctionsiou_loss
r"""`Implementation of paper `SIoU Loss: More Powerful Learning for Bounding Box Regression <https://arxiv.org/abs/2205.12740>`_. Code is mod
mmdet/models/losses/iou_loss.py:329
↓ 1 callersMethodslice_as
Slice ``src`` as ``dst`` Note: ``src`` should have the same or larger size than ``dst``. Args: src (torch.Te
mmdet/models/necks/fpn_carafe.py:219
↓ 1 callersFunctionsort_excel
(in_csv, out_xlsx)
projects/RF100-Benchmark/scripts/log_extract.py:180
↓ 1 callersFunctionsplit_coco
Split COCO data for Semi-supervised object detection. Args: data_root (str): The data root of coco dataset. out_dir (str): The ou
tools/misc/split_coco.py:43
↓ 1 callersFunctionstack_batch_scores
Stack the ``score`` of a batch of :obj:`LabelData` to a tensor. Args: elements (List[LabelData]): A batch of :obj`LabelData`. dev
mmdet/models/data_preprocessors/reid_data_preprocessor.py:21
↓ 1 callersFunctionstack_boxes
Stack boxes with type of tensor or box type. Args: data_list (List[Union[Tensor, :obj:`BaseBoxes`]]): A list of tensors or bo
mmdet/structures/bbox/transforms.py:375
↓ 1 callersFunctionstack_track_batch
Stack multiple tensors to form a batch and pad the images to the max shape use the right bottom padding mode in these images. If ``pad_size_di
mmdet/models/data_preprocessors/track_data_preprocessor.py:213
↓ 1 callersMethodstar_dcn_offset
Compute the star deformable conv offsets. Args: bbox_pred (Tensor): Predicted bbox distance offsets (l, r, t, b). gra
mmdet/models/dense_heads/vfnet_head.py:307
↓ 1 callersMethodstep
Performs a single optimization step. Args: closure (callable, optional): A closure that reevaluates the model and
mmpretrain/engine/optimizers/lars.py:75
↓ 1 callersFunctionsum_excel
(in_csv, out_xlsx)
projects/RF100-Benchmark/scripts/log_extract.py:189
↓ 1 callersFunctionswin_converter
(ckpt)
tools/model_converters/swinv1_to_mmdet.py:10
↓ 1 callersFunctionswin_converter
(ckpt)
mmdet/models/backbones/swin.py:767
↓ 1 callersMethodswitch_to_deploy
(self)
mmpretrain/models/backbones/levit.py:496
↓ 1 callersMethodswitch_to_deploy
(self)
mmpretrain/models/heads/levit_head.py:64
↓ 1 callersFunctiontblr2bboxes
Decode tblr outputs to prediction boxes. The process includes 3 steps: 1) De-normalize tblr coordinates by multiplying it with `normalizer`;
mmdet/models/task_modules/coders/tblr_bbox_coder.py:145
↓ 1 callersFunctiontensor2obj
Deserialize tensor to picklable python object.
mmdet/utils/dist_utils.py:74
↓ 1 callersMethodtensor_add
Add tensors ``a`` and ``b`` that might have different sizes.
mmdet/models/necks/fpn_carafe.py:239
↓ 1 callersFunctiontf2pth
(v)
projects/EfficientDet/convert_tf_to_pt.py:10
↓ 1 callersMethodtokenize
Returns the tokenized representation of given input string(s) Args: texts (Union[str, List[str]]): An input string or a list of i
mmpretrain/models/multimodal/clip/clip.py:236
↓ 1 callersMethodtokenize
Returns the tokenized representation of given input string(s) Args: texts (Union[str, List[str]]): An input string or a list of i
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:413
↓ 1 callersMethodtokenize
(self, texts: Union[str, List[str]], context_length: int = 77)
projects/Detic/detic/text_encoder.py:26
↓ 1 callersMethodtokenize
(self, texts: Union[str, List[str]], context_length: int = 77)
projects/Detic_new/detic/detic.py:36
↓ 1 callersMethodtrain
Convert the model into training mode while keep layers freezed.
mmdet/models/backbones/swin.py:644
↓ 1 callersMethodtrain
(self, mode=True)
mmdet/models/backbones/efficientnet.py:412
↓ 1 callersMethodtrain
change the mode of model.
mmpretrain/models/backbones/levit.py:185
↓ 1 callersMethodtrain
(self, mode=True)
mmpretrain/models/backbones/vig.py:666
↓ 1 callersMethodtrain
(self, mode=True)
mmpretrain/models/backbones/efficientformer.py:604
↓ 1 callersMethodtrain
(self, mode=True)
mmpretrain/models/utils/attention.py:902
↓ 1 callersMethodtransform
Transform function to load proposals from file. Args: results (dict): Result dict from :obj:`mmdet.CustomDataset`. Retur
mmdet/datasets/transforms/loading.py:670
↓ 1 callersMethodtransform
Apply transform to results.
mmpretrain/datasets/transforms/auto_augment.py:421
↓ 1 callersMethodtransform_bbox_targets
Transform bbox_targets (x1, y1, x2, y2) into (l, t, r, b) format. Args: decoded_bboxes (list[Tensor]): Regression targets of each
mmdet/models/dense_heads/vfnet_head.py:687
↓ 1 callersMethodtranslate_
Translate boxes in-place. Args: distances (Tuple[float, float]): translate distances. The first is horizontal dis
mmdet/structures/bbox/horizontal_boxes.py:143
↓ 1 callersMethodtranslate_
(self, distances)
tests/test_structures/test_bbox/utils.py:27
↓ 1 callersMethodtriplet_sampling
Triplet sampler for hard mining triplet loss. First, for one pos_pid, random sample ins_per_id images with same person id. Then, rand
mmdet/datasets/reid_dataset.py:81
↓ 1 callersFunctiontruncate_cls_channel
(val, num_classes=81)
tools/model_converters/upgrade_model_version.py:68
↓ 1 callersFunctiontruncate_reg_channel
(val, num_classes=81)
tools/model_converters/upgrade_model_version.py:90
↓ 1 callersFunctionupdate
(cfg, src_str, dst_str)
mmdet/utils/misc.py:75
↓ 1 callersMethodupdate
Tracking forward function. Args: ids (Tensor): of shape(N, ). bboxes (Tensor): of shape (N, 5). embeds (T
mmdet/models/trackers/quasi_dense_tracker.py:82
↓ 1 callersMethodupdate
Run Kalman filter correction step. Args: mean (ndarray): The predicted state's mean vector (8 dimensional). covarianc
mmdet/models/task_modules/tracking/kalman_filter.py:162
↓ 1 callersFunctionupdate_bn_stats
Computes precise BN stats on training data. Args: model (nn.module): The model whose bn stats will be recomputed. loader (DataLoa
mmpretrain/engine/hooks/precise_bn_hook.py:59
↓ 1 callersMethodupdate_hyperparameters
Update hyperparameters like IoU thresholds for assigner and beta for SmoothL1 loss based on the training statistics. Returns:
mmdet/models/roi_heads/dynamic_roi_head.py:142
↓ 1 callersMethodupdate_skip_type_keys
Update skip_type_keys. It is called by an external hook. Args: skip_type_keys (list[str], optional): Sequence of type
mmdet/datasets/dataset_wrappers.py:161
↓ 1 callersMethodupdate_track
Update a track.
mmdet/models/trackers/base_tracker.py:101
↓ 1 callersMethodupdate_weight
Update the weight according to targets. Args: pred (torch.Tensor): The prediction. target (torch.Tensor): The learnin
mmdet/models/losses/margin_loss.py:78
↓ 1 callersMethodupdate_weight
Update the weight according to targets.
mmdet/models/losses/l2_loss.py:82
↓ 1 callersFunctionvarifocal_loss
`Varifocal Loss <https://arxiv.org/abs/2008.13367>`_ Args: pred (Tensor): The prediction with shape (N, C), C is the number o
mmdet/models/losses/varifocal_loss.py:12
↓ 1 callersMethodvel_direction
Estimate the direction vector between two boxes.
mmdet/models/trackers/ocsort_tracker.py:117
↓ 1 callersMethodvel_direction_batch
Estimate the direction vector given two batches of boxes.
mmdet/models/trackers/ocsort_tracker.py:127
↓ 1 callersMethodvisualize
Visualize predictions. Args: inputs (List[Union[str, np.ndarray]]): Inputs for the inferencer. preds (List[:obj:`DetD
mmdet/apis/det_inferencer.py:419
↓ 1 callersMethodvisualize
Visualize predictions. Customize your visualization by overriding this method. visualize should return visualization results, which c
mmpretrain/apis/base.py:234
↓ 1 callersMethodvisualize_i2t_retrieval
Visualize Image-To-Text retrieval result. This method will draw the input image and the texts retrieved from the prototype dataset.
mmpretrain/visualization/visualizer.py:687
↓ 1 callersMethodvisualize_image_caption
Visualize image caption result. This method will draw the input image and the images caption. Args: image (np.ndarray):
mmpretrain/visualization/visualizer.py:345
↓ 1 callersMethodvisualize_image_retrieval
Visualize image retrieval result. This method will draw the input image and the images retrieved from the prototype dataset.
mmpretrain/visualization/visualizer.py:171
↓ 1 callersMethodvisualize_t2i_retrieval
Visualize Text-To-Image retrieval result. This method will draw the input text and the images retrieved from the prototype dataset.
mmpretrain/visualization/visualizer.py:601
↓ 1 callersMethodvisualize_visual_grounding
Visualize visual grounding result. This method will draw the input image, bbox and the object. Args: image (np.ndarray):
mmpretrain/visualization/visualizer.py:503
↓ 1 callersMethodvisualize_vqa
Visualize visual question answering result. This method will draw the input image, question and answer. Args: image (np.
mmpretrain/visualization/visualizer.py:423
↓ 1 callersMethodwarp_means
Warp track.mean according to the warping matrix.
mmdet/models/task_modules/tracking/camera_motion_compensation.py:56
↓ 1 callersFunctionwindow_partition
Partition into non-overlapping windows with padding if needed. Borrowed from https://github.com/facebookresearch/segment-anything/ Args:
mmpretrain/models/backbones/vit_sam.py:17
↓ 1 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
projects/ViTDet/vitdet/vit.py:127
↓ 1 callersMethodwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) H (int): Height of image W (int): Width of im
mmdet/models/backbones/swin.py:257
← previousnext →2,401–2,500 of 6,823, ranked by callers