OpenMMLab Self-Supervised Learning Toolbox and Benchmark
 
 
 
Go to file
Yixiao Fang ff5f5ae2a9 [CI] update CI package (#476)
* update circleci

* update github action

* fix windows error

* update

* update pr and merge state

* fix lint

* update

* update

* update circle ci

* fix

* fix ut
2022-10-12 19:35:44 +08:00
.circleci [CI] update CI package (#476) 2022-10-12 19:35:44 +08:00
.dev_scripts/benchmark_regression [Feature] Add benchmark scripts (#424) 2022-08-19 13:36:01 +08:00
.github [CI] update CI package (#476) 2022-10-12 19:35:44 +08:00
configs [Fix]: Refine simmim-224-ft config (#473) 2022-09-07 15:18:27 +08:00
demo [Refactor]: Refactor colab tutorial (#470) 2022-10-12 19:35:44 +08:00
docker Bump version to v1.0.0rc0 (#464) 2022-08-31 22:03:06 +08:00
docs [Feature]: Add dataset docs (#437) 2022-10-12 19:35:44 +08:00
mmselfsup [Docs] add advanced_guides/transforms.md (#463) 2022-10-12 19:35:44 +08:00
requirements [Fix] update readthedocs requirements (#472) 2022-10-12 19:35:44 +08:00
resources [Docs] add xiaozhushou and selfsup wexin qrcode (#133) 2021-12-16 13:18:45 +08:00
tests [CI] update CI package (#476) 2022-10-12 19:35:44 +08:00
tools [Refactor] refactor knn (#420) 2022-08-31 13:32:03 +08:00
.gitignore Bump version to v0.9.0 (#299) 2022-04-29 20:01:30 +08:00
.pre-commit-config.yaml [CI] add gitlab ci 2022-07-18 11:06:44 +08:00
.readthedocs.yml [Refactor] refactor msic files 2021-12-15 18:51:33 +08:00
.style.yapf upload code 2020-06-16 00:05:18 +08:00
LICENSE Create LICENSE 2020-06-16 00:09:08 +08:00
MANIFEST.in [Enhance] enhance MIM function (#152) 2021-12-17 16:39:03 +08:00
README.md [Fix] fix version error (#468) 2022-09-01 10:36:03 +08:00
README_zh-CN.md [Fix] fix version error (#468) 2022-09-01 10:36:03 +08:00
model-index.yml Bump version to v0.9.0 (#299) 2022-04-29 20:01:30 +08:00
requirements.txt upload code 2020-06-16 00:05:18 +08:00
setup.cfg Bump version to v0.9.1 (#322) 2022-06-01 09:59:05 +08:00
setup.py Add mim to extras_require in setup.py (#326) 2022-06-15 16:14:19 +08:00

README.md

English | 简体中文

Introduction

MMSelfSup is an open source self-supervised representation learning toolbox based on PyTorch. It is a part of the OpenMMLab project.

The master branch works with PyTorch 1.6 or higher.

Major features

  • Methods All in One

    MMSelfsup provides state-of-the-art methods in self-supervised learning. For comprehensive comparison in all benchmarks, most of the pre-training methods are under the same setting.

  • Modular Design

    MMSelfSup follows a similar code architecture of OpenMMLab projects with modular design, which is flexible and convenient for users to build their own algorithms.

  • Standardized Benchmarks

    MMSelfSup standardizes the benchmarks including logistic regression, SVM / Low-shot SVM from linearly probed features, semi-supervised classification, object detection and semantic segmentation.

  • Compatibility

    Since MMSelfSup adopts similar design of modulars and interfaces as those in other OpenMMLab projects, it supports smooth evaluation on downstream tasks with other OpenMMLab projects like object detection and segmentation.

What's New

MMSelfSup v1.0.0rc1 was released in 01/09/2022.

  • Based on MMEngine and MMCV.
  • Released with refactor.
  • Refine all documents.
  • Refactor the data pipeline, which is more powerful.

Please refer to Changelog for details and release history.

Differences between MMSelfSup 1.x and 0.x can be found in Migration.

Installation

MMSelfSup depends on PyTorch, MMCV, MMEngine and MMClassification.

Please refer to Installation for more detailed instruction.

Get Started

For tutorials, we provide User Guides for basic usage:

Pretrain

Downetream Tasks

Useful Tools

Advanced Guides and Colab Tutorials are also provided.

Please refer to FAQ for frequently asked questions.

Model Zoo

Please refer to Model Zoo.md for a comprehensive set of pre-trained models and benchmarks.

Supported algorithms:

More algorithms are in our plan.

Benchmark

Benchmarks Setting
ImageNet Linear Classification (Multi-head) Goyal2019
ImageNet Linear Classification (Last)
ImageNet Semi-Sup Classification
Places205 Linear Classification (Multi-head) Goyal2019
iNaturalist2018 Linear Classification (Multi-head) Goyal2019
PASCAL VOC07 SVM Goyal2019
PASCAL VOC07 Low-shot SVM Goyal2019
PASCAL VOC07+12 Object Detection MoCo
COCO17 Object Detection MoCo
Cityscapes Segmentation MMSeg
PASCAL VOC12 Aug Segmentation MMSeg

Contributing

We appreciate all contributions improving MMSelfSup. Please refer to Contribution Guides for more details about the contributing guideline.

Acknowledgement

MMSelfSup 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 develop their own new algorithms.

MMSelfSup originates from OpenSelfSup, and we appreciate all early contributions made to OpenSelfSup. A few contributors are listed here: Xiaohang Zhan (@XiaohangZhan), Jiahao Xie (@Jiahao000), Enze Xie (@xieenze), Xiangxiang Chu (@cxxgtxy), Zijian He (@scnuhealthy).

Citation

If you use this toolbox or benchmark in your research, please cite this project.

@misc{mmselfsup2021,
    title={{MMSelfSup}: OpenMMLab Self-Supervised Learning Toolbox and Benchmark},
    author={MMSelfSup Contributors},
    howpublished={\url{https://github.com/open-mmlab/mmselfsup}},
    year={2021}
}

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.
  • MMClassification: OpenMMLab image classification 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.
  • 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.
  • MMEditing: OpenMMLab image and video editing toolbox.
  • MMGeneration: OpenMMLab image and video generative models toolbox.
  • MMDeploy: OpenMMLab model deployment framework.