MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 2 callersFunctionmake_image_bucket_position
(bucket_size, num_relative_distance)
mmpretrain/models/multimodal/ofa/ofa_modules.py:44
↓ 2 callersMethodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmdet/models/backbones/resnet.py:556
↓ 2 callersMethodmake_res_layer
(self, **kwargs)
mmpretrain/models/backbones/resnet.py:569
↓ 2 callersFunctionmake_token_bucket_position
(bucket_size, max_position=1024)
mmpretrain/models/multimodal/ofa/ofa_modules.py:27
↓ 2 callersFunctionmakebarplot
(rs, ps, outDir, class_name, iou_type)
tools/analysis_tools/coco_error_analysis.py:73
↓ 2 callersFunctionmakeplot
(rs, ps, outDir, class_name, iou_type)
tools/analysis_tools/coco_error_analysis.py:13
↓ 2 callersMethodmapper
Dictionary mapper. Renames keys according to keymap provided. Args: d (dict): old dict keymap (dict): {'old_key':'new
mmdet/datasets/transforms/transforms.py:1677
↓ 2 callersMethodmapper
Dictionary mapper. Renames keys according to keymap provided. Args: d (dict): old dict keymap (dict): {'old_k
mmpretrain/datasets/transforms/processing.py:1228
↓ 2 callersFunctionmask_target
Compute mask target for positive proposals in multiple images. Args: pos_proposals_list (list[Tensor]): Positive proposals in multiple
mmdet/structures/mask/mask_target.py:7
↓ 2 callersFunctionmaybe_to_cpu
(x)
projects/XDecoder/xdecoder/utils.py:60
↓ 2 callersFunctionmerge_hparams
Merge hyperparameters into policy config. Only merge partial hyperparameters required of the policy. Args: policy (dict): Original p
mmpretrain/datasets/transforms/auto_augment.py:18
↓ 2 callersMethodmomentum_update
Compute the moving average of the parameters using exponential moving average.
mmdet/engine/hooks/mean_teacher_hook.py:71
↓ 2 callersMethodnorm1
(self)
mmpretrain/models/backbones/vit_sam.py:291
↓ 2 callersMethodnorm1
(self)
mmpretrain/models/backbones/resnet.py:238
↓ 2 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmdet/models/backbones/resnet.py:254
↓ 2 callersMethodnorm2
(self)
mmpretrain/models/backbones/vit_sam.py:295
↓ 2 callersMethodocm_assign_ids
Apply Observation-Centric Momentum (OCM) to assign ids. OCM adds movement direction consistency into the association cost matrix. Thi
mmdet/models/trackers/ocsort_tracker.py:157
↓ 2 callersMethodoffset_to_pts
Change from point offset to point coordinate.
mmdet/models/dense_heads/reppoints_head.py:373
↓ 2 callersMethodpad_gt_masks
Pad gt_masks to shape of batch_input_shape.
mmdet/models/data_preprocessors/data_preprocessor.py:185
↓ 2 callersMethodpanoptic_postprocess
Panoptic segmengation inference. Args: mask_cls (Tensor): Classfication outputs of shape (num_queries, cls_out_ch
mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py:41
↓ 2 callersMethodparse_basic_anno
Parse basic annotation for support and query set. Args: anno (dict): Annotation for single example. Return:
mmpretrain/datasets/flamingo.py:106
↓ 2 callersMethodparse_basic_anno
Parse basic annotation for support and query set. Args: anno (dict): Annotation for single example. coco (COCO): The
mmpretrain/datasets/flamingo.py:230
↓ 2 callersMethodparse_data_info
Parse raw annotation to target format. This method will return a dict which contains the data information of a sample. Args:
mmpretrain/datasets/multi_task.py:246
↓ 2 callersFunctionparse_gts
(gts, is_mot15)
tools/dataset_converters/mot2coco.py:60
↓ 2 callersFunctionparse_require_file
(fpath)
setup.py:108
↓ 2 callersMethodpatchify
Split images into non-overlapped patches. Args: imgs (torch.Tensor): A batch of images, of shape B x C x H x W. Returns:
mmpretrain/models/heads/spark_head.py:28
↓ 2 callersFunctionpermute_and_flatten
Permute and then flatten a tensor, from size (N, A, C, H, W) to (N, H * W * A, C). Args: layer (Tensor): Tensor of shape (N, C, H
mmdet/models/utils/vlfuse_helper.py:34
↓ 2 callersMethodpre_transformer
Prepare the inputs of the Transformer. The forward procedure of the transformer is defined as: 'pre_transformer' -> 'encoder' -> 'pre
mmdet/models/detectors/detr.py:50
↓ 2 callersMethodpred2dict
Extract elements necessary to represent a prediction into a dictionary. It's better to contain only basic data elements such as strin
mmdet/apis/det_inferencer.py:564
↓ 2 callersMethodpredict
Predict results by fusing the results of instance and semantic segmentations. Args: mask_results_list (list[:obj:`Instanc
mmdet/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py:140
↓ 2 callersMethodpredict_by_feat
Transform a batch of output features extracted from the head into bbox results. Note: When score_factors is not None, the cls_scores
mmdet/models/dense_heads/base_dense_head.py:201
↓ 2 callersMethodpredict_by_feat
Transform network output for a batch into bbox predictions. Args: center_heatmap_preds (list[Tensor]): Center predict heatmaps fo
mmdet/models/dense_heads/centernet_head.py:272
↓ 2 callersMethodpredict_by_feat
Transform a batch of output features extracted by the head into bbox results. Args: cls_scores (list[Tensor]): Classificat
mmdet/models/dense_heads/yolox_head.py:231
↓ 2 callersMethodpredict_by_feat
Transform network outputs for a batch into bbox predictions. Args: layer_cls_scores (Tensor): Classification outputs of the last
mmdet/models/dense_heads/detr_head.py:529
↓ 2 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/scnet_roi_head.py:537
↓ 2 callersMethodprepare_data
Prepare data for the subsequent pipeline. Args: video_infos (dict): The whole video information. sampled_inds (list[i
mmdet/datasets/transforms/frame_sampling.py:24
↓ 2 callersMethodprepare_prototype
Preprocessing the prototype before predict.
mmpretrain/models/retrievers/base.py:141
↓ 2 callersMethodprepare_prototype
Used in meta testing. This function will be called before the meta testing. Obtain the vector based on the prototype. - torch.Tensor:
mmpretrain/models/retrievers/image2image.py:283
↓ 2 callersMethodpreprocess_gt
Preprocess the ground truth for all images. Args: batch_gt_instances (list[:obj:`InstanceData`]): Batch of gt_ins
mmdet/models/dense_heads/maskformer_head.py:144
↓ 2 callersMethodpreprocess_text
(self, data_samples)
mmpretrain/models/multimodal/blip/blip_nlvr.py:74
↓ 2 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/openimages_metric.py:147
↓ 2 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/cityscapes_metric.py:119
↓ 2 callersMethodprocess_embedding
(self, embedding, pos_embedding=None,
mmpretrain/models/multimodal/ofa/ofa_modules.py:843
↓ 2 callersMethodproject_
Geometric transformat boxes in-place. Args: homography_matrix (Tensor or np.ndarray]): Shape (3, 3) for geometric
mmdet/structures/bbox/base_boxes.py:429
↓ 2 callersMethodproject_
Geometric transformat boxes in-place. Args: homography_matrix (Tensor or np.ndarray]): Shape (3, 3) for geometric
mmdet/structures/bbox/horizontal_boxes.py:184
↓ 2 callersMethodprompt_wrap
The function to wrap the image and prompt. Make sure that len(prompt) == img_embeds.shape[0]. Args: img_embeds (torch.Te
mmpretrain/models/multimodal/minigpt4/minigpt4.py:199
↓ 2 callersMethodprune_heads
(self, heads)
mmpretrain/models/multimodal/blip/language_model.py:358
↓ 2 callersFunctionrandom_boxes
Simple version of ``kwimage.Boxes.random`` Returns: Tensor: shape (n, 4) in x1, y1, x2, y2 format. References: https://gitla
mmdet/models/task_modules/samplers/sampling_result.py:14
↓ 2 callersMethodrandom_masking
Generate the mask for MAE Pre-training. Args: x (torch.Tensor): Image with data augmentation applied, which is of
mmpretrain/models/selfsup/mae.py:108
↓ 2 callersFunctionread_sn3_pascalvincent_tensor
Read a SN3 file in "Pascal Vincent" format (Lush file 'libidx/idx- io.lsh'). Argument may be a filename, compressed filename, or file object.
mmpretrain/datasets/mnist.py:186
↓ 2 callersMethodreg_pred
Predict bucketing estimation (cls_pred) and fine regression (offset pred) with side-aware features.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:270
↓ 2 callersFunctionregister_hf_model
Register HuggingFace-style PreTrainedModel class.
mmpretrain/models/utils/huggingface.py:54
↓ 2 callersFunctionreorder_cls_channel
(val, num_classes=81)
tools/model_converters/upgrade_model_version.py:46
↓ 2 callersMethodresize
See :func:`BaseInstanceMasks.resize`.
mmdet/structures/mask/structures.py:311
↓ 2 callersFunctionresize_decomposed_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of query q.
mmpretrain/models/backbones/mvit.py:20
↓ 2 callersFunctionresize_relative_position_bias_table
Resize relative position bias table. Args: src_shape (int): The resolution of downsampled origin training image, in format (H
mmpretrain/models/utils/embed.py:62
↓ 2 callersMethodresults2json
Dump the detection results to a COCO style json file. There are 3 types of results: proposals, bbox predictions, mask predictions, an
mmdet/evaluation/metrics/coco_metric.py:210
↓ 2 callersMethodresults2json
Dump the detection results to a COCO style json file. There are 3 types of results: proposals, bbox predictions, mask predictions, an
projects/EfficientDet/efficientdet/tensorflow/coco_90metric.py:182
↓ 2 callersMethodrfp_forward
The forward function that also takes the RFP features as input.
mmdet/models/backbones/detectors_resnet.py:73
↓ 2 callersMethodroi_rescale
Scale RoI coordinates by scale factor. Args: rois (Tensor): RoI (Region of Interest), shape (n, 5) scale_factor (floa
mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:70
↓ 2 callersFunctionrun_ner
Run NER on a caption and return the tokens and noun phrases. Args: caption (str): The input caption. Returns: Tuple[List, Lis
mmdet/models/detectors/glip.py:68
↓ 2 callersMethodsanitize_coordinates
Sanitizes the input coordinates so that x1 < x2, x1 != x2, x1 >= 0, and x2 <= image_size. Also converts from relative to absolute coor
mmdet/models/dense_heads/yolact_head.py:979
↓ 2 callersFunctionsatisfy_requirement
(dep)
mmpretrain/utils/dependency.py:10
↓ 2 callersFunctionsave_anns
(name, images, annotations)
tools/misc/split_coco.py:54
↓ 2 callersFunctionsave_result
Saving predictions as json file for evaluation.
mmpretrain/evaluation/metrics/caption.py:95
↓ 2 callersMethodsave_result
(self, anchors, path=None)
tools/analysis_tools/optimize_anchors.py:145
↓ 2 callersFunctionscaled_all_reduce
Performs the scaled all_reduce operation on the provided tensors. The input tensors are modified in-place. Currently supports only the sum re
mmpretrain/engine/hooks/precise_bn_hook.py:28
↓ 2 callersMethodscatter
(feats, index)
mmpretrain/apis/feature_extractor.py:71
↓ 2 callersMethodselect_distinct_queries
Get updated `self_attn_mask` for distinct queries selection, it is used in self attention layers of decoder. Args: refere
mmdet/models/layers/transformer/ddq_detr_layers.py:23
↓ 2 callersMethodsemantic_postprocess
Semantic segmengation postprocess. Args: mask_cls (Tensor): Classfication outputs of shape (num_queries, cls_out_
mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py:108
↓ 2 callersMethodset_gt_score
Set ``gt_score``.
mmpretrain/structures/data_sample.py:85
↓ 2 callersFunctionsetup_cache_size_limit_of_dynamo
Setup cache size limit of dynamo. Note: Due to the dynamic shape of the loss calculation and post-processing parts in the object detection al
mmdet/utils/setup_env.py:15
↓ 2 callersMethodshear
Shear the BitmapMasks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). magnitude (int | float): T
mmdet/structures/mask/structures.py:471
↓ 2 callersFunctionshift_predictions
Shift predictions to the original image. Args: det_data_samples (List[:obj:`DetDataSample`]): A list of patch results. offsets (S
mmdet/utils/large_image.py:27
↓ 2 callersMethodsingle_attention_call
Perform a single attention call between the visual and language inputs. Args: visual (Tensor): The visual input tensor.
mmdet/models/utils/vlfuse_helper.py:334
↓ 2 callersFunctionsmooth_l1_loss
Smooth L1 loss. Args: pred (Tensor): The prediction. target (Tensor): The learning target of the prediction. beta (float,
mmdet/models/losses/smooth_l1_loss.py:13
↓ 2 callersMethodsplit_outputs
Split outputs of the denoising part and the matching part. For the total outputs of `num_queries_total` length, the former `num_denoi
mmdet/models/dense_heads/dino_head.py:420
↓ 2 callersMethodto_ndarray
Convert masks to the format of ndarray.
mmdet/structures/mask/structures.py:991
↓ 2 callersMethodtransform
Transform function to perform photometric distortion on images. Args: results (dict): Result dict from loading pipeline.
mmdet/datasets/transforms/transforms.py:1143
↓ 2 callersMethodtransform
Transform function to expand images, bounding boxes, masks, segmentation map. Args: results (dict): Result dict from load
mmdet/datasets/transforms/transforms.py:1277
↓ 2 callersMethodtransform
Transform function to crop images and bounding boxes with minimum IoU constraint. Args: results (dict): Result dict from
mmdet/datasets/transforms/transforms.py:1390
↓ 2 callersMethodtransform_gt_and_pred
(self, img_data_sample, video, frame_id)
mmdet/evaluation/metrics/mot_challenge_metric.py:158
↓ 2 callersFunctiontrigger_visualization_hook
(cfg, args)
mmdet/engine/hooks/utils.py:2
↓ 2 callersMethodvisualize
(self, inputs: InputsType, preds: PredType, return_vis:
projects/XDecoder/xdecoder/inference/image_caption.py:50
↓ 2 callersMethodvisualize_cls
Visualize image classification result. This method will draw an text box on the input image to visualize the information about image
mmpretrain/visualization/visualizer.py:44
↓ 2 callersFunctionvl_similarity
(image_feat, text_feat, temperature=1)
projects/XDecoder/xdecoder/transformer_decoder.py:12
↓ 2 callersFunctionvoc_classes
Class names of PASCAL VOC.
mmdet/evaluation/functional/class_names.py:10
↓ 2 callersMethodwarp_bboxes
Warp bounding boxes according to the warping matrix.
mmdet/models/task_modules/tracking/camera_motion_compensation.py:44
↓ 2 callersFunctionweighted_boxes_fusion
weighted boxes fusion <https://arxiv.org/abs/1910.13302> is a method for fusing predictions from different object detection models, which utilizes
mmdet/models/utils/wbf.py:12
↓ 2 callersMethodwindow_partition
Args: x: (B, H, W, C) Returns: windows: (num_windows*B, window_size, window_size, C)
mmdet/models/backbones/swin.py:273
↓ 2 callersMethodwindow_partition
(x, window_size)
mmpretrain/models/backbones/mixmim.py:186
↓ 2 callersMethodwindow_partition
(x, window_size)
mmpretrain/models/utils/attention.py:469
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
projects/XDecoder/xdecoder/transformer_blocks.py:168
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
projects/XDecoder/xdecoder/transformer_blocks.py:250
↓ 2 callersFunctionxy_dense_knn_matrix
Get KNN based on the pairwise distance. Args: x: (batch_size, num_dims, num_points, 1) y: (batch_size, num_dims, num_points, 1)
mmpretrain/models/backbones/vig.py:102
↓ 2 callersMethodxyxy2xywh
Convert ``xyxy`` style bounding boxes to ``xywh`` style for COCO evaluation. Args: bbox (numpy.ndarray): The bounding box
mmdet/evaluation/metrics/coco_metric.py:190
↓ 2 callersMethodxyxy2xywh
Convert ``xyxy`` style bounding boxes to ``xywh`` style for COCO evaluation. Args: bbox (numpy.ndarray): The bounding box
projects/EfficientDet/efficientdet/tensorflow/coco_90metric.py:162
↓ 2 callersMethodxyxy_to_cxcywh
Convert box coordinates from (x1, y1, x2, y2) to (cx, cy, w, h). Args: boxes (Tensor): xyxy boxes tensor with shape of (..., 4).
mmdet/structures/bbox/horizontal_boxes.py:76
↓ 1 callersMethodGaussianMixture
(self, *args, **kwargs)
tests/test_models/test_dense_heads/test_lad_head.py:21
↓ 1 callersFunctionYXbbox2delta
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
projects/EfficientDet/efficientdet/tensorflow/yxyx_bbox_coder.py:195
← previousnext →901–1,000 of 6,823, ranked by callers