MCPcopy Create free account

hub / github.com/Sense-X/Co-DETR / types & classes

Types & classes479 in github.com/Sense-X/Co-DETR

↓ 73 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/core/mask/structures.py:193
↓ 59 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/core/mask/structures.py:548
↓ 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
↓ 23 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:11
↓ 21 callersClassAssignResult
Stores assignments between predicted and truth boxes. Attributes: num_gts (int): the number of truth boxes considered when computing this
mmdet/core/bbox/assigners/assign_result.py:7
↓ 15 callersClassBottleneck
mmdet/models/backbones/resnet.py:97
↓ 15 callersClassGeneralData
A general data structure of OpenMMlab. A data structure that stores the meta information, the annotations of the images or the model predicti
mmdet/core/data_structures/general_data.py:10
↓ 14 callersClassLayerNorm
r""" LayerNorm that supports two data formats: channels_last (default) or channels_first. The ordering of the dimensions in the inputs. channels_
mmdet/models/necks/sfp.py:10
↓ 13 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/core/bbox/assigners/max_iou_assigner.py:11
↓ 12 callersClassMlvlPointGenerator
Standard points generator for multi-level (Mlvl) feature maps in 2D points-based detectors. Args: strides (list[int] | list[tuple[int
mmdet/core/anchor/point_generator.py:44
↓ 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:14
↓ 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 callersClassInvertedResidual
Inverted Residual Block. Args: in_channels (int): The input channels of this Module. out_channels (int): The output channels of t
mmdet/models/utils/inverted_residual.py:11
↓ 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
↓ 9 callersClassAccuracy
mmdet/models/losses/accuracy.py:54
↓ 9 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/utils/transformer.py:64
↓ 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:124
↓ 9 callersClassCompose
Compose multiple transforms sequentially. Args: transforms (Sequence[dict | callable]): Sequence of transform object or confi
mmdet/datasets/pipelines/compose.py:10
↓ 9 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/utils/transformer.py:136
↓ 9 callersClassSwinTransformer
Swin Transformer A PyTorch implement of : `Swin Transformer: Hierarchical Vision Transformer using Shifted Windows` - https://arxiv.
mmdet/models/backbones/swin.py:467
↓ 8 callersClassAdaptiveAvgPool2d
Handle empty batch dimension to AdaptiveAvgPool2d.
mmdet/models/utils/brick_wrappers.py:32
↓ 8 callersClassExampleModule
tests/test_runtime/test_fp16.py:68
↓ 8 callersClassResLayer
ResLayer to build ResNet style backbone. Args: block (nn.Module): block used to build ResLayer. inplanes (int): inplanes of block
mmdet/models/utils/res_layer.py:7
↓ 7 callersClassEvalDataset
tests/test_runtime/test_eval_hook.py:36
↓ 7 callersClassMaskHungarianAssigner
Computes one-to-one matching between predictions and ground truth for mask. This class computes an assignment between the targets and the pre
mmdet/core/bbox/assigners/mask_hungarian_assigner.py:16
↓ 7 callersClassOpenImagesDataset
Open Images dataset for detection. Args: ann_file (str): Annotation file path. label_file (str): File path of the label descripti
mmdet/datasets/openimages.py:21
↓ 7 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/utils/transformer.py:262
↓ 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:79
↓ 6 callersClassBottle2neck
mmdet/models/backbones/res2net.py:15
↓ 6 callersClassInstanceData
Data structure for instance-level annnotations or predictions. Subclass of :class:`GeneralData`. All value in `data_fields` should have the s
mmdet/core/data_structures/instance_data.py:10
↓ 6 callersClassPyramidVisionTransformer
Pyramid Vision Transformer (PVT) Implementation of `Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolution
mmdet/models/backbones/pvt.py:357
↓ 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/utils/res_layer.py:107
↓ 5 callersClassBasicBlock
mmdet/models/backbones/resnet.py:14
↓ 5 callersClassConcatDataset
A wrapper of concatenated dataset. Same as :obj:`torch.utils.data.dataset.ConcatDataset`, but concat the group flag for image aspect ratio.
mmdet/datasets/dataset_wrappers.py:17
↓ 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/plugins/dropblock.py:11
↓ 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/utils/se_layer.py:62
↓ 5 callersClassExampleDataset
tests/test_runtime/test_eval_hook.py:18
↓ 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:10
↓ 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:97
↓ 5 callersClassLoadImageFromFile
Load an image from file. Required keys are "img_prefix" and "img_info" (a dict that must contain the key "filename"). Added or updated keys a
mmdet/datasets/pipelines/loading.py:18
↓ 5 callersClassMultiImageMixDataset
A wrapper of multiple images mixed dataset. Suitable for training on multiple images mixed data augmentation like mosaic and mixup. For the a
mmdet/datasets/dataset_wrappers.py:338
↓ 5 callersClassPyramidVisionTransformerV2
Implementation of `PVTv2: Improved Baselines with Pyramid Vision Transformer <https://arxiv.org/pdf/2106.13797.pdf>`_.
mmdet/models/backbones/pvt.py:580
↓ 5 callersClassSELayer
Squeeze-and-Excitation Module. Args: channels (int): The input (and output) channels of the SE layer. ratio (int): Squeeze ratio
mmdet/models/utils/se_layer.py:9
↓ 5 callersClassYOLOV3Neck
The neck of YOLOV3. It can be treated as a simplified version of FPN. It will take the result from Darknet backbone and do some upsampling an
mmdet/models/necks/yolo_neck.py:65
↓ 4 callersClassAnchorGenerator
Standard anchor generator for 2D anchor-based detectors. Args: strides (list[int] | list[tuple[int, int]]): Strides of anchors
mmdet/core/anchor/anchor_generator.py:13
↓ 4 callersClassApproxMaxIoUAssigner
Assign a corresponding gt bbox or background to each bbox. Each proposals will be assigned with an integer indicating the ground truth index
mmdet/core/bbox/assigners/approx_max_iou_assigner.py:10
↓ 4 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:11
↓ 4 callersClassCTResNetNeck
The neck used in `CenterNet <https://arxiv.org/abs/1904.07850>`_ for object classification and box regression. Args: in_channel (int
mmdet/models/necks/ct_resnet_neck.py:12
↓ 4 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/core/bbox/assigners/center_region_assigner.py:72
↓ 4 callersClassCustomDataset
Custom dataset for detection. The annotation format is shown as follows. The `ann` field is optional for testing. .. code-block:: none
mmdet/datasets/custom.py:18
↓ 4 callersClassDetrTransformerDecoder
Implements the decoder in DETR transformer. Args: return_intermediate (bool): Whether to return intermediate outputs. post_norm_c
mmdet/models/utils/transformer.py:482
↓ 4 callersClassFPG
FPG. Implementation of `Feature Pyramid Grids (FPG) <https://arxiv.org/abs/2004.03580>`_. This implementation only gives the basic struct
mmdet/models/necks/fpg.py:105
↓ 4 callersClassFPN_CARAFE
FPN_CARAFE is a more flexible implementation of FPN. It allows more choice for upsample methods during the top-down pathway. It can reproduce
mmdet/models/necks/fpn_carafe.py:11
↓ 4 callersClassHRNet
HRNet backbone. `High-Resolution Representations for Labeling Pixels and Regions arXiv: <https://arxiv.org/abs/1904.04514>`_. Args:
mmdet/models/backbones/hrnet.py:204
↓ 4 callersClassNASFCOS_FPN
FPN structure in NASFPN. Implementation of paper `NAS-FCOS: Fast Neural Architecture Search for Object Detection <https://arxiv.org/abs/1906.
mmdet/models/necks/nasfcos_fpn.py:12
↓ 4 callersClassNASFPN
NAS-FPN. Implementation of `NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection <https://arxiv.org/abs/1904.07392>`_
mmdet/models/necks/nas_fpn.py:11
↓ 4 callersClassRandomSampler
Random sampler. Args: num (int): Number of samples pos_fraction (float): Fraction of positive samples neg_pos_ub (int, op
mmdet/core/bbox/samplers/random_sampler.py:9
↓ 3 callersClassBBoxHead
Simplest RoI head, with only two fc layers for classification and regression respectively.
mmdet/models/roi_heads/bbox_heads/bbox_head.py:15
↓ 3 callersClassCSPLayer
Cross Stage Partial Layer. Args: in_channels (int): The input channels of the CSP layer. out_channels (int): The output channels
mmdet/models/utils/csp_layer.py:75
↓ 3 callersClassChannelMapper
r"""Channel Mapper to reduce/increase channels of backbone features. This is used to reduce/increase channels of backbone features. Args:
mmdet/models/necks/channel_mapper.py:10
↓ 3 callersClassClassBalancedDataset
A wrapper of repeated dataset with repeat factor. Suitable for training on class imbalanced datasets like LVIS. Following the sampling strate
mmdet/datasets/dataset_wrappers.py:211
↓ 3 callersClassCocoDataset
mmdet/datasets/coco.py:23
↓ 3 callersClassCocoPanopticDataset
Coco dataset for Panoptic segmentation. The annotation format is shown as follows. The `ann` field is optional for testing. .. code-bloc
mmdet/datasets/coco_panoptic.py:114
↓ 3 callersClassDemoModel
tests/test_utils/test_hook.py:161
↓ 3 callersClassDyDCNv2
ModulatedDeformConv2d with normalization layer used in DyHead. This module cannot be configured with `conv_cfg=dict(type='DCNv2')` because Dy
mmdet/models/necks/dyhead.py:17
↓ 3 callersClassExampleModel
tests/test_runtime/test_eval_hook.py:45
↓ 3 callersClassFeatureAdaption
Feature Adaption Module. Feature Adaption Module is implemented based on DCN v1. It uses anchor shape prediction rather than feature map to
mmdet/models/dense_heads/guided_anchor_head.py:16
↓ 3 callersClassHRModule
High-Resolution Module for HRNet. In this module, every branch has 4 BasicBlocks/Bottlenecks. Fusion/Exchange is in this module.
mmdet/models/backbones/hrnet.py:13
↓ 3 callersClassHungarianAssigner
Computes one-to-one matching between predictions and ground truth. This class computes an assignment between the targets and the predictions
mmdet/core/bbox/assigners/hungarian_assigner.py:17
↓ 3 callersClassLADHead
Label Assignment Head from the paper: `Improving Object Detection by Label Assignment Distillation <https://arxiv.org/pdf/2108.10520.pdf>`_
mmdet/models/dense_heads/lad_head.py:11
↓ 3 callersClassMemoryProfilerHook
Memory profiler hook recording memory information including virtual memory, swap memory, and the memory of the current process. Args:
mmdet/core/hook/memory_profiler_hook.py:6
↓ 3 callersClassOHEMSampler
r"""Online Hard Example Mining Sampler described in `Training Region-based Object Detectors with Online Hard Example Mining <https://arxiv.org
mmdet/core/bbox/samplers/ohem_sampler.py:10
↓ 3 callersClassONNXRuntimeDetector
Wrapper for detector's inference with ONNXRuntime.
mmdet/core/export/model_wrappers.py:96
↓ 3 callersClassOpenImagesChallengeDataset
Open Images Challenge dataset for detection.
mmdet/datasets/openimages.py:727
↓ 3 callersClassPatchEmbed
Image to Patch Embedding.
mmdet/models/backbones/vit.py:143
↓ 3 callersClassPointAssigner
Assign a corresponding gt bbox or background to each point. Each proposals will be assigned with `0`, or a positive integer indicating the gr
mmdet/core/bbox/assigners/point_assigner.py:10
↓ 3 callersClassRegNet
RegNet backbone. More details can be found in `paper <https://arxiv.org/abs/2003.13678>`_ . Args: arch (dict): The parameter of RegN
mmdet/models/backbones/regnet.py:14
↓ 3 callersClassRepeatDataset
A wrapper of repeated dataset. The length of repeated dataset will be `times` larger than the original dataset. This is useful when the data
mmdet/datasets/dataset_wrappers.py:154
↓ 3 callersClassResNetV1d
r"""ResNetV1d variant described in `Bag of Tricks <https://arxiv.org/pdf/1812.01187.pdf>`_. Compared with default ResNet(ResNetV1b), ResNetV1
mmdet/models/backbones/resnet.py:661
↓ 3 callersClassSamplingResult
Bbox sampling result. Example: >>> # xdoctest: +IGNORE_WANT >>> from mmdet.core.bbox.samplers.sampling_result import * # NOQA
mmdet/core/bbox/samplers/sampling_result.py:7
↓ 3 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/utils/positional_encoding.py:11
↓ 3 callersClassSwinBlock
Args: embed_dims (int): The feature dimension. num_heads (int): Parallel attention heads. feedforward_channels (int): The
mmdet/models/backbones/swin.py:288
↓ 3 callersClassTridentResNet
The stem layer, stage 1 and stage 2 in Trident ResNet are identical to ResNet, while in stage 3, Trident BottleBlock is utilized to replace the
mmdet/models/backbones/trident_resnet.py:235
↓ 3 callersClassUniformAssigner
Uniform Matching between the anchors and gt boxes, which can achieve balance in positive anchors, and gt_bboxes_ignore was not considered for
mmdet/core/bbox/assigners/uniform_assigner.py:12
↓ 2 callersClassAutoAssignHead
AutoAssignHead head used in AutoAssign. More details can be found in the `paper <https://arxiv.org/abs/2007.03496>`_ . Args: for
mmdet/models/dense_heads/autoassign_head.py:128
↓ 2 callersClassBiCornerPool
Bidirectional Corner Pooling Module (TopLeft, BottomRight, etc.) Args: in_channels (int): Input channels of module. out_channels
mmdet/models/dense_heads/corner_head.py:21
↓ 2 callersClassCenterNetHead
Objects as Points Head. CenterHead use center_point to indicate object's position. Paper link <https://arxiv.org/abs/1904.07850> Args:
mmdet/models/dense_heads/centernet_head.py:18
↓ 2 callersClassConvUpsample
ConvUpsample performs 2x upsampling after Conv. There are several `ConvModule` layers. In the first few layers, upsampling will be applied af
mmdet/models/utils/conv_upsample.py:7
↓ 2 callersClassCornerHead
Head of CornerNet: Detecting Objects as Paired Keypoints. Code is modified from the `official github repo <https://github.com/princeton-vl/Co
mmdet/models/dense_heads/corner_head.py:85
↓ 2 callersClassCrossEntropyLoss
mmdet/models/losses/cross_entropy_loss.py:293
↓ 2 callersClassDecoupledSOLOHead
Decoupled SOLO mask head used in `SOLO: Segmenting Objects by Locations. <https://arxiv.org/abs/1912.04488>`_ Args: init_cfg (dict o
mmdet/models/dense_heads/solo_head.py:590
↓ 2 callersClassDecoupledSOLOLightHead
Decoupled Light SOLO mask head used in `SOLO: Segmenting Objects by Locations <https://arxiv.org/abs/1912.04488>`_ Args: with_dcn (bo
mmdet/models/dense_heads/solo_head.py:1063
↓ 2 callersClassDeltaXYWHBBoxCoder
Delta XYWH BBox coder. Following the practice in `R-CNN <https://arxiv.org/abs/1311.2524>`_, this coder encodes bbox (x1, y1, x2, y2) into de
mmdet/core/bbox/coder/delta_xywh_bbox_coder.py:13
↓ 2 callersClassDetectionBlock
Detection block in YOLO neck. Let out_channels = n, the DetectionBlock contains: Six ConvLayers, 1 Conv2D Layer and 1 YoloLayer. The firs
mmdet/models/necks/yolo_neck.py:12
↓ 2 callersClassEfficientNet
EfficientNet backbone. Args: arch (str): Architecture of efficientnet. Defaults to b0. out_indices (Sequence[int]): Output from w
mmdet/models/backbones/efficientnet.py:159
↓ 2 callersClassExampleObject
tests/test_runtime/test_fp16.py:57
↓ 2 callersClassExpMomentumEMAHook
EMAHook using exponential momentum strategy. Args: total_iter (int): The total number of iterations of EMA momentum. Defaults
mmdet/core/hook/ema.py:104
↓ 2 callersClassFCOSHead
Anchor-free head used in `FCOS <https://arxiv.org/abs/1904.01355>`_. The FCOS head does not use anchor boxes. Instead bounding boxes are pred
mmdet/models/dense_heads/fcos_head.py:17
next →1–100 of 479, ranked by callers