MCPcopy Create free account

hub / github.com/Picsart-AI-Research/Text2Video-Zero / types & classes

Types & classes380 in github.com/Picsart-AI-Research/Text2Video-Zero

↓ 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
↓ 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 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
↓ 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 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
↓ 3 callersClassInterpolate
Interpolation module.
annotator/midas/midas/blocks.py:120
↓ 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 callersClassResize
Resize sample to given size (width, height).
annotator/midas/midas/transforms.py:48
↓ 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
↓ 2 callersClassAttention
annotator/uniformer/mmseg/models/backbones/uniformer.py:84
↓ 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 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 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 callersClassResidualConvUnit
Residual convolution module.
annotator/midas/midas/blocks.py:155
↓ 2 callersClassResidualConvUnit_custom
Residual convolution module.
annotator/midas/midas/blocks.py:231
↓ 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 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 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 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 callersClassDFPSSampler
Using Euclidean distances of points for FPS.
annotator/uniformer/mmcv/ops/points_sampler.py:133
↓ 1 callersClassDepthwiseSeparableASPPModule
Atrous Spatial Pyramid Pooling (ASPP) Module with depthwise separable conv.
annotator/uniformer/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
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
↓ 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
annotator/uniformer/mmseg/ops/encoding.py:6
↓ 1 callersClassFFPSSampler
Using feature distances for FPS.
annotator/uniformer/mmcv/ops/points_sampler.py:145
↓ 1 callersClassFeatureFusionModule
Feature fusion module. Args: higher_in_channels (int): Number of input channels of the higher-resolution branch. lowe
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:181
↓ 1 callersClassGlobalContextExtractor
Global Context Extractor for CGNet. This class is employed to refine the joint feature of both local feature and surrounding context. Ar
annotator/uniformer/mmseg/models/backbones/cgnet.py:13
↓ 1 callersClassGlobalFeatureExtractor
Global feature extractor module. Args: in_channels (int): Number of input channels of the GFE module. Default: 64 blo
annotator/uniformer/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.
annotator/uniformer/mmseg/models/backbones/hrnet.py:13
↓ 1 callersClassIterLoader
annotator/uniformer/mmcv/runner/iter_based_runner.py:19
↓ 1 callersClassIterTimerHook
annotator/uniformer/mmcv/runner/hooks/iter_timer.py:8
↓ 1 callersClassJsonHandler
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:25
↓ 1 callersClassLearningToDownsample
Learning to downsample module. Args: in_channels (int): Number of input channels. dw_channels (tuple[int]): Number of output chan
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:13
↓ 1 callersClassLoadImage
A simple pipeline to load image.
annotator/uniformer/mmseg/apis/inference.py:42
↓ 1 callersClassLogBuffer
annotator/uniformer/mmcv/runner/log_buffer.py:7
↓ 1 callersClassMMDataParallel
The DataParallel module that supports DataContainer. MMDataParallel has two main differences with PyTorch DataParallel: - It supports a cust
annotator/uniformer/mmcv/parallel/data_parallel.py:9
↓ 1 callersClassMMDistributedDataParallel
The DDP module that supports DataContainer. MMDDP has two main differences with PyTorch DDP: - It supports a custom type :class:`DataContain
annotator/uniformer/mmcv/parallel/distributed.py:11
↓ 1 callersClassMiDaSInference
annotator/midas/api.py:145
↓ 1 callersClassMidasDetector
annotator/midas/__init__.py:9
↓ 1 callersClassMidasNet
Network for monocular depth estimation.
annotator/midas/midas/midas_net.py:12
↓ 1 callersClassMidasNet_small
Network for monocular depth estimation.
annotator/midas/midas/midas_net_custom.py:12
↓ 1 callersClassMlp
MLP layer for Encoder block. Args: in_features(int): Input dimension for the first fully connected layer. hidden_feat
annotator/uniformer/mmseg/models/backbones/vit.py:20
↓ 1 callersClassModel
model.py:26
↓ 1 callersClassNonLocal2d
2D Non-local module. Args: in_channels (int): Same as `NonLocalND`. sub_sample (bool): Whether to apply max pooling after pairwis
annotator/uniformer/mmcv/cnn/bricks/non_local.py:246
↓ 1 callersClassObjectAttentionBlock
Make a OCR used SelfAttentionBlock.
annotator/uniformer/mmseg/models/decode_heads/ocr_head.py:39
↓ 1 callersClassOpenposeDetector
annotator/openpose/__init__.py:16
↓ 1 callersClassPAM
Position Attention Module (PAM) Args: in_channels (int): Input channels of key/query feature. channels (int): Output channels of
annotator/uniformer/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
annotator/uniformer/mmseg/models/decode_heads/ann_head.py:10
↓ 1 callersClassPatchEmbed
Image to Patch Embedding. Args: img_size (int | tuple): Input image size. default: 224. patch_size (int): Width and h
annotator/uniformer/mmseg/models/backbones/vit.py:171
↓ 1 callersClassPriority
Hook priority levels. +--------------+------------+ | Level | Value | +==============+============+ | HIGHEST | 0
annotator/uniformer/mmcv/runner/priority.py:5
↓ 1 callersClassProjectReadout
annotator/midas/midas/vit.py:31
↓ 1 callersClassRSoftmax
Radix Softmax module in ``SplitAttentionConv2d``. Args: radix (int): Radix of input. groups (int): Groups of input.
annotator/uniformer/mmseg/models/backbones/resnest.py:15
↓ 1 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
annotator/uniformer/mmseg/datasets/dataset_wrappers.py:24
↓ 1 callersClassSELayer
Squeeze-and-Excitation Module. Args: channels (int): The input (and output) channels of the SE layer. ratio (int): Squeeze ratio
annotator/uniformer/mmseg/models/utils/se_layer.py:8
↓ 1 callersClassSlice
annotator/midas/midas/vit.py:9
↓ 1 callersClassSpatialGatherModule
Aggregate the context features according to the initial predicted probability distribution. Employ the soft-weighted method to aggregate the
annotator/uniformer/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
annotator/uniformer/mmseg/models/backbones/resnest.py:39
next →1–100 of 380, ranked by callers