wanderly0501 / Image-Segmentation-for-Road-Detection

Semantic segmentation for road detection using fully-convolutional network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Semantic Segmentation

Repo cloned from https://github.com/udacity/CarND-Semantic-Segmentation

Setup

Frameworks and Packages
Dataset

Download the Kitti Road dataset from here. Extract the dataset in the data folder. This will create the folder data_road with all the training a test images.

Tips

  • The link for the frozen VGG16 model is hardcoded into helper.py. The model can be found here
  • The model is not vanilla VGG16, but a fully convolutional version, which already contains the 1x1 convolutions to replace the fully connected layers.
  • The original FCN-8s was trained in stages. The authors later uploaded a version that was trained all at once to their GitHub repo. The version in the GitHub repo has one important difference: The outputs of pooling layers 3 and 4 are scaled before they are fed into the 1x1 convolutions. As a result, some students have found that the model learns much better with the scaling layers included. The model may not converge substantially faster, but may reach a higher IoU and accuracy.
  • When adding l2-regularization, setting a regularizer in the arguments of the tf.layers is not enough. Regularization loss terms must be manually added to your loss function. otherwise regularization is not implemented.

About

Semantic segmentation for road detection using fully-convolutional network


Languages

Language:Jupyter Notebook 97.4%Language:Python 2.6%