MCPcopy Create free account

hub / github.com/KyanChen/RSPrompter / types & classes

Types & classes1,658 in github.com/KyanChen/RSPrompter

↓ 65 callersClassHorizontalBoxes
The horizontal box class used in MMDetection by default. The ``box_dim`` of ``HorizontalBoxes`` is 4, which means the length of the last dime
mmdet/structures/bbox/horizontal_boxes.py:20
↓ 62 callersClassDetDataSample
A data structure interface of MMDetection. They are used as interfaces between different components. The attributes in ``DetDataSample`` are
mmdet/structures/det_data_sample.py:7
↓ 59 callersClassBitmapMasks
This class represents masks in the form of bitmaps. Args: masks (ndarray): ndarray of masks in shape (N, H, W), where N is th
mmdet/structures/mask/structures.py:226
↓ 43 callersClassBasicConv2d
A basic convolution block including convolution, batch norm and ReLU. Args: in_channels (int): The number of input channels. out_
mmpretrain/models/backbones/inception_v3.py:13
↓ 29 callersClassFFN
out_features = out_features or in_features\n hidden_features = hidden_features or in_features
mmpretrain/models/backbones/vig.py:476
↓ 28 callersClassAssignResult
Stores assignments between predicted and truth boxes. Attributes: num_gts (int): the number of truth boxes considered when computing this
mmdet/models/task_modules/assigners/assign_result.py:8
↓ 25 callersClassLinear
Wrapper for linear function.
mmpretrain/models/multimodal/blip/language_model.py:1079
↓ 25 callersClassPolygonMasks
This class represents masks in the form of polygons. Polygons is a list of three levels. The first level of the list corresponds to objects,
mmdet/structures/mask/structures.py:599
↓ 24 callersClassResNet
ResNet backbone. Args: depth (int): Depth of resnet, from {18, 34, 50, 101, 152}. stem_channels (int | None): Number of stem chan
mmdet/models/backbones/resnet.py:306
↓ 24 callersClassToyBaseBoxes
tests/test_structures/test_bbox/utils.py:4
↓ 23 callersClassPatchEmbed
Image to Patch Embedding. We use a conv layer to implement PatchEmbed. Args: in_channels (int): The num of input channels. Default:
mmdet/models/layers/transformer/utils.py:188
↓ 21 callersClassConv2d
Rewrite Conv2d module according to DALL-E code.
mmpretrain/models/selfsup/cae.py:22
↓ 21 callersClassDataSample
A general data structure interface. It's used as the interface between different components. The following fields are convention names in MM
mmpretrain/structures/data_sample.py:12
↓ 19 callersClassRandomCrop
Random crop the image & bboxes & masks. The absolute ``crop_size`` is sampled based on ``crop_type`` and ``image_size``, then the cropped res
mmdet/datasets/transforms/transforms.py:788
↓ 18 callersClassTrackDataSample
A data structure interface of tracking task in MMDetection. It is used as interfaces between different components. This data structure can be
mmdet/structures/track_data_sample.py:11
↓ 16 callersClassDetDataPreprocessor
Image pre-processor for detection tasks. Comparing with the :class:`mmengine.ImgDataPreprocessor`, 1. It supports batch augmentations. 2
mmdet/models/data_preprocessors/data_preprocessor.py:31
↓ 15 callersClassAutoAugment
Auto augmentation. This data augmentation is proposed in `AutoAugment: Learning Augmentation Policies from Data <https://arxiv.org/abs/1805.0
mmdet/datasets/transforms/augment_wrappers.py:86
↓ 15 callersClassBottleneck
mmdet/models/backbones/resnet.py:97
↓ 15 callersClassFPN
r"""Feature Pyramid Network. This is an implementation of paper `Feature Pyramid Networks for Object Detection <https://arxiv.org/abs/1612.03
mmdet/models/necks/fpn.py:15
↓ 14 callersClassCocoMetric
COCO evaluation metric. Evaluate AR, AP, and mAP for detection tasks including proposal/box detection and instance segmentation. Please refer
mmdet/evaluation/metrics/coco_metric.py:23
↓ 14 callersClassSinePositionalEncoding
Position encoding with sine and cosine functions. See `End-to-End Object Detection with Transformers <https://arxiv.org/pdf/2005.12872>`_ for
mmdet/models/layers/positional_encoding.py:15
↓ 13 callersClassDetInferencer
Object Detection Inferencer. Args: model (str, optional): Path to the config file or the model name defined in metafile. For
mmdet/apis/det_inferencer.py:45
↓ 13 callersClassLVISMetric
LVIS evaluation metric. Args: ann_file (str, optional): Path to the coco format annotation file. If not specified, ground tru
mmdet/evaluation/metrics/lvis_metric.py:33
↓ 13 callersClassMlvlPointGenerator
Standard points generator for multi-level (Mlvl) feature maps in 2D points-based detectors. Args: strides (list[int] | list[tuple[int
mmdet/models/task_modules/prior_generators/point_generator.py:92
↓ 12 callersClassAdaptivePadding
Applies padding to input (if needed) so that input can get fully covered by filter you specified. It support two modes "same" and "corner". The
mmdet/models/layers/transformer/utils.py:116
↓ 12 callersClassCocoVideoMetric
COCO evaluation metric. Evaluate AR, AP, and mAP for detection tasks including proposal/box detection and instance segmentation. Please refer
mmdet/evaluation/metrics/coco_video_metric.py:13
↓ 12 callersClassDepthWiseConvBlock
projects/EfficientDet/efficientdet/utils.py:88
↓ 12 callersClassMobileNetV2
MobileNetV2 backbone. Args: widen_factor (float): Width multiplier, multiply number of channels in each layer by this amount.
mmdet/models/backbones/mobilenet_v2.py:15
↓ 12 callersClassMultiheadAttention
Multi-head Attention Module. This module implements multi-head attention that supports different input dims and embed dims. And it also suppo
mmpretrain/models/utils/attention.py:505
↓ 12 callersClassTridentBottleneck
BottleBlock for TridentResNet. Args: trident_dilations (tuple[int, int, int]): Dilations of different trident branch.
mmdet/models/backbones/trident_resnet.py:93
↓ 11 callersClassCutOut
CutOut operation. Randomly drop some regions of image used in `Cutout <https://arxiv.org/abs/1708.04552>`_. Required Keys: - img
mmdet/datasets/transforms/transforms.py:2163
↓ 11 callersClassFixShapeResize
Resize images & bbox & seg to the specified size. This transform resizes the input image according to ``width`` and ``height``. Bboxes, masks
mmdet/datasets/transforms/transforms.py:359
↓ 11 callersClassInvertedResidual
Inverted Residual Block. Args: in_channels (int): The input channels of this Module. out_channels (int): The output channels of t
mmdet/models/layers/inverted_residual.py:11
↓ 11 callersClassMLP
Very simple multi-layer perceptron (also called FFN) with relu. Mostly used in DETR series detectors. Args: input_dim (int): Feature
mmdet/models/layers/transformer/utils.py:736
↓ 11 callersClassPseudoSampler
A pseudo sampler that does not do sampling actually.
mmdet/models/task_modules/samplers/pseudo_sampler.py:12
↓ 11 callersClassRandomCenterCropPad
Random center crop and random around padding for CornerNet. This operation generates randomly cropped image from the original image and pads
mmdet/datasets/transforms/transforms.py:1788
↓ 10 callersClassCOCO
This class is almost the same as official pycocotools package. It implements some snake case function aliases. So that the COCO class has the
mmdet/datasets/api_wrappers/coco_api.py:13
↓ 10 callersClassRandomFlip
Flip the image & bbox & mask & segmentation map. Added or Updated keys: flip, flip_direction, img, gt_bboxes, and gt_seg_map. There are 3 flip
mmdet/datasets/transforms/transforms.py:496
↓ 10 callersClassReIDDataSample
A data structure interface of ReID task. It's used as interfaces between different components. Meta field: img_shape (Tuple): The sh
mmdet/structures/reid_data_sample.py:50
↓ 10 callersClassResLayer
ResLayer to build ResNet style backbone for RPF in detectoRS. The difference between this module and base class is that we pass ``rfp_inplane
mmdet/models/backbones/detectors_resnet.py:120
↓ 10 callersClassResize
Resize images & bbox & seg. This transform resizes the input image according to ``scale`` or ``scale_factor``. Bboxes, masks, and seg map are
mmdet/datasets/transforms/transforms.py:135
↓ 10 callersClassShearY
Shear the images, bboxes, masks and segmentation map vertically. Required Keys: - img - gt_bboxes (BaseBoxes[torch.float32]) (optional)
mmdet/datasets/transforms/geometric.py:315
↓ 9 callersClassCSPDarknet
CSP-Darknet backbone used in YOLOv5 and YOLOX. Args: arch (str): Architecture of CSP-Darknet, from {P5, P6}. Default: P5.
mmdet/models/backbones/csp_darknet.py:126
↓ 9 callersClassConvBN2d
An implementation of Conv2d + BatchNorm2d with support of fusion. Modified from https://github.com/microsoft/Cream/blob/main/TinyViT/models/t
mmpretrain/models/backbones/tinyvit.py:16
↓ 9 callersClassHungarianAssigner
Computes one-to-one matching between predictions and ground truth. This class computes an assignment between the targets and the predictions
mmdet/models/task_modules/assigners/hungarian_assigner.py:16
↓ 9 callersClassLayerScale
LayerScale layer. Args: dim (int): Dimension of input features. layer_scale_init_value (float or torch.Tensor): Init value of lay
mmpretrain/models/utils/layer_scale.py:8
↓ 9 callersClassRotate
Rotate the images, bboxes, masks and segmentation map. Required Keys: - img - gt_bboxes (BaseBoxes[torch.float32]) (optional) - gt_m
mmdet/datasets/transforms/geometric.py:429
↓ 9 callersClassShearX
Shear the images, bboxes, masks and segmentation map horizontally. Required Keys: - img - gt_bboxes (BaseBoxes[torch.float32]) (optional
mmdet/datasets/transforms/geometric.py:201
↓ 9 callersClassSwinTransformer
Swin Transformer A PyTorch implement of : `Swin Transformer: Hierarchical Vision Transformer using Shifted Windows` - https://arxiv.
mmdet/models/backbones/swin.py:468
↓ 9 callersClassTranslateX
Translate the images, bboxes, masks and segmentation map horizontally. Required Keys: - img - gt_bboxes (BaseBoxes[torch.float32]) (opti
mmdet/datasets/transforms/geometric.py:536
↓ 8 callersClassAdaptiveAvgPool2d
Handle empty batch dimension to AdaptiveAvgPool2d.
mmdet/models/layers/brick_wrappers.py:34
↓ 8 callersClassCocoPanopticMetric
COCO panoptic segmentation evaluation metric. Evaluate PQ, SQ RQ for panoptic segmentation tasks. Please refer to https://cocodataset.org/#pa
mmdet/evaluation/metrics/coco_panoptic_metric.py:33
↓ 8 callersClassPatchMerging
Merge patch feature map. This layer groups feature map by kernel_size, and applies norm and linear layers to the grouped feature map. Our imp
mmdet/models/layers/transformer/utils.py:312
↓ 8 callersClassResLayer
ResLayer to build ResNet style backbone. Args: block (nn.Module): block used to build ResLayer. inplanes (int): inplanes of block
mmdet/models/layers/res_layer.py:12
↓ 8 callersClassResLayer
ResLayer to build ResNet style backbone. Args: block (nn.Module): Residual block used to build ResLayer. num_blocks (int): Number
mmpretrain/models/backbones/resnet.py:319
↓ 8 callersClassTrackDataPreprocessor
Image pre-processor for tracking tasks. Accepts the data sampled by the dataloader, and preprocesses it into the format of the model
mmdet/models/data_preprocessors/track_data_preprocessor.py:17
↓ 7 callersClassConv2d
A wrapper around :class:`torch.nn.Conv2d` to support empty inputs and more features.
projects/XDecoder/xdecoder/transformer_blocks.py:19
↓ 7 callersClassCopyPaste
Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentation The simple copy-paste transform steps are as follows: 1. The
mmdet/datasets/transforms/transforms.py:2965
↓ 7 callersClassGeomTransform
Base class for geometric transformations. All geometric transformations need to inherit from this base class. ``GeomTransform`` unifies the class
mmdet/datasets/transforms/geometric.py:17
↓ 7 callersClassGridAssigner
Assign a corresponding gt bbox or background to each bbox. Each proposals will be assigned with `-1`, `0`, or a positive integer indicating t
mmdet/models/task_modules/assigners/grid_assigner.py:14
↓ 7 callersClassLinearBatchNorm
mmpretrain/models/backbones/levit.py:99
↓ 7 callersClassLoadAnnotations
Load and process the ``instances`` and ``seg_map`` annotation provided by dataset. The annotation format is as the following: .. code-bl
mmdet/datasets/transforms/loading.py:155
↓ 7 callersClassPad
Pad the image & segmentation map. There are three padding modes: (1) pad to a fixed size and (2) pad to the minimum size that is divisible by
mmdet/datasets/transforms/transforms.py:705
↓ 7 callersClassTranslateY
Translate the images, bboxes, masks and segmentation map vertically. Required Keys: - img - gt_bboxes (BaseBoxes[torch.float32]) (option
mmdet/datasets/transforms/geometric.py:647
↓ 7 callersClassUniversalVisualizer
Universal Visualizer for multiple tasks. Args: name (str): Name of the instance. Defaults to 'visualizer'. image (np.ndarray, opt
mmpretrain/visualization/visualizer.py:19
↓ 6 callersClassATSSAssigner
Assign a corresponding gt bbox or background to each prior. Each proposals will be assigned with `0` or a positive integer indicating the gro
mmdet/models/task_modules/assigners/atss_assigner.py:40
↓ 6 callersClassAvoidOOM
Try to convert inputs to FP16 and CPU if got a PyTorch's CUDA Out of Memory error. It will do the following steps: 1. First retry after c
mmdet/utils/memory.py:78
↓ 6 callersClassBaseDataset
Base dataset for image classification task. This dataset support annotation file in `OpenMMLab 2.0 style annotation format`. .. _OpenMML
mmpretrain/datasets/base_dataset.py:25
↓ 6 callersClassBlockWithRPE
HiViT block. Args: input_size (int): Input size. dim (int): Number of input dims. num_heads (int): Number of attention he
mmpretrain/models/backbones/hivit.py:137
↓ 6 callersClassBottle2neck
mmdet/models/backbones/res2net.py:15
↓ 6 callersClassCSPLayer
Cross Stage Partial Layer. Args: in_channels (int): The input channels of the CSP layer. out_channels (int): The output channels
mmdet/models/layers/csp_layer.py:153
↓ 6 callersClassCenterRegionAssigner
Assign pixels at the center region of a bbox as positive. Each proposals will be assigned with `-1`, `0`, or a positive integer indicating th
mmdet/models/task_modules/assigners/center_region_assigner.py:77
↓ 6 callersClassDataLoaderBenchmark
The dataloader benchmark class. It will be statistical inference FPS and CPU memory information. Args: cfg (mmengine.Config): config.
mmdet/utils/benchmark.py:278
↓ 6 callersClassDatasetBenchmark
The dataset benchmark class. It will be statistical inference FPS, FPS pre transform and CPU memory information. Args: cfg (mmengine.
mmdet/utils/benchmark.py:406
↓ 6 callersClassDownChannelBlock
projects/EfficientDet/efficientdet/utils.py:128
↓ 6 callersClassHorNetLayerNorm
An implementation of LayerNorm of HorNet. The differences between HorNetLayerNorm & torch LayerNorm: 1. Supports two data formats channel
mmpretrain/models/backbones/hornet.py:35
↓ 6 callersClassInferenceBenchmark
The inference benchmark class. It will be statistical inference FPS, CUDA memory and CPU memory information. Args: cfg (mmengine.Conf
mmdet/utils/benchmark.py:121
↓ 6 callersClassMOTChallengeDataset
Dataset for MOTChallenge. Args: visibility_thr (float, optional): The minimum visibility for the objects during training. Def
mmdet/datasets/mot_challenge_dataset.py:10
↓ 6 callersClassMaxIoUAssigner
Assign a corresponding gt bbox or background to each bbox. Each proposals will be assigned with `-1`, or a semi-positive integer indicating t
mmdet/models/task_modules/assigners/max_iou_assigner.py:85
↓ 6 callersClassMaxPool2dSamePadding
projects/EfficientDet/efficientdet/utils.py:53
↓ 6 callersClassMosaic
Mosaic augmentation. Given 4 images, mosaic transform combines them into one output image. The output image is composed of the parts from eac
mmdet/datasets/transforms/transforms.py:2254
↓ 6 callersClassPyramidVisionTransformer
Pyramid Vision Transformer (PVT) Implementation of `Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolution
mmdet/models/backbones/pvt.py:358
↓ 6 callersClassRandomAffine
Random affine transform data augmentation. This operation randomly generates affine transform matrix which including rotation, translation, s
mmdet/datasets/transforms/transforms.py:2736
↓ 6 callersClassSSDNeck
Extra layers of SSD backbone to generate multi-scale feature maps. Args: in_channels (Sequence[int]): Number of input channels per scale.
mmdet/models/necks/ssd_neck.py:11
↓ 6 callersClassSimplifiedBasicBlock
Simplified version of original basic residual block. This is used in `SCNet <https://arxiv.org/abs/2012.10150>`_. - Norm layer is now optiona
mmdet/models/layers/res_layer.py:112
↓ 6 callersClassTopkHungarianAssigner
Computes 1-to-k matching between ground truth and predictions. This class computes an assignment between the targets and the predictions base
mmdet/models/task_modules/assigners/topk_hungarian_assigner.py:12
↓ 6 callersClassTransformerEncoderLayer
Encoder layer with window attention in Vision Transformer. Args: embed_dims (int): The feature dimension num_heads (int): Paralle
mmpretrain/models/backbones/vit_sam.py:224
↓ 5 callersClassAspectRatioBatchSampler
A sampler wrapper for grouping images with similar aspect ratio (< 1 or. >= 1) into a same batch. Args: sampler (Sampler): Base samp
mmdet/datasets/samplers/batch_sampler.py:12
↓ 5 callersClassBasicBlock
mmdet/models/backbones/resnet.py:14
↓ 5 callersClassBasicConv
mmpretrain/models/backbones/vig.py:181
↓ 5 callersClassBertAttention
mmpretrain/models/multimodal/blip/language_model.py:341
↓ 5 callersClassBrightness
Adjust the brightness of the image. A magnitude=0 gives a black image, whereas magnitude=1 gives the original image. The bboxes, masks and seg
mmdet/datasets/transforms/colorspace.py:152
↓ 5 callersClassColor
Adjust the color balance of the image, in a manner similar to the controls on a colour TV set. A magnitude=0 gives a black & white image, wher
mmdet/datasets/transforms/colorspace.py:106
↓ 5 callersClassContrast
Control the contrast of the image. A magnitude=0 gives a gray image, whereas magnitude=1 gives the original imageThe bboxes, masks and segment
mmdet/datasets/transforms/colorspace.py:196
↓ 5 callersClassDetectoRS_ResNet
ResNet backbone for DetectoRS. Args: sac (dict, optional): Dictionary to construct SAC (Switchable Atrous Convolution). Defau
mmdet/models/backbones/detectors_resnet.py:212
↓ 5 callersClassDropBlock
Randomly drop some regions of feature maps. Please refer to the method proposed in `DropBlock <https://arxiv.org/abs/1810.12890>`_ for deta
mmdet/models/layers/dropblock.py:12
↓ 5 callersClassDumpDetResults
Dump model predictions to a pickle file for offline evaluation. Different from `DumpResults` in MMEngine, it compresses instance segmentation
mmdet/evaluation/metrics/dump_det_results.py:13
↓ 5 callersClassDyReLU
Dynamic ReLU (DyReLU) module. See `Dynamic ReLU <https://arxiv.org/abs/2003.10027>`_ for details. Current implementation is specialized for t
mmdet/models/layers/se_layer.py:67
↓ 5 callersClassGenericRoIExtractor
Extract RoI features from all level feature maps levels. This is the implementation of `A novel Region of Interest Extraction Layer for Insta
mmdet/models/roi_heads/roi_extractors/generic_roi_extractor.py:13
↓ 5 callersClassHourglassNet
HourglassNet backbone. Stacked Hourglass Networks for Human Pose Estimation. More details can be found in the `paper <https://arxiv.org/a
mmdet/models/backbones/hourglass.py:102
next →1–100 of 1,658, ranked by callers