MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / functions

Functions6,823 in github.com/KyanChen/RSPrompter

↓ 4 callersMethodloss_and_target
(self, mask_preds: Tensor, sampling_results: List[SamplingResult],
mmdet/rsprompter/models.py:1720
↓ 4 callersMethodloss_by_feat
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdet/models/dense_heads/pisa_ssd_head.py:52
↓ 4 callersMethodloss_by_feat
Compute loss of the head. Args: cls_scores (list[Tensor]): Box iou-aware scores for each scale level, each is a 4
mmdet/models/dense_heads/vfnet_head.py:349
↓ 4 callersMethodloss_by_feat
Calculate the loss based on the features extracted by the detection head. Args: cls_scores (list[Tensor]): Box scores for
mmdet/models/dense_heads/fcos_head.py:192
↓ 4 callersMethodmake_stage_plugins
Make plugins for ResNet ``stage_idx`` th stage. Currently we support to insert ``context_block``, ``empirical_attention_block``, ``no
mmdet/models/backbones/resnet.py:494
↓ 4 callersMethodmask_loss
Run forward function and calculate loss for mask head in training. Args: x (tuple[Tensor]): Tuple of multi-level img features.
mmdet/models/roi_heads/scnet_roi_head.py:261
↓ 4 callersFunctionnlc_to_nchw
Convert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
mmdet/models/layers/transformer/utils.py:19
↓ 4 callersMethodpoints2bbox
Converting the points set into bounding box. Args: pts (Tensor): the input points sets (fields), each points set
mmdet/models/dense_heads/reppoints_head.py:184
↓ 4 callersMethodpredict
Test segment without test-time aumengtation. Only the output of last decoder layers was used. Args: mask_cls_results (Te
mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py:184
↓ 4 callersMethodpredict
Predict results from a batch of inputs and data samples with post- processing. Args: batch_inputs (Tensor): Inputs, has s
projects/CO-DETR/codetr/codetr.py:235
↓ 4 callersMethodpredict_by_feat
Transform a batch of output features extracted from the head into bbox results. Args: rois (tuple[Tensor]): Tuple of boxe
mmdet/models/roi_heads/bbox_heads/bbox_head.py:425
↓ 4 callersMethodprocess
Process one batch of data samples. The processed results should be stored in ``self.results``, which will be used to computed the met
mmpretrain/evaluation/metrics/ANLS.py:38
↓ 4 callersMethodproject
Project state distribution to measurement space. Args: mean (ndarray): The state's mean vector (8 dimensional array).
mmdet/models/task_modules/tracking/kalman_filter.py:129
↓ 4 callersMethodregress_by_class
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: priors (Tensor): Priors from `rpn_head` or last stage
mmdet/models/roi_heads/bbox_heads/bbox_head.py:680
↓ 4 callersFunctionrename_loss_dict
Rename the key names in loss dict by adding a prefix. Args: prefix (str): The prefix for loss components. losses (dict): A dicti
mmdet/models/utils/misc.py:541
↓ 4 callersMethodresize_feats
Downsample the first feat and upsample last feat in feats. Args: x (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/solo_head.py:147
↓ 4 callersFunctionreweight_loss_dict
Reweight losses in the dict by weight. Args: losses (dict): A dictionary of loss components. weight (float): Weight for loss com
mmdet/models/utils/misc.py:554
↓ 4 callersMethodside_aware_split
Split side-aware features aligned with orders of bucketing targets.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:289
↓ 4 callersMethodsparse_priors
Generate sparse points according to the ``prior_idxs``. Args: prior_idxs (Tensor): The index of corresponding anchors
mmdet/models/task_modules/prior_generators/point_generator.py:292
↓ 4 callersFunctionunfold_wo_center
unfold_wo_center, used in original implement in BoxInst: https://github.com/aim-uofa/AdelaiDet/blob/\ 4a3a1f7372c35b48ebf5f6adc59f135a0fa28d6
mmdet/models/utils/misc.py:630
↓ 4 callersFunctionupdate_data_root
Update data root according to env MMDET_DATASETS. If set env MMDET_DATASETS, update cfg.data_root according to MMDET_DATASETS. Otherwise, usi
mmdet/utils/misc.py:52
↓ 4 callersMethodvisualize_single_image
Args: img_data_sample (DetDataSample): single image output. step (int): The index of the current image.
mmdet/engine/hooks/visualization_hook.py:286
↓ 4 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
projects/XDecoder/xdecoder/transformer_blocks.py:324
↓ 3 callersMethod__getattr__
(self, name: str)
mmpretrain/models/peft/lora.py:201
↓ 3 callersMethod__init__
(self, max_iter: int, log_interval: int, num_warmup: int,
mmdet/utils/benchmark.py:86
↓ 3 callersMethod__init__
(self, in_channels, out_channels, num_outs,
mmdet/models/necks/fpg.py:150
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, re
mmdet/models/backbones/resnest.py:299
↓ 3 callersMethod__init__
(self, depth, in_channels=3, stem_channels=None,
mmdet/models/backbones/resnet.py:369
↓ 3 callersMethod__init__
(self, num_classes: int, in_channels: int, anchor_generator
mmdet/models/dense_heads/yolact_head.py:57
↓ 3 callersMethod__init__
(self, num_layers: int, layer_cfg: ConfigType, num_cp: int
mmdet/models/layers/transformer/detr_layers.py:32
↓ 3 callersMethod__init__
(self, depth, groups=1, width_per_group=4,
mmpretrain/models/backbones/resnest.py:316
↓ 3 callersMethod__init__
(self, embed_dims, input_resolution, num_heads,
mmpretrain/models/backbones/mixmim.py:129
↓ 3 callersMethod__init__
(self, in_channels, hidden_channels=None, out_channels=None
mmpretrain/models/backbones/mvit.py:103
↓ 3 callersMethod__init__
(self, arch='121', in_channels=3, bn_size=4,
mmpretrain/models/backbones/densenet.py:212
↓ 3 callersMethod__init__
(self, arch='b', img_size=224, patch_size=16,
mmpretrain/models/backbones/tnt.py:253
↓ 3 callersMethod__init__
( self, embed_dim: int, image_resolution: int, vision_layers: Union[Tuple[int,
mmpretrain/models/utils/clip_generator_helper.py:235
↓ 3 callersMethod__init__
(self, inplanes, planes, stride=1)
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py:24
↓ 3 callersMethod__init__
(self, feat_channels: int, dynamic_dim: int = 64, dynamic_n
projects/DiffusionDet/diffusiondet/head.py:980
↓ 3 callersMethod__init__
( self, in_channels: int, out_channels: int, apply_norm: bool = True,
projects/EfficientDet/efficientdet/utils.py:130
↓ 3 callersMethod__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
projects/XDecoder/xdecoder/language_model.py:190
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmdet/models/roi_heads/bbox_heads/multi_instance_bbox_head.py:182
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:122
↓ 3 callersMethod_add_fc_branch
build fc layers.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:217
↓ 3 callersMethod_bbox_forward
Box head forward function used in both training and testing. Args: x (tuple[Tensor]): List of multi-level img features.
mmdet/models/roi_heads/standard_roi_head.py:147
↓ 3 callersMethod_build_head
Build head for each branch.
mmdet/models/dense_heads/centernet_head.py:75
↓ 3 callersMethod_check_head
Check whether the `num_classes` in head matches the length of `CLASSES` in `dataset`. Args: runner (obj:`Runner`): runner
mmpretrain/engine/hooks/class_num_check_hook.py:12
↓ 3 callersFunction_expand_mask
Expands attention_mask from ``[B, L_s]`` to ``[B, 1, L_t, L_s]``. Where ``B`` is batch_size, `L_s`` is the source sequence length, and ``L_t`
mmpretrain/models/multimodal/ofa/ofa_modules.py:87
↓ 3 callersFunction_fake_roi_head
Set a fake roi head config.
tests/test_models/test_roi_heads/test_standard_roi_head.py:16
↓ 3 callersMethod_fuse_conv_bn
Fuse the parameters in a branch with a conv and bn. Args: branch (mmcv.runner.Sequential): A branch with conv and bn. Re
mmpretrain/models/backbones/repvgg.py:209
↓ 3 callersMethod_fuse_conv_bn
Fuse the parameters in a branch with a conv and bn. Args: branch (mmcv.runner.Sequential): A branch with conv and bn. Re
mmpretrain/models/backbones/mobileone.py:213
↓ 3 callersFunction_get_clones
(module, N)
projects/XDecoder/xdecoder/transformer_blocks.py:461
↓ 3 callersMethod_get_transform_idx
Returns the index of the transform in a pipeline. If the transform is not found, returns -1.
mmdet/apis/det_inferencer.py:177
↓ 3 callersMethod_init_cls_convs
Initialize classification conv layers of the head.
mmdet/models/dense_heads/anchor_free_head.py:121
↓ 3 callersMethod_join_root
Join ``self.data_root`` with the specified path. If the path is an absolute path, just return the path. And if the path is None, retu
mmpretrain/datasets/multi_task.py:165
↓ 3 callersMethod_load_data_from_txt
load data from CUB txt file, the every line of the file is idx and a data item.
mmpretrain/datasets/cub.py:96
↓ 3 callersFunction_make_stack_3x3_convs
(num_convs, in_channels, out_channels,
projects/SparseInst/sparseinst/decoder.py:14
↓ 3 callersMethod_make_stage
(self, layer_config, in_channels, multiscale_output=True)
mmdet/models/backbones/hrnet.py:505
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
mmdet/models/backbones/hrnet.py:412
↓ 3 callersMethod_mask_forward
(self, x: Tuple[Tensor], rois: Tensor = None,
mmdet/rsprompter/models.py:1383
↓ 3 callersMethod_mask_forward
Mask head forward function used in both training and testing. Args: stage (int): The current stage in Cascade RoI Head.
mmdet/models/roi_heads/sparse_roi_head.py:248
↓ 3 callersMethod_mask_forward
Mask head forward function used only in training. Args: stage (int): The current stage in Cascade RoI Head. x (tuple[
mmdet/models/roi_heads/htc_roi_head.py:152
↓ 3 callersMethod_mask_forward
Mask head forward function used in both training and testing. Args: stage (int): The current stage in Cascade RoI Head.
mmdet/models/roi_heads/cascade_roi_head.py:187
↓ 3 callersMethod_meshgrid
Generate mesh grid of x and y. Args: x (torch.Tensor): Grids of x dimension. y (torch.Tensor): Grids of y dimension.
mmdet/models/task_modules/prior_generators/point_generator.py:17
↓ 3 callersMethod_meshgrid
Generate mesh grid of x and y. Args: x (torch.Tensor): Grids of x dimension. y (torch.Tensor): Grids of y dimension.
mmdet/models/task_modules/prior_generators/anchor_generator.py:207
↓ 3 callersFunction_precision_recall_f1_support
calculate base classification task metrics, such as precision, recall, f1_score, support.
mmpretrain/evaluation/metrics/single_label.py:25
↓ 3 callersMethod_predict_by_feat_single
Transform a single image's features extracted from the head into bbox results. Args: cls_score_list (list[Tensor]): Box s
mmdet/models/dense_heads/paa_head.py:519
↓ 3 callersFunction_process_pipeline
(dataset, name)
mmdet/testing/_utils.py:437
↓ 3 callersFunction_rand_bboxes
(num_boxes, h, w)
tests/test_visualization/test_local_visualizer.py:14
↓ 3 callersMethod_record_homography_matrix
Record the homography matrix for the Resize.
mmdet/datasets/transforms/transforms.py:203
↓ 3 callersMethod_record_memory_information
Regularly record memory information. Args: runner (:obj:`Runner`): The runner of the training or evaluation proce
mmdet/engine/hooks/memory_profiler_hook.py:40
↓ 3 callersMethod_split_cls_score
split cls_score. Args: cls_score (Tensor): The prediction with shape (N, C + 2). Returns: Tuple[Tensor, Tens
mmdet/models/losses/seesaw_loss.py:141
↓ 3 callersMethodafter_test_iter
Run after every testing iterations. Args: runner (:obj:`Runner`): The runner of the testing process. batch_idx (int):
mmdet/engine/hooks/visualization_hook.py:109
↓ 3 callersFunctionaligned_bilinear
aligned bilinear, used in original implement in CondInst: https://github.com/aim-uofa/AdelaiDet/blob/\ c0b2092ce72442b0f40972f7c6dda8bb52c46d
mmdet/models/utils/misc.py:604
↓ 3 callersMethodanchor_center
Get anchor centers from anchors. Args: anchors (Tensor): Anchor list with shape (N, 4), ``xyxy`` format. Returns:
mmdet/models/dense_heads/gfl_head.py:220
↓ 3 callersMethodannToRLE
Convert annotation which can be polygons, uncompressed RLE to RLE. :return: binary mask (numpy 2D array)
mmdet/evaluation/functional/ytvis.py:276
↓ 3 callersMethodassertListAlmostEqual
(self, list1, list2, places=7)
tests/test_apis/test_det_inferencer.py:160
↓ 3 callersMethodassert_predictions_equal
(self, preds1, preds2)
tests/test_apis/test_det_inferencer.py:29
↓ 3 callersMethodassign
Assign gt to priors. The assignment is done in following steps 1. assign -1 by default 2. compute the L1 cost between boxes.
mmdet/models/task_modules/assigners/uniform_assigner.py:39
↓ 3 callersMethodassign
Assign gt to points. This method assign a gt bbox to every points set, each points set will be assigned with the background_label (-
mmdet/models/task_modules/assigners/point_assigner.py:27
↓ 3 callersMethodassign
Assign gt to priors using SimOTA. Args: pred_instances (:obj:`InstanceData`): Instances of model predictions. It
mmdet/models/task_modules/assigners/sim_ota_assigner.py:47
↓ 3 callersMethodassign
Computes 1-to-k gt-pred matching based on the weighted costs. This method assign each query prediction to a ground truth or backgroun
projects/AlignDETR/align_detr/mixed_hungarian_assigner.py:50
↓ 3 callersMethodassign_ids
Assign ids. Args: ids (list[int]): Tracking ids. det_bboxes (Tensor): of shape (N, 4) det_labels (Tensor)
mmdet/models/trackers/byte_tracker.py:120
↓ 3 callersFunctionbbox_cxcyah_to_xyxy
Convert bbox coordinates from (cx, cy, ratio, h) to (x1, y1, x2, y2). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns:
mmdet/structures/bbox/transforms.py:487
↓ 3 callersFunctionbbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 4*k) img_shape (Tuple[int]): Image shape. dire
mmdet/structures/bbox/transforms.py:27
↓ 3 callersMethodbefore_val_epoch
Synchronizing norm.
mmdet/engine/hooks/sync_norm_hook.py:26
↓ 3 callersFunctionbitmap_to_polygon
Convert masks from the form of bitmaps to polygons. Args: bitmap (ndarray): masks in bitmap representation. Return: list[nda
mmdet/structures/mask/structures.py:1166
↓ 3 callersFunctionbox_cxcywh_to_xyxy
(x)
mmpretrain/models/utils/box_utils.py:6
↓ 3 callersFunctioncarl_loss
Classification-Aware Regression Loss (CARL). Args: cls_score (Tensor): Predicted classification scores. labels (Tensor): Targets
mmdet/models/losses/pisa_loss.py:126
↓ 3 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_head.py:323
↓ 3 callersFunctioncheck_md5
(fpath, md5, **kwargs)
mmpretrain/datasets/utils.py:41
↓ 3 callersFunctioncollect_tracking_results
Collected results in distributed environments. different from the function mmengine.dist.collect_results, tracking compute metrics don't use p
mmdet/evaluation/metrics/base_video_metric.py:88
↓ 3 callersFunctioncompleted
Async context manager that waits for work to complete on given CUDA streams.
mmdet/utils/contextmanagers.py:17
↓ 3 callersFunctionconvert_bn
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/model_converters/detectron2pytorch.py:11
↓ 3 callersFunctionconvert_conv_fc
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/model_converters/detectron2pytorch.py:24
↓ 3 callersMethodconvert_to
Convert self to another box type. Args: dst_type (str or type): destination box type. Returns: :obj:`BaseBox
mmdet/structures/bbox/base_boxes.py:82
↓ 3 callersMethodcreateIndex
(self)
mmdet/evaluation/functional/ytvis.py:73
↓ 3 callersMethodcreate_conv_bn
(self, kernel_size, dilation=1, padding=0)
mmpretrain/models/backbones/repvgg.py:111
↓ 3 callersMethodcreate_conv_bn
cearte a (conv + bn) Sequential layer.
mmpretrain/models/backbones/mobileone.py:113
↓ 3 callersMethodcrop
See :func:`BaseInstanceMasks.crop`.
mmdet/structures/mask/structures.py:347
↓ 3 callersFunctionexpanduser
Expand ~ and ~user constructions. If user or $HOME is unknown, do nothing.
mmpretrain/datasets/base_dataset.py:13
← previousnext →401–500 of 6,823, ranked by callers