• Stars
    star
    373
  • Rank 113,970 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A PyTorch Implementation of Fast-SCNN: Fast Semantic Segmentation Network

Fast-SCNN: Fast Semantic Segmentation Network

A PyTorch implementation of Fast-SCNN: Fast Semantic Segmentation Network from the paper by Rudra PK Poudel, Stephan Liwicki.

Table of Contents

Installation

  • Python 3.x. Recommended using Anaconda3
  • PyTorch 1.0. Install PyTorch by selecting your environment on the website and running the appropriate command. Such as:
    conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
    
  • Clone this repository.
  • Download the dataset by following the instructions below.
  • Note: For training, we currently support cityscapes, and aim to add VOC and ADE20K.

Datasets

Training-Fast-SCNN

  • By default, we assume you have downloaded the cityscapes dataset in the ./datasets/citys dir.
  • To train Fast-SCNN using the train script the parameters listed in train.py as a flag or manually change them.
python train.py --model fast_scnn --dataset citys

Evaluation

To evaluate a trained network:

python eval.py

Demo

Running a demo:

python demo.py --model fast_scnn --input-pic './png/berlin_000000_000019_leftImg8bit.png'

Results

Method Dataset crop_size mIoU pixAcc
Fast-SCNN(paper) cityscapes
Fast-SCNN(ours) cityscapes 768 54.84% 92.37%

Note: The result based on crop_size=768, which is different with paper.

โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ(a) test image โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ(b) ground truth โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ(c) predicted result

TODO

  • add distributed training
  • Support for the VOC, ADE20K dataset
  • Support TensorBoard
  • save the best model
  • add Ohem Loss

Authors

References

  • Rudra PK Poudel. et al. "Fast-SCNN: Fast Semantic Segmentation Network".

More Repositories

1

awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Python
2,762
star
2

Lightweight-Segmentation

Lightweight models for real-time semantic segmentation(include mobilenetv1-v3, shufflenetv1-v2, igcv3, efficientnet).
Python
342
star
3

torchscope

Model Scope in PyTorch (include Params, FLOPs, Madds).
Python
121
star
4

mobilenetv3-segmentation

MobileNetV3 for Semantic Segmentation.
Python
95
star
5

paper-reading-note

ๅ’ŒๆŽๆฒไธ€่ตท่ฏป่ฎบๆ–‡
81
star
6

tiny-kinetics-400

Tiny Kinetics-400 for test
Python
78
star
7

pytorch-cam

Class Activation Map (CAM) Visualizations in PyTorch.
Python
30
star
8

tensorrt-tutorial

TensorRT็ฎ€ๆ˜Žๆ•™็จ‹
23
star
9

DenseVoxNet-tensorflow

DenseVoxNet in TensorFlow
Python
21
star
10

Effective-Cpp

ๆ”นๅ–„็จ‹ๅบไธŽ่ฎพ่ฎก็š„55ไธชๅ…ทไฝ“ๅšๆณ•๏ผˆ็ฌฌไธ‰็‰ˆ๏ผ‰
C++
16
star
11

sth-2-sth

ไธ€ไธชๅŸบไบŽๅ†…ๅฎน็š„ๅ›พๅƒๆฃ€็ดข็ณป็ปŸ
CSS
13
star
12

awesome-video-feature-extractor

Video feature extractor in PyTorch.
Python
7
star
13

MaiHaHi-pytorch

่š‚่šๅ‘€ๅ˜ฟ
Python
5
star
14

Non-local-tensorflow

Non-local Block for Semantic Segmentation
Python
3
star
15

AdaBound-tensorflow

A tensorflow/keras version of AdaBound optimizer.
Python
3
star
16

video-dataloader

Some dataloader for video datasets.
Python
2
star
17

Convert_To_TFRecord

Tutorial:Convert your data to tfrecord
Python
2
star
18

MURA

MURA challenge
Python
1
star
19

paper-reading-list

Some papers read.
1
star