2021-02-22 03:11:28 +08:00
|
|
|
|
<div align="center">
|
|
|
|
|
<img src="resources/mmseg-logo.png" width="600"/>
|
2022-01-18 11:42:11 +08:00
|
|
|
|
<div> </div>
|
|
|
|
|
<div align="center">
|
|
|
|
|
<b><font size="5">OpenMMLab 官网</font></b>
|
|
|
|
|
<sup>
|
|
|
|
|
<a href="https://openmmlab.com">
|
|
|
|
|
<i><font size="4">HOT</font></i>
|
|
|
|
|
</a>
|
|
|
|
|
</sup>
|
|
|
|
|
|
|
|
|
|
<b><font size="5">OpenMMLab 开放平台</font></b>
|
|
|
|
|
<sup>
|
|
|
|
|
<a href="https://platform.openmmlab.com">
|
|
|
|
|
<i><font size="4">TRY IT OUT</font></i>
|
|
|
|
|
</a>
|
|
|
|
|
</sup>
|
|
|
|
|
</div>
|
|
|
|
|
<div> </div>
|
2021-02-22 03:11:28 +08:00
|
|
|
|
</div>
|
|
|
|
|
<br />
|
|
|
|
|
|
2021-09-02 09:39:44 +08:00
|
|
|
|
[](https://pypi.org/project/mmsegmentation/)
|
2021-02-22 03:11:28 +08:00
|
|
|
|
[](https://pypi.org/project/mmsegmentation)
|
2022-09-01 00:03:51 +08:00
|
|
|
|
[](https://mmsegmentation.readthedocs.io/zh_CN/1.x/)
|
2021-02-22 03:11:28 +08:00
|
|
|
|
[](https://github.com/open-mmlab/mmsegmentation/actions)
|
|
|
|
|
[](https://codecov.io/gh/open-mmlab/mmsegmentation)
|
2022-09-01 00:03:51 +08:00
|
|
|
|
[](https://github.com/open-mmlab/mmsegmentation/blob/1.x/LICENSE)
|
2021-02-22 03:11:28 +08:00
|
|
|
|
[](https://github.com/open-mmlab/mmsegmentation/issues)
|
|
|
|
|
[](https://github.com/open-mmlab/mmsegmentation/issues)
|
|
|
|
|
|
2021-07-03 23:54:32 +08:00
|
|
|
|
文档: https://mmsegmentation.readthedocs.io/zh_CN/latest
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
|
|
|
|
[English](README.md) | 简体中文
|
|
|
|
|
|
|
|
|
|
## 简介
|
|
|
|
|
|
|
|
|
|
MMSegmentation 是一个基于 PyTorch 的语义分割开源工具箱。它是 OpenMMLab 项目的一部分。
|
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
1.x 分支代码目前支持 PyTorch 1.6 以上的版本。
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
### 主要特性
|
|
|
|
|
|
|
|
|
|
- **统一的基准平台**
|
|
|
|
|
|
|
|
|
|
我们将各种各样的语义分割算法集成到了一个统一的工具箱,进行基准测试。
|
|
|
|
|
|
|
|
|
|
- **模块化设计**
|
|
|
|
|
|
|
|
|
|
MMSegmentation 将分割框架解耦成不同的模块组件,通过组合不同的模块组件,用户可以便捷地构建自定义的分割模型。
|
|
|
|
|
|
|
|
|
|
- **丰富的即插即用的算法和模型**
|
|
|
|
|
|
|
|
|
|
MMSegmentation 支持了众多主流的和最新的检测算法,例如 PSPNet,DeepLabV3,PSANet,DeepLabV3+ 等.
|
|
|
|
|
|
|
|
|
|
- **速度快**
|
|
|
|
|
|
|
|
|
|
训练速度比其他语义分割代码库更快或者相当。
|
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
## 更新日志
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
最新版本 v1.0.0rc0 在 2022.8.31 发布。
|
|
|
|
|
如果想了解更多版本更新细节和历史信息,请阅读[更新日志](docs/en/notes/changelog.md)。
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
|
|
请参考[快速入门文档](docs/zh_cn/get_started.md#installation)进行安装,参考[数据集准备](docs/zh_cn/user_guides/2_dataset_prepare.md)处理数据。
|
|
|
|
|
|
|
|
|
|
## 快速入门
|
|
|
|
|
|
|
|
|
|
请参考[概述](docs/zh_cn/overview.md)对 MMSegmetation 进行初步了解
|
|
|
|
|
|
|
|
|
|
请参考[用户指南](https://mmsegmentation.readthedocs.io/zh_CN/1.x/user_guides/index.html)了解 mmseg 的基本使用,以及[进阶指南](https://mmsegmentation.readthedocs.io/zh_CN/1.x/advanced_guides/index.html)深入了解 mmseg 设计和代码实现。
|
|
|
|
|
|
|
|
|
|
同时,我们提供了 Colab 教程。你可以在[这里](demo/MMSegmentation_Tutorial.ipynb)浏览教程,或者直接在 Colab 上[运行](https://colab.research.google.com/github/open-mmlab/mmsegmentation/blob/1.x/demo/MMSegmentation_Tutorial.ipynb)。
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
若需要将0.x版本的代码迁移至新版,请参考[迁移文档](docs/zh_cn/migration.md)。
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
|
|
|
|
## 基准测试和模型库
|
|
|
|
|
|
2021-12-16 18:56:45 +08:00
|
|
|
|
测试结果和模型可以在[模型库](docs/zh_cn/model_zoo.md)中找到。
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
|
|
|
|
已支持的骨干网络:
|
|
|
|
|
|
2021-04-25 00:58:15 +08:00
|
|
|
|
- [x] ResNet (CVPR'2016)
|
|
|
|
|
- [x] ResNeXt (CVPR'2017)
|
2021-07-01 23:41:55 +08:00
|
|
|
|
- [x] [HRNet (CVPR'2019)](configs/hrnet)
|
|
|
|
|
- [x] [ResNeSt (ArXiv'2020)](configs/resnest)
|
|
|
|
|
- [x] [MobileNetV2 (CVPR'2018)](configs/mobilenet_v2)
|
|
|
|
|
- [x] [MobileNetV3 (ICCV'2019)](configs/mobilenet_v3)
|
|
|
|
|
- [x] [Vision Transformer (ICLR'2021)](configs/vit)
|
2021-12-09 19:18:10 +08:00
|
|
|
|
- [x] [Swin Transformer (ICCV'2021)](configs/swin)
|
|
|
|
|
- [x] [Twins (NeurIPS'2021)](configs/twins)
|
2022-03-30 15:25:10 +08:00
|
|
|
|
- [x] [BEiT (ICLR'2022)](configs/beit)
|
2022-04-28 21:54:57 +08:00
|
|
|
|
- [x] [ConvNeXt (CVPR'2022)](configs/convnext)
|
|
|
|
|
- [x] [MAE (CVPR'2022)](configs/mae)
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
|
|
|
|
已支持的算法:
|
|
|
|
|
|
2021-04-25 00:58:15 +08:00
|
|
|
|
- [x] [FCN (CVPR'2015/TPAMI'2017)](configs/fcn)
|
2021-12-02 15:54:39 +08:00
|
|
|
|
- [x] [ERFNet (T-ITS'2017)](configs/erfnet)
|
2021-07-01 23:41:55 +08:00
|
|
|
|
- [x] [UNet (MICCAI'2016/Nat. Methods'2019)](configs/unet)
|
2021-04-25 00:58:15 +08:00
|
|
|
|
- [x] [PSPNet (CVPR'2017)](configs/pspnet)
|
2021-07-01 23:41:55 +08:00
|
|
|
|
- [x] [DeepLabV3 (ArXiv'2017)](configs/deeplabv3)
|
2021-09-29 02:12:57 +08:00
|
|
|
|
- [x] [BiSeNetV1 (ECCV'2018)](configs/bisenetv1)
|
2021-04-25 00:58:15 +08:00
|
|
|
|
- [x] [PSANet (ECCV'2018)](configs/psanet)
|
|
|
|
|
- [x] [DeepLabV3+ (CVPR'2018)](configs/deeplabv3plus)
|
|
|
|
|
- [x] [UPerNet (ECCV'2018)](configs/upernet)
|
2021-10-01 00:31:57 +08:00
|
|
|
|
- [x] [ICNet (ECCV'2018)](configs/icnet)
|
2021-04-25 00:58:15 +08:00
|
|
|
|
- [x] [NonLocal Net (CVPR'2018)](configs/nonlocal_net)
|
|
|
|
|
- [x] [EncNet (CVPR'2018)](configs/encnet)
|
|
|
|
|
- [x] [Semantic FPN (CVPR'2019)](configs/sem_fpn)
|
|
|
|
|
- [x] [DANet (CVPR'2019)](configs/danet)
|
|
|
|
|
- [x] [APCNet (CVPR'2019)](configs/apcnet)
|
|
|
|
|
- [x] [EMANet (ICCV'2019)](configs/emanet)
|
|
|
|
|
- [x] [CCNet (ICCV'2019)](configs/ccnet)
|
|
|
|
|
- [x] [DMNet (ICCV'2019)](configs/dmnet)
|
|
|
|
|
- [x] [ANN (ICCV'2019)](configs/ann)
|
|
|
|
|
- [x] [GCNet (ICCVW'2019/TPAMI'2020)](configs/gcnet)
|
2021-10-01 02:41:24 +08:00
|
|
|
|
- [x] [FastFCN (ArXiv'2019)](configs/fastfcn)
|
2021-04-25 00:58:15 +08:00
|
|
|
|
- [x] [Fast-SCNN (ArXiv'2019)](configs/fastscnn)
|
2021-09-09 12:13:53 +08:00
|
|
|
|
- [x] [ISANet (ArXiv'2019/IJCV'2021)](configs/isanet)
|
2021-04-25 00:58:15 +08:00
|
|
|
|
- [x] [OCRNet (ECCV'2020)](configs/ocrnet)
|
|
|
|
|
- [x] [DNLNet (ECCV'2020)](configs/dnlnet)
|
|
|
|
|
- [x] [PointRend (CVPR'2020)](configs/point_rend)
|
|
|
|
|
- [x] [CGNet (TIP'2020)](configs/cgnet)
|
2021-10-13 11:35:58 +08:00
|
|
|
|
- [x] [BiSeNetV2 (IJCV'2021)](configs/bisenetv2)
|
2021-12-10 23:09:32 +08:00
|
|
|
|
- [x] [STDC (CVPR'2021)](configs/stdc)
|
2021-06-24 13:25:06 +08:00
|
|
|
|
- [x] [SETR (CVPR'2021)](configs/setr)
|
2021-09-28 16:25:37 +08:00
|
|
|
|
- [x] [DPT (ArXiv'2021)](configs/dpt)
|
2022-01-26 13:50:51 +08:00
|
|
|
|
- [x] [Segmenter (ICCV'2021)](configs/segmenter)
|
2021-12-09 19:18:10 +08:00
|
|
|
|
- [x] [SegFormer (NeurIPS'2021)](configs/segformer)
|
2022-03-10 20:05:37 +08:00
|
|
|
|
- [x] [K-Net (NeurIPS'2021)](configs/knet)
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2021-08-29 02:51:05 +08:00
|
|
|
|
已支持的数据集:
|
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
- [x] [Cityscapes](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#cityscapes)
|
|
|
|
|
- [x] [PASCAL VOC](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#pascal-voc)
|
|
|
|
|
- [x] [ADE20K](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#ade20k)
|
|
|
|
|
- [x] [Pascal Context](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#pascal-context)
|
|
|
|
|
- [x] [COCO-Stuff 10k](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#coco-stuff-10k)
|
|
|
|
|
- [x] [COCO-Stuff 164k](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#coco-stuff-164k)
|
|
|
|
|
- [x] [CHASE_DB1](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#chase-db1)
|
|
|
|
|
- [x] [DRIVE](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#drive)
|
|
|
|
|
- [x] [HRF](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#hrf)
|
|
|
|
|
- [x] [STARE](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#stare)
|
|
|
|
|
- [x] [Dark Zurich](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#dark-zurich)
|
|
|
|
|
- [x] [Nighttime Driving](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#nighttime-driving)
|
|
|
|
|
- [x] [LoveDA](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#loveda)
|
|
|
|
|
- [x] [Potsdam](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#isprs-potsdam)
|
|
|
|
|
- [x] [Vaihingen](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#isprs-vaihingen)
|
|
|
|
|
- [x] [iSAID](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/zh_cn/dataset_prepare.md#isaid)
|
|
|
|
|
|
|
|
|
|
如果遇到问题,请参考 [常见问题解答](docs/zh_cn/notes/faq.md)。
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
## 贡献指南
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
我们感谢所有的贡献者为改进和提升 MMSegmentation 所作出的努力。请参考[贡献指南](.github/CONTRIBUTING.md)来了解参与项目贡献的相关指引。
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
## 致谢
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
MMSegmentation 是一个由来自不同高校和企业的研发人员共同参与贡献的开源项目。我们感谢所有为项目提供算法复现和新功能支持的贡献者,以及提供宝贵反馈的用户。 我们希望这个工具箱和基准测试可以为社区提供灵活的代码工具,供用户复现已有算法并开发自己的新模型,从而不断为开源社区提供贡献。
|
2022-03-28 16:50:41 +08:00
|
|
|
|
|
2021-02-22 03:11:28 +08:00
|
|
|
|
## 引用
|
|
|
|
|
|
|
|
|
|
如果你觉得本项目对你的研究工作有所帮助,请参考如下 bibtex 引用 MMSegmentation。
|
|
|
|
|
|
2022-01-25 20:45:39 +08:00
|
|
|
|
```bibtex
|
2021-02-22 03:11:28 +08:00
|
|
|
|
@misc{mmseg2020,
|
|
|
|
|
title={{MMSegmentation}: OpenMMLab Semantic Segmentation Toolbox and Benchmark},
|
|
|
|
|
author={MMSegmentation Contributors},
|
|
|
|
|
howpublished = {\url{https://github.com/open-mmlab/mmsegmentation}},
|
|
|
|
|
year={2020}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
## 开源许可证
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
该项目采用 [Apache 2.0 开源许可证](LICENSE)。
|
2021-02-22 03:11:28 +08:00
|
|
|
|
|
|
|
|
|
## OpenMMLab 的其他项目
|
|
|
|
|
|
2022-09-01 00:03:51 +08:00
|
|
|
|
- [MMEngine](https://github.com/open-mmlab/mmengine): OpenMMLab 深度学习模型训练库
|
2021-02-22 03:11:28 +08:00
|
|
|
|
- [MMCV](https://github.com/open-mmlab/mmcv): OpenMMLab 计算机视觉基础库
|
2022-02-27 12:55:19 +08:00
|
|
|
|
- [MIM](https://github.com/open-mmlab/mim): MIM 是 OpenMMlab 项目、算法、模型的统一入口
|
2021-02-22 03:11:28 +08:00
|
|
|
|
- [MMClassification](https://github.com/open-mmlab/mmclassification): OpenMMLab 图像分类工具箱
|
|
|
|
|
- [MMDetection](https://github.com/open-mmlab/mmdetection): OpenMMLab 目标检测工具箱
|
|
|
|
|
- [MMDetection3D](https://github.com/open-mmlab/mmdetection3d): OpenMMLab 新一代通用 3D 目标检测平台
|
2022-02-27 12:55:19 +08:00
|
|
|
|
- [MMRotate](https://github.com/open-mmlab/mmrotate): OpenMMLab 旋转框检测工具箱与测试基准
|
2021-02-22 03:11:28 +08:00
|
|
|
|
- [MMSegmentation](https://github.com/open-mmlab/mmsegmentation): OpenMMLab 语义分割工具箱
|
2021-04-26 10:15:13 +08:00
|
|
|
|
- [MMOCR](https://github.com/open-mmlab/mmocr): OpenMMLab 全流程文字检测识别理解工具包
|
2022-02-27 12:55:19 +08:00
|
|
|
|
- [MMPose](https://github.com/open-mmlab/mmpose): OpenMMLab 姿态估计工具箱
|
2021-12-03 13:35:49 +08:00
|
|
|
|
- [MMHuman3D](https://github.com/open-mmlab/mmhuman3d): OpenMMLab 人体参数化模型工具箱与测试基准
|
2021-12-24 18:00:17 +08:00
|
|
|
|
- [MMSelfSup](https://github.com/open-mmlab/mmselfsup): OpenMMLab 自监督学习工具箱与测试基准
|
|
|
|
|
- [MMRazor](https://github.com/open-mmlab/mmrazor): OpenMMLab 模型压缩工具箱与测试基准
|
2022-02-27 12:55:19 +08:00
|
|
|
|
- [MMFewShot](https://github.com/open-mmlab/mmfewshot): OpenMMLab 少样本学习工具箱与测试基准
|
|
|
|
|
- [MMAction2](https://github.com/open-mmlab/mmaction2): OpenMMLab 新一代视频理解工具箱
|
|
|
|
|
- [MMTracking](https://github.com/open-mmlab/mmtracking): OpenMMLab 一体化视频目标感知平台
|
|
|
|
|
- [MMFlow](https://github.com/open-mmlab/mmflow): OpenMMLab 光流估计工具箱与测试基准
|
|
|
|
|
- [MMEditing](https://github.com/open-mmlab/mmediting): OpenMMLab 图像视频编辑工具箱
|
|
|
|
|
- [MMGeneration](https://github.com/open-mmlab/mmgeneration): OpenMMLab 图片视频生成模型工具箱
|
2021-12-30 17:27:59 +08:00
|
|
|
|
- [MMDeploy](https://github.com/open-mmlab/mmdeploy): OpenMMLab 模型部署框架
|
2021-04-26 10:15:13 +08:00
|
|
|
|
|
|
|
|
|
## 欢迎加入 OpenMMLab 社区
|
|
|
|
|
|
2022-07-05 15:58:48 +08:00
|
|
|
|
扫描下方的二维码可关注 OpenMMLab 团队的 [知乎官方账号](https://www.zhihu.com/people/openmmlab),加入 [OpenMMLab 团队](https://jq.qq.com/?_wv=1027&k=aCvMxdr3) 以及 [MMSegmentation](https://jq.qq.com/?_wv=1027&k=ukevz6Ie) 的 QQ 群。
|
2021-04-26 10:15:13 +08:00
|
|
|
|
|
2022-07-05 15:58:48 +08:00
|
|
|
|
<div align="center">
|
2021-12-16 18:56:45 +08:00
|
|
|
|
<img src="docs/zh_cn/imgs/zhihu_qrcode.jpg" height="400" /> <img src="docs/zh_cn/imgs/qq_group_qrcode.jpg" height="400" /> <img src="docs/zh_cn/imgs/seggroup_qrcode.jpg" height="400" />
|
2021-04-26 10:15:13 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
2022-07-05 15:58:48 +08:00
|
|
|
|
我们会在 OpenMMLab 社区为大家
|
2021-04-26 10:15:13 +08:00
|
|
|
|
|
|
|
|
|
- 📢 分享 AI 框架的前沿核心技术
|
|
|
|
|
- 💻 解读 PyTorch 常用模块源码
|
|
|
|
|
- 📰 发布 OpenMMLab 的相关新闻
|
|
|
|
|
- 🚀 介绍 OpenMMLab 开发的前沿算法
|
|
|
|
|
- 🏃 获取更高效的问题答疑和意见反馈
|
|
|
|
|
- 🔥 提供与各行各业开发者充分交流的平台
|
|
|
|
|
|
2022-07-05 15:58:48 +08:00
|
|
|
|
干货满满 📘,等你来撩 💗,OpenMMLab 社区期待您的加入 👬
|