Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sense-X/Co-DETR
/ types & classes
Types & classes
479 in github.com/Sense-X/Co-DETR
⨍
Functions
2,920
◇
Types & classes
479
↳
Endpoints
10
↓ 73 callers
Class
BitmapMasks
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 callers
Class
PolygonMasks
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 callers
Class
ResNet
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 callers
Class
FPN
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 callers
Class
AssignResult
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 callers
Class
Bottleneck
mmdet/models/backbones/resnet.py:97
↓ 15 callers
Class
GeneralData
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 callers
Class
LayerNorm
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 callers
Class
MaxIoUAssigner
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 callers
Class
MlvlPointGenerator
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 callers
Class
MobileNetV2
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 callers
Class
TridentBottleneck
BottleBlock for TridentResNet. Args: trident_dilations (tuple[int, int, int]): Dilations of different trident branch.
mmdet/models/backbones/trident_resnet.py:93
↓ 11 callers
Class
InvertedResidual
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 callers
Class
ResLayer
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 callers
Class
Accuracy
mmdet/models/losses/accuracy.py:54
↓ 9 callers
Class
AdaptivePadding
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 callers
Class
CSPDarknet
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 callers
Class
Compose
Compose multiple transforms sequentially. Args: transforms (Sequence[dict | callable]): Sequence of transform object or confi
mmdet/datasets/pipelines/compose.py:10
↓ 9 callers
Class
PatchEmbed
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 callers
Class
SwinTransformer
Swin Transformer A PyTorch implement of : `Swin Transformer: Hierarchical Vision Transformer using Shifted Windows` - https://arxiv.
mmdet/models/backbones/swin.py:467
↓ 8 callers
Class
AdaptiveAvgPool2d
Handle empty batch dimension to AdaptiveAvgPool2d.
mmdet/models/utils/brick_wrappers.py:32
↓ 8 callers
Class
ExampleModule
tests/test_runtime/test_fp16.py:68
↓ 8 callers
Class
ResLayer
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 callers
Class
EvalDataset
tests/test_runtime/test_eval_hook.py:36
↓ 7 callers
Class
MaskHungarianAssigner
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 callers
Class
OpenImagesDataset
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 callers
Class
PatchMerging
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 callers
Class
AvoidOOM
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 callers
Class
Bottle2neck
mmdet/models/backbones/res2net.py:15
↓ 6 callers
Class
InstanceData
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 callers
Class
PyramidVisionTransformer
Pyramid Vision Transformer (PVT) Implementation of `Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolution
mmdet/models/backbones/pvt.py:357
↓ 6 callers
Class
SSDNeck
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 callers
Class
SimplifiedBasicBlock
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 callers
Class
BasicBlock
mmdet/models/backbones/resnet.py:14
↓ 5 callers
Class
ConcatDataset
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 callers
Class
DetectoRS_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 callers
Class
DropBlock
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 callers
Class
DyReLU
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 callers
Class
ExampleDataset
tests/test_runtime/test_eval_hook.py:18
↓ 5 callers
Class
GenericRoIExtractor
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 callers
Class
HourglassNet
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 callers
Class
LoadImageFromFile
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 callers
Class
MultiImageMixDataset
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 callers
Class
PyramidVisionTransformerV2
Implementation of `PVTv2: Improved Baselines with Pyramid Vision Transformer <https://arxiv.org/pdf/2106.13797.pdf>`_.
mmdet/models/backbones/pvt.py:580
↓ 5 callers
Class
SELayer
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 callers
Class
YOLOV3Neck
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 callers
Class
AnchorGenerator
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 callers
Class
ApproxMaxIoUAssigner
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 callers
Class
COCO
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 callers
Class
CTResNetNeck
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 callers
Class
CenterRegionAssigner
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 callers
Class
CustomDataset
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 callers
Class
DetrTransformerDecoder
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 callers
Class
FPG
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 callers
Class
FPN_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 callers
Class
HRNet
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 callers
Class
NASFCOS_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 callers
Class
NASFPN
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 callers
Class
RandomSampler
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 callers
Class
BBoxHead
Simplest RoI head, with only two fc layers for classification and regression respectively.
mmdet/models/roi_heads/bbox_heads/bbox_head.py:15
↓ 3 callers
Class
CSPLayer
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 callers
Class
ChannelMapper
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 callers
Class
ClassBalancedDataset
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 callers
Class
CocoDataset
mmdet/datasets/coco.py:23
↓ 3 callers
Class
CocoPanopticDataset
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 callers
Class
DemoModel
tests/test_utils/test_hook.py:161
↓ 3 callers
Class
DyDCNv2
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 callers
Class
ExampleModel
tests/test_runtime/test_eval_hook.py:45
↓ 3 callers
Class
FeatureAdaption
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 callers
Class
HRModule
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 callers
Class
HungarianAssigner
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 callers
Class
LADHead
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 callers
Class
MemoryProfilerHook
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 callers
Class
OHEMSampler
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 callers
Class
ONNXRuntimeDetector
Wrapper for detector's inference with ONNXRuntime.
mmdet/core/export/model_wrappers.py:96
↓ 3 callers
Class
OpenImagesChallengeDataset
Open Images Challenge dataset for detection.
mmdet/datasets/openimages.py:727
↓ 3 callers
Class
PatchEmbed
Image to Patch Embedding.
mmdet/models/backbones/vit.py:143
↓ 3 callers
Class
PointAssigner
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 callers
Class
RegNet
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 callers
Class
RepeatDataset
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 callers
Class
ResNetV1d
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 callers
Class
SamplingResult
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 callers
Class
SinePositionalEncoding
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 callers
Class
SwinBlock
Args: embed_dims (int): The feature dimension. num_heads (int): Parallel attention heads. feedforward_channels (int): The
mmdet/models/backbones/swin.py:288
↓ 3 callers
Class
TridentResNet
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 callers
Class
UniformAssigner
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 callers
Class
AutoAssignHead
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 callers
Class
BiCornerPool
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 callers
Class
CenterNetHead
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 callers
Class
ConvUpsample
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 callers
Class
CornerHead
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 callers
Class
CrossEntropyLoss
mmdet/models/losses/cross_entropy_loss.py:293
↓ 2 callers
Class
DecoupledSOLOHead
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 callers
Class
DecoupledSOLOLightHead
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 callers
Class
DeltaXYWHBBoxCoder
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 callers
Class
DetectionBlock
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 callers
Class
EfficientNet
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 callers
Class
ExampleObject
tests/test_runtime/test_fp16.py:57
↓ 2 callers
Class
ExpMomentumEMAHook
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 callers
Class
FCOSHead
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