OpenMMLab Semantic Segmentation Toolbox and Benchmark.
 
 
 
Go to file
Rockey 1b41989934
[Feature] Add focal loss (#1024)
* [Feature] add focal loss

* fix the bug of 'non' reduction type

* refine the implementation

* add class_weight and ignore_index; support different alpha values for different classes

* fixed some bugs

* fix bugs

* add comments

* modify test

* Update mmseg/models/losses/focal_loss.py

Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>

* update test_focal_loss.py

* modified the implementation

* Update mmseg/models/losses/focal_loss.py

Co-authored-by: Jerry Jiarui XU <xvjiarui0826@gmail.com>

* update focal_loss.py

Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>
Co-authored-by: Jerry Jiarui XU <xvjiarui0826@gmail.com>
2021-12-03 00:18:40 -08:00
.circleci [Enhancement] CircleCI Setup (#1086) 2021-11-30 00:25:35 -08:00
.dev change (#1083) 2021-11-30 20:54:25 +08:00
.github [Enhancement] CircleCI Setup (#1086) 2021-11-30 00:25:35 -08:00
configs [Feature] Support Real-time model ERFNet (#960) 2021-12-01 23:54:39 -08:00
demo replace the unavailable pspnet model download address with the update… (#934) 2021-10-03 23:55:25 +08:00
docker [Fix] Convert SyncBN to BN when training on DP (#772) 2021-09-15 09:39:37 -07:00
docs [Doc] add MMHuman3D link #1101 2021-12-02 21:35:49 -08:00
docs_zh-CN [Doc] add MMHuman3D link #1101 2021-12-02 21:35:49 -08:00
mmseg [Feature] Add focal loss (#1024) 2021-12-03 00:18:40 -08:00
requirements [Docs] Improve docs style (#879) 2021-09-16 08:23:50 -07:00
resources Add mmseg2torchserve tool (#552) 2021-07-05 21:11:47 +08:00
tests [Feature] Add focal loss (#1024) 2021-12-03 00:18:40 -08:00
tools [Enchance] Set a random seed when the user does not set a seed. (#1039) 2021-11-26 10:55:15 +08:00
.gitignore [Feature] support mim (#717) 2021-07-27 15:43:32 +08:00
.pre-commit-config.yaml [Enhancement] CircleCI Setup (#1086) 2021-11-30 00:25:35 -08:00
.readthedocs.yml add more format for readthedocs (#742) 2021-07-31 17:05:05 +08:00
CITATION.cff Add MMSeg citation (#825) 2021-09-01 18:38:58 -07:00
LICENSE init commit 2020-07-10 02:39:01 +08:00
MANIFEST.in [Feature] support mim (#717) 2021-07-27 15:43:32 +08:00
README.md [Doc] add MMHuman3D link #1101 2021-12-02 21:35:49 -08:00
README_zh-CN.md [Doc] add MMHuman3D link #1101 2021-12-02 21:35:49 -08:00
model-index.yml [Feature] Support Real-time model ERFNet (#960) 2021-12-01 23:54:39 -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 [Enhancement] Add codespell pre-commit hook and fix typos (#920) 2021-10-13 06:21:17 -07:00
setup.py 0~ (#1090) 2021-11-30 23:03:50 +08:00

README.md


PyPI - Python Version 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.5+.

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.19.0 was released in 11/02/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:

Supported datasets:

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 for better training and useful tools for deployment.

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.
  • MIM: MIM Installs OpenMMLab Packages.
  • MMFlow: OpenMMLab optical flow toolbox and benchmark.
  • MMFewShot: OpenMMLab few shot learning toolbox and benchmark.
  • MMHuman3D: OpenMMLab Human Pose and Shape Estimation Toolbox and Benchmark.