MCPcopy Create free account

hub / github.com/ShihaoZhaoZSH/Uni-ControlNet / types & classes

Types & classes474 in github.com/ShihaoZhaoZSH/Uni-ControlNet

↓ 88 callersClassConvModule
A conv block that bundles conv/norm/activation layers. This block simplifies the usage of convolution layers, which are commonly used with a
annotator/uniformer/mmcv/cnn/bricks/conv_module.py:16
↓ 24 callersClassRegistry
A registry to map strings to classes. Registered object could be built from registry. Example: >>> MODELS = Registry('models')
annotator/uniformer/mmcv/utils/registry.py:58
↓ 16 callersClassResnetBlock
ldm/modules/diffusionmodules/model.py:90
↓ 10 callersClassLocalTimestepEmbedSequential
models/local_adapter.py:17
↓ 10 callersClassResBlock
A residual block that can optionally change the number of channels. :param channels: the number of input channels. :param emb_channels: t
ldm/modules/diffusionmodules/openaimodel.py:162
↓ 8 callersClassDepthwiseSeparableConvModule
Depthwise separable convolution module. See https://arxiv.org/pdf/1704.04861.pdf for details. This module can replace a ConvModule with the
annotator/uniformer/mmcv/cnn/bricks/depthwise_separable_conv_module.py:7
↓ 8 callersClassNormalizeImage
Normlize image by given mean and std.
annotator/midas/midas/transforms.py:197
↓ 8 callersClassTranspose
annotator/midas/midas/vit.py:45
↓ 5 callersClassAttentionBlock
An attention block that allows spatial positions to attend to each other. Originally ported from here, but adapted to the N-d case. https
ldm/modules/diffusionmodules/openaimodel.py:277
↓ 5 callersClassCompose
Compose multiple transforms sequentially. Args: transforms (Sequence[dict | callable]): Sequence of transform object or confi
annotator/uniformer/mmseg/datasets/pipelines/compose.py:9
↓ 5 callersClassConfigDict
annotator/uniformer/mmcv/utils/config.py:33
↓ 5 callersClassFeatureFusionBlock_custom
Feature fusion block.
annotator/midas/midas/blocks.py:291
↓ 5 callersClassLinear
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:166
↓ 5 callersClassSpatialTransformer
Transformer block for image-like data. First, project the input (aka embedding) and reshape to b, t, d. Then apply standard transform
ldm/modules/attention.py:278
↓ 5 callersClassTimestepEmbedSequential
A sequential module that passes timestep embeddings to the children that support it as an extra input.
ldm/modules/diffusionmodules/openaimodel.py:73
↓ 4 callersClassBlockTypeA
annotator/mlsd/models/mbv2_mlsd_large.py:9
↓ 4 callersClassBlockTypeB
annotator/mlsd/models/mbv2_mlsd_large.py:32
↓ 4 callersClassDownsample
A downsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determini
ldm/modules/diffusionmodules/openaimodel.py:133
↓ 4 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). Args: drop_prob (float): Drop rate for path
annotator/uniformer/mmseg/models/utils/drop.py:8
↓ 4 callersClassFeatureFusionBlock
Feature fusion block.
annotator/midas/midas/blocks.py:194
↓ 4 callersClassFileClient
A general file client to access files in different backends. The client loads a file or text in a specified backend from its path and returns
annotator/uniformer/mmcv/fileio/file_client.py:729
↓ 4 callersClassInvertedResidual
InvertedResidual block for MobileNetV2. Args: in_channels (int): The input channels of the InvertedResidual block. out_channels (
annotator/uniformer/mmseg/models/utils/inverted_residual.py:8
↓ 4 callersClassLitEma
ldm/modules/ema.py:5
↓ 4 callersClassModuleList
ModuleList in openmmlab. Args: modules (iterable, optional): an iterable of modules to add. init_cfg (dict, optional): Initializa
annotator/uniformer/mmcv/runner/base_module.py:185
↓ 4 callersClassPatchEmbed
Image to Patch Embedding
annotator/uniformer/mmseg/models/backbones/uniformer.py:218
↓ 4 callersClassUpsample
ldm/modules/diffusionmodules/model.py:50
↓ 3 callersClassConvBNReLU
annotator/mlsd/models/mbv2_mlsd_tiny.py:91
↓ 3 callersClassConvBNReLU
annotator/mlsd/models/mbv2_mlsd_large.py:92
↓ 3 callersClassDecoder
ldm/modules/diffusionmodules/model.py:546
↓ 3 callersClassFeedForward
ldm/modules/attention.py:59
↓ 3 callersClassInterpolate
Interpolation module.
annotator/midas/midas/blocks.py:120
↓ 3 callersClassLatentRescaler
ldm/modules/diffusionmodules/model.py:739
↓ 3 callersClassLossScaler
Class that manages loss scaling in mixed precision training which supports both dynamic or static mode. The implementation refers to http
annotator/uniformer/mmcv/runner/fp16_utils.py:306
↓ 3 callersClassPPM
Pooling Pyramid Module used in PSPNet. Args: pool_scales (tuple[int]): Pooling scales used in Pooling Pyramid Module.
annotator/uniformer/mmseg/models/decode_heads/psp_head.py:10
↓ 3 callersClassPSAMask
annotator/uniformer/mmcv/ops/psa_mask.py:72
↓ 3 callersClassProgressBar
A progress bar which can print the progress.
annotator/uniformer/mmcv/utils/progressbar.py:10
↓ 3 callersClassResLayer
ResLayer to build ResNet style backbone. Args: block (nn.Module): block used to build ResLayer. inplanes (int): inplanes of block
annotator/uniformer/mmseg/models/utils/res_layer.py:5
↓ 3 callersClassSABlock
annotator/uniformer/mmseg/models/backbones/uniformer.py:112
↓ 3 callersClassScale
A learnable scale parameter. This layer scales the input by a learnable factor. It multiplies a learnable scale parameter of shape (1,) with
annotator/uniformer/mmcv/cnn/bricks/scale.py:6
↓ 3 callersClassSequential
Sequential module in openmmlab. Args: init_cfg (dict, optional): Initialization config dict.
annotator/uniformer/mmcv/runner/base_module.py:173
↓ 3 callersClassUpsample
An upsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determinin
ldm/modules/diffusionmodules/openaimodel.py:90
↓ 2 callersClassAttention
annotator/uniformer/mmseg/models/backbones/uniformer.py:84
↓ 2 callersClassAttnBlock
ldm/modules/diffusionmodules/model.py:152
↓ 2 callersClassBlockTypeA
annotator/mlsd/models/mbv2_mlsd_tiny.py:9
↓ 2 callersClassBlockTypeB
annotator/mlsd/models/mbv2_mlsd_tiny.py:31
↓ 2 callersClassBody
annotator/openpose/body.py:14
↓ 2 callersClassCBlock
annotator/uniformer/mmseg/models/backbones/uniformer.py:62
↓ 2 callersClassConcatDataset
A wrapper of concatenated dataset. Same as :obj:`torch.utils.data.dataset.ConcatDataset`, but concat the group flag for image aspect ratio.
annotator/uniformer/mmseg/datasets/dataset_wrappers.py:7
↓ 2 callersClassContextGuidedBlock
Context Guided Block for CGNet. This class consists of four components: local feature extractor, surrounding feature extractor, joint feature
annotator/uniformer/mmseg/models/backbones/cgnet.py:53
↓ 2 callersClassDDIMSampler
models/ddim_hacked.py:10
↓ 2 callersClassDPTDepthModel
annotator/midas/midas/dpt_depth.py:88
↓ 2 callersClassDataContainer
A container for any type of objects. Typically tensors will be stacked in the collate function and sliced along some dimension in the scatter
annotator/uniformer/mmcv/parallel/data_container.py:20
↓ 2 callersClassDownsample
ldm/modules/diffusionmodules/model.py:68
↓ 2 callersClassEncoder
ldm/modules/diffusionmodules/model.py:452
↓ 2 callersClassFDN
models/local_adapter.py:31
↓ 2 callersClassHEDdetector
annotator/hed/__init__.py:96
↓ 2 callersClassHand
annotator/openpose/hand.py:15
↓ 2 callersClassInputInjection
Downsampling module for CGNet.
annotator/uniformer/mmseg/models/backbones/cgnet.py:170
↓ 2 callersClassMlp
annotator/uniformer/mmseg/models/backbones/uniformer.py:24
↓ 2 callersClassPickleHandler
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:7
↓ 2 callersClassPrepareForNet
Prepare sample for usage as network input.
annotator/midas/midas/transforms.py:211
↓ 2 callersClassQKVAttention
A module which performs QKV attention and splits in a different order.
ldm/modules/diffusionmodules/openaimodel.py:378
↓ 2 callersClassResidualConvUnit
Residual convolution module.
annotator/midas/midas/blocks.py:155
↓ 2 callersClassResidualConvUnit_custom
Residual convolution module.
annotator/midas/midas/blocks.py:231
↓ 2 callersClassResize
Resize sample to given size (width, height).
annotator/midas/midas/transforms.py:48
↓ 2 callersClassSABlock_Windows
annotator/uniformer/mmseg/models/backbones/uniformer.py:168
↓ 2 callersClassSelfAttentionBlock
Make a ANN used SelfAttentionBlock. Args: low_in_channels (int): Input channels of lower level feature, which is the key feat
annotator/uniformer/mmseg/models/decode_heads/ann_head.py:32
↓ 2 callersClassTimer
A flexible Timer class. :Example: >>> import time >>> import annotator.uniformer.mmcv as mmcv >>> with mmcv.Timer(): >>> # s
annotator/uniformer/mmcv/utils/timer.py:12
↓ 2 callersClassTimerError
annotator/uniformer/mmcv/utils/timer.py:5
↓ 2 callersClassYamlHandler
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:12
↓ 1 callersClassACM
Adaptive Context Module used in APCNet. Args: pool_scale (int): Pooling scale used in Adaptive Context Module to extract regi
annotator/uniformer/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
annotator/uniformer/mmseg/models/decode_heads/ann_head.py:79
↓ 1 callersClassAPNB
Asymmetric Pyramid Non-local Block (APNB) Args: in_channels (int): Input channels of key/query feature, which is the key feat
annotator/uniformer/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
annotator/uniformer/mmseg/models/decode_heads/aspp_head.py:10
↓ 1 callersClassAddReadout
annotator/midas/midas/vit.py:18
↓ 1 callersClassAttention
Attention layer for Encoder block. Args: dim (int): Dimension for the input vector. num_heads (int): Number of parallel attention
annotator/uniformer/mmseg/models/backbones/vit.py:59
↓ 1 callersClassBasicConvBlock
Basic convolutional block for UNet. This module consists of several plain convolutional layers. Args: in_channels (int): Number of i
annotator/uniformer/mmseg/models/backbones/unet.py:13
↓ 1 callersClassBasicTransformerBlock
ldm/modules/attention.py:246
↓ 1 callersClassBlock
Implements encoder block with residual connection. Args: dim (int): The feature dimension. num_heads (int): Number of parallel at
annotator/uniformer/mmseg/models/backbones/vit.py:105
↓ 1 callersClassBlockTypeC
annotator/mlsd/models/mbv2_mlsd_tiny.py:50
↓ 1 callersClassBlockTypeC
annotator/mlsd/models/mbv2_mlsd_large.py:51
↓ 1 callersClassCAM
Channel Attention Module (CAM)
annotator/uniformer/mmseg/models/decode_heads/da_head.py:49
↓ 1 callersClassCMlp
annotator/uniformer/mmseg/models/backbones/uniformer.py:43
↓ 1 callersClassCache
annotator/uniformer/mmcv/video/io.py:14
↓ 1 callersClassCannyDetector
annotator/canny/__init__.py:4
↓ 1 callersClassConfig
A facility for config and config files. It supports common file formats as configs: python/json/yaml. The interface is the same as a dict obj
annotator/uniformer/mmcv/utils/config.py:70
↓ 1 callersClassContentDetector
annotator/content/__init__.py:10
↓ 1 callersClassContextBlock
ContextBlock module in GCNet. See 'GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyond' (https://arxiv.org/abs/1904.11492)
annotator/uniformer/mmcv/cnn/bricks/context_block.py:17
↓ 1 callersClassConv2d
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:42
↓ 1 callersClassCrissCrossAttention
Criss-Cross Attention Module. .. note:: Before v1.3.13, we use a CUDA op. Since v1.3.13, we switch to a pure PyTorch and equivale
annotator/uniformer/mmcv/ops/cc_attention.py:19
↓ 1 callersClassDCM
Dynamic Convolutional Module used in DMNet. Args: filter_size (int): The filter size of generated convolution kernel used in
annotator/uniformer/mmseg/models/decode_heads/dm_head.py:10
↓ 1 callersClassDDIMSampler
ldm/models/diffusion/ddim.py:10
↓ 1 callersClassDFPSSampler
Using Euclidean distances of points for FPS.
annotator/uniformer/mmcv/ops/points_sampler.py:133
↓ 1 callersClassDPM_Solver
ldm/models/diffusion/dpm_solver/dpm_solver.py:319
↓ 1 callersClassDepthwiseSeparableASPPModule
Atrous Spatial Pyramid Pooling (ASPP) Module with depthwise separable conv.
annotator/uniformer/mmseg/models/decode_heads/sep_aspp_head.py:10
↓ 1 callersClassDiagonalGaussianDistribution
ldm/modules/distributions/distributions.py:24
↓ 1 callersClassDiffusionWrapper
ldm/models/diffusion/ddpm.py:1312
↓ 1 callersClassDisentangledNonLocal2d
Disentangled Non-Local Blocks. Args: temperature (float): Temperature to adjust attention. Default: 0.05
annotator/uniformer/mmseg/models/decode_heads/dnl_head.py:9
↓ 1 callersClassEMAModule
Expectation Maximization Attention Module used in EMANet. Args: channels (int): Channels of the whole module. num_bases (int): Nu
annotator/uniformer/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
annotator/uniformer/mmseg/models/decode_heads/enc_head.py:11
next →1–100 of 474, ranked by callers