open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5k stars 1.49k forks source link
3d-object-detection object-detection point-cloud pytorch
 
OpenMMLab website HOT      OpenMMLab platform TRY IT OUT
 
[![PyPI](https://img.shields.io/pypi/v/mmdet3d)](https://pypi.org/project/mmdet3d) [![docs](https://img.shields.io/badge/docs-latest-blue)](https://mmdetection3d.readthedocs.io/en/latest/) [![badge](https://github.com/open-mmlab/mmdetection3d/workflows/build/badge.svg)](https://github.com/open-mmlab/mmdetection3d/actions) [![codecov](https://codecov.io/gh/open-mmlab/mmdetection3d/branch/main/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmdetection3d) [![license](https://img.shields.io/github/license/open-mmlab/mmdetection3d.svg)](https://github.com/open-mmlab/mmdetection3d/blob/main/LICENSE) [![open issues](https://isitmaintained.com/badge/open/open-mmlab/mmdetection3d.svg)](https://github.com/open-mmlab/mmdetection3d/issues) [![issue resolution](https://isitmaintained.com/badge/resolution/open-mmlab/mmdetection3d.svg)](https://github.com/open-mmlab/mmdetection3d/issues) [๐Ÿ“˜Documentation](https://mmdetection3d.readthedocs.io/en/latest/) | [๐Ÿ› ๏ธInstallation](https://mmdetection3d.readthedocs.io/en/latest/get_started.html) | [๐Ÿ‘€Model Zoo](https://mmdetection3d.readthedocs.io/en/latest/model_zoo.html) | [๐Ÿ†•Update News](https://mmdetection3d.readthedocs.io/en/latest/notes/changelog.html) | [๐Ÿš€Ongoing Projects](https://github.com/open-mmlab/mmdetection3d/projects) | [๐Ÿค”Reporting Issues](https://github.com/open-mmlab/mmdetection3d/issues/new/choose)
English | [็ฎ€ไฝ“ไธญๆ–‡](README_zh-CN.md)

Introduction

MMDetection3D is an open source object detection toolbox based on PyTorch, towards the next-generation platform for general 3D detection. It is a part of the OpenMMLab project.

The main branch works with PyTorch 1.8+.

demo image

Major features - **Support multi-modality/single-modality detectors out of box** It directly supports multi-modality/single-modality detectors including MVXNet, VoteNet, PointPillars, etc. - **Support indoor/outdoor 3D detection out of box** It directly supports popular indoor and outdoor 3D detection datasets, including ScanNet, SUNRGB-D, Waymo, nuScenes, Lyft, and KITTI. For nuScenes dataset, we also support [nuImages dataset](https://github.com/open-mmlab/mmdetection3d/tree/main/configs/nuimages). - **Natural integration with 2D detection** All the about **300+ models, methods of 40+ papers**, and modules supported in [MMDetection](https://github.com/open-mmlab/mmdetection/blob/3.x/docs/en/model_zoo.md) can be trained or used in this codebase. - **High efficiency** It trains faster than other codebases. The main results are as below. Details can be found in [benchmark.md](./docs/en/notes/benchmarks.md). We compare the number of samples trained per second (the higher, the better). The models that are not supported by other codebases are marked by `โœ—`. | Methods | MMDetection3D | [OpenPCDet](https://github.com/open-mmlab/OpenPCDet) | [votenet](https://github.com/facebookresearch/votenet) | [Det3D](https://github.com/poodarchu/Det3D) | | :-----------------: | :-----------: | :--------------------------------------------------: | :----------------------------------------------------: | :-----------------------------------------: | | VoteNet | 358 | โœ— | 77 | โœ— | | PointPillars-car | 141 | โœ— | โœ— | 140 | | PointPillars-3class | 107 | 44 | โœ— | โœ— | | SECOND | 40 | 30 | โœ— | โœ— | | Part-A2 | 17 | 14 | โœ— | โœ— |

Like MMDetection and MMCV, MMDetection3D can also be used as a library to support different projects on top of it.

What's New

Highlight

In version 1.4, MMDetecion3D refactors the Waymo dataset and accelerates the preprocessing, training/testing setup, and evaluation of Waymo dataset. We also extends the support for camera-based, such as Monocular and BEV, 3D object detection models on Waymo. A detailed description of the Waymo data information is provided here.

Besides, in version 1.4, MMDetection3D provides Waymo-mini to help community users get started with Waymo and use it for quick iterative development.

v1.4.0 was released in 8/1/2024๏ผš

v1.3.0 was released in 18/10/2023:

v1.2.0 was released in 4/7/2023

v1.1.1 was released in 30/5/2023:

Installation

Please refer to Installation for installation instructions.

Getting Started

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

User Guides - [Train & Test](https://mmdetection3d.readthedocs.io/en/latest/user_guides/index.html#train-test) - [Learn about Configs](https://mmdetection3d.readthedocs.io/en/latest/user_guides/config.html) - [Coordinate System](https://mmdetection3d.readthedocs.io/en/latest/user_guides/coord_sys_tutorial.html) - [Dataset Preparation](https://mmdetection3d.readthedocs.io/en/latest/user_guides/dataset_prepare.html) - [Customize Data Pipelines](https://mmdetection3d.readthedocs.io/en/latest/user_guides/data_pipeline.html) - [Test and Train on Standard Datasets](https://mmdetection3d.readthedocs.io/en/latest/user_guides/train_test.html) - [Inference](https://mmdetection3d.readthedocs.io/en/latest/user_guides/inference.html) - [Train with Customized Datasets](https://mmdetection3d.readthedocs.io/en/latest/user_guides/new_data_model.html) - [Useful Tools](https://mmdetection3d.readthedocs.io/en/latest/user_guides/index.html#useful-tools)
Advanced Guides - [Datasets](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/index.html#datasets) - [KITTI Dataset](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/datasets/kitti.html) - [NuScenes Dataset](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/datasets/nuscenes.html) - [Lyft Dataset](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/datasets/lyft.html) - [Waymo Dataset](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/datasets/waymo.html) - [SUN RGB-D Dataset](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/datasets/sunrgbd.html) - [ScanNet Dataset](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/datasets/scannet.html) - [S3DIS Dataset](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/datasets/s3dis.html) - [SemanticKITTI Dataset](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/datasets/semantickitti.html) - [Supported Tasks](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/index.html#supported-tasks) - [LiDAR-Based 3D Detection](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/supported_tasks/lidar_det3d.html) - [Vision-Based 3D Detection](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/supported_tasks/vision_det3d.html) - [LiDAR-Based 3D Semantic Segmentation](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/supported_tasks/lidar_sem_seg3d.html) - [Customization](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/index.html#customization) - [Customize Datasets](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/customize_dataset.html) - [Customize Models](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/customize_models.html) - [Customize Runtime Settings](https://mmdetection3d.readthedocs.io/en/latest/advanced_guides/customize_runtime.html)

Overview of Benchmark and Model Zoo

Results and models are available in the model zoo.

Components
Backbones Heads Features
Architectures
LiDAR-based 3D Object Detection Camera-based 3D Object Detection Multi-modal 3D Object Detection 3D Semantic Segmentation
  • Outdoor
  • Indoor
  • Outdoor
  • Indoor
  • Outdoor
  • Indoor
  • Outdoor
  • Indoor
  • ResNet VoVNet Swin-T PointNet++ SECOND DGCNN RegNetX DLA MinkResNet Cylinder3D MinkUNet
    SECOND โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ—
    PointPillars โœ— โœ— โœ— โœ— โœ“ โœ— โœ“ โœ— โœ— โœ— โœ—
    FreeAnchor โœ— โœ— โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ—
    VoteNet โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    H3DNet โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    3DSSD โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    Part-A2 โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ—
    MVXNet โœ“ โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ—
    CenterPoint โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ—
    SSN โœ— โœ— โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ—
    ImVoteNet โœ“ โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    FCOS3D โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    PointNet++ โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    Group-Free-3D โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    ImVoxelNet โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    PAConv โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    DGCNN โœ— โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ—
    SMOKE โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ—
    PGD โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    MonoFlex โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ—
    SA-SSD โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ—
    FCAF3D โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ“ โœ— โœ—
    PV-RCNN โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ—
    Cylinder3D โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ“ โœ—
    MinkUNet โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ“
    SPVCNN โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ“
    BEVFusion โœ— โœ— โœ“ โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ—
    CenterFormer โœ— โœ— โœ— โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ—
    TR3D โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ“ โœ— โœ—
    DETR3D โœ“ โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    PETR โœ— โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ—
    TPVFormer โœ“ โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ— โœ—

    Note: All the about 500+ models, methods of 90+ papers in 2D detection supported by MMDetection can be trained or used in this codebase.

    FAQ

    Please refer to FAQ for frequently asked questions.

    Contributing

    We appreciate all contributions to improve MMDetection3D. Please refer to CONTRIBUTING.md for the contributing guideline.

    Acknowledgement

    MMDetection3D is an open source project that is contributed by researchers and engineers from various colleges and companies. We appreciate all the contributors 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 3D detectors.

    Citation

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

    @misc{mmdet3d2020,
        title={{MMDetection3D: OpenMMLab} next-generation platform for general {3D} object detection},
        author={MMDetection3D Contributors},
        howpublished = {\url{https://github.com/open-mmlab/mmdetection3d}},
        year={2020}
    }

    License

    This project is released under the Apache 2.0 license.

    Projects in OpenMMLab