MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 1 callersFunctioncorrect_unfold_reduction_order
(x)
tools/model_converters/groundingdino_to_mmdet.py:10
↓ 1 callersFunctioncorrect_unfold_reduction_order
(x)
tools/model_converters/swinv1_to_mmdet.py:14
↓ 1 callersFunctioncorrect_unfold_reduction_order
(x)
tools/model_converters/glip_to_mmdet.py:21
↓ 1 callersFunctioncorrect_unfold_reduction_order
(x)
mmdet/models/backbones/swin.py:771
↓ 1 callersFunctioncosine_beta_schedule
Cosine schedule as proposed in https://openreview.net/forum?id=-NEXDKk8gZ.
projects/DiffusionDet/diffusiondet/head.py:35
↓ 1 callersFunctioncosine_distance
compute the cosine distance. Args: x (Tensor): embeddings with shape (N,C). y (Tensor): embeddings with shape (M,C). Returns
mmdet/models/trackers/strongsort_tracker.py:23
↓ 1 callersMethodcpu
Convert all tensors to CPU in data.
mmdet/structures/track_data_sample.py:170
↓ 1 callersMethodcreate_csv
Create a csv file to store the results.
mmpretrain/evaluation/metrics/shape_bias_label.py:119
↓ 1 callersFunctioncreate_frame_by_matplotlib
Create gif frame image through matplotlib. Args: image_dir (str): Root directory of result images nrows (int): Number of rows dis
demo/create_result_gif.py:60
↓ 1 callersFunctioncreate_gif
Create gif through imageio. Args: frames (list[ndarray]): Image frames gif_name (str): Saved gif name duration (int): Dis
demo/create_result_gif.py:45
↓ 1 callersMethodcreate_masks
Args: img_shape (Tuple[int, int]): A tuple of image height and width. Returns: :obj:`BitmapMasks`: Converted
mmdet/structures/bbox/horizontal_boxes.py:338
↓ 1 callersMethodcreate_ui
(self)
projects/gradio_demo/launch.py:44
↓ 1 callersMethodcreate_ui
(self)
projects/gradio_demo/launch.py:112
↓ 1 callersMethodcreate_ui
(self)
projects/gradio_demo/launch.py:392
↓ 1 callersMethodcreate_ui
(self)
projects/gradio_demo/launch.py:531
↓ 1 callersMethodcrop_and_resize
See :func:`BaseInstanceMasks.crop_and_resize`.
mmdet/structures/mask/structures.py:366
↓ 1 callersMethodcrop_single
Crop single predicted masks by zeroing out everything not in the predicted bbox. Args: masks (Tensor): Predicted prototyp
mmdet/models/dense_heads/yolact_head.py:941
↓ 1 callersFunctioncross_entropy
Calculate the CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of classes.
mmdet/models/losses/cross_entropy_loss.py:13
↓ 1 callersMethodcuda
Since teacher_model is registered as a plain object, it is necessary to put the teacher model to cuda when calling ``cuda`` function.
mmdet/models/detectors/kd_one_stage.py:90
↓ 1 callersFunctioncvt_annotations
(image_infos, out_json_name)
tools/rsprompter/whu2coco.py:76
↓ 1 callersFunctioncvt_annotations
(image_infos, out_json_name)
tools/dataset_converters/cityscapes.py:87
↓ 1 callersFunctioncvt_to_coco_json
(img_infos, classes)
tools/dataset_converters/images2coco.py:50
↓ 1 callersFunctioncvt_to_coco_json
(annotations)
tools/dataset_converters/pascal_voc.py:97
↓ 1 callersMethoddata_transform
Data Transformation. This is used to standardize the length of tracks to a unified length. Then perform min-max normalization to the m
mmdet/models/task_modules/tracking/aflink.py:170
↓ 1 callersMethoddecoder_norm
The normalization layer of decoder.
mmpretrain/models/necks/itpn_neck.py:296
↓ 1 callersMethoddeform_sampling
Sampling the feature x according to offset. Args: feat (Tensor): Feature offset (Tensor): Spatial offset for feature
mmdet/models/dense_heads/tood_head.py:303
↓ 1 callersFunctiondelta2bbox
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to s
mmdet/models/task_modules/coders/delta_xywh_bbox_coder.py:264
↓ 1 callersFunctiondelta2bbox_glip
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to s
mmdet/models/task_modules/coders/delta_xywh_bbox_coder.py:497
↓ 1 callersMethoddense_model_to_sparse
Convert regular dense modules to sparse modules.
mmpretrain/models/backbones/sparse_resnet.py:113
↓ 1 callersMethoddense_model_to_sparse
Convert regular dense modules to sparse modules.
mmpretrain/models/backbones/sparse_convnext.py:239
↓ 1 callersMethoddetach
Detach all tensors in data.
mmdet/structures/track_data_sample.py:212
↓ 1 callersMethoddetection_evaluate
Evaluation for object detection. Args: dataset (Dataset): A PyTorch dataset. results (list): Object detection results
tools/analysis_tools/analyze_results.py:214
↓ 1 callersFunctiondice_loss
Calculate dice loss, there are two forms of dice loss is supported: - the one proposed in `V-Net: Fully Convolutional Neural Netw
mmdet/models/losses/dice_loss.py:9
↓ 1 callersMethoddifferential_evolution
(self)
tools/analysis_tools/optimize_anchors.py:287
↓ 1 callersFunctiondiou_loss
r"""Implementation of `Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression https://arxiv.org/abs/1911.08287`_. Code is
mmdet/models/losses/iou_loss.py:152
↓ 1 callersFunctiondistributed_sinkhorn
Apply the distributed sinknorn optimization on the scores matrix to find the assignments. This function is modified from https://github.c
mmpretrain/models/losses/swav_loss.py:15
↓ 1 callersFunctiondistribution_focal_loss
r"""Distribution Focal Loss (DFL) is from `Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection
mmdet/models/losses/gfocal_loss.py:144
↓ 1 callersMethoddo_results_post_process
(results_list, cfg, batch_img_metas=None)
projects/DiffusionDet/diffusiondet/head.py:644
↓ 1 callersMethoddouble_step_seq
(step1, len1, step2, len2)
mmdet/models/backbones/swin.py:123
↓ 1 callersMethoddouble_step_seq
(step1, len1, step2, len2)
mmpretrain/models/utils/attention.py:160
↓ 1 callersFunctiondownload
(url, dir, unzip=True, delete=False, threads=1)
tools/misc/download_dataset.py:37
↓ 1 callersFunctiondownload_objects365v2
(url, dir, unzip=True, delete=False, threads=1)
tools/misc/download_dataset.py:67
↓ 1 callersFunctiondownload_url
Download a file from a url and place it in root. Args: url (str): URL to download file from. root (str): Directory to place downl
mmpretrain/datasets/utils.py:120
↓ 1 callersMethoddump_prototype
Save the features extracted from the prototype to the specific path. Args: path (str): Path to save feature.
mmpretrain/models/retrievers/base.py:145
↓ 1 callersMethoddump_results_to_csv
Dump the results to a csv file. Args: results (List[dict]): A list of results.
mmpretrain/evaluation/metrics/shape_bias_label.py:138
↓ 1 callersMethoddynamic_conv_forward
dynamic forward, each layer follow a relu.
mmdet/models/dense_heads/condinst_head.py:928
↓ 1 callersMethoddynamic_k_matching
Use IoU and matching cost to calculate the dynamic top-k positive targets. Same as SimOTA. Args: cost (Tensor): Cost matr
mmdet/models/task_modules/assigners/dynamic_soft_label_assigner.py:186
↓ 1 callersMethoddynamic_k_matching
Use IoU and matching cost to calculate the dynamic top-k positive targets.
mmdet/models/task_modules/assigners/sim_ota_assigner.py:192
↓ 1 callersMethoddynamic_k_matching
Use IoU and matching cost to calculate the dynamic top-k positive targets.
projects/DiffusionDet/diffusiondet/loss.py:300
↓ 1 callersFunctioneiou_loss
r"""Implementation of paper `Extended-IoU Loss: A Systematic IoU-Related Method: Beyond Simplified Regression for Better Localization <https:/
mmdet/models/losses/iou_loss.py:272
↓ 1 callersFunctionempty_box_as
Generate empty box according to input ``boxes` type and device. Args: boxes (Tensor or :obj:`BaseBoxes`): boxes with type of tensor
mmdet/structures/bbox/transforms.py:453
↓ 1 callersMethodempty_boxes
Create empty box. Args: dtype (torch.dtype, Optional): data type of boxes. device (str or torch.device, Optional): de
mmdet/structures/bbox/base_boxes.py:94
↓ 1 callersMethodencode_image
Encode the image. Get the feature and attention mask from the last layer of the visual branch of CLIP. Args: ima
mmpretrain/models/utils/clip_generator_helper.py:321
↓ 1 callersMethodeval_ap
Evaluate by average precision. Args: score_list(list[tuple[ndarray, int, str]]): Matching result. a list of tuple
mmdet/evaluation/metrics/crowdhuman_metric.py:271
↓ 1 callersMethodeval_ji
Evaluate by JI using multi_process. Args: samples(Dict[str, Image]): The detection result packaged by Image. Returns:
mmdet/evaluation/metrics/crowdhuman_metric.py:380
↓ 1 callersMethodeval_mr
Evaluate by Caltech-style log-average miss rate. Args: score_list(list[tuple[ndarray, int, str]]): Matching result.
mmdet/evaluation/metrics/crowdhuman_metric.py:320
↓ 1 callersMethodevaluateImg
(self, imgId, catId, aRng, maxDet)
mmdet/datasets/api_wrappers/cocoeval_mp.py:130
↓ 1 callersFunctionevaluateImgLists
A wrapper of obj:``cityscapesscripts.evaluation. evalInstanceLevelSemanticLabeling.evaluateImgLists``. Support loading groundtruth image from
mmdet/evaluation/functional/cityscapes_utils.py:28
↓ 1 callersMethodevaluate_and_show
Evaluate and show results. Args: dataset (Dataset): A PyTorch dataset. results (list): Object detection or panoptic s
tools/analysis_tools/analyze_results.py:170
↓ 1 callersMethodevaluate_occluded_separated
Compute the recall of occluded and separated masks. Args: results (list[tuple]): Testing results of the dataset. Returns
mmdet/evaluation/metrics/coco_occluded_metric.py:89
↓ 1 callersMethodexpand_arch
(arch)
mmpretrain/models/backbones/cspnet.py:359
↓ 1 callersMethodextend_init
Initialize Flamingo by adding a new gated cross attn to the decoder. Store the media token id for computing the media locations. Arg
mmpretrain/models/multimodal/flamingo/adapter.py:16
↓ 1 callersMethodextend_instance
Apply mixins to a class instance after creation. Args: base (object): Base module instance. mixin: (Type[Any]): Adapt
mmpretrain/models/multimodal/flamingo/utils.py:28
↓ 1 callersMethodextra_repr
The extra repr information of the dataset.
mmpretrain/datasets/base_dataset.py:214
↓ 1 callersFunctionextract_archive
(from_path, to_path=None, remove_finished=False)
mmpretrain/datasets/utils.py:181
↓ 1 callersMethodextract_feat
Extract features from the input tensor with shape (N, C, ...). The default behavior is extracting features from backbone. Args:
mmpretrain/models/selfsup/base.py:131
↓ 1 callersMethodextract_feat
Extract features from the input tensor with shape (N, C, ...). The sub-classes are recommended to implement this method to extract fe
mmpretrain/models/classifiers/base.py:81
↓ 1 callersMethodextract_feat
The function to extract image and text latent features, the input image or text can not both be None.
mmpretrain/models/multimodal/clip/clip.py:194
↓ 1 callersMethodextract_feat
The function to extract image and text latent features, the input image or text can not both be None.
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:318
↓ 1 callersMethodextract_feats
Extract features from a sequence of input tensor. Args: multi_inputs (Sequence[torch.Tensor]): A sequence of input
mmpretrain/models/classifiers/base.py:93
↓ 1 callersMethodextract_teacher_feat
Directly extract teacher features from the backbone+neck.
mmdet/models/detectors/lad.py:57
↓ 1 callersMethodextract_vision_feats
Extract vision features. Args: images (torch.Tensor): For zero-shot, the input images tensor is with shape (B, C,
mmpretrain/models/multimodal/flamingo/flamingo.py:163
↓ 1 callersMethodfast_eval_recall
Evaluate proposal recall with COCO's fast_eval_recall. Args: results (List[dict]): Results of the dataset. proposal_n
mmdet/evaluation/metrics/coco_metric.py:149
↓ 1 callersMethodfast_eval_recall
Evaluate proposal recall with LVIS's fast_eval_recall. Args: results (List[dict]): Results of the dataset. proposal_n
mmdet/evaluation/metrics/lvis_metric.py:141
↓ 1 callersFunctionfast_nms
Fast NMS in `YOLACT <https://arxiv.org/abs/1904.02689>`_. Fast NMS allows already-removed detections to suppress other detections so that eve
mmdet/models/layers/bbox_nms.py:108
↓ 1 callersMethodfilter_data
Filter annotations according to filter_cfg. Returns: List[dict]: Filtered results.
mmdet/datasets/coco.py:165
↓ 1 callersFunctionfind_folders
Find classes by folders under a root. Args: root (string): root directory of folders backend (BaseStorageBackend | None): The fil
mmpretrain/datasets/custom.py:12
↓ 1 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/base_boxes.py:492
↓ 1 callersFunctionfind_matching_box_fast
(boxes_list, new_box, match_iou)
mmdet/models/utils/wbf.py:215
↓ 1 callersFunctionfind_noun_phrases
Find noun phrases in a caption using nltk. Args: caption (str): The caption to analyze. Returns: list: List of noun phrases f
mmdet/models/detectors/glip.py:15
↓ 1 callersMethodformat_gts
Gather all ground-truth from self.results.
mmdet/evaluation/metrics/youtube_vis_metric.py:178
↓ 1 callersFunctionformat_label
Convert label of various python types to :obj:`mmengine.LabelData`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :clas
mmdet/structures/reid_data_sample.py:11
↓ 1 callersMethodformat_preds
Gather all predictions from self.results.
mmdet/evaluation/metrics/youtube_vis_metric.py:192
↓ 1 callersMethodforward
Placeholder of forward function. Args: x (Tensor): Feature maps. Returns: Dict[str, Tensor]: A dictionary, i
mmdet/models/seg_heads/base_semantic_head.py:43
↓ 1 callersMethodforward
(self, feats: Tuple[Tensor])
mmdet/models/dense_heads/reppoints_head.py:277
↓ 1 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/solov2_head.py:269
↓ 1 callersMethodforward
Forward features. Notice CenterNet head does not use FPN. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/centernet_head.py:93
↓ 1 callersMethodforward
Forward features from the upstream network. Args: feats (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/retina_sepbn_head.py:97
↓ 1 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/yolo_head.py:174
↓ 1 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/anchor_head.py:145
↓ 1 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/centernet_update_head.py:122
↓ 1 callersMethodforward
Forward function. Args: hidden_states (Tensor): Hidden states output from each decoder layer, has shape (num_deco
mmdet/models/dense_heads/ddq_detr_head.py:90
↓ 1 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/atss_head.py:129
↓ 1 callersMethodforward
Forward features from the upstream network. Args: feats (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/fcos_head.py:134
↓ 1 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/ddod_head.py:127
↓ 1 callersMethodforward
(self, feats: List[Tensor])
mmdet/models/dense_heads/sabl_retina_head.py:202
↓ 1 callersMethodforward
Forward features from the upstream network. Args: feats (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/corner_head.py:256
↓ 1 callersMethodforward
Computing the similarity scores between `x` and `ref_x`. Args: x (Tensor): of shape [N, C, H, W]. N is the number of key frame
mmdet/models/tracking_heads/roi_embed_head.py:156
↓ 1 callersMethodforward
The unified entry for a forward process in both training and test. The method should accept three modes: "tensor", "predict" and "loss":
mmdet/models/mot/base.py:70
↓ 1 callersMethodforward
Feed the inputs to the model.
mmpretrain/apis/base.py:230
← previousnext →1,601–1,700 of 6,823, ranked by callers