Awesome
DeepLab: Deep Labelling for Semantic Image Segmentation
DeepLab is a state-of-art deep learning model for semantic image segmentation, where the goal is to assign semantic labels (e.g., person, dog, cat and so on) to every pixel in the input image. Current implementation includes the following features:
-
DeepLabv1 [1]: We use atrous convolution to explicitly control the resolution at which feature responses are computed within Deep Convolutional Neural Networks.
-
DeepLabv2 [2]: We use atrous spatial pyramid pooling (ASPP) to robustly segment objects at multiple scales with filters at multiple sampling rates and effective fields-of-views.
-
DeepLabv3 [3]: We augment the ASPP module with image-level feature [5, 6] to capture longer range information. We also include batch normalization [7] parameters to facilitate the training. In particular, we applying atrous convolution to extract output features at different output strides during training and evaluation, which efficiently enables training BN at output stride = 16 and attains a high performance at output stride = 8 during evaluation.
-
DeepLabv3+ [4]: We extend DeepLabv3 to include a simple yet effective decoder module to refine the segmentation results especially along object boundaries. Furthermore, in this encoder-decoder structure one can arbitrarily control the resolution of extracted encoder features by atrous convolution to trade-off precision and runtime.
If you find the code useful for your research, please consider citing our latest works:
- DeepLabv3+:
@article{deeplabv3plus2018,
title={Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation},
author={Liang-Chieh Chen and Yukun Zhu and George Papandreou and Florian Schroff and Hartwig Adam},
journal={arXiv:1802.02611},
year={2018}
}
- MobileNetv2:
@inproceedings{mobilenetv22018,
title={Inverted Residuals and Linear Bottlenecks: Mobile Networks for Classification, Detection and Segmentation},
author={Mark Sandler and Andrew Howard and Menglong Zhu and Andrey Zhmoginov and Liang-Chieh Chen},
booktitle={CVPR},
year={2018}
}
In the current implementation, we support adopting the following network backbones:
-
MobileNetv2 [8]: A fast network structure designed for mobile devices.
-
Xception [9, 10]: A powerful network structure intended for server-side deployment.
This directory contains our TensorFlow [11] implementation. We provide codes allowing users to train the model, evaluate results in terms of mIOU (mean intersection-over-union), and visualize segmentation results. We use PASCAL VOC 2012 [12] and Cityscapes [13] semantic segmentation benchmarks as an example in the code.
Some segmentation results on Flickr images:
<p align="center"> <img src="g3doc/img/vis1.png" width=600></br> <img src="g3doc/img/vis2.png" width=600></br> <img src="g3doc/img/vis3.png" width=600></br> </p>Contacts (Maintainers)
- Liang-Chieh Chen, github: aquariusjay
- YuKun Zhu, github: yknzhu
- George Papandreou, github: gpapan
Tables of Contents
Demo:
- <a href='https://colab.sandbox.google.com/github/tensorflow/models/blob/master/research/deeplab/deeplab_demo.ipynb'>Colab notebook for off-the-shelf inference.</a><br>
Running:
- <a href='g3doc/installation.md'>Installation.</a><br>
- <a href='g3doc/pascal.md'>Running DeepLab on PASCAL VOC 2012 semantic segmentation dataset.</a><br>
- <a href='g3doc/cityscapes.md'>Running DeepLab on Cityscapes semantic segmentation dataset.</a><br>
Models:
- <a href='g3doc/model_zoo.md'>Checkpoints and frozen inference graphs.</a><br>
Misc:
- Please check <a href='g3doc/faq.md'>FAQ</a> if you have some questions before reporting the issues.<br>
Getting Help
To get help with issues you may encounter while using the DeepLab Tensorflow implementation, create a new question on StackOverflow with the tags "tensorflow" and "deeplab".
Please report bugs (i.e., broken code, not usage questions) to the tensorflow/models GitHub issue tracker, prefixing the issue name with "deeplab".
References
-
Semantic Image Segmentation with Deep Convolutional Nets and Fully Connected CRFs<br /> Liang-Chieh Chen+, George Papandreou+, Iasonas Kokkinos, Kevin Murphy, Alan L. Yuille (+ equal contribution). <br /> [link]. In ICLR, 2015.
-
DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs <br /> Liang-Chieh Chen+, George Papandreou+, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille (+ equal contribution). <br /> [link]. TPAMI 2017.
-
Rethinking Atrous Convolution for Semantic Image Segmentation<br /> Liang-Chieh Chen, George Papandreou, Florian Schroff, Hartwig Adam.<br /> [link]. arXiv: 1706.05587, 2017.
-
Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation<br /> Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, Hartwig Adam. arXiv: 1802.02611.<br /> [link]. arXiv: 1802.02611, 2018.
-
ParseNet: Looking Wider to See Better<br /> Wei Liu, Andrew Rabinovich, Alexander C Berg<br /> [link]. arXiv:1506.04579, 2015.
-
Pyramid Scene Parsing Network<br /> Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, Jiaya Jia<br /> [link]. In CVPR, 2017.
-
Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate shift<br /> Sergey Ioffe, Christian Szegedy <br /> [link]. In ICML, 2015.
-
Inverted Residuals and Linear Bottlenecks: Mobile Networks for Classification, Detection and Segmentation<br /> Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, Liang-Chieh Chen<br /> [link]. arXiv:1801.04381, 2018.
-
Xception: Deep Learning with Depthwise Separable Convolutions<br /> François Chollet<br /> [link]. In CVPR, 2017.
-
Deformable Convolutional Networks -- COCO Detection and Segmentation Challenge 2017 Entry<br /> Haozhi Qi, Zheng Zhang, Bin Xiao, Han Hu, Bowen Cheng, Yichen Wei, Jifeng Dai<br /> [link]. ICCV COCO Challenge Workshop, 2017.
-
Tensorflow: Large-Scale Machine Learning on Heterogeneous Distributed Systems<br /> M. Abadi, A. Agarwal, et al. <br /> [link]. arXiv:1603.04467, 2016.
-
The Pascal Visual Object Classes Challenge – A Retrospective, <br /> Mark Everingham, S. M. Ali Eslami, Luc Van Gool, Christopher K. I. Williams, John Winn, and Andrew Zisserma. <br /> [link]. IJCV, 2014.
-
The Cityscapes Dataset for Semantic Urban Scene Understanding<br /> Cordts, Marius, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, Bernt Schiele. <br /> [link]. In CVPR, 2016.