Skip to content

BiSeNet based on pytorch

Notifications You must be signed in to change notification settings

aiLibrary/BiSeNet

Repository files navigation

BiSeNet

BiSeNet based on pytorch 0.4.1 and python 3.6

Dataset

Download CamVid dataset from Google Drive or Baidu Yun(6xw4).

Pretrained model

Download best_dice_loss_miou_0.655.pth in Google Drive or in Baidu Yun(6y3e) and put it in ./checkpoints

Demo

python demo.py 

Result

OriginalGTPredict

Train

python train.py 

Use tensorboard to see the real-time loss and accuracy

loss on train

pixel precision on val

miou on val

Test

python test.py 

Result

classBicyclistBuildingCarPoleFencePedestrianRoadSidewalkSignSymbolSkyTreemiou
iou0.610.800.860.350.370.590.880.810.280.910.730.655

This time I train the model with dice loss and get better result than cross entropy loss. I did not use lots special training strategy, you can get much better result than this repo if using task-specific strategy.
This repo is mainly for proving the effeciveness of the model.
I also tried some simplified version of bisenet but it seems does not preform very well in CamVid dataset.

Future work

  • Finish real-time segmentation with camera or pre-load video

Reference

About

BiSeNet based on pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python100.0%