Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alipay/Ant-Multi-Modal-Framework
/ types & classes
Types & classes
941 in github.com/alipay/Ant-Multi-Modal-Framework
⨍
Functions
4,004
◇
Types & classes
941
↳
Endpoints
1
↓ 39 callers
Class
Sample
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 callers
Class
Configuration
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 callers
Class
SampleList
: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 callers
Class
Linear
antmmf/modules/layers/linear.py:10
↓ 19 callers
Class
VisualEncoder
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 callers
Class
Logger
antmmf/utils/logger.py:15
↓ 17 callers
Class
Conversation
A class that keeps all conversation history.
prj/Pink/pink/conversation.py:15
↓ 17 callers
Class
LayerNorm
Subclass torch's LayerNorm to handle fp16.
prj/Pink/pink/model/eva_vit.py:29
↓ 16 callers
Class
Boxes
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 callers
Class
TextEncoder
antmmf/modules/encoders/text_encoder.py:22
↓ 14 callers
Class
Timer
antmmf/utils/timer.py:5
↓ 12 callers
Class
CrossEntropyLoss
antmmf/modules/losses/cross_entropy_loss.py:9
↓ 10 callers
Class
STConv3D
antmmf/models/s3dg.py:87
↓ 9 callers
Class
InceptionBlock
antmmf/models/s3dg.py:23
↓ 8 callers
Class
BertPredictionHeadTransform
antmmf/modules/vision/backbone/clip/modeling_bert.py:332
↓ 7 callers
Class
BertLMPredictionHead
antmmf/modules/vision/backbone/clip/modeling_bert.py:351
↓ 7 callers
Class
PyramidVisionTransformer
antmmf/modules/vision/backbone/pvt.py:99
↓ 6 callers
Class
LayerNorm
Subclass torch's LayerNorm to handle fp16.
antmmf/modules/vision/backbone/clip/model.py:213
↓ 6 callers
Class
Report
antmmf/common/report.py:14
↓ 5 callers
Class
AdapterLayer
prj/Pink/pink/model/adapter.py:24
↓ 5 callers
Class
GroupScale
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 callers
Class
ImageBertEmbeddings
antmmf/modules/embeddings/image_bert_embeddings.py:10
↓ 5 callers
Class
LayoutLMEmbeddings
Construct the embeddings from word, position and token_type embeddings.
antmmf/modules/embeddings/layout_lm_embeddings.py:10
↓ 5 callers
Class
LlamaRMSNorm
prj/M2_omni/models/modeling_llama_3d.py:57
↓ 5 callers
Class
Meter
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 callers
Class
NL3DWrapper
antmmf/modules/vision/non_local.py:170
↓ 5 callers
Class
Processor
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 callers
Class
SelfGating
antmmf/models/s3dg.py:74
↓ 5 callers
Class
TreeNode
antmmf/modules/utils.py:158
↓ 4 callers
Class
AntMMFConcatDataset
antmmf/datasets/concat_dataset.py:8
↓ 4 callers
Class
AttrDict
antmmf/utils/general.py:306
↓ 4 callers
Class
BertConfig
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 callers
Class
FeedForwardNetwork
prj/M2_Encoder/vlmo/torchscale/component/feedforward_network.py:91
↓ 4 callers
Class
GroupMultiScaleCrop
antmmf/utils/image_ops.py:317
↓ 4 callers
Class
MaxPool3dTFPadding
antmmf/models/s3dg.py:167
↓ 4 callers
Class
Metrics
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 callers
Class
MultiheadAttention
prj/M2_Encoder/vlmo/torchscale/component/multihead_attention.py:19
↓ 4 callers
Class
PositionEnhancedTransformer
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 callers
Class
Stack
antmmf/utils/image_ops.py:457
↓ 4 callers
Class
TemporalShift
antmmf/modules/vision/temporal_shift.py:15
↓ 4 callers
Class
ToTorchFormatTensor
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 callers
Class
VisionTransformer
Vision Transformer with support for patch or hybrid CNN input stage
prj/Pink/pink/model/eva_vit.py:254
↓ 4 callers
Class
VisualLayoutEmbeddings
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 callers
Class
AdapterConfig
prj/Pink/pink/model/adapter.py:93
↓ 3 callers
Class
AttentionXWeightPredictor
prj/dmae_vtp/roi_univl/univl/model/tpmcl_utils.py:53
↓ 3 callers
Class
BatchCollator
antmmf/common/batch_collator.py:9
↓ 3 callers
Class
BertEncoder
antmmf/modules/vision/backbone/clip/modeling_bert.py:273
↓ 3 callers
Class
BertIntermediate
antmmf/modules/vision/backbone/clip/modeling_bert.py:210
↓ 3 callers
Class
BertOutput
antmmf/modules/vision/backbone/clip/modeling_bert.py:227
↓ 3 callers
Class
BertPooler
antmmf/modules/vision/backbone/clip/modeling_bert.py:317
↓ 3 callers
Class
CompGCNConv
r""" CompGCN convolutional layer Args: in_channels (int): Input dimension out_channels (int): Output dimension num_rel
antmmf/modules/graph.py:407
↓ 3 callers
Class
DropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
prj/M2_Encoder/vlmo/torchscale/component/droppath.py:8
↓ 3 callers
Class
Encoder
prj/M2_Encoder/vlmo/torchscale/architecture/encoder.py:171
↓ 3 callers
Class
EncoderConfig
prj/M2_Encoder/vlmo/torchscale/architecture/config.py:5
↓ 3 callers
Class
GatedTanh
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 callers
Class
GroupNormalize
antmmf/utils/image_ops.py:72
↓ 3 callers
Class
GroupRandomHorizontalFlip
Randomly horizontally flips the given PIL.Image with a probability of 0.5
antmmf/utils/image_ops.py:52
↓ 3 callers
Class
HungarianMatcher
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 callers
Class
LayoutLMModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
antmmf/models/layoutlm.py:42
↓ 3 callers
Class
Mlp
prj/M2_Encoder/vlmo/modules/multiway_transformer.py:31
↓ 3 callers
Class
Qwen2VLVisionConfig
prj/M2_omni/models/configuration_qwen2_vit.py:26
↓ 3 callers
Class
RelativePositionBias
prj/M2_Encoder/vlmo/torchscale/component/relative_position_bias.py:10
↓ 3 callers
Class
TaskLoader
antmmf/common/task_loader.py:24
↓ 3 callers
Class
UnivlVideoBase
prj/snps3_vtp/roi_univl/univl/model/univl_video_base.py:14
↓ 3 callers
Class
UnivlVideoBase
prj/dmae_vtp/roi_univl/univl/model/univl_video_base.py:14
↓ 3 callers
Class
UnivlVideoBase
prj/base_vtp/roi_univl/univl/model/univl_video_base.py:14
↓ 2 callers
Class
AntMMFLoss
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 callers
Class
Bailing2AudioConfig
prj/M2_omni/models/configuration_m2omni.py:106
↓ 2 callers
Class
Bailing2ImageProcessor
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 callers
Class
BasicLayer
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 callers
Class
BertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
antmmf/modules/vision/backbone/clip/modeling_bert.py:66
↓ 2 callers
Class
BertImageIntermediate
antmmf/models/vilbert.py:240
↓ 2 callers
Class
BertImageOutput
antmmf/models/vilbert.py:255
↓ 2 callers
Class
BertLayer
antmmf/modules/vision/backbone/clip/modeling_bert.py:253
↓ 2 callers
Class
BertModel
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 callers
Class
BertOnlyMLMHead
antmmf/modules/vision/backbone/clip/modeling_bert.py:368
↓ 2 callers
Class
BertSelfOutput
antmmf/modules/vision/backbone/clip/modeling_bert.py:175
↓ 2 callers
Class
Bottleneck
antmmf/modules/vision/backbone/clip/model.py:37
↓ 2 callers
Class
Checkpoint
antmmf/common/checkpoint.py:80
↓ 2 callers
Class
ClassifierLayer
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 callers
Class
Config
prj/dmae_vtp/roi_univl/univl/processors.py:24
↓ 2 callers
Class
ConvNet
antmmf/modules/layers/conv_net.py:8
↓ 2 callers
Class
Count_Class
prj/snps3_vtp/auxiliary_files/generate_ss_word_json/1st_ss_word_mining.py:8
↓ 2 callers
Class
EncoderLayerSANM
prj/M2_omni/models/sanm_audio.py:73
↓ 2 callers
Class
FeatureExtractor
antmmf/models/layoutlm.py:272
↓ 2 callers
Class
FullTokenizer
Runs end-to-end tokenziation.
antmmf/modules/vision/backbone/clip/cn_tokenizer.py:181
↓ 2 callers
Class
GINConv
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 callers
Class
GraphAttentionLayer
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 callers
Class
GroupRandomCrop
antmmf/utils/image_ops.py:17
↓ 2 callers
Class
HierarchicalClassifier
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 callers
Class
LayerNormDmae
prj/dmae_vtp/roi_univl/univl/model/dmae_utils.py:574
↓ 2 callers
Class
LinearXWeightPredictor
prj/dmae_vtp/roi_univl/univl/model/tpmcl_utils.py:6
↓ 2 callers
Class
Llama3dConfig
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 callers
Class
Llama3dRotaryEmbedding
prj/M2_omni/models/modeling_llama_3d.py:78
↓ 2 callers
Class
LlamaMLP
prj/M2_omni/models/modeling_llama_3d.py:241
↓ 2 callers
Class
MBConvBlock
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 callers
Class
MMFRoiDataset
dataset for Region & OCR & Image joint modelling
prj/snps3_vtp/roi_univl/roi/dataset.py:351
↓ 2 callers
Class
MMFRoiDataset
dataset for Region & OCR & Image joint modelling
prj/dmae_vtp/roi_univl/roi/dataset.py:351
↓ 2 callers
Class
MMFRoiDataset
dataset for Region & OCR & Image joint modelling
prj/base_vtp/roi_univl/roi/dataset.py:351
↓ 2 callers
Class
MMFRoiDataset
dataset for Region & OCR & Image joint modelling
prj/cnvid_vtp/roi_univl/roi/dataset.py:351
next →
1–100 of 941, ranked by callers