OpenMMLab Pre-training Toolbox and Benchmark
 
 
 
 
Go to file
Yixiao Fang ae7a7b7560
Bump version to 1.0.0 (#1686)
* bump version to 1.0.0

* update

* update

* fix lint

* update

* update

* update changelog

* update
2023-07-05 11:51:12 +08:00
.circleci [Feature] Support multiple multi-modal algorithms and inferencers. (#1561) 2023-05-19 16:50:04 +08:00
.dev_scripts Bump version to 1.0.0 (#1686) 2023-07-05 11:51:12 +08:00
.github Bump version to 1.0.0 (#1686) 2023-07-05 11:51:12 +08:00
configs Bump version to 1.0.0 (#1686) 2023-07-05 11:51:12 +08:00
demo [Docs] Update links (#1457) 2023-04-06 20:58:52 +08:00
docker Bump version to v1.0.0rc8 (#1583) 2023-05-23 11:22:51 +08:00
docs Bump version to 1.0.0 (#1686) 2023-07-05 11:51:12 +08:00
mmpretrain Bump version to 1.0.0 (#1686) 2023-07-05 11:51:12 +08:00
projects [Feature] Add InternImage Classification project (#1569) 2023-06-13 19:11:54 +08:00
requirements Bump version to 1.0.0 (#1686) 2023-07-05 11:51:12 +08:00
resources [Docs] Update readme (#1449) 2023-04-06 17:17:56 +08:00
tests [Feature] Transfer shape-bias tool from mmselfsup (#1658) 2023-07-03 11:39:23 +08:00
tools [Feature] Transfer shape-bias tool from mmselfsup (#1658) 2023-07-03 11:39:23 +08:00
.coveragerc Mazerun/base classifier 2022-07-18 11:11:13 +08:00
.gitattributes Add .gitattributes 2021-12-07 11:55:58 +08:00
.gitignore Rename the package name to `mmpretrain`. 2023-02-17 15:20:55 +08:00
.pre-commit-config.yaml [Refactor] Add self-supervised backbones and target generators. (#1379) 2023-02-28 15:59:17 +08:00
.readthedocs.yml [Feature] Support dinov2 backbone (#1522) 2023-05-05 16:59:37 +08:00
CITATION.cff [Docs] Update links (#1457) 2023-04-06 20:58:52 +08:00
CONTRIBUTING.md [Docs] Update links (#1457) 2023-04-06 20:58:52 +08:00
LICENSE [Docs] Update links (#1457) 2023-04-06 20:58:52 +08:00
MANIFEST.in [Feat] Download dataset by using MIM&OpenDataLab (#1630) 2023-06-30 13:55:13 +08:00
README.md Bump version to 1.0.0 (#1686) 2023-07-05 11:51:12 +08:00
README_zh-CN.md Bump version to 1.0.0 (#1686) 2023-07-05 11:51:12 +08:00
dataset-index.yml [Feat] Download dataset by using MIM&OpenDataLab (#1630) 2023-06-30 13:55:13 +08:00
model-index.yml [Feature] Support SparK. (#1531) 2023-06-19 11:27:50 +08:00
requirements.txt workflow: modify build, add deploy (#61) 2020-10-10 22:15:50 +08:00
setup.cfg [Feature] Support new configs. (#1639) 2023-06-16 16:54:45 +08:00
setup.py [Feat] Download dataset by using MIM&OpenDataLab (#1630) 2023-06-30 13:55:13 +08:00

README.md

Introduction

MMPreTrain is an open source pre-training toolbox based on PyTorch. It is a part of the OpenMMLab project.

The main branch works with PyTorch 1.8+.

Major features

  • Various backbones and pretrained models
  • Rich training strategies (supervised learning, self-supervised learning, multi-modality learning etc.)
  • Bag of training tricks
  • Large-scale training configs
  • High efficiency and extensibility
  • Powerful toolkits for model analysis and experiments
  • Various out-of-box inference tasks.
    • Image Classification
    • Image Caption
    • Visual Question Answering
    • Visual Grounding
    • Retrieval (Image-To-Image, Text-To-Image, Image-To-Text)

https://github.com/open-mmlab/mmpretrain/assets/26739999/e4dcd3a2-f895-4d1b-a351-fbc74a04e904

What's new

🌟 v1.0.0 was released in 04/07/2023

🌟 v1.0.0rc8 was released in 22/05/2023

  • Support multiple multi-modal algorithms and inferencers. You can explore these features by the gradio demo!
  • Add EVA-02, Dino-V2, ViT-SAM and GLIP backbones.
  • Register torchvision transforms into MMPretrain, you can now easily integrate torchvision's data augmentations in MMPretrain. See the doc

Update of previous versions

  • Integrated Self-supervised learning algorithms from MMSelfSup, such as MAE, BEiT, etc.
  • Support RIFormer, a simple but effective vision backbone by removing token mixer.
  • Refactor dataset pipeline visualization.
  • Support LeViT, XCiT, ViG, ConvNeXt-V2, EVA, RevViT, EfficientnetV2, CLIP, TinyViT and MixMIM backbones.

This release introduced a brand new and flexible training & test engine, but it's still in progress. Welcome to try according to the documentation.

And there are some BC-breaking changes. Please check the migration tutorial.

Please refer to changelog for more details and other release history.

Installation

Below are quick steps for installation:

conda create -n open-mmlab python=3.8 pytorch==1.10.1 torchvision==0.11.2 cudatoolkit=11.3 -c pytorch -y
conda activate open-mmlab
pip install openmim
git clone https://github.com/open-mmlab/mmpretrain.git
cd mmpretrain
mim install -e .

Please refer to installation documentation for more detailed installation and dataset preparation.

For multi-modality models support, please install the extra dependencies by:

mim install -e ".[multimodal]"

User Guides

We provided a series of tutorials about the basic usage of MMPreTrain for new users:

For more information, please refer to our documentation.

Model zoo

Results and models are available in the model zoo.

Overview
Supported Backbones Self-supervised Learning Multi-Modality Algorithms Others
Image Retrieval Task: Training&Test Tips:

Contributing

We appreciate all contributions to improve MMPreTrain. Please refer to CONTRUBUTING for the contributing guideline.

Acknowledgement

MMPreTrain is an open source project that is contributed by researchers and engineers from various colleges and companies. We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks. We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and supporting their own academic research.

Citation

If you find this project useful in your research, please consider cite:

@misc{2023mmpretrain,
    title={OpenMMLab's Pre-training Toolbox and Benchmark},
    author={MMPreTrain Contributors},
    howpublished = {\url{https://github.com/open-mmlab/mmpretrain}},
    year={2023}
}

License

This project is released under the Apache 2.0 license.

Projects in OpenMMLab

  • MMEngine: OpenMMLab foundational library for training deep learning models.
  • MMCV: OpenMMLab foundational library for computer vision.
  • MIM: MIM installs OpenMMLab packages.
  • MMEval: A unified evaluation library for multiple machine learning libraries.
  • MMPreTrain: OpenMMLab pre-training toolbox and benchmark.
  • MMDetection: OpenMMLab detection toolbox and benchmark.
  • MMDetection3D: OpenMMLab's next-generation platform for general 3D object detection.
  • MMRotate: OpenMMLab rotated object detection toolbox and benchmark.
  • MMYOLO: OpenMMLab YOLO series toolbox and benchmark.
  • MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark.
  • MMOCR: OpenMMLab text detection, recognition, and understanding toolbox.
  • MMPose: OpenMMLab pose estimation toolbox and benchmark.
  • MMHuman3D: OpenMMLab 3D human parametric model toolbox and benchmark.
  • MMSelfSup: OpenMMLab self-supervised learning toolbox and benchmark.
  • MMRazor: OpenMMLab model compression toolbox and benchmark.
  • MMFewShot: OpenMMLab fewshot learning toolbox and benchmark.
  • MMAction2: OpenMMLab's next-generation action understanding toolbox and benchmark.
  • MMTracking: OpenMMLab video perception toolbox and benchmark.
  • MMFlow: OpenMMLab optical flow toolbox and benchmark.
  • MMagic: OpenMMLab Advanced, Generative and Intelligent Creation toolbox.
  • MMGeneration: OpenMMLab image and video generative models toolbox.
  • MMDeploy: OpenMMLab model deployment framework.
  • Playground: A central hub for gathering and showcasing amazing projects built upon OpenMMLab.