MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 1 callersMethodpredict_generate
Predict answers in a generation manner.
mmpretrain/models/heads/vqa_head.py:215
↓ 1 callersMethodpredict_mask
( self, x: Tuple[Tensor], batch_img_metas: List[dict], results_list: InstanceL
mmdet/rsprompter/models.py:1511
↓ 1 callersMethodpredict_mask
Perform forward propagation of the mask head and predict detection results on the features of the upstream network. Args:
mmdet/models/roi_heads/htc_roi_head.py:448
↓ 1 callersMethodpredict_noise_from_start
(self, x_t, t, x0)
projects/DiffusionDet/diffusiondet/head.py:700
↓ 1 callersMethodpredict_query_head
(self, mlvl_feats: Tuple[Tensor], batch_data_samples: Sa
projects/CO-DETR/codetr/codetr.py:285
↓ 1 callersMethodpredict_rank
Predict rank in a close-set answer list.
mmpretrain/models/heads/vqa_head.py:138
↓ 1 callersMethodpredict_roi_head
(self, mlvl_feats: Tuple[Tensor], batch_data_samples: Sample
projects/CO-DETR/codetr/codetr.py:292
↓ 1 callersFunctionprefetch_batch_input_shape
(model: nn.Module, ori_wh: Tuple[int, int])
demo/video_gpuaccel_demo.py:47
↓ 1 callersFunctionprefilter_boxes
(boxes, scores, labels, weights, thr)
mmdet/models/utils/wbf.py:134
↓ 1 callersMethodprepare_data
Get data processed by ''self.pipeline''. Args: idx (int): The index of ''data_info'' Returns: Any: Depends o
mmdet/datasets/reid_dataset.py:63
↓ 1 callersMethodprepare_data
Get data processed by ``self.pipeline``. Args: idx (int): The index of ``data_info``. Returns: Any: Depends
mmpretrain/datasets/multi_task.py:278
↓ 1 callersMethodprepare_diffusion
(self, gt_boxes, image_size)
projects/DiffusionDet/diffusiondet/head.py:379
↓ 1 callersFunctionprepare_instance_annotations
(dataset_dir: str)
tools/dataset_converters/ade20k2coco.py:64
↓ 1 callersFunctionprepare_panoptic_annotations
(dataset_dir: str)
tools/dataset_converters/ade20k2coco.py:159
↓ 1 callersMethodprepare_testing_targets
(self, batch_img_metas, device)
projects/DiffusionDet/diffusiondet/head.py:667
↓ 1 callersMethodprepare_text_prototype
The function to prepare text prototypes with prompt.
mmpretrain/models/multimodal/clip/clip.py:350
↓ 1 callersMethodprepare_text_prototype
The function to prepare text prototypes with prompt.
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:397
↓ 1 callersMethodprepare_training_targets
(self, batch_data_samples)
projects/DiffusionDet/diffusiondet/head.py:341
↓ 1 callersMethodpreprocess
Process the inputs into a model-feedable format. Customize your preprocess by overriding this method. Preprocess should return an ite
mmdet/apis/det_inferencer.py:236
↓ 1 callersMethodpreprocess
Process the inputs into a model-feedable format. Customize your preprocess by overriding this method. Preprocess should return an ite
mmpretrain/apis/base.py:201
↓ 1 callersMethodpreprocess
(self, inputs: List[InputType], batch_size: int = 1)
mmpretrain/apis/feature_extractor.py:95
↓ 1 callersMethodpreprocess_gt
Preprocess the ground truth for all images. It aims to reorganize the `gt`. For example, in the `batch_data_sample.gt_instances.mask`
mmdet/models/tracking_heads/mask2former_track_head.py:175
↓ 1 callersMethodpreprocess_text
(self, data_samples, batch_size, device)
mmpretrain/models/multimodal/ofa/ofa.py:258
↓ 1 callersMethodpreprocess_text
(self, data_samples)
mmpretrain/models/multimodal/blip/blip_retrieval.py:180
↓ 1 callersMethodpreprocess_text
Preprocess text in advance before fed into language model. Args: data_samples (List[DataSample]): The annotation
mmpretrain/models/multimodal/llava/llava.py:198
↓ 1 callersMethodpreprocess_text
Preprocess text in advance before fed into language model. Args: data_samples (List[DataSample]): The annotation
mmpretrain/models/multimodal/flamingo/flamingo.py:238
↓ 1 callersFunctionprint_map_summary
Print mAP and results of each class. A table will be printed to show the gts/dets/recall/AP of each class and the mAP. Args: mea
mmdet/evaluation/functional/mean_ap.py:726
↓ 1 callersFunctionprint_panoptic_table
Print the panoptic evaluation results table. Args: pq_results(dict): The Panoptic Quality results. classwise_results(dict, option
mmdet/evaluation/metrics/coco_panoptic_metric.py:578
↓ 1 callersFunctionprint_recall_summary
Print recalls in a table. Args: recalls (ndarray): calculated from `bbox_recalls` proposal_nums (ndarray or list): top N proposal
mmdet/evaluation/functional/recall.py:118
↓ 1 callersFunctionprint_semantic_table
Print semantic segmentation evaluation results table. Args: results (dict): The evaluation results. class_names (list): Class nam
mmdet/evaluation/metrics/semseg_metric.py:244
↓ 1 callersFunctionprint_timm_feature_info
Print feature_info of timm backbone to help development and debug. Args: feature_info (list[dict] | timm.models.features.FeatureInfo | No
mmpretrain/models/backbones/timm_backbone.py:11
↓ 1 callersMethodprocess
Process one batch of data samples and predictions. The processed results should be stored in ``self.results``, which will be used to c
mmdet/evaluation/metrics/crowdhuman_metric.py:145
↓ 1 callersMethodprocess_bbox
(self, bbox)
mmpretrain/models/heads/grounding_head.py:211
↓ 1 callersFunctionprocess_checkpoint
(in_file, out_file, save_keys=['meta', 'state_dict'])
tools/model_converters/publish_model.py:25
↓ 1 callersMethodprocess_image
(self, data_samples, video_len)
mmdet/evaluation/metrics/mot_challenge_metric.py:201
↓ 1 callersMethodprocess_predictions_and_anchors
Compute common vars for regression and classification targets. Args: anchor_list (List[List[Tensor]]): anchors of each image.
mmdet/models/dense_heads/ddod_head.py:421
↓ 1 callersMethodprocess_video
(self, data_samples)
mmdet/evaluation/metrics/youtube_vis_metric.py:69
↓ 1 callersMethodproject_pseudo_instances
Project pseudo instances.
mmdet/models/detectors/semi_base.py:161
↓ 1 callersFunctionpvt_convert
(ckpt)
mmdet/models/backbones/pvt.py:595
↓ 1 callersMethodq_sample
(self, x_start, time, noise=None)
projects/DiffusionDet/diffusiondet/head.py:419
↓ 1 callersMethodquantize_float
Converts a float to closest non-zero int divisible by divisor. Args: number (int): Original number to be quantized. d
mmdet/models/backbones/regnet.py:285
↓ 1 callersMethodquantize_float
Converts a float to closest non-zero int divisible by divior. Args: number (int): Original number to be quantized. di
mmpretrain/models/backbones/regnet.py:241
↓ 1 callersMethodrand_bbox
Standard CutMix bounding-box that generates a random square bbox based on lambda value. This implementation includes support for enfor
mmpretrain/models/utils/batch_augments/cutmix.py:87
↓ 1 callersMethodrand_bbox_minmax
Min-Max CutMix bounding-box Inspired by Darknet cutmix implementation. It generates a random rectangular bbox based on min/max percent
mmpretrain/models/utils/batch_augments/cutmix.py:56
↓ 1 callersMethodrand_crop_params
Get parameters for ``crop`` for a random crop. Args: img (ndarray): Image to be cropped. Returns: tuple: Par
mmpretrain/datasets/transforms/processing.py:164
↓ 1 callersMethodrand_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:307
↓ 1 callersMethodrand_translate_params
(self, dh, dw)
mmpretrain/datasets/transforms/processing.py:1717
↓ 1 callersMethodrandom_choice
Randomly select some elements from the gallery. If `gallery` is a Tensor, the returned indices will be a Tensor; If `gallery` is a nd
mmdet/models/task_modules/samplers/score_hlr_sampler.py:75
↓ 1 callersMethodrandom_choice
Random select some elements from the gallery. It seems that Pytorch's implementation is slower than numpy so we use numpy to randperm
mmdet/models/losses/margin_loss.py:132
↓ 1 callersMethodrandom_choice
Random select some elements from the gallery. It seems that Pytorch's implementation is slower than numpy so we use numpy to randperm
mmdet/models/losses/l2_loss.py:124
↓ 1 callersFunctionrandom_color
Random a color according to the input seed.
mmdet/visualization/local_visualizer.py:509
↓ 1 callersMethodrandom_disable
Randomly disable the transform.
mmpretrain/datasets/transforms/processing.py:622
↓ 1 callersMethodrandom_masking
Generate the mask for MixMIM Pretraining. Args: x (torch.Tensor): Image with data augmentation applied, which is
mmpretrain/models/selfsup/mixmim.py:121
↓ 1 callersMethodrandom_patch
Randomly generate patch the erase.
mmpretrain/datasets/transforms/processing.py:627
↓ 1 callersMethodrandom_pipeline_index
(self)
mmdet/datasets/transforms/augment_wrappers.py:242
↓ 1 callersMethodrandom_policy_indices
Return the random chosen transform indices.
mmpretrain/datasets/transforms/auto_augment.py:255
↓ 1 callersMethodrcnn_cls_loss_by_pseudo_instances
Calculate classification loss from a batch of inputs and pseudo data samples. Args: x (tuple[Tensor]): List of multi-leve
mmdet/models/detectors/soft_teacher.py:169
↓ 1 callersMethodrcnn_reg_loss_by_pseudo_instances
Calculate rcnn regression loss from a batch of inputs and pseudo data samples. Args: x (tuple[Tensor]): List of multi-lev
mmdet/models/detectors/soft_teacher.py:259
↓ 1 callersFunctionreadGTImage
Read an image from path. Same as obj:``cityscapesscripts.evaluation. evalInstanceLevelSemanticLabeling.readGTImage``, but support loading
mmdet/evaluation/functional/cityscapes_utils.py:143
↓ 1 callersFunctionreadPredInfo
A wrapper of obj:``cityscapesscripts.evaluation. evalInstanceLevelSemanticLabeling.readPredInfo``. Args: prediction_file (str): The p
mmdet/evaluation/functional/cityscapes_utils.py:166
↓ 1 callersFunctionread_image_file
Read images from SN3 image file.
mmpretrain/datasets/mnist.py:228
↓ 1 callersFunctionread_label_file
Read labels from SN3 label file.
mmpretrain/datasets/mnist.py:219
↓ 1 callersFunctionreadme
()
setup.py:16
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
mmdet/models/losses/utils.py:10
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
mmpretrain/models/losses/utils.py:8
↓ 1 callersMethodrefine_bboxes
Refine bboxes during training. Args: sampling_results (List[:obj:`SamplingResult`]): Sampling results. bbox_results (
mmdet/models/roi_heads/bbox_heads/sabl_head.py:597
↓ 1 callersMethodrefine_bboxes
Refine bboxes during training. Args: bbox_results (dict): Usually is a dictionary with keys: - `cls_score` (Tens
projects/Detic_new/detic/detic_bbox_head.py:320
↓ 1 callersMethodreg_forward
forward of regression branch.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:311
↓ 1 callersMethodregion_targets
Compute regression and classification targets for anchors when using RegionAssigner. Args: anchor_list (list[list[Tensor]
mmdet/models/dense_heads/cascade_rpn_head.py:270
↓ 1 callersMethodregister_model_index
Parse the model-index file and register all models. Args: model_index_path (str | PathLike): The path of the model-index
mmpretrain/apis/model.py:22
↓ 1 callersFunctionregister_multimodal_placeholder
(names, registry)
mmpretrain/utils/dependency.py:73
↓ 1 callersFunctionregister_vision_transforms
Register transforms in ``torchvision.transforms`` to the ``TRANSFORMS`` registry. Returns: List[str]: A list of registered transforms
mmpretrain/datasets/transforms/processing.py:70
↓ 1 callersMethodregress
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: priors (Tensor): Priors from `rpn_head` or last stage
projects/Detic_new/detic/detic_bbox_head.py:410
↓ 1 callersMethodregress_by_class
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: rois (Tensor): shape (n, 4) or (n, 5) label (T
mmdet/models/roi_heads/bbox_heads/sabl_head.py:660
↓ 1 callersFunctionrelative_coordinate_maps
Generate the relative coordinate maps with feat_stride. Args: locations (Tensor): The prior location of mask feature map. It
mmdet/models/utils/misc.py:573
↓ 1 callersFunctionremove_punctuation
Remove punctuation from a text. Args: text (str): The input text. Returns: str: The text with punctuation removed.
mmdet/models/detectors/glip.py:51
↓ 1 callersMethodreparameterize
Fuse all the parameters of all branches. Returns: tuple[torch.Tensor, torch.Tensor]: Parameters after fusion of all
mmpretrain/models/backbones/repvgg.py:188
↓ 1 callersMethodreparameterize
Fuse all the parameters of all branches. Returns: tuple[torch.Tensor, torch.Tensor]: Parameters after fusion of all
mmpretrain/models/backbones/mobileone.py:184
↓ 1 callersFunctionreplace_value
(cfg)
mmdet/utils/replace_cfg_vals.py:29
↓ 1 callersMethodrescale_
Rescale boxes w.r.t. rescale_factor in-place. Note: Both ``rescale_`` and ``resize_`` will enlarge or shrink boxes w.
mmdet/structures/bbox/horizontal_boxes.py:236
↓ 1 callersMethodrescale_
(self, scale_factor)
tests/test_structures/test_bbox/utils.py:39
↓ 1 callersMethodrescale_init_weight
Rescale the initialized weights.
mmpretrain/models/necks/itpn_neck.py:283
↓ 1 callersMethodrescale_init_weight
Rescale the initialized weights.
mmpretrain/models/selfsup/beit.py:232
↓ 1 callersMethodrescale_init_weight
Rescale the initialized weights.
mmpretrain/models/selfsup/itpn.py:117
↓ 1 callersMethodrescale_patch_aggregation_init_weight
Rescale the initialized weights.
mmpretrain/models/necks/beitv2_neck.py:113
↓ 1 callersFunctionrescale_size
Calculate the new size to be rescaled to. Args: old_size (tuple[int]): The old size (w, h) of image. scale (float | tuple[int]):
mmdet/datasets/transforms/transforms.py:62
↓ 1 callersFunctionrescoring_mask
(scores, mask_pred, masks)
projects/SparseInst/sparseinst/sparseinst.py:17
↓ 1 callersFunctionreset_cls_layer_weight
(model, weight)
projects/Detic/detic/utils.py:60
↓ 1 callersFunctionreset_cls_layer_weight
(roi_head, weight)
projects/Detic_new/detic/detic.py:98
↓ 1 callersMethodresize
see :func:`BaseInstanceMasks.resize`
mmdet/structures/mask/structures.py:698
↓ 1 callersMethodresize_
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/horizontal_boxes.py:254
↓ 1 callersMethodresize_pos_embed
Resize pos_embed weights. Resize pos_embed using bilinear interpolate method. Args: pos_embed (torch.Tensor): Position e
mmdet/models/backbones/pvt.py:323
↓ 1 callersMethodresize_pos_embed
Interface for backward-compatibility.
mmpretrain/models/backbones/beit.py:534
↓ 1 callersMethodresponsible_flags
Generate responsible anchor flags of grid cells in multiple scales. Args: featmap_sizes (List[tuple]): List of feature map sizes
mmdet/models/dense_heads/yolo_head.py:493
↓ 1 callersMethodresult2json
Dump the panoptic results to a COCO style json file and a directory. Args: results (Sequence[dict]): Testing results of the datas
mmdet/evaluation/metrics/coco_panoptic_metric.py:216
↓ 1 callersMethodresults2json
Dump the detection results to a json file.
mmdet/evaluation/metrics/crowdhuman_metric.py:121
↓ 1 callersMethodrotate
Rotate the BitmapMasks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). angle (int | float): Rota
mmdet/structures/mask/structures.py:506
↓ 1 callersMethodrotate_
Rotate all boxes in-place. Args: center (Tuple[float, float]): Rotation origin. angle (float): Rotation angle represe
mmdet/structures/bbox/horizontal_boxes.py:164
↓ 1 callersMethodrotate_
(self, center, angle)
tests/test_structures/test_bbox/utils.py:33
↓ 1 callersMethodrpn_loss_by_pseudo_instances
Calculate rpn loss from a batch of inputs and pseudo data samples. Args: x (tuple[Tensor]): Features from FPN. batch_
mmdet/models/detectors/soft_teacher.py:137
← previousnext →2,301–2,400 of 6,823, ranked by callers