MCPcopy Create free account

hub / github.com/NVlabs/SegFormer / types & classes

Types & classes147 in github.com/NVlabs/SegFormer

↓ 30 callersClassUNet
UNet backbone. U-Net: Convolutional Networks for Biomedical Image Segmentation. https://arxiv.org/pdf/1505.04597.pdf Args: in_cha
mmseg/models/backbones/unet.py:222
↓ 20 callersClassResNet
ResNet backbone. Args: depth (int): Depth of resnet, from {18, 34, 50, 101, 152}. in_channels (int): Number of input image channe
mmseg/models/backbones/resnet.py:308
↓ 14 callersClassBottleneck
Bottleneck block for ResNet. If style is "pytorch", the stride-two layer is the 3x3 conv layer, if it is "caffe", the stride-two layer is the
mmseg/models/backbones/resnet.py:97
↓ 12 callersClassFCNHead
Fully Convolution Networks for Semantic Segmentation. This head is implemented of `FCNNet <https://arxiv.org/abs/1411.4038>`_. Args:
mmseg/models/decode_heads/fcn_head.py:10
↓ 10 callersClassBaseDecodeHead
Base class for BaseDecodeHead. Args: in_channels (int|Sequence[int]): Input channels. channels (int): Channels after modules, bef
mmseg/models/decode_heads/decode_head.py:14
↓ 10 callersClassPSAHead
Point-wise Spatial Attention Network for Scene Parsing. This head is the implementation of `PSANet <https://hszhao.github.io/papers/eccv18_ps
mmseg/models/decode_heads/psa_head.py:17
↓ 10 callersClassResLayer
ResLayer to build ResNet style backbone. Args: block (nn.Module): block used to build ResLayer. inplanes (int): inplanes of block
mmseg/models/utils/res_layer.py:5
↓ 10 callersClassUpConvBlock
Upsample convolution block in decoder for UNet. This upsample convolution block consists of one upsample module followed by one convolution b
mmseg/models/utils/up_conv_block.py:6
↓ 9 callersClassAccuracy
Accuracy calculation module.
mmseg/models/losses/accuracy.py:52
↓ 9 callersClassCustomDataset
Custom dataset for semantic segmentation. An example of file structure is as followed. .. code-block:: none ├── data │ ├──
mmseg/datasets/custom.py:18
↓ 9 callersClassDeconvModule
Deconvolution upsample module in decoder for UNet (2X upsample). This module uses deconvolution to upsample feature map in the decoder of UNe
mmseg/models/backbones/unet.py:87
↓ 9 callersClassInvertedResidual
InvertedResidual block for MobileNetV2. Args: in_channels (int): The input channels of the InvertedResidual block. out_channels (
mmseg/models/utils/inverted_residual.py:8
↓ 8 callersClassBasicConvBlock
Basic convolutional block for UNet. This module consists of several plain convolutional layers. Args: in_channels (int): Number of i
mmseg/models/backbones/unet.py:13
↓ 8 callersClassExampleModel
tests/test_eval_hook.py:26
↓ 8 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
mmseg/datasets/pipelines/loading.py:10
↓ 8 callersClassMobileNetV3
MobileNetV3 backbone. This backbone is the improved implementation of `Searching for MobileNetV3 <https://ieeexplore.ieee.org/document/900883
mmseg/models/backbones/mobilenet_v3.py:15
↓ 7 callersClassCGNet
CGNet backbone. A Light-weight Context Guided Network for Semantic Segmentation arXiv: https://arxiv.org/abs/1811.08201 Args: in
mmseg/models/backbones/cgnet.py:186
↓ 7 callersClassContextGuidedBlock
Context Guided Block for CGNet. This class consists of four components: local feature extractor, surrounding feature extractor, joint feature
mmseg/models/backbones/cgnet.py:53
↓ 7 callersClassLoadAnnotations
Load annotations for semantic segmentation. Args: reduce_zero_label (bool): Whether reduce all label value by 1. Usually used
mmseg/datasets/pipelines/loading.py:90
↓ 6 callersClassInterpConv
Interpolation upsample module in decoder for UNet. This module uses interpolation to upsample feature map in the decoder of UNet. It consists
mmseg/models/backbones/unet.py:148
↓ 5 callersClassAPCHead
Adaptive Pyramid Context Network for Semantic Segmentation. This head is the implementation of `APCNet <https://openaccess.thecvf.com/content
mmseg/models/decode_heads/apc_head.py:110
↓ 5 callersClassBasicBlock
Basic block for ResNet.
mmseg/models/backbones/resnet.py:13
↓ 5 callersClassCompose
Compose multiple transforms sequentially. Args: transforms (Sequence[dict | callable]): Sequence of transform object or confi
mmseg/datasets/pipelines/compose.py:9
↓ 5 callersClassDMHead
Dynamic Multi-scale Filters for Semantic Segmentation. This head is the implementation of `DMNet <https://openaccess.thecvf.com/content_ICCV_
mmseg/models/decode_heads/dm_head.py:92
↓ 5 callersClassInvertedResidualV3
Inverted Residual Block for MobileNetV3. Args: in_channels (int): The input channels of this Module. out_channels (int): The outp
mmseg/models/utils/inverted_residual.py:97
↓ 4 callersClassASPPHead
Rethinking Atrous Convolution for Semantic Image Segmentation. This head is the implementation of `DeepLabV3 <https://arxiv.org/abs/1706.0558
mmseg/models/decode_heads/aspp_head.py:53
↓ 4 callersClassBlock
mmseg/models/backbones/mix_transformer.py:120
↓ 4 callersClassDNLHead
Disentangled Non-Local Neural Networks. This head is the implementation of `DNLNet <https://arxiv.org/abs/2006.06668>`_. Args: r
mmseg/models/decode_heads/dnl_head.py:87
↓ 4 callersClassDistEvalHook
Distributed evaluation hook. Attributes: dataloader (DataLoader): A PyTorch dataloader. interval (int): Evaluation interval (by e
mmseg/core/evaluation/eval_hooks.py:51
↓ 4 callersClassEvalHook
Evaluation hook. Attributes: dataloader (DataLoader): A PyTorch dataloader. interval (int): Evaluation interval (by epochs). Defa
mmseg/core/evaluation/eval_hooks.py:7
↓ 4 callersClassExampleDataset
tests/test_eval_hook.py:16
↓ 4 callersClassMLP
Linear Embedding
mmseg/models/decode_heads/segformer_head.py:20
↓ 4 callersClassOverlapPatchEmbed
Image to Patch Embedding
mmseg/models/backbones/mix_transformer.py:160
↓ 4 callersClassPSPHead
Pyramid Scene Parsing Network. This head is the implementation of `PSPNet <https://arxiv.org/abs/1612.01105>`_. Args: pool_scale
mmseg/models/decode_heads/psp_head.py:61
↓ 4 callersClassSELayer
Squeeze-and-Excitation Module. Args: channels (int): The input (and output) channels of the SE layer. ratio (int): Squeeze ratio
mmseg/models/utils/se_layer.py:8
↓ 4 callersClassUPerHead
Unified Perceptual Parsing for Scene Understanding. This head is the implementation of `UPerNet <https://arxiv.org/abs/1807.10221>`_. Ar
mmseg/models/decode_heads/uper_head.py:12
↓ 3 callersClassConcatDataset
A wrapper of concatenated dataset. Same as :obj:`torch.utils.data.dataset.ConcatDataset`, but concat the group flag for image aspect ratio.
mmseg/datasets/dataset_wrappers.py:7
↓ 3 callersClassEncHead
Context Encoding for Semantic Segmentation. This head is the implementation of `EncNet <https://arxiv.org/abs/1803.08904>`_. Args:
mmseg/models/decode_heads/enc_head.py:62
↓ 3 callersClassLRASPPHead
Lite R-ASPP (LRASPP) head is proposed in Searching for MobileNetV3. This head is the improved implementation of `Searching for MobileNetV3 <h
mmseg/models/decode_heads/lraspp_head.py:12
↓ 3 callersClassOHEMPixelSampler
Online Hard Example Mining Sampler for segmentation. Args: context (nn.Module): The context of sampler, subclass of :obj:`Bas
mmseg/core/seg/sampler/ohem_pixel_sampler.py:9
↓ 3 callersClassPPM
Pooling Pyramid Module used in PSPNet. Args: pool_scales (tuple[int]): Pooling scales used in Pooling Pyramid Module.
mmseg/models/decode_heads/psp_head.py:10
↓ 2 callersClassDepthwiseSeparableASPPHead
Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. This head is the implementation of `DeepLabV3+ <https:
mmseg/models/decode_heads/sep_aspp_head.py:29
↓ 2 callersClassDepthwiseSeparableFCNHead
Depthwise-Separable Fully Convolutional Network for Semantic Segmentation. This head is implemented according to Fast-SCNN paper. Args:
mmseg/models/decode_heads/sep_fcn_head.py:8
↓ 2 callersClassFastSCNN
Fast-SCNN Backbone. Args: in_channels (int): Number of input image channels. Default: 3. downsample_dw_channels (tuple[int]): Num
mmseg/models/backbones/fast_scnn.py:250
↓ 2 callersClassGlobalContextExtractor
Global Context Extractor for CGNet. This class is employed to refine the joFint feature of both local feature and surrounding context. A
mmseg/models/backbones/cgnet.py:13
↓ 2 callersClassInputInjection
Downsampling module for CGNet.
mmseg/models/backbones/cgnet.py:170
↓ 2 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
mmseg/datasets/dataset_wrappers.py:24
↓ 2 callersClassResNeSt
ResNeSt backbone. Args: groups (int): Number of groups of Bottleneck. Default: 1 base_width (int): Base width of Bottleneck. Defa
mmseg/models/backbones/resnest.py:270
↓ 2 callersClassResNeXt
ResNeXt backbone. Args: depth (int): Depth of resnet, from {18, 34, 50, 101, 152}. in_channels (int): Number of input image chann
mmseg/models/backbones/resnext.py:87
↓ 2 callersClassResNetV1d
ResNetV1d variant described in [1]_. Compared with default ResNet(ResNetV1b), ResNetV1d replaces the 7x7 conv in the input stem with three 3x
mmseg/models/backbones/resnet.py:678
↓ 2 callersClassSelfAttentionBlock
Make a ANN used SelfAttentionBlock. Args: low_in_channels (int): Input channels of lower level feature, which is the key feat
mmseg/models/decode_heads/ann_head.py:32
↓ 1 callersClassACM
Adaptive Context Module used in APCNet. Args: pool_scale (int): Pooling scale used in Adaptive Context Module to extract regi
mmseg/models/decode_heads/apc_head.py:11
↓ 1 callersClassAFNB
Asymmetric Fusion Non-local Block(AFNB) Args: low_in_channels (int): Input channels of lower level feature, which is the key
mmseg/models/decode_heads/ann_head.py:79
↓ 1 callersClassANNHead
Asymmetric Non-local Neural Networks for Semantic Segmentation. This head is the implementation of `ANNNet <https://arxiv.org/abs/1908.07678>
mmseg/models/decode_heads/ann_head.py:184
↓ 1 callersClassAPNB
Asymmetric Pyramid Non-local Block (APNB) Args: in_channels (int): Input channels of key/query feature, which is the key feat
mmseg/models/decode_heads/ann_head.py:133
↓ 1 callersClassASPPModule
Atrous Spatial Pyramid Pooling (ASPP) Module. Args: dilations (tuple[int]): Dilation rate of each layer. in_channels (int): Input
mmseg/models/decode_heads/aspp_head.py:10
↓ 1 callersClassAttention
mmseg/models/backbones/mix_transformer.py:58
↓ 1 callersClassCAM
Channel Attention Module (CAM)
mmseg/models/decode_heads/da_head.py:49
↓ 1 callersClassCCHead
CCNet: Criss-Cross Attention for Semantic Segmentation. This head is the implementation of `CCNet <https://arxiv.org/abs/1811.11721>`_.
mmseg/models/decode_heads/cc_head.py:13
↓ 1 callersClassDAHead
Dual Attention Network for Scene Segmentation. This head is the implementation of `DANet <https://arxiv.org/abs/1809.02983>`_. Args:
mmseg/models/decode_heads/da_head.py:75
↓ 1 callersClassDCM
Dynamic Convolutional Module used in DMNet. Args: filter_size (int): The filter size of generated convolution kernel used in
mmseg/models/decode_heads/dm_head.py:10
↓ 1 callersClassDWConv
mmseg/models/backbones/mix_transformer.py:358
↓ 1 callersClassDepthwiseSeparableASPPModule
Atrous Spatial Pyramid Pooling (ASPP) Module with depthwise separable conv.
mmseg/models/decode_heads/sep_aspp_head.py:10
↓ 1 callersClassDisentangledNonLocal2d
Disentangled Non-Local Blocks. Args: temperature (float): Temperature to adjust attention. Default: 0.05
mmseg/models/decode_heads/dnl_head.py:9
↓ 1 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
mmseg/models/utils/drop.py:151
↓ 1 callersClassEMAHead
Expectation Maximization Attention Networks for Semantic Segmentation. This head is the implementation of `EMANet <https://arxiv.org/abs/1907
mmseg/models/decode_heads/ema_head.py:79
↓ 1 callersClassEMAModule
Expectation Maximization Attention Module used in EMANet. Args: channels (int): Channels of the whole module. num_bases (int): Nu
mmseg/models/decode_heads/ema_head.py:22
↓ 1 callersClassEncModule
Encoding Module used in EncNet. Args: in_channels (int): Input channels. num_codes (int): Number of code words. conv_cfg
mmseg/models/decode_heads/enc_head.py:11
↓ 1 callersClassEncoding
Encoding Layer: a learnable residual encoder. Input is of shape (batch_size, channels, height, width). Output is of shape (batch_size, num_c
mmseg/ops/encoding.py:6
↓ 1 callersClassFPN
Feature Pyramid Network. This is an implementation of - Feature Pyramid Networks for Object Detection (https://arxiv.org/abs/1612.03144)
mmseg/models/necks/fpn.py:9
↓ 1 callersClassFeatureFusionModule
Feature fusion module. Args: higher_in_channels (int): Number of input channels of the higher-resolution branch. lowe
mmseg/models/backbones/fast_scnn.py:181
↓ 1 callersClassGCHead
GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyond. This head is the implementation of `GCNet <https://arxiv.org/abs/1904.
mmseg/models/decode_heads/gc_head.py:9
↓ 1 callersClassGlobalFeatureExtractor
Global feature extractor module. Args: in_channels (int): Number of input channels of the GFE module. Default: 64 blo
mmseg/models/backbones/fast_scnn.py:73
↓ 1 callersClassHRModule
High-Resolution Module for HRNet. In this module, every branch has 4 BasicBlocks/Bottlenecks. Fusion/Exchange is in this module.
mmseg/models/backbones/hrnet.py:13
↓ 1 callersClassLearningToDownsample
Learning to downsample module. Args: in_channels (int): Number of input channels. dw_channels (tuple[int]): Number of output chan
mmseg/models/backbones/fast_scnn.py:13
↓ 1 callersClassLoadImage
A simple pipeline to load image.
mmseg/apis/inference.py:42
↓ 1 callersClassMlp
mmseg/models/backbones/mix_transformer.py:20
↓ 1 callersClassNLHead
Non-local Neural Networks. This head is the implementation of `NLNet <https://arxiv.org/abs/1711.07971>`_. Args: reduction (int)
mmseg/models/decode_heads/nl_head.py:9
↓ 1 callersClassOCRHead
Object-Contextual Representations for Semantic Segmentation. This head is the implementation of `OCRNet <https://arxiv.org/abs/1909.11065>`_.
mmseg/models/decode_heads/ocr_head.py:85
↓ 1 callersClassObjectAttentionBlock
Make a OCR used SelfAttentionBlock.
mmseg/models/decode_heads/ocr_head.py:39
↓ 1 callersClassPAM
Position Attention Module (PAM) Args: in_channels (int): Input channels of key/query feature. channels (int): Output channels of
mmseg/models/decode_heads/da_head.py:12
↓ 1 callersClassPPMConcat
Pyramid Pooling Module that only concat the features of each layer. Args: pool_scales (tuple[int]): Pooling scales used in Pooling Pyrami
mmseg/models/decode_heads/ann_head.py:10
↓ 1 callersClassPointHead
A mask point head use in PointRend. ``PointHead`` use shared multi-layer perceptron (equivalent to nn.Conv1d) to predict the logit of input p
mmseg/models/decode_heads/point_head.py:35
↓ 1 callersClassRSoftmax
Radix Softmax module in ``SplitAttentionConv2d``. Args: radix (int): Radix of input. groups (int): Groups of input.
mmseg/models/backbones/resnest.py:15
↓ 1 callersClassSpatialGatherModule
Aggregate the context features according to the initial predicted probability distribution. Employ the soft-weighted method to aggregate the
mmseg/models/decode_heads/ocr_head.py:12
↓ 1 callersClassSplitAttentionConv2d
Split-Attention Conv2d in ResNeSt. Args: in_channels (int): Same as nn.Conv2d. out_channels (int): Same as nn.Conv2d. ker
mmseg/models/backbones/resnest.py:39
↓ 1 callersClassToyDataset
tests/test_data/test_dataset_builder.py:13
↓ 1 callersClassUpsample
mmseg/ops/wrappers.py:32
ClassADE20KDataset
ADE20K dataset. In segmentation map annotation for ADE20K, 0 stands for background, which is not included in 150 categories. ``reduce_zero_la
mmseg/datasets/ade.py:6
ClassAdjustGamma
Using gamma correction to process the image. Args: gamma (float or int): Gamma value used in gamma correction. Default: 1.0.
mmseg/datasets/pipelines/transforms.py:993
ClassAlignedResize
Resize images & seg. This class is based on ``Resize``, the only difference is it ensure the long and short sides are divisible by ``siz
mmseg/datasets/pipelines/transforms.py:10
ClassBaseCascadeDecodeHead
Base class for cascade decode head used in :class:`CascadeEncoderDecoder.
mmseg/models/decode_heads/cascade_decode_head.py:6
ClassBasePixelSampler
Base class of pixel sampler.
mmseg/core/seg/sampler/base_pixel_sampler.py:4
ClassBaseSegmentor
Base class for segmentors.
mmseg/models/segmentors/base.py:14
ClassBottleneck
Bottleneck block for ResNeSt. Args: inplane (int): Input planes of this block. planes (int): Middle planes of this block.
mmseg/models/backbones/resnest.py:146
ClassBottleneck
Bottleneck block for ResNeXt. If style is "pytorch", the stride-two layer is the 3x3 conv layer, if it is "caffe", the stride-two layer is th
mmseg/models/backbones/resnext.py:11
ClassCLAHE
Use CLAHE method to process the image. See `ZUIDERVELD,K. Contrast Limited Adaptive Histogram Equalization[J]. Graphics Gems, 1994:474-485.`
mmseg/datasets/pipelines/transforms.py:679
ClassCascadeEncoderDecoder
Cascade Encoder Decoder segmentors. CascadeEncoderDecoder almost the same as EncoderDecoder, while decoders of CascadeEncoderDecoder are casc
mmseg/models/segmentors/cascade_encoder_decoder.py:11
ClassCenterCrop
Center crop the image & seg. Args: crop_size (tuple): Expected size after cropping, (h, w).
mmseg/datasets/pipelines/transforms.py:796
ClassChaseDB1Dataset
Chase_db1 dataset. In segmentation map annotation for Chase_db1, 0 stands for background, which is included in 2 categories. ``reduce_zero_la
mmseg/datasets/chase_db1.py:8
next →1–100 of 147, ranked by callers