OpenMMLab Semantic Segmentation Toolbox and Benchmark.
 
 
 
Go to file
sennnnn 095ed243c0 [Feature] Segformer backbone re-implementation (#594)
* [Feature]Segformer re-implementation

* Using act_cfg and norm_cfg to control activation and normalization

* Split this PR into several little PRs

* Fix lint error

* Remove SegFormerHead

* parameters init refactor

* 1. Refactor segformer backbone parameters init;

2. Remove rebundant functions and unit tests;

* Remove rebundant codes

* 1. Remove rebundant codes;

2. Modify module name;

* Refactor the backbone of segformer using mmcv.cnn.bricks.transformer.py

* Fix some code logic bugs.

* Add mit_convert.py to match pretrain keys of segformer.

* Resolve some comments.

* 1. Add some assert to ensure right params;

2. Support flexible peconv position;

* Add pe_index assert and fix unit test.

* 1. Add doc string for MixVisionTransformer;

2. Add some unit tests for MixVisionTransformer;

* Use hw_shape to pass shape of feature map.

* 1. Fix doc string of MixVisionTransformer;

2. Simplify MixFFN;

3. Modify H, W to hw_shape;

* Add more unit tests.

* Add doc string for shape convertion functions.

* Add some unit tests to improve code coverage.

* Fix Segformer backbone pretrain weights match bug.

* resolve the shape convertion functions doc string.

* Add pad_to_patch_size arg.

* Modify default value of pad_to_patch_size arg.
2021-07-19 09:40:40 -07:00
.dev [Enhance] Migrate to MMCV DepthwiseSeparableConv (#158) 2020-09-25 19:56:10 +08:00
.github fix typos 2021-06-22 19:07:55 +08:00
configs [Fix] fix patch_embed and pos_embed mismatch error (#685) 2021-07-19 09:27:10 -07:00
demo Add support for Pascal Context 59 classes (#459) 2021-04-19 21:20:54 -07:00
docker Add mmseg2torchserve tool (#552) 2021-07-05 21:11:47 +08:00
docs [Fix] fix url error in config docs (#680) 2021-07-08 19:14:56 +08:00
docs_zh-CN [Fix] fix url error in config docs (#680) 2021-07-08 19:14:56 +08:00
mmseg [Feature] Segformer backbone re-implementation (#594) 2021-07-19 09:40:40 -07:00
requirements [Feature] support mim (#549) 2021-05-31 15:07:24 -07:00
resources Add mmseg2torchserve tool (#552) 2021-07-05 21:11:47 +08:00
tests [Feature] Segformer backbone re-implementation (#594) 2021-07-19 09:40:40 -07:00
tools Add mmseg2torchserve tool (#552) 2021-07-05 21:11:47 +08:00
.gitignore Auto get version info and git hash (#55) 2020-08-11 19:23:35 +08:00
.pre-commit-config.yaml [Improvement] Add markdown linter and fix linting errors (#171) 2020-10-07 19:50:16 +08:00
.readthedocs.yml Add Colab Tutorial (#7) 2020-07-10 16:55:47 +08:00
LICENSE init commit 2020-07-10 02:39:01 +08:00
MANIFEST.in update metafiles (#664) 2021-07-02 14:12:23 +08:00
README.md Bump to v0.15.0 (#669) 2021-07-04 01:09:17 -07:00
README_zh-CN.md Bump to v0.15.0 (#669) 2021-07-04 01:09:17 -07:00
model-index.yml update metafiles (#661) 2021-07-01 22:31:00 +08:00
pytest.ini init commit 2020-07-10 02:39:01 +08:00
requirements.txt Add pypi deployment (#11) 2020-07-13 20:54:32 +08:00
setup.cfg Add mmseg2torchserve tool (#552) 2021-07-05 21:11:47 +08:00
setup.py [Feature] support mim (#549) 2021-05-31 15:07:24 -07:00

README.md


PyPI docs badge codecov license issue resolution open issues

Documentation: https://mmsegmentation.readthedocs.io/

English | 简体中文

Introduction

MMSegmentation is an open source semantic segmentation toolbox based on PyTorch. It is a part of the OpenMMLab project.

The master branch works with PyTorch 1.3+.

demo image

Major features

  • Unified Benchmark

    We provide a unified benchmark toolbox for various semantic segmentation methods.

  • Modular Design

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

  • Support of multiple methods out of box

    The toolbox directly supports popular and contemporary semantic segmentation frameworks, e.g. PSPNet, DeepLabV3, PSANet, DeepLabV3+, etc.

  • High efficiency

    The training speed is faster than or comparable to other codebases.

License

This project is released under the Apache 2.0 license.

Changelog

v0.15.0 was released in 07/04/2021. Please refer to changelog.md for details and release history.

Benchmark and model zoo

Results and models are available in the model zoo.

Supported backbones:

Supported methods:

Installation

Please refer to get_started.md for installation and dataset_prepare.md for dataset preparation.

Get Started

Please see train.md and inference.md for the basic usage of MMSegmentation. There are also tutorials for customizing dataset, designing data pipeline, customizing modules, and customizing runtime. We also provide many training tricks.

A Colab tutorial is also provided. You may preview the notebook here or directly run on Colab.

Citation

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

@misc{mmseg2020,
    title={{MMSegmentation}: OpenMMLab Semantic Segmentation Toolbox and Benchmark},
    author={MMSegmentation Contributors},
    howpublished = {\url{https://github.com/open-mmlab/mmsegmentation}},
    year={2020}
}

Contributing

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

Acknowledgement

MMSegmentation is an open source project that welcome any contribution and feedback. We wish that the toolbox and benchmark could serve the growing research community by providing a flexible as well as standardized toolkit to reimplement existing methods and develop their own new semantic segmentation methods.

Projects in OpenMMLab

  • MMCV: OpenMMLab foundational library for computer vision.
  • MMClassification: OpenMMLab image classification toolbox and benchmark.
  • MMDetection: OpenMMLab detection toolbox and benchmark.
  • MMDetection3D: OpenMMLab's next-generation platform for general 3D object detection.
  • MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark.
  • MMAction2: OpenMMLab's next-generation action understanding toolbox and benchmark.
  • MMTracking: OpenMMLab video perception toolbox and benchmark.
  • MMPose: OpenMMLab pose estimation toolbox and benchmark.
  • MMEditing: OpenMMLab image and video editing toolbox.
  • MMOCR: A Comprehensive Toolbox for Text Detection, Recognition and Understanding.
  • MMGeneration: A powerful toolkit for generative models.