jfzhang95/pytorch-deeplab-xception
jfzhang95/pytorch-deeplab-xception has 2,997 GitHub stars and 766 forks. GitHot measured -1 in 7 days and -1 in 15 days. Last checked 2026-11-11 07:34 UTC. Last push 2024-08-04.
DeepLab v3+ model in PyTorch. Support different backbones.
Measured star growth
- in 24h
- Update delayed
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalpytorch-deeplab-xception
Update on 2018/12/06. Provide model trained on VOC and SBD datasets.
Update on 2018/11/24. Release newest version code, which fix some previous issues and also add support for new backbones and multi-gpu training. For previous code, please see in previous branch
TODO
- Support different backbones
- Support VOC, SBD, Cityscapes and COCO datasets
- Multi-GPU training
| Backbone | train/eval os | mIoU in val | Pretrained Model |
|---|---|---|---|
| ResNet | 16/16 | 78.43% | google drive |
| MobileNet | 16/16 | 70.81% | google drive |
| DRN | 16/16 | 78.87% | google drive |
Introduction
This is a PyTorch(0.4.1) implementation of DeepLab-V3-Plus. It can use Modified Aligned Xception and ResNet as backbone. Currently, we train DeepLab V3 Plus using Pascal VOC 2012, SBD and Cityscapes datasets.

Installation
The code was tested with Anaconda and Python 3.6. After installing the Anaconda environment:
Clone the repo:
git clone https://github.com/jfzhang95/pytorch-deeplab-xception.git cd pytorch-deeplab-xceptionInstall dependencies:
For PyTorch dependency, see pytorch.org for more details.
For custom dependencies:
pip install matplotlib pillow tensorboardX tqdm
Training
Follow steps below to train your model:
Configure your dataset path in mypath.py.
Input arguments: (see full input arguments via python train.py --help):
usage: train.py [-h] [--backbone {resnet,xception,drn,mobilenet}] [--out-stride OUT_STRIDE] [--dataset {pascal,coco,cityscapes}] [--use-sbd] [--workers N] [--base-size BASE_SIZE] [--crop-size CROP_SIZE] [--sync-bn SYNC_BN] [--freeze-bn FREEZE_BN] [--loss-type {ce,focal}] [--epochs N] [--start_epoch N] [--batch-size N] [--test-batch-size N] [--use-balanced-weights] [--lr LR] [--lr-scheduler {poly,step,cos}] [--momentum M] [--weight-decay M] [--nesterov] [--no-cuda] [--gpu-ids GPU_IDS] [--seed S] [--resume RESUME] [--checkname CHECKNAME] [--ft] [--eval-interval EVAL_INTERVAL] [--no-val]To train deeplabv3+ using Pascal VOC dataset and ResNet as backbone:
bash train_voc.shTo train deeplabv3+ using COCO dataset and ResNet as backbone:
bash train_coco.sh
Acknowledgement
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,427 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,711 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,289 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
146,271 stars