Tramac/Fast-SCNN-pytorch
Tramac/Fast-SCNN-pytorch has 443 GitHub stars and 107 forks. GitHot measured 0 in 7 days. Last checked 2026-11-11 03:14 UTC. Last push 2022-04-09.
A PyTorch Implementation of Fast-SCNN: Fast Semantic Segmentation Network
Measured star growth
- in 24h
- Update delayed
- in 7 days
- 0
- in 15 days
- Collecting history
- 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
OriginalFast-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
- You can download cityscapes from here. Note: please download leftImg8bit_trainvaltest.zip(11GB) and gtFine_trainvaltest(241MB).
Training-Fast-SCNN
- By default, we assume you have downloaded the cityscapes dataset in the
./datasets/citysdir. - To train Fast-SCNN using the train script the parameters listed in
train.pyas 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".
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,274 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,024 stars