MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 1 callersFunctionbasic_blocks
generate EfficientFormer blocks for a stage.
mmpretrain/models/backbones/efficientformer.py:280
↓ 1 callersFunctionbasic_blocks
generate PoolFormer blocks for a stage return: PoolFormer blocks
mmpretrain/models/backbones/poolformer.py:163
↓ 1 callersFunctionbb_iou_array
(boxes, new_box)
mmdet/models/utils/wbf.py:217
↓ 1 callersFunctionbbox2bucket
Generate buckets estimation and fine regression targets. Args: proposals (Tensor): Shape (n, 4) gt (Tensor): Shape (n, 4)
mmdet/models/task_modules/coders/bucketing_bbox_coder.py:160
↓ 1 callersFunctionbbox2corner
Convert bbox coordinates from (x1, y1, x2, y2) to corners ((x1, y1), (x2, y1), (x1, y2), (x2, y2)). Args: bboxes (Tensor): Shape (n,
mmdet/structures/bbox/transforms.py:293
↓ 1 callersFunctionbbox_center_distance
Compute the center distance between bboxes and priors. Args: bboxes (Tensor): Shape (n, 4) for , "xyxy" format. priors (Tensor):
mmdet/models/task_modules/assigners/atss_assigner.py:15
↓ 1 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/grid_roi_head.py:179
↓ 1 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/standard_roi_head.py:173
↓ 1 callersMethodbbox_loss
Run forward function and calculate loss for box head in training. Args: stage (int): The current stage in Cascade RoI Head.
mmdet/models/roi_heads/scnet_roi_head.py:213
↓ 1 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/dynamic_roi_head.py:98
↓ 1 callersMethodbbox_loss
Run forward function and calculate loss for box head in training. Args: stage (int): The current stage in Cascade RoI Head.
mmdet/models/roi_heads/htc_roi_head.py:110
↓ 1 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/multi_instance_roi_head.py:72
↓ 1 callersMethodbbox_loss
Run forward function and calculate loss for box head in training. Args: stage (int): The current stage in Cascade RoI Head.
mmdet/models/roi_heads/cascade_roi_head.py:150
↓ 1 callersFunctionbboxes2tblr
Encode ground truth boxes to tblr coordinate. It first convert the gt coordinate to tblr format, (top, bottom, left, right), relative to pri
mmdet/models/task_modules/coders/tblr_bbox_coder.py:96
↓ 1 callersFunctionbboxes_area
Compute the area of an array of bboxes. Args: bboxes (Tensor): The coordinates ox bboxes. Shape: (m, 4) Returns: Tensor: Are
mmdet/models/task_modules/assigners/center_region_assigner.py:60
↓ 1 callersFunctionbounded_iou_loss
BIoULoss. This is an implementation of paper `Improving Object Localization with Fitness NMS and Bounded IoU Loss. <https://arxiv.org/abs
mmdet/models/losses/iou_loss.py:69
↓ 1 callersFunctionbox_xyxy_to_cxcywh
(x)
mmpretrain/models/utils/box_utils.py:12
↓ 1 callersFunctionbucket2bbox
Apply bucketing estimation (cls preds) and fine regression (offset preds) to generate det bboxes. Args: proposals (Tensor): Boxes to
mmdet/models/task_modules/coders/bucketing_bbox_coder.py:283
↓ 1 callersMethodbucket_target
Compute bucketing estimation targets and fine regression targets for a batch of images.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:361
↓ 1 callersFunctionbuild_MLP
(input_dim, hidden_dim, output_dim, num_layers)
projects/CO-DETR/codetr/transformer.py:958
↓ 1 callersMethodbuild_attention_mask
Build the attention mask.
mmpretrain/models/utils/clip_generator_helper.py:307
↓ 1 callersMethodbuild_attention_mask
(self)
mmpretrain/models/multimodal/clip/clip.py:137
↓ 1 callersMethodbuild_attention_mask
(self)
projects/XDecoder/xdecoder/language_model.py:164
↓ 1 callersFunctionbuild_clip_model
Build the CLIP model. Args: state_dict (dict): The pretrained state dict. finetune (bool): Whether to fineturn the model.
mmpretrain/models/utils/clip_generator_helper.py:337
↓ 1 callersMethodbuild_iter_from_epoch
Build an iter-based instance of this scheduler from an epoch-based config.
mmdet/engine/schedulers/quadratic_warmup.py:59
↓ 1 callersMethodbuild_roi_layers
Build RoI operator to extract feature from each level feature map. Args: layer_cfg (:obj:`ConfigDict` or dict): Dictionary to con
mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:41
↓ 1 callersFunctionbuild_test_pipeline
Build test_pipeline for mot/vis demo. In mot/vis infer, original test_pipeline should remove the "LoadImageFromFile" and "LoadTrackAnnotations
mmdet/apis/inference.py:248
↓ 1 callersMethodbuild_transformer_pyramid
(self, num_outs=3, embed_dim=512,
mmpretrain/models/necks/itpn_neck.py:168
↓ 1 callersMethodcalc_sub_regions
Compute point specific representation regions. See `Grid R-CNN Plus <https://arxiv.org/abs/1906.05688>`_ for details.
mmdet/models/roi_heads/mask_heads/grid_head.py:233
↓ 1 callersMethodcalculate
Calculate the precision, recall, f1-score. Args: pred (torch.Tensor | np.ndarray | Sequence): The prediction resu
mmpretrain/evaluation/metrics/multi_label.py:255
↓ 1 callersMethodcalculate
r"""Calculate the average precision for a single class. Args: pred (torch.Tensor | np.ndarray): The model predictions with
mmpretrain/evaluation/metrics/multi_label.py:560
↓ 1 callersFunctioncalculate_confusion_matrix
Calculate the confusion matrix. Args: dataset (Dataset): Test or val dataset. results (list[ndarray]): A list of detection result
tools/analysis_tools/confusion_matrix.py:62
↓ 1 callersFunctioncalculate_md5
(fpath: str, chunk_size: int = 1024 * 1024)
mmpretrain/datasets/utils.py:28
↓ 1 callersMethodcalculate_pos_recall
Calculate positive recall with score threshold. Args: cls_scores (list[Tensor]): Classification scores at all fpn levels.
mmdet/models/dense_heads/fsaf_head.py:337
↓ 1 callersMethodcall_checkpoint_bottleneck
(self, x)
mmpretrain/models/backbones/densenet.py:68
↓ 1 callersFunctioncenter_of_mass
Compute the masks center of mass. Args: masks: Mask tensor, has shape (num_masks, H, W). eps: a small number to avoid normalizer
mmdet/models/task_modules/assigners/dynamic_soft_label_assigner.py:19
↓ 1 callersMethodcenterness_target
Calculate the centerness between anchors and gts. Only calculate pos centerness targets, otherwise there may be nan. Args:
mmdet/models/dense_heads/atss_vlfusion_head.py:692
↓ 1 callersMethodcenterness_target
Compute centerness targets. Args: pos_bbox_targets (Tensor): BBox targets of positive bboxes in shape (num_pos, 4
mmdet/models/dense_heads/fcos_head.py:457
↓ 1 callersMethodcenters_to_bboxes
Get bboxes according to center points. Only used in :class:`MaxIoUAssigner`.
mmdet/models/dense_heads/reppoints_head.py:355
↓ 1 callersFunctionciou_loss
r"""`Implementation of paper `Enhancing Geometric Factors into Model Learning and Inference for Object Detection and Instance Segmentation <ht
mmdet/models/losses/iou_loss.py:207
↓ 1 callersMethodclear_conditioned_layers
Clear all conditional layers.
mmpretrain/models/multimodal/flamingo/adapter.py:91
↓ 1 callersMethodclip_
Clip boxes according to the image shape in-place. Args: img_shape (Tuple[int, int]): A tuple of image height and width.
mmdet/structures/bbox/horizontal_boxes.py:154
↓ 1 callersMethodclip_all_boader
Make sure boxes are within the image range.
mmdet/evaluation/metrics/crowdhuman_metric.py:696
↓ 1 callersMethodcls_forward
forward of classification fc layers.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:228
↓ 1 callersFunctioncoco_caption_eval
Evaluation between gt json and prediction json files.
mmdet/evaluation/metrics/coco_caption_metric.py:116
↓ 1 callersFunctioncoco_caption_eval
Evaluation between gt json and prediction json files.
mmpretrain/evaluation/metrics/caption.py:117
↓ 1 callersMethodcollate_dn_queries
Collate generated queries to obtain batched dn queries. The strategy for query collation is as follow: .. code:: text
mmdet/models/layers/transformer/dino_layers.py:435
↓ 1 callersFunctioncollect_annotations
(files, nproc=1)
tools/rsprompter/whu2coco.py:26
↓ 1 callersFunctioncollect_annotations
(files, nproc=1)
tools/dataset_converters/cityscapes.py:32
↓ 1 callersFunctioncollect_env
Collect the information of the running environments.
mmdet/utils/collect_env.py:8
↓ 1 callersFunctioncollect_files
(img_dir, gt_dir)
tools/rsprompter/whu2coco.py:14
↓ 1 callersFunctioncollect_files
(img_dir, gt_dir)
tools/dataset_converters/cityscapes.py:15
↓ 1 callersMethodcollect_grad
(self, pred, target, weight)
mmdet/models/losses/eqlv2_loss.py:151
↓ 1 callersFunctioncollect_image_infos
(path, exclude_extensions=None)
tools/dataset_converters/images2coco.py:31
↓ 1 callersFunctioncollect_tracking_results_cpu
Collect results on cpu mode. Saves the results on different gpus to 'tmpdir' and collects them by the rank 0 worker. Args: resul
mmdet/evaluation/metrics/base_video_metric.py:119
↓ 1 callersMethodcompare
Match the detection results with the ground_truth. Args: samples (dict[Image]): The detection result packaged by Image.
mmdet/evaluation/metrics/crowdhuman_metric.py:248
↓ 1 callersMethodcompare_caltech
Match the detection results with the ground_truth by Caltech matching strategy. Args: thres (float): IOU threshold.
mmdet/evaluation/metrics/crowdhuman_metric.py:766
↓ 1 callersFunctioncompare_res_gts
Evaluate the results of the video. Args: results_dir (str): the directory of the MOT results. dataset (Dataset): MOT dataset of t
tools/analysis_tools/mot/mot_error_visualize.py:45
↓ 1 callersMethodcompare_voc
Match the detection results with the ground_truth by VOC. Args: thres (float): IOU threshold. Returns: score
mmdet/evaluation/metrics/crowdhuman_metric.py:725
↓ 1 callersFunctioncompat_imgs_per_gpu
(cfg)
mmdet/utils/compat_config.py:37
↓ 1 callersFunctioncompat_loader_args
Deprecated sample_per_gpu in cfg.data.
mmdet/utils/compat_config.py:54
↓ 1 callersFunctioncompat_runner_args
(cfg)
mmdet/utils/compat_config.py:22
↓ 1 callersMethodcomputeIoU
(self, vidId, catId)
mmdet/evaluation/functional/ytviseval.py:183
↓ 1 callersMethodcompute_coordinates
(self, x)
projects/SparseInst/sparseinst/decoder.py:165
↓ 1 callersMethodcompute_iou
(self, pred_seg: torch.Tensor, gt_seg: torch.Tensor)
mmdet/evaluation/metrics/refseg_metric.py:21
↓ 1 callersMethodcompute_ji_matching
Match the annotation box for each detection box. Args: dt_boxes(ndarray): Detection boxes. gt_boxes(ndarray): Ground_
mmdet/evaluation/metrics/crowdhuman_metric.py:485
↓ 1 callersFunctioncompute_mask_iou
(inputs, targets)
projects/SparseInst/sparseinst/loss.py:13
↓ 1 callersMethodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Defaults t
mmdet/evaluation/metrics/mot_challenge_metric.py:274
↓ 1 callersMethodcompute_metrics
Compute the metrics from processed results. Args: results (List): The processed results of each batch. Returns:
mmdet/evaluation/metrics/youtube_vis_metric.py:113
↓ 1 callersMethodcompute_metrics
(self, results)
tests/test_engine/test_hooks/test_mean_teacher_hook.py:88
↓ 1 callersMethodcompute_score_matrix_i2t
Compare the score matrix for image-to-text retrieval. Every image should compare to all the text features. Args: img_feat
mmpretrain/models/multimodal/blip/blip_retrieval.py:548
↓ 1 callersMethodcompute_score_matrix_i2t
Compare the score matrix for image-to-text retrieval. Every image should compare to all the text features. Args: img_feat
mmpretrain/models/multimodal/blip2/blip2_retriever.py:385
↓ 1 callersMethodcompute_score_matrix_t2i
Compare the score matrix for text-to-image retrieval. Every text should compare to all the image features. Args: img_feat
mmpretrain/models/multimodal/blip/blip_retrieval.py:595
↓ 1 callersMethodcompute_score_matrix_t2i
Compare the score matrix for text-to-image retrieval. Every text should compare to all the image features. Args: img_fea
mmpretrain/models/multimodal/blip2/blip2_retriever.py:445
↓ 1 callersMethodcompute_similarity
(self, v_emb, name='default')
projects/XDecoder/xdecoder/language_model.py:94
↓ 1 callersMethodcompute_uncertainty_with_aug
Compute uncertainty with augmented bboxes. Args: x (tuple[Tensor]): List of multi-level img features. batch_data_samp
mmdet/models/detectors/soft_teacher.py:290
↓ 1 callersMethodconstruct_target
Construct the reconstruction target. In addition to splitting images into tokens, this module will also normalize the image according
mmpretrain/models/heads/spark_head.py:50
↓ 1 callersFunctionconvert
(ckpt)
tools/model_converters/detic_to_mmdet.py:105
↓ 1 callersFunctionconvert
Convert Detectron2 checkpoint to MMDetection style. Args: src (str): The Detectron2 checkpoint path, should endswith `pkl`. dst (
tools/model_converters/detectron2_to_mmdet.py:10
↓ 1 callersFunctionconvert
(ckpt)
tools/model_converters/groundingdino_to_mmdet.py:24
↓ 1 callersFunctionconvert
Convert keys in checkpoints. There can be some breaking changes during the development of mmdetection, and this tool is used for upgrading ch
tools/model_converters/upgrade_model_version.py:115
↓ 1 callersFunctionconvert
(in_file, out_file)
tools/model_converters/upgrade_ssd_version.py:23
↓ 1 callersFunctionconvert
(ckpt)
tools/model_converters/glip_to_mmdet.py:35
↓ 1 callersFunctionconvert
Convert keys in detectron pretrained ResNet models to pytorch style.
tools/model_converters/detectron2pytorch.py:35
↓ 1 callersFunctionconvert
Convert keys in pycls pretrained RegNet models to mmdet style.
tools/model_converters/regnet2mmdet.py:55
↓ 1 callersFunctionconvert
(src, dst)
projects/DiffusionDet/model_converters/diffusiondet_resnet_to_mmdet.py:10
↓ 1 callersFunctionconvert_d2_pred_to_datasample
Convert the Detectron2's result to DetDataSample. Args: data_samples (list[:obj:`DetDataSample`]): The batch data samples. It
mmdet/models/detectors/d2_wrapper.py:57
↓ 1 callersFunctionconvert_head
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:16
↓ 1 callersFunctionconvert_key
(model_name, bifpn_repeats, weights)
projects/EfficientDet/convert_tf_to_pt.py:18
↓ 1 callersFunctionconvert_reslayer
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:23
↓ 1 callersFunctionconvert_stem
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:8
↓ 1 callersFunctionconvert_vis
Convert YouTube-VIS dataset in COCO style. Args: ann_dir (str): The path of YouTube-VIS dataset. save_dir (str): The path to save
tools/dataset_converters/youtubevis2coco.py:33
↓ 1 callersMethodcopy_params
(self)
mmpretrain/models/multimodal/blip/blip_retrieval.py:695
↓ 1 callersFunctioncorner2bbox
Convert bbox coordinates from corners ((x1, y1), (x2, y1), (x1, y2), (x2, y2)) to (x1, y1, x2, y2). Args: corners (Tensor): Shape (n*
mmdet/structures/bbox/transforms.py:306
↓ 1 callersFunctioncorrect_unfold_norm_order
(x)
tools/model_converters/detic_to_mmdet.py:98
↓ 1 callersFunctioncorrect_unfold_norm_order
(x)
tools/model_converters/groundingdino_to_mmdet.py:17
↓ 1 callersFunctioncorrect_unfold_norm_order
(x)
tools/model_converters/swinv1_to_mmdet.py:21
↓ 1 callersFunctioncorrect_unfold_norm_order
(x)
tools/model_converters/glip_to_mmdet.py:28
↓ 1 callersFunctioncorrect_unfold_norm_order
(x)
mmdet/models/backbones/swin.py:778
↓ 1 callersFunctioncorrect_unfold_reduction_order
(x)
tools/model_converters/detic_to_mmdet.py:91
← previousnext →1,501–1,600 of 6,823, ranked by callers