Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DeepLab v3+ model in PyTorch. Support different backbones.

License

NotificationsYou must be signed in to change notification settings

jfzhang95/pytorch-deeplab-xception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 inprevious branch

TODO

  • Support different backbones
  • Support VOC, SBD, Cityscapes and COCO datasets
  • Multi-GPU training
Backbonetrain/eval osmIoU in valPretrained Model
ResNet16/1678.43%google drive
MobileNet16/1670.81%google drive
DRN16/1678.87%google drive

Introduction

This is a PyTorch(0.4.1) implementation ofDeepLab-V3-Plus. Itcan use Modified Aligned Xception and ResNet as backbone. Currently, we train DeepLab V3 Plususing Pascal VOC 2012, SBD and Cityscapes datasets.

Results

Installation

The code was tested with Anaconda and Python 3.6. After installing the Anaconda environment:

  1. Clone the repo:

    git clone https://github.com/jfzhang95/pytorch-deeplab-xception.gitcd pytorch-deeplab-xception
  2. Install dependencies:

    For PyTorch dependency, seepytorch.org for more details.

    For custom dependencies:

    pip install matplotlib pillow tensorboardX tqdm

Training

Follow steps below to train your model:

  1. Configure your dataset path inmypath.py.

  2. 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]
  3. To train deeplabv3+ using Pascal VOC dataset and ResNet as backbone:

    bash train_voc.sh
  4. To train deeplabv3+ using COCO dataset and ResNet as backbone:

    bash train_coco.sh

Acknowledgement

PyTorch-Encoding

Synchronized-BatchNorm-PyTorch

drn

About

DeepLab v3+ model in PyTorch. Support different backbones.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp