MCPcopy Index your code
hub / github.com/alipay/Ant-Multi-Modal-Framework

github.com/alipay/Ant-Multi-Modal-Framework @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4,946 symbols 16,438 edges 564 files 1,000 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AntMMF: Ant Multi-Modal Framework

Introduction

This repository contains codes for multi-modality learning from the Multimodal Cognition group of Ant Group that have been integrated into AntMMF. AntMMF encapsulates standard multimodal functionalities including dataset management, data processing, training workflows, models, and modules, while also enabling custom extensions of these components.

News

  • May, 2025: M2-omni was open sourced, paper: M2-omni.
  • March, 2024: M2-RAAP was accepted by SIGIR 2024.
  • February, 2024: release the code of bilingual multimodal CLIP-M2-Encoder, which was trained on our BM-6B bilingual dataset.
  • December, 2023: release the code of SNP-S3, DMAE, and CNVid-3.5M.
  • June, 2023: SNP-S3 was accepted by IEEE T-CSVT 2023.
  • May, 2023: DMAE was accepted by ACM MultiMedia 2023.
  • March, 2023: CNVid-3.5M was accepted by CVPR 2023.

Focus Areas

Video & Text Pretraining

  • Dataset
  • CNVid-3.5M (CVPR-2023): A large-scale public Chinese video-text pretraining dataset.
  • Pretraining Methods
  • SNP-S3 (IEEE T-CSVT 2023): Semantic enhancement for video pretraining.

Video & Text Retrieval

  • DMAE (ACM MM-2023): Dual-Modal attention-enhanced Text-Video Retrieval with triplet partial margin contrastive learning.

Video Editing

  • EVE: Efficient zero-shot video editing.

Environmental Setup

  • Please follow the steps below to initialize the environment of the AntMMF.
# Build a new environment.
conda create -n antmmf python=3.8
source activate antmmf

# Clone this project.
cd /YourPath/
git clone https://github.com/alipay/Ant-Multi-Modal-Framework

# Install the required packages.
cd antmmf
pip install -r requirements.txt

Citations

If you find AntMMF useful for your work, please consider citing:

@misc{qp2023AntMMF,
  author = {Qingpei, Guo and Xingning, Dong and Xiaopei, Wan and Xuzheng, Yu and Chen, Jiang and Xiangyuan, Ren and Kiasheng, Yao and Shiyu, Xuan},
  title =        {AntMMF: Ant Multi-Modal Framework},
  howpublished = {\url{https://github.com/alipay/Ant-Multi-Modal-Framework}},
  year =         {2023}
}

License

This project is licensed under the Apache 2.0 license, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Acknowledgments

Our code is based on FAIR mmf. We thank the authors for their wonderful open-source efforts.

Contact Information

:raising_hand: For help or issues with this codebase, please submit an issue.

:star: We are hiring, if you are interested in our work, please feel free to contact Qingpei Guo(qingpei.gqp@antgroup.com).

Core symbols most depended-on inside this repo

print
called by 307
antmmf/utils/distributed.py
cat
called by 301
antmmf/structures/boxes.py
to
called by 261
prj/M2_Encoder/vlmo/tokenizer/tokenization_glm.py
pop
called by 212
antmmf/common/configuration.py
get
called by 158
antmmf/modules/module_registry.py
get
called by 139
antmmf/common/registry.py
load
called by 130
antmmf/tasks/base_task.py
write
called by 123
antmmf/utils/logger.py

Shape

Method 3,373
Class 941
Function 631
Route 1

Languages

Python100%
C1%

Modules by API surface

antmmf/models/vilbert.py79 symbols
antmmf/datasets/processors/text_processors.py74 symbols
antmmf/modules/vision/backbone/clip/modeling_bert.py57 symbols
antmmf/utils/text_utils.py54 symbols
antmmf/utils/image_ops.py54 symbols
antmmf/modules/graph.py49 symbols
prj/M2_omni/models/modeling_llama_3d.py48 symbols
antmmf/common/configuration.py47 symbols
antmmf/modules/vision/backbone/clip/model.py46 symbols
antmmf/modules/vision/backbone/pvt.py44 symbols
antmmf/modules/vision/backbone/cctt.py44 symbols
antmmf/utils/vocab.py39 symbols

For agents

$ claude mcp add Ant-Multi-Modal-Framework \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact