andyhahaha / Efficient-Uncertainty-Video-Segmentation

23 stars 8 forks source link

Efficient-Uncertainty-Video-Segmentation

This is the official codes for the paper: Efficient Uncertainty Estimation for Semantic Segmentation in Videos.

Requirements

CamVid dataset

Normall CamVid dataset only contain frames that fps=1.

However, our Method leverage consecutive frames to speed up uncertainty estimation.

Therefore we need a CamVid dataset contain all consecutive frames(fps 30) instead of labeled frames(fps 1).

We extract fps 30 frames from original videos and build new version here

Download and unzip the dataset Edit config.json

{
  "camvid":
  {
    "data_path": "/YOUR/PATH/camvid/"
  }
}

Optical flow installation

We use the FlowNet2 as our optical flow model.

The FlowNet2 code is intergret in our repo.

You only need do the installation in this repo FlowNet2.

Download the pretrained weight in Dir : pytorch_flownet2/FlowNet2_src/pretrained

Trained model

Our trained tiramisu model can be download here.

Download and unzip it at checkpoint dir. Then run exp_test_MC.py and python exp_test_RTA.py.

Then it can evaluate our release model.

Train script

Results