MCPcopy Create free account

hub / github.com/VCIP-RGBD/DFormer / types & classes

Types & classes246 in github.com/VCIP-RGBD/DFormer

↓ 6 callersClassGELayer
Gather-and-Expansion Layer. Args: in_channels (int): Number of input channels. out_channels (int): Number of output channels.
mmseg/models/backbones/bisenetv2.py:195
↓ 5 callersClassFCNHead
models/decoders/fcnhead.py:9
↓ 5 callersClassPatchEmbed
Image to Patch Embedding. We use a conv layer to implement PatchEmbed. Args: in_channels (int): The num of input channels. Default:
mmseg/models/utils/embed.py:77
↓ 5 callersClassUpsample
mmseg/ops/wrappers.py:28
↓ 4 callersClassDFormer
models/encoders/DFormer.py:203
↓ 4 callersClassDWConv2d
models/encoders/DFormerv2.py:72
↓ 4 callersClassInvertedResidual
InvertedResidual block for MobileNetV2. Args: in_channels (int): The input channels of the InvertedResidual block. out_channels (
mmseg/models/utils/inverted_residual.py:9
↓ 4 callersClassLayerNorm
r"""LayerNorm that supports two data formats: channels_last (default) or channels_first. The ordering of the dimensions in the inputs. channels_la
mmseg/models/backbones/scnet.py:27
↓ 4 callersClassMLP
Linear Embedding:
models/decoders/test.py:9
↓ 4 callersClassMLP
Linear Embedding:
models/decoders/MLPDecoder.py:9
↓ 4 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:11
↓ 3 callersClassASPPConv
models/decoders/deeplabv3plus.py:36
↓ 3 callersClassAttentionRefinementModule
Attention Refinement Module (ARM) to refine the features of each stage. Args: in_channels (int): The number of input channels. ou
mmseg/models/backbones/bisenetv1.py:94
↓ 3 callersClassEngine
utils/engine/engine.py:36
↓ 3 callersClassLayerNorm
r"""LayerNorm that supports two data formats: channels_last (default) or channels_first. The ordering of the dimensions in the inputs. channels_la
models/encoders/DFormer.py:24
↓ 3 callersClassMLP
Linear Embedding:
models/decoders/LMLPDecoder.py:9
↓ 3 callersClassNonBottleneck1d
Non-bottleneck block of ERFNet. Args: channels (int): Number of channels in Non-bottleneck block. drop_rate (float): Probability
mmseg/models/backbones/erfnet.py:62
↓ 3 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:7
↓ 3 callersClassdformerv2
models/encoders/DFormerv2.py:494
↓ 2 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
mmseg/models/utils/embed.py:12
↓ 2 callersClassCascadeFeatureFusion
Cascade Feature Fusion Unit in ICNet. Args: low_channels (int): The number of input channels for low resolution feature map.
mmseg/models/necks/ic_neck.py:10
↓ 2 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:56
↓ 2 callersClassDecoderHead
models/decoders/test.py:24
↓ 2 callersClassDownsamplerBlock
Downsampler block of ERFNet. This module is a little different from basical ConvModule. The features from Conv and MaxPool layers are con
mmseg/models/backbones/erfnet.py:11
↓ 2 callersClassInputInjection
Downsampling module for CGNet.
mmseg/models/backbones/cgnet.py:159
↓ 2 callersClassMLP
models/encoders/DFormer.py:52
↓ 2 callersClassMetrics
utils/metrics_new.py:6
↓ 2 callersClassNonLocal2d
2D Non-local module. Args: in_channels (int): Same as `NonLocalND`. sub_sample (bool): Whether to apply max pooling after pairwis
models/decoders/nl_head.py:279
↓ 2 callersClassPreActResidualConvUnit
ResidualConvUnit, pre-activate residual unit. Args: in_channels (int): number of channels in the input feature map. act_cfg (dict
mmseg/models/decode_heads/dpt_head.py:92
↓ 2 callersClassSelfAttentionBlock
Self-Attention Module. Args: in_channels (int): Input channels of key/query feature. channels (int): Output channels of key/query
mmseg/models/decode_heads/isa_head.py:13
↓ 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
↓ 2 callersClassTransformerEncoderLayer
Implements one encoder layer in Vision Transformer. Args: embed_dims (int): The feature dimension. num_heads (int): Parallel atte
mmseg/models/backbones/vit.py:21
↓ 2 callersClassUpsamplerBlock
Upsampler block of ERFNet. Args: in_channels (int): Number of input channels. out_channels (int): Number of output channels.
mmseg/models/backbones/erfnet.py:147
↓ 2 callersClassgpu_timer
utils/train.py:62
↓ 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:12
↓ 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:90
↓ 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:151
↓ 1 callersClassASPP
models/decoders/deeplabv3plus.py:66
↓ 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:11
↓ 1 callersClassAsppPooling
models/decoders/deeplabv3plus.py:49
↓ 1 callersClassBEiTAttention
Window based multi-head self-attention (W-MSA) module with relative position bias. Args: embed_dims (int): Number of input channels.
mmseg/models/backbones/beit.py:26
↓ 1 callersClassBEiTTransformerEncoderLayer
Implements one encoder layer in Vision Transformer. Args: embed_dims (int): The feature dimension. num_heads (int): Parallel atte
mmseg/models/backbones/beit.py:151
↓ 1 callersClassBGALayer
Bilateral Guided Aggregation Layer to fuse the complementary information from both Detail Branch and Semantic Branch. Args: out_chann
mmseg/models/backbones/bisenetv2.py:453
↓ 1 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:15
↓ 1 callersClassBasicLayer
A basic RGB-D layer in DFormerv2.
models/encoders/DFormerv2.py:428
↓ 1 callersClassBlock
mmseg/models/backbones/scnet.py:199
↓ 1 callersClassBlock
models/encoders/DFormer.py:156
↓ 1 callersClassCAM
Channel Attention Module (CAM)
mmseg/models/decode_heads/da_head.py:51
↓ 1 callersClassCEBlock
Context Embedding Block for large receptive filed in Semantic Branch. Args: in_channels (int): Number of input channels. Defa
mmseg/models/backbones/bisenetv2.py:327
↓ 1 callersClassChannelEmbed
models/net_utils.py:143
↓ 1 callersClassChannelWeights
models/net_utils.py:9
↓ 1 callersClassConditionalPositionEncoding
The Conditional Position Encoding (CPE) module. The CPE is the implementation of 'Conditional Positional Encodings for Vision Transformers <h
mmseg/models/backbones/twins.py:319
↓ 1 callersClassContextPath
Context Path to provide sufficient receptive field. Args: backbone_cfg:(dict): Config of backbone of Context Path. co
mmseg/models/backbones/bisenetv1.py:145
↓ 1 callersClassCrossAttention
models/net_utils.py:84
↓ 1 callersClassCrossPath
models/net_utils.py:118
↓ 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:11
↓ 1 callersClassDecomposed_GSA
models/encoders/DFormerv2.py:215
↓ 1 callersClassDepthwiseSeparableASPPModule
Atrous Spatial Pyramid Pooling (ASPP) Module with depthwise separable conv.
mmseg/models/decode_heads/sep_aspp_head.py:11
↓ 1 callersClassDetailBranch
Detail Branch with wide channels and shallow layers to capture low-level details and generate high-resolution feature representation. Args:
mmseg/models/backbones/bisenetv2.py:11
↓ 1 callersClassDisentangledNonLocal2d
Disentangled Non-Local Blocks. Args: temperature (float): Temperature to adjust attention. Default: 0.05
mmseg/models/decode_heads/dnl_head.py:10
↓ 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:23
↓ 1 callersClassEfficientMultiheadAttention
An implementation of Efficient Multi-head Attention of Segformer. This module is modified from MultiheadAttention which is a module from mmcv
mmseg/models/backbones/mit.py:82
↓ 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:12
↓ 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:7
↓ 1 callersClassFeatureFusionBlock
FeatureFusionBlock, merge feature map from different stages. Args: in_channels (int): Input channels. act_cfg (dict): The activat
mmseg/models/decode_heads/dpt_head.py:138
↓ 1 callersClassFeatureFusionModule
Feature Fusion Module. This module is different from FeatureFusionModule in BiSeNetV1. It uses two ConvModules in `self.attention` whose inter
mmseg/models/backbones/stdc.py:133
↓ 1 callersClassFeatureFusionModule
Feature Fusion Module to fuse low level output feature of Spatial Path and high level output feature of Context Path. Args: in_channe
mmseg/models/backbones/bisenetv1.py:235
↓ 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:190
↓ 1 callersClassFeedForwardNetwork
models/encoders/DFormerv2.py:335
↓ 1 callersClassFull_GSA
models/encoders/DFormerv2.py:279
↓ 1 callersClassGSAEncoderLayer
Implements one encoder layer with GSA. Args: embed_dims (int): The feature dimension. num_heads (int): Parallel attention heads.
mmseg/models/backbones/twins.py:80
↓ 1 callersClassGeoPrior
utils/demo_geometry_prior.py:20
↓ 1 callersClassGeoPriorGen
models/encoders/DFormerv2.py:115
↓ 1 callersClassGlobalContextExtractor
Global Context Extractor for CGNet. This class is employed to refine the joint feature of both local feature and surrounding context. Ar
mmseg/models/backbones/cgnet.py:14
↓ 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:88
↓ 1 callersClassGlobalSubsampledAttention
Global Sub-sampled Attention (Spatial Reduction Attention) This module is modified from EfficientMultiheadAttention, which is a module from m
mmseg/models/backbones/twins.py:20
↓ 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:14
↓ 1 callersClassHamburger
models/decoders/ham_head.py:149
↓ 1 callersClassLSAEncoderLayer
Implements one encoder layer in Twins-SVT. Args: embed_dims (int): The feature dimension. num_heads (int): Parallel attention hea
mmseg/models/backbones/twins.py:249
↓ 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 callersClassLocallyGroupedSelfAttention
Locally-grouped Self Attention (LSA) module. Args: embed_dims (int): Number of input channels. num_heads (int): Number of attenti
mmseg/models/backbones/twins.py:154
↓ 1 callersClassMAEAttention
Multi-head self-attention with relative position bias used in MAE. This module is different from ``BEiTAttention`` by initializing the relati
mmseg/models/backbones/mae.py:15
↓ 1 callersClassMAETransformerEncoderLayer
Implements one encoder layer in Vision Transformer. This module is different from ``BEiTTransformerEncoderLayer`` by replacing ``BEiTAttentio
mmseg/models/backbones/mae.py:33
↓ 1 callersClassMLAModule
mmseg/models/necks/mla_neck.py:8
↓ 1 callersClassMLP
mmseg/models/backbones/scnet.py:55
↓ 1 callersClassMemoryModulev2
mmseg/models/backbones/scnet.py:141
↓ 1 callersClassMixConv
mmseg/models/decode_heads/mix_conv_head.py:12
↓ 1 callersClassMixFFN
An implementation of MixFFN of Segformer. The differences between MixFFN & FFN: 1. Use 1X1 Conv to replace Linear layer. 2. Intro
mmseg/models/backbones/mit.py:18
↓ 1 callersClassNMF2D
models/decoders/ham_head.py:104
↓ 1 callersClassObjectAttentionBlock
Make a OCR used SelfAttentionBlock.
mmseg/models/decode_heads/ocr_head.py:40
↓ 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:13
↓ 1 callersClassPPM
Pooling Pyramid Module used in PSPNet. Args: pool_scales (tuple[int]): Pooling scales used in Pooling Pyramid Module.
models/decoders/UPernet.py:102
↓ 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:11
↓ 1 callersClassPatchEmbed
Image to Patch Embedding
models/encoders/DFormerv2.py:42
↓ 1 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
mmseg/models/utils/embed.py:200
↓ 1 callersClassRGBD_Block
models/encoders/DFormerv2.py:381
↓ 1 callersClassRSoftmax
Radix Softmax module in ``SplitAttentionConv2d``. Args: radix (int): Radix of input. groups (int): Groups of input.
mmseg/models/backbones/resnest.py:16
↓ 1 callersClassReassembleBlocks
ViTPostProcessBlock, process cls_token in ViT backbone output and rearrange the feature vector to feature map. Args: in_channels (int
mmseg/models/decode_heads/dpt_head.py:14
↓ 1 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:9
next →1–100 of 246, ranked by callers