MCPcopy Create free account

hub / github.com/alipay/Ant-Multi-Modal-Framework / types & classes

Types & classes941 in github.com/alipay/Ant-Multi-Modal-Framework

↓ 39 callersClassSample
Sample represent some arbitary data. All datasets in antmmf must return an object of type ``Sample``. Args: init_dict (dict): Diction
antmmf/structures/sample.py:21
↓ 37 callersClassConfiguration
Args: config: path of the yaml file or dict of the configuration Usage: .. code-block:: python # construct from any col
antmmf/common/configuration.py:240
↓ 32 callersClassSampleList
:class:`SampleList` is used to collate a list of :class:`Sample` into a batch during batch preparation. It can be thought of as a merger of list o
antmmf/structures/sample.py:58
↓ 29 callersClassLinear
antmmf/modules/layers/linear.py:10
↓ 19 callersClassVisualEncoder
A graph encoder register for visual encoder, all other details can be seen from :class:`antmmf.modules.module_registry.ModuleRegistry`.
antmmf/modules/encoders/visual_encoder.py:34
↓ 18 callersClassLogger
antmmf/utils/logger.py:15
↓ 17 callersClassConversation
A class that keeps all conversation history.
prj/Pink/pink/conversation.py:15
↓ 17 callersClassLayerNorm
Subclass torch's LayerNorm to handle fp16.
prj/Pink/pink/model/eva_vit.py:29
↓ 16 callersClassBoxes
This structure stores a list of boxes as a Nx4 :external:py:class:`Tensor <torch.Tensor>`. It supports some common methods about boxes (`area
antmmf/structures/boxes.py:25
↓ 15 callersClassTextEncoder
antmmf/modules/encoders/text_encoder.py:22
↓ 14 callersClassTimer
antmmf/utils/timer.py:5
↓ 12 callersClassCrossEntropyLoss
antmmf/modules/losses/cross_entropy_loss.py:9
↓ 10 callersClassSTConv3D
antmmf/models/s3dg.py:87
↓ 9 callersClassInceptionBlock
antmmf/models/s3dg.py:23
↓ 8 callersClassBertPredictionHeadTransform
antmmf/modules/vision/backbone/clip/modeling_bert.py:332
↓ 7 callersClassBertLMPredictionHead
antmmf/modules/vision/backbone/clip/modeling_bert.py:351
↓ 7 callersClassPyramidVisionTransformer
antmmf/modules/vision/backbone/pvt.py:99
↓ 6 callersClassLayerNorm
Subclass torch's LayerNorm to handle fp16.
antmmf/modules/vision/backbone/clip/model.py:213
↓ 6 callersClassReport
antmmf/common/report.py:14
↓ 5 callersClassAdapterLayer
prj/Pink/pink/model/adapter.py:24
↓ 5 callersClassGroupScale
Rescales the input PIL.Image to the given 'size'. 'size' will be the size of the smaller edge. For example, if height > width, then image will
antmmf/utils/image_ops.py:111
↓ 5 callersClassImageBertEmbeddings
antmmf/modules/embeddings/image_bert_embeddings.py:10
↓ 5 callersClassLayoutLMEmbeddings
Construct the embeddings from word, position and token_type embeddings.
antmmf/modules/embeddings/layout_lm_embeddings.py:10
↓ 5 callersClassLlamaRMSNorm
prj/M2_omni/models/modeling_llama_3d.py:57
↓ 5 callersClassMeter
A metric manager which can record the history states of your interested metrics, such as losses, accuracies, and memory usage, etc. The state
antmmf/common/meter.py:85
↓ 5 callersClassNL3DWrapper
antmmf/modules/vision/non_local.py:170
↓ 5 callersClassProcessor
Wrapper class used by antmmf to initialized processor based on their ``type`` as passed in configuration. It retrieves the processor class reg
antmmf/datasets/processors/processors.py:161
↓ 5 callersClassSelfGating
antmmf/models/s3dg.py:74
↓ 5 callersClassTreeNode
antmmf/modules/utils.py:158
↓ 4 callersClassAntMMFConcatDataset
antmmf/datasets/concat_dataset.py:8
↓ 4 callersClassAttrDict
antmmf/utils/general.py:306
↓ 4 callersClassBertConfig
r""" :class:`~transformers.BertConfig` is the configuration class to store the configuration of a `BertModel`. Arguments: vocab_
antmmf/modules/vision/backbone/clip/configuration_bert.py:24
↓ 4 callersClassFeedForwardNetwork
prj/M2_Encoder/vlmo/torchscale/component/feedforward_network.py:91
↓ 4 callersClassGroupMultiScaleCrop
antmmf/utils/image_ops.py:317
↓ 4 callersClassMaxPool3dTFPadding
antmmf/models/s3dg.py:167
↓ 4 callersClassMetrics
Internally used by antmmf, Metrics acts as wrapper for handling calculation of metrics over various metrics specified by the model in the conf
antmmf/modules/metrics/metrics.py:55
↓ 4 callersClassMultiheadAttention
prj/M2_Encoder/vlmo/torchscale/component/multihead_attention.py:19
↓ 4 callersClassPositionEnhancedTransformer
It is inspired from Detr experimental results in Table. 3. PositionEnhancedTransformer passes positional encodings directly in attention
antmmf/modules/transformers/position_enhance.py:14
↓ 4 callersClassStack
antmmf/utils/image_ops.py:457
↓ 4 callersClassTemporalShift
antmmf/modules/vision/temporal_shift.py:15
↓ 4 callersClassToTorchFormatTensor
Converts a PIL.Image (RGB) or numpy.ndarray (H x W x C) in the range [0, 255] to a torch.FloatTensor of shape (C x H x W) in the range [0.0, 1.0]
antmmf/utils/image_ops.py:473
↓ 4 callersClassVisionTransformer
Vision Transformer with support for patch or hybrid CNN input stage
prj/Pink/pink/model/eva_vit.py:254
↓ 4 callersClassVisualLayoutEmbeddings
Encode bbox position with LayoutLM 2d positon embedding style, which is quite different from Uniter/VilBERT style. Visual Embedding for
antmmf/modules/embeddings/visual_layout_embeddings.py:11
↓ 3 callersClassAdapterConfig
prj/Pink/pink/model/adapter.py:93
↓ 3 callersClassAttentionXWeightPredictor
prj/dmae_vtp/roi_univl/univl/model/tpmcl_utils.py:53
↓ 3 callersClassBatchCollator
antmmf/common/batch_collator.py:9
↓ 3 callersClassBertEncoder
antmmf/modules/vision/backbone/clip/modeling_bert.py:273
↓ 3 callersClassBertIntermediate
antmmf/modules/vision/backbone/clip/modeling_bert.py:210
↓ 3 callersClassBertOutput
antmmf/modules/vision/backbone/clip/modeling_bert.py:227
↓ 3 callersClassBertPooler
antmmf/modules/vision/backbone/clip/modeling_bert.py:317
↓ 3 callersClassCompGCNConv
r""" CompGCN convolutional layer Args: in_channels (int): Input dimension out_channels (int): Output dimension num_rel
antmmf/modules/graph.py:407
↓ 3 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
prj/M2_Encoder/vlmo/torchscale/component/droppath.py:8
↓ 3 callersClassEncoder
prj/M2_Encoder/vlmo/torchscale/architecture/encoder.py:171
↓ 3 callersClassEncoderConfig
prj/M2_Encoder/vlmo/torchscale/architecture/config.py:5
↓ 3 callersClassGatedTanh
r""" From: https://arxiv.org/pdf/1707.07998.pdf nonlinear_layer (f_a) : x\in R^m => y \in R^n # noqa \tilda{y} = tanh(Wx + b) g = sigm
antmmf/modules/layers/gated_tanh.py:8
↓ 3 callersClassGroupNormalize
antmmf/utils/image_ops.py:72
↓ 3 callersClassGroupRandomHorizontalFlip
Randomly horizontally flips the given PIL.Image with a probability of 0.5
antmmf/utils/image_ops.py:52
↓ 3 callersClassHungarianMatcher
This class computes an assignment between the targets and the predictions of the network For efficiency reasons, the targets don't include the no_
antmmf/modules/matcher.py:10
↓ 3 callersClassLayoutLMModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
antmmf/models/layoutlm.py:42
↓ 3 callersClassMlp
prj/M2_Encoder/vlmo/modules/multiway_transformer.py:31
↓ 3 callersClassQwen2VLVisionConfig
prj/M2_omni/models/configuration_qwen2_vit.py:26
↓ 3 callersClassRelativePositionBias
prj/M2_Encoder/vlmo/torchscale/component/relative_position_bias.py:10
↓ 3 callersClassTaskLoader
antmmf/common/task_loader.py:24
↓ 3 callersClassUnivlVideoBase
prj/snps3_vtp/roi_univl/univl/model/univl_video_base.py:14
↓ 3 callersClassUnivlVideoBase
prj/dmae_vtp/roi_univl/univl/model/univl_video_base.py:14
↓ 3 callersClassUnivlVideoBase
prj/base_vtp/roi_univl/univl/model/univl_video_base.py:14
↓ 2 callersClassAntMMFLoss
Internal antmmf helper and wrapper class for all Loss classes. It makes sure that the value returned from a Loss class is a dict and contain p
antmmf/modules/losses/losses.py:118
↓ 2 callersClassBailing2AudioConfig
prj/M2_omni/models/configuration_m2omni.py:106
↓ 2 callersClassBailing2ImageProcessor
r""" Constructs a Bailing2 image processor that dynamically resizes images based on the original images. Args: do_resize (`bool`, *op
prj/M2_omni/models/image_processing_m2omni.py:124
↓ 2 callersClassBasicLayer
A basic Swin Transformer layer for one stage. Args: dim (int): Number of feature channels depth (int): Depths of this stage.
antmmf/modules/vision/backbone/cctt.py:461
↓ 2 callersClassBertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
antmmf/modules/vision/backbone/clip/modeling_bert.py:66
↓ 2 callersClassBertImageIntermediate
antmmf/models/vilbert.py:240
↓ 2 callersClassBertImageOutput
antmmf/models/vilbert.py:255
↓ 2 callersClassBertLayer
antmmf/modules/vision/backbone/clip/modeling_bert.py:253
↓ 2 callersClassBertModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
antmmf/modules/vision/backbone/clip/modeling_bert.py:421
↓ 2 callersClassBertOnlyMLMHead
antmmf/modules/vision/backbone/clip/modeling_bert.py:368
↓ 2 callersClassBertSelfOutput
antmmf/modules/vision/backbone/clip/modeling_bert.py:175
↓ 2 callersClassBottleneck
antmmf/modules/vision/backbone/clip/model.py:37
↓ 2 callersClassCheckpoint
antmmf/common/checkpoint.py:80
↓ 2 callersClassClassifierLayer
A classification layer for any model, all details can be seen from :class:`antmmf.modules.module_registry.ModuleRegistry`. We registered :cla
antmmf/modules/classifier/classifier_layer.py:7
↓ 2 callersClassConfig
prj/dmae_vtp/roi_univl/univl/processors.py:24
↓ 2 callersClassConvNet
antmmf/modules/layers/conv_net.py:8
↓ 2 callersClassCount_Class
prj/snps3_vtp/auxiliary_files/generate_ss_word_json/1st_ss_word_mining.py:8
↓ 2 callersClassEncoderLayerSANM
prj/M2_omni/models/sanm_audio.py:73
↓ 2 callersClassFeatureExtractor
antmmf/models/layoutlm.py:272
↓ 2 callersClassFullTokenizer
Runs end-to-end tokenziation.
antmmf/modules/vision/backbone/clip/cn_tokenizer.py:181
↓ 2 callersClassGINConv
r"""The graph isomorphism operator from the `"How Powerful are Graph Neural Networks?" <https://arxiv.org/abs/1810.00826>`_ paper .. math::
antmmf/modules/graph.py:51
↓ 2 callersClassGraphAttentionLayer
Graph attention layer for building GAT network. Version for adjacency matrix. Args: in_features(int): dimension of input tensor.
antmmf/modules/encoders/graph/gat_adj_matrix.py:10
↓ 2 callersClassGroupRandomCrop
antmmf/utils/image_ops.py:17
↓ 2 callersClassHierarchicalClassifier
Classifier perform Hierarchical Softmax. Hierarchical Softmax is an alternative to softmax that is faster to evaluate: it is time to eva
antmmf/modules/decoders/hierarchical_classifier.py:14
↓ 2 callersClassLayerNormDmae
prj/dmae_vtp/roi_univl/univl/model/dmae_utils.py:574
↓ 2 callersClassLinearXWeightPredictor
prj/dmae_vtp/roi_univl/univl/model/tpmcl_utils.py:6
↓ 2 callersClassLlama3dConfig
r""" This is the configuration class to store the configuration of a [`Llama3dModel`]. It is used to instantiate an LLaMA model according to t
prj/M2_omni/models/configuration_llama_3d.py:31
↓ 2 callersClassLlama3dRotaryEmbedding
prj/M2_omni/models/modeling_llama_3d.py:78
↓ 2 callersClassLlamaMLP
prj/M2_omni/models/modeling_llama_3d.py:241
↓ 2 callersClassMBConvBlock
Mobile Inverted Residual Bottleneck Block. Args: block_args (namedtuple): BlockArgs, defined in utils.py. global_params (namedtup
antmmf/modules/layers/mb_conv_block.py:13
↓ 2 callersClassMMFRoiDataset
dataset for Region & OCR & Image joint modelling
prj/snps3_vtp/roi_univl/roi/dataset.py:351
↓ 2 callersClassMMFRoiDataset
dataset for Region & OCR & Image joint modelling
prj/dmae_vtp/roi_univl/roi/dataset.py:351
↓ 2 callersClassMMFRoiDataset
dataset for Region & OCR & Image joint modelling
prj/base_vtp/roi_univl/roi/dataset.py:351
↓ 2 callersClassMMFRoiDataset
dataset for Region & OCR & Image joint modelling
prj/cnvid_vtp/roi_univl/roi/dataset.py:351
next →1–100 of 941, ranked by callers