• Stars
    star
    27,899
  • Rank 648 (Top 0.02 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated 10 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OpenMMLab Detection Toolbox and Benchmark

English | 简体中文

Introduction

MMDetection is an open source object detection toolbox based on PyTorch. It is a part of the OpenMMLab project.

The main branch works with PyTorch 1.8+.

Major features
  • Modular Design

    We decompose the detection framework into different components and one can easily construct a customized object detection framework by combining different modules.

  • Support of multiple tasks out of box

    The toolbox directly supports multiple detection tasks such as object detection, instance segmentation, panoptic segmentation, and semi-supervised object detection.

  • High efficiency

    All basic bbox and mask operations run on GPUs. The training speed is faster than or comparable to other codebases, including Detectron2, maskrcnn-benchmark and SimpleDet.

  • State of the art

    The toolbox stems from the codebase developed by the MMDet team, who won COCO Detection Challenge in 2018, and we keep pushing it forward. The newly released RTMDet also obtains new state-of-the-art results on real-time instance segmentation and rotated object detection tasks and the best parameter-accuracy trade-off on object detection.

Apart from MMDetection, we also released MMEngine for model training and MMCV for computer vision research, which are heavily depended on by this toolbox.

What's New

Highlight

We are excited to announce our latest work on real-time object recognition tasks, RTMDet, a family of fully convolutional single-stage detectors. RTMDet not only achieves the best parameter-accuracy trade-off on object detection from tiny to extra-large model sizes but also obtains new state-of-the-art performance on instance segmentation and rotated object detection tasks. Details can be found in the technical report. Pre-trained models are here.

PWC PWC PWC

Task Dataset AP FPS(TRT FP16 BS1 3090)
Object Detection COCO 52.8 322
Instance Segmentation COCO 44.6 188
Rotated Object Detection DOTA 78.9(single-scale)/81.3(multi-scale) 121

v3.1.0 was released in 30/6/2023:

  • Supports tracking algorithms including multi-object tracking (MOT) algorithms SORT, DeepSORT, StrongSORT, OCSORT, ByteTrack, QDTrack, and video instance segmentation (VIS) algorithm MaskTrackRCNN, Mask2Former-VIS.
  • Support ViTDet
  • Supports inference and evaluation of multimodal algorithms GLIP and XDecoder, and also supports datasets such as COCO semantic segmentation, COCO Caption, ADE20k general segmentation, and RefCOCO. GLIP fine-tuning will be supported in the future.
  • Provides a gradio demo for image type tasks of MMDetection, making it easy for users to experience.

Installation

Please refer to Installation for installation instructions.

Getting Started

Please see Overview for the general introduction of MMDetection.

For detailed user guides and advanced guides, please refer to our documentation:

We also provide object detection colab tutorial Open in Colab and instance segmentation colab tutorial Open in Colab.

To migrate from MMDetection 2.x, please refer to migration.

Overview of Benchmark and Model Zoo

Results and models are available in the model zoo.

Architectures
Object Detection Instance Segmentation Panoptic Segmentation Other
  • Contrastive Learning
  • Distillation
  • Semi-Supervised Object Detection
  • Components
    Backbones Necks Loss Common

    Some other methods are also supported in projects using MMDetection.

    FAQ

    Please refer to FAQ for frequently asked questions.

    Contributing

    We appreciate all contributions to improve MMDetection. Ongoing projects can be found in out GitHub Projects. Welcome community users to participate in these projects. Please refer to CONTRIBUTING.md for the contributing guideline.

    Acknowledgement

    MMDetection 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 detectors.

    Citation

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

    @article{mmdetection,
      title   = {{MMDetection}: Open MMLab Detection Toolbox and Benchmark},
      author  = {Chen, Kai and Wang, Jiaqi and Pang, Jiangmiao and Cao, Yuhang and
                 Xiong, Yu and Li, Xiaoxiao and Sun, Shuyang and Feng, Wansen and
                 Liu, Ziwei and Xu, Jiarui and Zhang, Zheng and Cheng, Dazhi and
                 Zhu, Chenchen and Cheng, Tianheng and Zhao, Qijie and Li, Buyu and
                 Lu, Xin and Zhu, Rui and Wu, Yue and Dai, Jifeng and Wang, Jingdong
                 and Shi, Jianping and Ouyang, Wanli and Loy, Chen Change and Lin, Dahua},
      journal= {arXiv preprint arXiv:1906.07155},
      year={2019}
    }
    

    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.
    • MMPreTrain: OpenMMLab pre-training toolbox and benchmark.
    • MMagic: OpenMMLab Advanced, Generative and Intelligent Creation toolbox.
    • 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.
    • MMEditing: OpenMMLab image and video editing toolbox.
    • MMGeneration: OpenMMLab image and video generative models toolbox.
    • MMDeploy: OpenMMLab model deployment framework.
    • MIM: MIM installs OpenMMLab packages.
    • MMEval: A unified evaluation library for multiple machine learning libraries.
    • Playground: A central hub for gathering and showcasing amazing projects built upon OpenMMLab.

    More Repositories

    1

    mmsegmentation

    OpenMMLab Semantic Segmentation Toolbox and Benchmark.
    Python
    7,372
    star
    2

    mmagic

    OpenMMLab Multimodal Advanced, Generative, and Intelligent Creation Toolbox. Unlock the magic 🪄: Generative-AI (AIGC), easy-to-use APIs, awsome model zoo, diffusion models, for text-to-image generation, image/video restoration/enhancement, etc.
    Jupyter Notebook
    6,575
    star
    3

    mmcv

    OpenMMLab Computer Vision Foundation
    Python
    5,626
    star
    4

    mmpose

    OpenMMLab Pose Estimation Toolbox and Benchmark.
    Python
    4,969
    star
    5

    mmdetection3d

    OpenMMLab's next-generation platform for general 3D object detection.
    Python
    4,781
    star
    6

    OpenPCDet

    OpenPCDet Toolbox for LiDAR-based 3D Object Detection.
    Python
    4,342
    star
    7

    mmocr

    OpenMMLab Text Detection, Recognition and Understanding Toolbox
    Python
    4,099
    star
    8

    Amphion

    Amphion (/æmˈfaɪən/) is a toolkit for Audio, Music, and Speech Generation. Its purpose is to support reproducible research and help junior researchers and engineers get started in the field of audio, music, and speech generation research and development.
    Python
    3,947
    star
    9

    mmaction2

    OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark
    Python
    3,903
    star
    10

    mmtracking

    OpenMMLab Video Perception Toolbox. It supports Video Object Detection (VID), Multiple Object Tracking (MOT), Single Object Tracking (SOT), Video Instance Segmentation (VIS) with a unified framework.
    Python
    3,384
    star
    11

    mmpretrain

    OpenMMLab Pre-training Toolbox and Benchmark
    Python
    3,138
    star
    12

    mmselfsup

    OpenMMLab Self-Supervised Learning Toolbox and Benchmark
    Python
    3,084
    star
    13

    mmskeleton

    A OpenMMLAB toolbox for human pose estimation, skeleton-based action recognition, and action synthesis.
    Python
    2,855
    star
    14

    mmyolo

    OpenMMLab YOLO series toolbox and benchmark. Implemented RTMDet, RTMDet-Rotated,YOLOv5, YOLOv6, YOLOv7, YOLOv8,YOLOX, PPYOLOE, etc.
    Python
    2,719
    star
    15

    mmdeploy

    OpenMMLab Model Deployment Framework
    Python
    2,520
    star
    16

    mmaction

    An open-source toolbox for action understanding based on PyTorch
    Python
    1,847
    star
    17

    mmgeneration

    MMGeneration is a powerful toolkit for generative models, based on PyTorch and MMCV.
    Python
    1,796
    star
    18

    mmrotate

    OpenMMLab Rotated Object Detection Toolbox and Benchmark
    Python
    1,724
    star
    19

    Multimodal-GPT

    Multimodal-GPT
    Python
    1,397
    star
    20

    mmrazor

    OpenMMLab Model Compression Toolbox and Benchmark.
    Python
    1,366
    star
    21

    mmfashion

    Open-source toolbox for visual fashion analysis based on PyTorch
    Python
    1,204
    star
    22

    mmhuman3d

    OpenMMLab 3D Human Parametric Model Toolbox and Benchmark
    Python
    1,129
    star
    23

    mmengine

    OpenMMLab Foundational Library for Training Deep Learning Models
    Python
    1,029
    star
    24

    playground

    A central hub for gathering and showcasing amazing projects that extend OpenMMLab with SAM and other exciting features.
    Python
    1,017
    star
    25

    OpenMMLabCourse

    OpenMMLab course index and stuff
    Jupyter Notebook
    919
    star
    26

    mmflow

    OpenMMLab optical flow toolbox and benchmark
    Python
    889
    star
    27

    PIA

    [CVPR 2024] PIA, your Personalized Image Animator. Animate your images by text prompt, combing with Dreambooth, achieving stunning videos. PIA,你的个性化图像动画生成器,利用文本提示将图像变为奇妙的动画
    Python
    716
    star
    28

    mmfewshot

    OpenMMLab FewShot Learning Toolbox and Benchmark
    Python
    662
    star
    29

    awesome-vit

    396
    star
    30

    OpenUnReID

    PyTorch open-source toolbox for unsupervised or domain adaptive object re-ID.
    Python
    389
    star
    31

    labelbee-client

    Out-of-the-box Annotation Toolbox
    JavaScript
    374
    star
    32

    mim

    MIM Installs OpenMMLab Packages
    Python
    329
    star
    33

    denseflow

    Extracting optical flow and frames
    C++
    286
    star
    34

    MMGEN-FaceStylor

    Python
    245
    star
    35

    mmeval

    A unified evaluation library for multiple machine learning libraries
    Python
    243
    star
    36

    labelbee

    LabelBee is an annotation Library
    TypeScript
    223
    star
    37

    OpenMMLabCamp

    Jupyter Notebook
    92
    star
    38

    polynet

    The Github Repo for PolyNet
    77
    star
    39

    CLUE

    C++ Lightweight Utility Extensions
    C++
    70
    star
    40

    mim-example

    Python
    57
    star
    41

    mmengine-template

    Python
    47
    star
    42

    ecosystem

    36
    star
    43

    mmstyles

    Latex style file to facilitate writing of technical papers
    TeX
    36
    star
    44

    mmpose-webcam-demo

    Python
    23
    star
    45

    pre-commit-hooks

    Python
    17
    star
    46

    mdformat-openmmlab

    Python
    8
    star
    47

    .github

    3
    star