Changelog of v3.x¶
Support Semi-automatic annotation Base Label-Studio (#10039)
Support EfficientDet in projects (#9810)
File I/O migration and reconstruction (#9709)
Release DINO Swin-L 36e model (#9927)
Fix benchmark script (#9865)
Fix the crop method of PolygonMasks (#9858)
Fix Albu augmentation with the mask shape (#9918)
RTMDetInsprior generator device error (#9964)
img_shapein data pipeline (#9966)
Fix cityscapes import error (#9984)
solov2_r50_fpn_ms-3x_coco.pyconfig error (#10030)
Fix Conditional DETR AP and Log (#9889)
Fix accepting an unexpected argument local-rank in PyTorch 2.0 (#10050)
common/ms_3x_coco-instance.pyconfig error (#10056)
Fix compute flops error (#10051)
CocoOccludedSeparatedMetricto fix bug (#9969)
Unifying metafile.yml (#9849)
Added BoxInst r101 config (#9967)
Added config migration guide (#9960)
Added more social networking links (#10021)
Added RTMDet config introduce (#10042)
Added visualization docs (#9938, #10058)
Refined data_prepare docs (#9935)
Added support for setting the cache_size_limit parameter of dynamo in PyTorch 2.0 (#10054)
Updated coco_metric.py (#10033)
Update type hint (#10040)
A total of 19 developers contributed to this release.
Thanks @IRONICBo, @vansin, @RangeKing, @Ghlerrix, @okotaku, @JosonChan1998, @zgzhengSE, @bobo0810, @yechenzh, @Zheng-LinXiao, @LYMDLUT, @yarkable, @xiejiajiannb, @chhluo, @BIGWangYuDong, @RangiLy, @zwhus, @hhaAndroid, @ZwwWayne
Support Boxinst, Objects365 Dataset, and Separated and Occluded COCO metric
Support ConvNeXt-V2, DiffusionDet, and inference of EfficientDet and Detic in
Refactor DETR series and support Conditional-DETR, DAB-DETR, and DINO
DetInferencerfor inference, Test Time Augmentation, and automatically importing modules from registry
Support RTMDet-Ins ONNXRuntime and TensorRT deployment
Support calculating FLOPs of detectors
Support Boxinst (#9525)
Support Objects365 Dataset (#9600)
Support ConvNeXt-V2 in
Support DiffusionDet in
Support Detic inference in
Support EfficientDet inference in
Support Separated and Occluded COCO metric (#9710)
Support auto import modules from registry (#9143)
Refactor DETR series and support Conditional-DETR, DAB-DETR and DINO (#9646)
DetInferencerfor inference (#9561)
Support Test Time Augmentation (#9452)
Support calculating FLOPs of detectors (#9777)
Fix deprecating old type alias due to new version of numpy (#9625, #9537)
Fix VOC metrics (#9784)
Fix the wrong link of RTMDet-x log (#9549)
Fix RTMDet link in README (#9575)
Fix MMDet get flops error (#9589)
use_depthwisein RTMDet (#9624)
albumentationsaugmentation post process with masks (#9551)
Fix DETR series Unit Test (#9647)
Fix amp pooling overflow (#9670)
Fix docstring about noise in DINO (#9747)
Fix potential bug in
Replace NumPy transpose with PyTorch permute to speed-up (#9762)
Add RTMDet-Ins deployment guide (#9823)
Update RTMDet config and README (#9603)
Replace the models used in the tutorial document with RTMDet (#9843)
Adjust the minimum supported python version to 3.7 (#9602)
Support modifying palette through configuration (#9445)
Update README document in
Change MMCV minimum version to
Add Chinese version of single_stage_as_rpn.md and test_results_submission.md (#9434)
Add OpenDataLab download link (#9605, #9738)
Add type hints of several layers (#9346)
Add typehint for
Add dockerfile (#9659)
Add twitter, discord, medium, and youtube link (#9775)
Prepare for merging refactor-detr (#9656)
Add metafile to ConditionalDETR, DABDETR and DINO (#9715)
Support to modify
Comment repeater visualizer register (#9740)
Update user guide:
@NoFish-528 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9346
@137208 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9434
@lyviva made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9625
@zwhus made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9589
@zylo117 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9670
@chg0901 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9740
@DanShouzhu made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9578
A total of 27 developers contributed to this release.
Thanks @JosonChan1998, @RangeKing, @NoFish-528, @likyoo, @Xiangxu-0103, @137208, @PeterH0323, @tianleiSHI, @wufan-tb, @lyviva, @zwhus, @jshilong, @Li-Qingyun, @sanbuphy, @zylo117, @triple-Mu, @KeiChiTse, @LYMDLUT, @nijkah, @chg0901, @DanShouzhu, @zytx121, @vansin, @BIGWangYuDong, @hhaAndroid, @RangiLyu, @ZwwWayne
Support RTMDet instance segmentation models. The technical report of RTMDet is on arxiv
Support SSHContextModule in paper SSH: Single Stage Headless Face Detector.
Support RTMDet instance segmentation models and improve RTMDet test config (#9494)
Support SSHContextModule in paper SSH: Single Stage Headless Face Detector (#8953)
Release CondInst pre-trained model (#9406)
Fix CondInst predict error when
batch_sizeis greater than 1 in inference (#9400)
Fix the bug of visualization when the dtype of the pipeline output image is not uint8 in browse dataset (#9401)
analyze_logs.pyto plot mAP and calculate train time correctly (#9409)
Fix backward inplace error with
Fix config import links in model converters (#9441)
DeformableDETRHeadobject has no attribute
Fix the logic of pseudo bboxes predicted by teacher model in SemiBaseDetector (#9414)
Fix demo API in instance segmentation tutorial (#9226)
Fix the error that Readthedocs API cannot be displayed (#9510)
Fix the error when there are no prediction results and support visualize the groundtruth of TTA (#9840)
Make sure the pipeline argument shape is in
(width, height)order (#9324)
Refactor dataset metainfo to lowercase (#9469)
Add PyTorch 1.13 checking in CI (#9478)
QualityFocalLossto allow different kinds of targets (#9481)
Clip saturation value to valid range
Only keep meta and state_dict when publishing model (#9356)
Add segm evaluator in ms-poly_3x_coco_instance config (#9524)
Update deployment guide (#9527)
Update the zh_cn user_guides of
Add type hints for
Add type hints of several losses (#9397)
Add type hints and update docstring for task modules (#9468)
@lihua199710 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9388
@twmht made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9450
@tianleiSHI made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9453
@kitecats made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9481
@QJC123654 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9468
A total of 20 developers contributed to this release.
Thanks @liuyanyi, @RangeKing, @lihua199710, @MambaWong, @sanbuphy, @Xiangxu-0103, @twmht, @JunyaoHu, @Chan-Sun, @tianleiSHI, @zytx121, @kitecats, @QJC123654, @JosonChan1998, @lvhan028, @Czm369, @BIGWangYuDong, @RangiLyu, @hhaAndroid, @ZwwWayne
projects/folder, which will be a place for some experimental models/features.
Support SparseInst in
Support CondInst (#9223)
projects/folder, which will be a place for some experimental models/features (#9341)
Support SparseInst in
pixel_decoder_typediscrimination in MaskFormer Head. (#9176)
Fix wrong padding value in cached MixUp (#9259)
Fix resume arg conflict (#9287)
Fix the configs of Faster R-CNN with caffe backbone (#9319)
Fix torchserve and update related documentation (#9343)
Fix bbox refine bug with sigmooid activation (#9538)
Update the docs of GIoU Loss in README (#8810)
Handle dataset wrapper in
Update the type of
countsin COCO’s compressed RLE (#9274)
Support saving config file in
Update docs about video inference (#9305)
Update guide about model deployment (#9344)
Fix doc typos of useful tools (#9177)
Allow to resume from specific checkpoint in CLI (#9284)
Update FAQ about windows installation issues of pycocotools (#9292)
@Daa98 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9274
@lvhan028 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9344
A total of 12 developers contributed to this release.
Thanks @sanbuphy, @Czm369, @Daa98, @jbwang1997, @BIGWangYuDong, @JosonChan1998, @lvhan028, @RunningLeon, @RangiLyu, @Daa98, @ZwwWayne, @hhaAndroid
Upgrade the minimum version requirement of MMEngine to 0.3.0 to use
ConcatDataset for training VOC datasets (#9058)
XMLDatasetimage size error (#9216)
Fix bugs of empty_instances when predicting without nms in roi_head (#9015)
Fix the config file of DETR (#9158)
Fix SOLOv2 cannot dealing with empty gt image (#9192)
Fix inference demo (#9153)
Fix dumping results issue in test scripts. (#9241)
Fix configs of training coco subsets on MMDet 3.x (#9225)
Fix corner2hbox of HorizontalBoxes for supporting empty bboxes (#9140)
Refactor Fast R-CNN (#9132)
Clean requirements of mmcv-full due to SyncBN (#9207)
Support training detection models in detectron2 (#8672)
Make scipy as a default dependency in runtime (#9187)
Update eval_metric (#9062)
@Wwupup made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9086
@sanbuphy made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9153
@cxiang26 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9158
@JosonChan1998 made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9225
A total of 13 developers contributed to this release.
Thanks @wanghonglie, @Wwupup, @sanbuphy, @BIGWangYuDong, @liuyanyi, @cxiang26, @jbwang1997, @ZwwWayne, @yuyoujiang, @RangiLyu, @hhaAndroid, @JosonChan1998, @Czm369
Support imagenet pre-training for RTMDet’s backbone
Support imagenet pre-training for RTMDet’s backbone (#8887)
CrowdHumanDatasetand Metric (#8430)
FixShapeResizeto support resize of fixed shape (#8665)
ConcatDatasetImport Error (#8909)
readthedocbuild failed (#8980, #8963)
Fix bitmap mask translate when
out_shapeis different (#8993)
Fix inconsistency in
Conv2dweight channels (#8948)
Fix bugs when plotting loss curve by analyze_logs.py (#8944)
Fix type change of labels in
Fix some docs and types error (#8818)
Update memory occupation of
RTMDetin metafile (#9098)
Fix wrong arguments of
OpenImageMetricsin the config (#9061)
Refactor standard roi head with
Support mask concatenation in
Update PyTorch and dependencies’ version in dockerfile (#8845)
Make compatible with
Support logging coco metric copypaste (#9012)
Support jittering the color of different instances of the same class (#8988)
Add assertion for missing key in
@Chan-Sun made their first contribution in https://github.com/open-mmlab/mmdetection/pull/8909
@MambaWong made their first contribution in https://github.com/open-mmlab/mmdetection/pull/8913
@yuyoujiang made their first contribution in https://github.com/open-mmlab/mmdetection/pull/8437
@sltlls made their first contribution in https://github.com/open-mmlab/mmdetection/pull/8944
@Nioolek made their first contribution in https://github.com/open-mmlab/mmdetection/pull/8845
@wufan-tb made their first contribution in https://github.com/open-mmlab/mmdetection/pull/9061
A total of 13 developers contributed to this release.
Thanks @RangiLyu, @jbwang1997, @wanghonglie, @Chan-Sun, @RangeKing, @chhluo, @MambaWong, @yuyoujiang, @hhaAndroid, @sltlls, @Nioolek, @ZwwWayne, @wufan-tb
Release a high-precision, low-latency single-stage object detector RTMDet.
Fix UT to be compatible with PyTorch 1.6 (#8707)
NumClassCheckHookbug when model is wrapped (#8794)
Update the right URL of R-50-FPN with BoundedIoULoss (#8805)
Fix potential bug of indices in RandAugment (#8826)
Fix some types and links (#8839, #8820, #8793, #8868)
Fix incorrect background fill values in
Refactored anchor head and base head with
Add list to dict keys to avoid modify loss dict (#8828)
loading.py(#8430, #8402, #8784)
Support dump results in
Check empty predictions in
A total of 16 developers contributed to this release.
Thanks @ZwwWayne, @jbwang1997, @Czm369, @ice-tong, @Zheng-LinXiao, @chhluo, @RangiLyu, @liuyanyi, @wanghonglie, @levan92, @JiayuXu0, @nye0, @hhaAndroid, @xin-li-67, @shuxp, @zytx121
We are excited to announce the release of MMDetection 3.0.0rc0. MMDet 3.0.0rc0 is the first version of MMDetection 3.x, a part of the OpenMMLab 2.0 projects. Built upon the new training engine, MMDet 3.x unifies the interfaces of the dataset, models, evaluation, and visualization with faster training and testing speed. It also provides a general semi-supervised object detection framework and strong baselines.
New engine. MMDet 3.x is based on MMEngine, which provides a universal and powerful runner that allows more flexible customizations and significantly simplifies the entry points of high-level interfaces.
Unified interfaces. As a part of the OpenMMLab 2.0 projects, MMDet 3.x unifies and refactors the interfaces and internal logic of training, testing, datasets, models, evaluation, and visualization. All the OpenMMLab 2.0 projects share the same design in those interfaces and logic to allow the emergence of multi-task/modality algorithms.
Faster speed. We optimize the training and inference speed for common models and configurations, achieving a faster or similar speed than Detection2. Model details of benchmark will be updated in this note.
General semi-supervised object detection. Benefitting from the unified interfaces, we support a general semi-supervised learning framework that works with all the object detectors supported in MMDet 3.x. Please refer to semi-supervised object detection for details.
Strong baselines. We release strong baselines of many popular models to enable fair comparisons among state-of-the-art models.
New features and algorithms:
Enable all the single-stage detectors to serve as region proposal networks
More documentation and tutorials. We add a bunch of documentation and tutorials to help users get started more smoothly. Read it here.
MMDet 3.x has undergone significant changes for better design, higher efficiency, more flexibility, and more unified interfaces. Besides the changes in API, we briefly list the major breaking changes in this section. We will update the migration guide to provide complete details and migration instructions. Users can also refer to the API doc for more details.
MMDet 3.x runs on PyTorch>=1.6. We have deprecated the support of PyTorch 1.5 to embrace mixed precision training and other new features since PyTorch 1.6. Some models can still run on PyTorch 1.5, but the full functionality of MMDet 3.x is not guaranteed.
MMDet 3.x relies on MMEngine to run. MMEngine is a new foundational library for training deep learning models of OpenMMLab and is the core dependency of OpenMMLab 2.0 projects. The dependencies of file IO and training are migrated from MMCV 1.x to MMEngine.
MMDet 3.x relies on MMCV>=2.0.0rc0. Although MMCV no longer maintains the training functionalities since 2.0.0rc0, MMDet 3.x relies on the data transforms, CUDA operators, and image processing interfaces in MMCV. Note that the package
mmcvis the version that provides pre-built CUDA operators and
mmcv-litedoes not since MMCV 2.0.0rc0, while
mmcv-fullhas been deprecated since 2.0.0rc0.
Training and testing¶
MMDet 3.x uses Runner in MMEngine rather than that in MMCV. The new Runner implements and unifies the building logic of the dataset, model, evaluation, and visualizer. Therefore, MMDet 3.x no longer maintains the building logic of those modules in
tools/train.py. Those codes have been migrated into MMEngine. Please refer to the migration guide of Runner in MMEngine for more details.
The Runner in MMEngine also supports testing and validation. The testing scripts are also simplified, which has similar logic to that in training scripts to build the runner.
The execution points of hooks in the new Runner have been enriched to allow more flexible customization. Please refer to the migration guide of Hook in MMEngine for more details.
Learning rate and momentum schedules have been migrated from Hook to Parameter Scheduler in MMEngine. Please refer to the migration guide of Parameter Scheduler in MMEngine for more details.
The Runner in MMEngine uses a different config structure to ease the understanding of the components in the runner. Users can read the config example of MMDet 3.x or refer to the migration guide in MMEngine for migration details.
The file names of configs and models are also refactored to follow the new rules unified across OpenMMLab 2.0 projects. The names of checkpoints are not updated for now as there is no BC-breaking of model weights between MMDet 3.x and 2.x. We will progressively replace all the model weights with those trained in MMDet 3.x. Please refer to the user guides of config for more details.
The Dataset classes implemented in MMDet 3.x all inherit from the
BaseDetDataset, which inherits from the BaseDataset in MMEngine. In addition to the changes in interfaces, there are several changes in Dataset in MMDet 3.x.
All the datasets support serializing the internal data list to reduce the memory when multiple workers are built for data loading.
The internal data structure in the dataset is changed to be self-contained (without losing information like class names in MMDet 2.x) while keeping simplicity.
The evaluation functionality of each dataset has been removed from the dataset so that some specific evaluation metrics like COCO AP can be used to evaluate the prediction on other datasets.
The data transforms in MMDet 3.x all inherits from
BaseTransform in MMCV>=2.0.0rc0, which defines a new convention in OpenMMLab 2.0 projects.
Besides the interface changes, there are several changes listed below:
The functionality of some data transforms (e.g.,
Resize) are decomposed into several transforms to simplify and clarify the usages.
The format of data dict processed by each data transform is changed according to the new data structure of dataset.
Some inefficient data transforms (e.g., normalization and padding) are moved into data preprocessor of model to improve data loading and training speed.
The same data transforms in different OpenMMLab 2.0 libraries have the same augmentation implementation and the logic given the same arguments, i.e.,
Resizein MMDet 3.x and MMSeg 1.x will resize the image in the exact same manner given the same arguments.
The models in MMDet 3.x all inherit from
BaseModel in MMEngine, which defines a new convention of models in OpenMMLab 2.0 projects.
Users can refer to the tutorial of the model in MMengine for more details.
Accordingly, there are several changes as the following:
The model interfaces, including the input and output formats, are significantly simplified and unified following the new convention in MMDet 3.x. Specifically, all the input data in training and testing are packed into
inputscontains model inputs like a list of image tensors, and
data_samplescontains other information of the current data sample such as ground truths, region proposals, and model predictions. In this way, different tasks in MMDet 3.x can share the same input arguments, which makes the models more general and suitable for multi-task learning and some flexible training paradigms like semi-supervised learning.
The model has a data preprocessor module, which is used to pre-process the input data of the model. In MMDet 3.x, the data preprocessor usually does the necessary steps to form the input images into a batch, such as padding. It can also serve as a place for some special data augmentations or more efficient data transformations like normalization.
The internal logic of the model has been changed. In MMdet 2.x, model uses
aug_testto deal with different model forward logics. In MMDet 3.x and OpenMMLab 2.0, the forward function has three modes: ‘loss’, ‘predict’, and ‘tensor’ for training, inference, and tracing or other purposes, respectively. The forward function calls
self._forwardgiven the modes ‘loss’, ‘predict’, and ‘tensor’, respectively.
The evaluation in MMDet 2.x strictly binds with the dataset. In contrast, MMDet 3.x decomposes the evaluation from dataset so that all the detection datasets can evaluate with COCO AP and other metrics implemented in MMDet 3.x. MMDet 3.x mainly implements corresponding metrics for each dataset, which are manipulated by Evaluator to complete the evaluation. Users can build an evaluator in MMDet 3.x to conduct offline evaluation, i.e., evaluate predictions that may not produce in MMDet 3.x with the dataset as long as the dataset and the prediction follow the dataset conventions. More details can be found in the tutorial in mmengine.
The functions of visualization in MMDet 2.x are removed. Instead, in OpenMMLab 2.0 projects, we use Visualizer to visualize data. MMDet 3.x implements
DetLocalVisualizer to allow visualization of ground truths, model predictions, feature maps, etc., at any place. It also supports sending the visualization data to any external visualization backends such as Tensorboard.
Optimized training and testing speed of FCOS, RetinaNet, Faster R-CNN, Mask R-CNN, and Cascade R-CNN. The training speed of those models with some common training strategies is also optimized, including those with synchronized batch normalization and mixed precision training.
Support mixed precision training of all the models. However, some models may get undesirable performance due to some numerical issues. We will update the documentation and list the results (accuracy of failure) of mixed precision training.
Release strong baselines of some popular object detectors. Their accuracy and pre-trained checkpoints will be released.
DeepFashion dataset: the config and results have been updated.
Support a general semi-supervised learning framework that works with all the object detectors supported in MMDet 3.x. Please refer to semi-supervised object detection for details.
Enable all the single-stage detectors to serve as region proposal networks. We give an example of using FCOS as RPN.
Support a semi-supervised object detection algorithm: SoftTeacher.
Support the updated CenterNet.
Support data structures
BaseBoxesto encapsulate different kinds of bounding boxes. We are migrating to use data structures of boxes to replace the use of pure tensor boxes. This will unify the usages of different kinds of bounding boxes in MMDet 3.x and MMRotate 1.x to simplify the implementation and reduce redundant codes.
We list several planned changes of MMDet 3.0.0rc0 so that the community could more comprehensively know the progress of MMDet 3.x. Feel free to create a PR, issue, or discussion if you are interested, have any suggestions and feedback, or want to participate.
Test-time augmentation: which is supported in MMDet 2.x, is not implemented in this version due to the limited time slot. We will support it in the following releases with a new and simplified design.
Inference interfaces: unified inference interfaces will be supported in the future to ease the use of released models.
Interfaces of useful tools that can be used in Jupyter Notebook or Colab: more useful tools that are implemented in the
toolsdirectory will have their python interfaces so that they can be used in Jupyter Notebook, Colab, and downstream libraries.
Documentation: we will add more design docs, tutorials, and migration guidance so that the community can deep dive into our new design, participate the future development, and smoothly migrate downstream libraries to MMDet 3.x.
Wandb visualization: MMDet 2.x supports data visualization since v2.25.0, which has not been migrated to MMDet 3.x for now. Since WandB provides strong visualization and experiment management capabilities, a
DetWandBVisualizerand maybe a hook are planned to fully migrate those functionalities from MMDet 2.x.
Full support of WiderFace dataset (#8508) and Fast R-CNN: we are verifying their functionalities and will fix related issues soon.
Migrate DETR-series algorithms (#8655, #8533) and YOLOv3 on IPU (#8552) from MMDet 2.x.
A total of 11 developers contributed to this release. Thanks @shuxp, @wanghonglie, @Czm369, @BIGWangYuDong, @zytx121, @jbwang1997, @chhluo, @jshilong, @RangiLyu, @hhaAndroid, @ZwwWayne