wangyunnan / BiSeNet

A pytorch implement of BiSeNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BiSeNet

A pytorch implementation of paper BiSeNet: Bilateral Segmentation Network for Real-time Semantic Segmentation

Requirements

  • Hardware: PC or Server with two NVIDIA 1080Ti GPUs.
  • Software: Ubuntu 16.04, CUDA 10.0, Anaconda3, pytorch 1.1.0

Dataset

Download Cityscapes dataset here or wherever convenient for you. Then run script /datasets/cityscapes/tools/convert_labels.py to generate trainId from labelId.

Train

CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 train.py

Evaluate

python evaluate.py

Result

The final mIoU will be around 78.5, depending on random initialization. In order to confirm the experimental results, ckeckpoint (mIoU=78.73) is provided for testing. The examples of final result:

About

A pytorch implement of BiSeNet

License:MIT License


Languages

Language:Python 70.4%Language:Cuda 18.4%Language:C++ 10.2%Language:C 1.0%