MMDetection3D detects 3D objects in point clouds

MMDetection3D is OpenMMLab's toolbox for 3D object detection. In Supervisely it trains LiDAR detectors on the cuboids of your point cloud projects, serves them to pre-label new scans, and works next to MBPTrack and the 3D AI assistant in the 3D labeling tool.

Poster of the Train MMDetection3D app with cuboids in a LiDAR point cloud
Publisher
OpenMMLab
Labels
  • 3D cuboids in point clouds and episodes
Apps
Train, Serve, Apply, Track
Source
GitHub, Paper

From LiDAR points to cuboids

MMDetection3D is the open-source PyTorch toolbox OpenMMLab maintains for 3D perception. A 3D detector reads a point cloud and returns a 3D cuboid per object: its center, its length, width and height, and its heading. That is the label autonomous driving, robotics and mapping datasets are built from, and the Physical AI page describes how such LiDAR, radar and camera data is labeled in Supervisely.

The current Train MMDetection3D app lists CenterPoint (CVPR 2021) for outdoor detection on LiDAR data alone. The serve app covers outdoor and indoor 3D detection; monocular, multi-modal and 3D semantic segmentation models are not part of it.

Training on a point cloud project

Run the app from the Ecosystem or from the context menu of a point cloud or point cloud episodes project whose objects are labeled as Cuboid3D. The dashboard takes a pretrained MMDetection3D model, the train and validation split, the classes, the augmentations and the hyperparameters, charts the metrics while it trains and saves the artifacts to Team Files. It works with point clouds of any size and shape.

The README gives a demo run you can repeat on the Demo Lyft 3D dataset annotated project:

SettingValue
Modelcenterpoint_0075voxel_second_secfpn_dcn_circlenms_4x8_cyclic_20e_nus
ClassesCar
Train / val split100 / 25
Data preparationSliding window, X 108, Y 108, Z 15
Augmentations and hyperparametersNone; defaults

A trained model also runs outside the platform: the repository has a notebook for inference without the Supervisely SDK.

Pre-labeling scans with a served detector

  1. Start Serve MMDetection3D on a GPU agent. Pick an architecture and a pretrained model, or open the Custom weights tab and paste the Team Files path of a checkpoint from the checkpoints/data folder of your training run.
  2. Launch Apply 3D Detection to Point Cloud Project from the context menu of the point cloud project.
  3. Connect it to the served model, choose the model classes and run it. Predictions go to a new project; on point cloud episodes the app can also track the detected objects.

Annotators then open the result in the 3D point cloud annotation tool and correct cuboids instead of placing each one.

MBPTrack and the 3D AI assistant

MBPTrack (ICCV 2023) is a 3D single object tracker. Instead of the Siamese approach of earlier trackers, it keeps a memory of temporal and spatial context. An administrator usually starts it for the whole instance; otherwise run it on a GPU from the Neural Networks page, under Point Clouds, Detection & Tracking. In the point cloud episodes tool, draw a cuboid with the right heading, choose the start frame, the direction and the number of frames, and press Track. With nothing selected, every figure on the frame is tracked. The MBPTrack tutorial shows it step by step.

The 3D AI assistant is class-agnostic and needs no training on your data. Circle an object with the 3D Smart Tool to get a cuboid, segment the ground in one click, track cuboids through frames, or draw a mask on a camera image and turn it into a 3D object. With "Highlight object by click" on, the manual cuboid tool proposes the object under the cursor.

Getting LiDAR data in, and the older v1.x apps

Drives in KITTI 3D or nuScenes format import as point cloud projects or episodes; KITTI 3D to Supervisely JSON shows what the import keeps, and Supervisely JSON to KITTI 3D takes labels back out. Camera images and calibration come with them where the format has them, which is what sensor fusion labeling needs.

The earlier Train and Serve MMDetection3D v1.x apps remain in the catalog with two architectures, CenterPoint and PointPillars (CVPR 2019); their README trains Car, Pedestrian and Truck on the same Lyft demo. Start new work in the current apps.

Frequently asked questions.

Which label type does MMDetection3D train on?

Cuboids: the training app reads `Cuboid3D` objects from point cloud and point cloud episodes projects. The apps detect objects; point segmentation is not one of their tasks.

Do I need a trained model to label LiDAR faster?

No. The 3D AI assistant fits cuboids and segments the ground without training, and MBPTrack tracks cuboids you place. A trained MMDetection3D model adds pre-labels for whole projects once you have enough labeled scans.

What is MMDetection3D?

MMDetection3D is OpenMMLab's open-source toolbox for 3D object detection in LiDAR point clouds and other 3D data. In Supervisely it trains detectors on the cuboids of your point cloud projects and serves them to pre-label new scans.

Train and serve models on your own data.

Label a project in a free account, train a model on it from the browser and deploy it on your own GPU. Or book a demo to run Supervisely on your servers.