MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 5 callersMethodget_img_ids
(self, img_ids=[], cat_ids=[])
projects/EfficientDet/efficientdet/tensorflow/api_wrappers/coco_api.py:43
↓ 5 callersMethodget_valid_ratio
Get the valid radios of feature maps of all level.
projects/CO-DETR/codetr/transformer.py:352
↓ 5 callersMethodhalf
(self)
mmpretrain/models/multimodal/minigpt4/minigpt4.py:173
↓ 5 callersFunctioninterpolate_as
Interpolate the `source` to the shape of the `target`. The `source` must be a Tensor, but the `target` can be a Tensor or a np.ndarray with t
mmdet/models/utils/misc.py:49
↓ 5 callersFunctionmake_divisible
Make divisible function. This function rounds the channel number to the nearest value that can be divisible by the divisor. It is taken from
mmdet/models/utils/make_divisible.py:2
↓ 5 callersMethodparse_data_info
Parse raw annotation to target format. Args: raw_data_info (dict): Raw data information load from ``ann_file`` Returns:
mmdet/datasets/coco.py:102
↓ 5 callersMethodplot
Draw a confusion matrix by matplotlib. Modified from `Scikit-Learn <https://github.com/scikit-learn/scikit-learn/blob/dc580a8ef/sklea
mmpretrain/evaluation/metrics/single_label.py:705
↓ 5 callersMethodpredict
Perform forward propagation of the tracking head and predict tracking results on the features of the upstream network. Args:
mmdet/models/tracking_heads/roi_embed_head.py:351
↓ 5 callersMethodpredict
Run Kalman filter prediction step. Args: mean (ndarray): The 8 dimensional mean vector of the object state at the
mmdet/models/task_modules/tracking/kalman_filter.py:95
↓ 5 callersMethodpredict_bbox
Perform forward propagation of the bbox head and predict detection results on the features of the upstream network. Args:
mmdet/models/roi_heads/grid_roi_head.py:230
↓ 5 callersFunctionrandom_boxes
Simple version of ``kwimage.Boxes.random`` Returns: Tensor: shape (n, 4) in x1, y1, x2, y2 format. References: https://gitlab.
mmdet/testing/_utils.py:393
↓ 5 callersMethodretry_if_cuda_oom
Makes a function retry itself after encountering pytorch's CUDA OOM error. The implementation logic is referred to https://gi
mmdet/utils/memory.py:123
↓ 5 callersMethodset_gt_label
Set ``gt_label``.
mmpretrain/structures/data_sample.py:80
↓ 5 callersMethodsingle_level_grid_priors
Generate grid anchors of a single level. Note: This function is usually called by method ``self.grid_priors``. Args:
mmdet/models/task_modules/prior_generators/anchor_generator.py:259
↓ 5 callersFunctionsync_random_seed
Make sure different ranks share the same seed. All workers must call this function, otherwise it will deadlock. This method is generally used
mmdet/utils/dist_utils.py:148
↓ 5 callersMethodto_ndarray
See :func:`BaseInstanceMasks.to_ndarray`.
mmdet/structures/mask/structures.py:551
↓ 5 callersFunctiontrack_on_main_process
(sequence, description='', total=None)
mmpretrain/utils/progress.py:36
↓ 4 callersMethod__init__
(self, num_max_proposals: Optional[int] = None)
mmdet/datasets/transforms/loading.py:667
↓ 4 callersMethod__init__
(self, prob: float = 1.0, level: Optional[int] = None, min_
mmdet/datasets/transforms/geometric.py:248
↓ 4 callersMethod__init__
(self, embed_dims, num_heads, window_size,
mmdet/models/backbones/swin.py:42
↓ 4 callersMethod__init__
(self, in_channels: int, out_channels: int, expand_ratio: i
mmdet/models/dense_heads/atss_vlfusion_head.py:110
↓ 4 callersMethod__init__
(self, in_channel: int, out_channel: int)
mmdet/models/task_modules/tracking/aflink.py:77
↓ 4 callersMethod__init__
(self, in_channels, out_channels, up_stride,
mmpretrain/models/backbones/conformer.py:180
↓ 4 callersMethod__init__
(self, in_channels, internal_channels, out_channels,
mmpretrain/models/backbones/replknet.py:246
↓ 4 callersMethod__init__
(self, dim, order=5, dw_cfg=dict(type='DW', kernel_size=7),
mmpretrain/models/backbones/hornet.py:146
↓ 4 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None
mmpretrain/models/backbones/poolformer.py:83
↓ 4 callersMethod__init__
(self, mean: Sequence[Number] = None, std: Sequence[Number] = None,
mmpretrain/models/utils/data_preprocessor.py:57
↓ 4 callersMethod__init__
(self, backbone: dict, neck: dict, head: dict,
mmpretrain/models/selfsup/cae.py:386
↓ 4 callersMethod__init__
(self, config)
mmpretrain/models/multimodal/chinese_clip/bert.py:93
↓ 4 callersMethod__init__
(self, gated_cross_attn_layer: nn.Module, decoder_layer: nn.Module)
mmpretrain/models/multimodal/flamingo/modules.py:341
↓ 4 callersMethod__init__
(self)
tests/test_engine/test_hooks/test_mean_teacher_hook.py:23
↓ 4 callersMethod_assert_image_and_shape
(self, out_file, out_shape)
tests/test_visualization/test_local_visualizer.py:116
↓ 4 callersMethod_assert_image_and_shape
(out_file, out_shape)
tests/test_visualization/test_local_visualizer.py:151
↓ 4 callersMethod_bbox_forward
Box head forward function used in both training and testing. Args: stage (int): The current stage in Cascade RoI Head.
projects/Detic/detic/detic_roi_head.py:99
↓ 4 callersMethod_create_dummy_results
(self, track_id)
tests/test_evaluation/test_metrics/test_youtube_vis_metric.py:28
↓ 4 callersMethod_create_model_cfg
(self)
tests/test_models/test_detectors/test_panoptic_two_stage_segmentor.py:18
↓ 4 callersMethod_create_model_cfg
(self)
tests/test_models/test_detectors/test_maskformer.py:18
↓ 4 callersMethod_create_model_cfg
(self, cfg_path)
tests/test_models/test_detectors/test_maskformer.py:121
↓ 4 callersMethod_dispatch_kwargs
Dispatch kwargs to preprocess(), forward(), visualize() and postprocess() according to the actual demands. Returns: Tuple
mmpretrain/apis/base.py:339
↓ 4 callersMethod_format_output
(self, x, hw, with_cls_token: bool)
mmpretrain/models/backbones/xcit.py:751
↓ 4 callersFunction_get_activation_fn
Return an activation function given a string.
projects/XDecoder/xdecoder/transformer_blocks.py:465
↓ 4 callersMethod_get_predictions
Post-process the output of retriever. Args: result (torch.Tensor): Score matrix of single retrieve, either from i
mmpretrain/models/multimodal/blip/blip_retrieval.py:642
↓ 4 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch. Code is modified from <https://github.com/facebookresearch/detectron2/blob/main/dete
mmdet/utils/memory.py:62
↓ 4 callersMethod_inputs_to_list
Preprocess the inputs to a list. Cast the input data to a list of data. - list or tuple: return inputs - str: -
mmpretrain/apis/base.py:166
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:185
↓ 4 callersMethod_mask_forward
Mask head forward function used in both training and testing. Args: x (tuple[Tensor]): Tuple of multi-level img features.
mmdet/models/roi_heads/standard_roi_head.py:257
↓ 4 callersFunction_ntuple
A `to_tuple` function generator. It returns a function, this function will repeat the input to a tuple of length ``n`` if the input is not an
mmpretrain/models/utils/helpers.py:30
↓ 4 callersFunction_rand_masks
(num_items, bboxes, img_w, img_h)
tests/test_models/test_dense_heads/test_condinst_head.py:13
↓ 4 callersFunction_rand_masks
(num_items, bboxes, img_w, img_h)
tests/test_models/test_dense_heads/test_boxinst_head.py:14
↓ 4 callersMethod_refine_roi
Multi-stage refinement of RoI. Args: x (tuple[Tensor]): List of multi-level img features. rois (Tensor): shape (n, 5)
mmdet/models/roi_heads/cascade_roi_head.py:446
↓ 4 callersMethod_save_image_gts_results
Display or save image with groung truths and predictions from a model. Args: dataset (Dataset): A PyTorch dataset.
tools/analysis_tools/analyze_results.py:93
↓ 4 callersMethod_set_range
Set the range of magnitudes.
mmpretrain/datasets/transforms/processing.py:928
↓ 4 callersMethod_shape
(self, tensor: Tensor, seq_len: int, bsz: int)
mmdet/models/utils/vlfuse_helper.py:118
↓ 4 callersMethod_test_scheduler_value
(self, schedulers, targets,
tests/test_engine/test_schedulers/test_quadratic_warmup.py:38
↓ 4 callersFunctionanchor_ctr_inside_region_flags
Get the flag indicate whether anchor centers are inside regions.
mmdet/models/task_modules/assigners/region_assigner.py:35
↓ 4 callersMethodassign
Assign gt to priors. Args: pred_instances (:obj:`InstanceData`): Instances of model predictions. It includes ``pr
mmdet/models/task_modules/assigners/dynamic_soft_label_assigner.py:66
↓ 4 callersMethodassign
Assign gt to approxs. This method assign a gt bbox to each group of approxs (bboxes), each group of approxs is represent by a base ap
mmdet/models/task_modules/assigners/approx_max_iou_assigner.py:68
↓ 4 callersMethodassign_wrt_overlaps
Assign w.r.t. the overlaps of priors with gts. Args: overlaps (Tensor): Overlaps between k gt_bboxes and n bboxes,
mmdet/models/task_modules/assigners/max_iou_assigner.py:242
↓ 4 callersFunctionattention_pool
Pooling the feature tokens. Args: x (torch.Tensor): The input tensor, should be with shape ``(B, num_heads, L, C)`` or ``(B,
mmpretrain/models/backbones/mvit.py:123
↓ 4 callersFunctionbbox2distance
Decode bounding box based on distances. Args: points (Tensor): Shape (n, 2) or (b, n, 2), [x, y]. bbox (Tensor): Shape (n, 4) or
mmdet/structures/bbox/transforms.py:206
↓ 4 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale.
mmdet/structures/bbox/transforms.py:70
↓ 4 callersMethodbefore_train_epoch
Check the queues' state.
mmpretrain/engine/hooks/swav_hook.py:95
↓ 4 callersMethodbefore_val_epoch
We load parameter values from ema model to source model before validation. Args: runner (Runner): The runner of the train
mmpretrain/engine/hooks/ema_hook.py:93
↓ 4 callersFunctioncalc_region
Calculate a proportional bbox region. The bbox center are fixed and the new h' and w' is h * ratio and w * ratio. Args: bbox (Tensor
mmdet/models/task_modules/prior_generators/utils.py:45
↓ 4 callersFunctioncalc_region
Calculate region of the box defined by the ratio, the ratio is from the center of the box to every edge.
mmdet/models/task_modules/assigners/region_assigner.py:14
↓ 4 callersFunctionclamp_values
Clamp the values of a vector to the range [-MAX_CLAMP_VALUE, MAX_CLAMP_VALUE]. Args: vector (Tensor): Tensor of shape (N, C, H, W).
mmdet/models/utils/vlfuse_helper.py:57
↓ 4 callersFunctionconvert_to_one_hot
This function converts target class indices to one-hot vectors, given the number of classes. Args: targets (Tensor): The ground truth
mmpretrain/models/losses/utils.py:103
↓ 4 callersFunctioncoordinate_to_encoding
Convert coordinate tensor to positional encoding. Args: coord_tensor (Tensor): Coordinate tensor to be converted to positiona
mmdet/models/layers/transformer/utils.py:49
↓ 4 callersMethodcrop_imgs
Crop the images according to some bounding boxes. Typically for re- identification sub-module. Args: img (Tensor): of sha
mmdet/models/trackers/base_tracker.py:186
↓ 4 callersMethoddecoder_norm
The normalization layer of decoder.
mmpretrain/models/necks/mae_neck.py:107
↓ 4 callersMethoddevice
(self)
mmpretrain/models/multimodal/blip/blip_vqa.py:53
↓ 4 callersFunctiondistance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (B, N, 2) or (N, 2). distance (Tensor): Distance from th
mmdet/structures/bbox/transforms.py:147
↓ 4 callersMethoddtype
Get the dtype.
mmpretrain/models/utils/clip_generator_helper.py:317
↓ 4 callersFunctioneval_recalls
Calculate recalls. Args: gts (list[ndarray]): a list of arrays of shape (n, 4) proposals (list[ndarray]): a list of arrays of sha
mmdet/evaluation/functional/recall.py:65
↓ 4 callersFunctionextract
extract the appropriate t index for a batch of indices.
projects/DiffusionDet/diffusiondet/head.py:47
↓ 4 callersMethodfake_boxes
Create fake boxes with specific sizes and fill values. Args: sizes (Tuple[int]): The size of fake boxes. The last value must
mmdet/structures/bbox/base_boxes.py:110
↓ 4 callersFunctionfilter_transforms
Filter pipeline to avoid KeyError with partial data info.
mmpretrain/apis/multimodal_retrieval.py:22
↓ 4 callersMethodflip_
Flip boxes horizontally or vertically in-place. Args: img_shape (Tuple[int, int]): A tuple of image height and width.
mmdet/structures/bbox/base_boxes.py:386
↓ 4 callersMethodforward
Forward features from the upstream network. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/ssd_head.py:190
↓ 4 callersMethodforward
(self, x)
projects/XDecoder/xdecoder/focalnet.py:132
↓ 4 callersMethodforward_prediction_heads
(self, output, mask_features, attn_mask_target_size)
projects/XDecoder/xdecoder/transformer_decoder.py:372
↓ 4 callersMethodfrom_instance_masks
(masks)
tests/test_structures/test_bbox/utils.py:54
↓ 4 callersMethodgen_encoder_output_proposals
Generate proposals from encoded memory. The function will only be used when `as_two_stage` is `True`. Args: memory (Tenso
mmdet/models/detectors/deformable_detr.py:462
↓ 4 callersMethodgen_encoder_output_proposals
Generate proposals from encoded memory. Args: memory (Tensor) : The output of encoder, has shape (bs, num_key, em
projects/CO-DETR/codetr/transformer.py:251
↓ 4 callersMethodget_accuracy
Get custom accuracy w.r.t. cls_score and labels. Args: cls_score (Tensor): The prediction with shape (N, C + 2). labe
mmdet/models/losses/seesaw_loss.py:189
↓ 4 callersMethodget_ann_ids
(self, img_ids=[], cat_ids=[], area_rng=[], iscrowd=None)
projects/EfficientDet/efficientdet/tensorflow/api_wrappers/coco_api.py:29
↓ 4 callersMethodget_bboxes
Get the certain type boxes from masks. Please refer to ``mmdet.structures.bbox.box_type`` for more details of the box type.
mmdet/structures/mask/structures.py:197
↓ 4 callersFunctionget_box_wh
Get the width and height of boxes with type of tensor or box type. Args: boxes (Tensor or :obj:`BaseBoxes`): boxes with type of tensor
mmdet/structures/bbox/transforms.py:417
↓ 4 callersMethodget_len_per_video
Get length of one video. Args: idx (int): Index of video. Returns: int (int): The length of the video.
mmdet/datasets/base_video_dataset.py:295
↓ 4 callersFunctionget_norm
Args: norm (str or callable): either one of BN, SyncBN, FrozenBN, GN; or a callable that takes a channel number and returns
projects/XDecoder/xdecoder/transformer_blocks.py:439
↓ 4 callersMethodget_pos_info
(self, pos_embedding, src_pos_embedding=None)
mmpretrain/models/multimodal/ofa/ofa_modules.py:1242
↓ 4 callersMethodget_positive_infos
Get positive information from sampling results. Returns: list[:obj:`InstanceData`]: Positive Information of each image,
mmdet/models/dense_heads/yolact_head.py:327
↓ 4 callersFunctionget_uncertain_point_coords_with_randomness
Get ``num_points`` most uncertain points with random points during train. Sample points in [0, 1] x [0, 1] coordinate space based on their
mmdet/models/utils/point_sample.py:33
↓ 4 callersMethodinitiate
Create track from unassociated measurement. Args: measurement (ndarray): Bounding box coordinates (x, y, a, h) with
mmdet/models/task_modules/tracking/kalman_filter.py:68
↓ 4 callersMethodinterpolate_pos_encoding
(self, x, h, w)
mmpretrain/models/backbones/hivit.py:549
↓ 4 callersFunctionis_lower_torch_version
Check if the pytorch version is lower than "version.
projects/XDecoder/xdecoder/utils.py:12
↓ 4 callersMethodlast_obs
extract the last associated observation.
mmdet/models/trackers/ocsort_tracker.py:245
↓ 4 callersFunctionlevel_to_mag
Map from level to magnitude.
mmdet/datasets/transforms/augment_wrappers.py:76
↓ 4 callersMethodload_data_list
Load annotations from an annotation file named as ``self.ann_file`` Returns: List[dict]: A list of annotation.
mmdet/datasets/lvis.py:586
↓ 4 callersMethodload_det_boxes
load detection boxes.
mmdet/evaluation/metrics/crowdhuman_metric.py:662
← previousnext →301–400 of 6,823, ranked by callers