Inspired from https://github.com/divamgupta/image-segmentation-keras
Implementation of Deep Image Segmentation model for Lyft challenge in keras.
- VGG Segnet
- Keras 2.0
- opencv for python
sudo apt-get install python-opencv
sudo pip install --upgrade keras
sudo pip install pydot
sudo pip install graphviz
sudo apt install graphviz
mkdir data cd data wet https://s3-us-west-1.amazonaws.com/udacity-selfdrivingcar/Lyft_Challenge/Training+Data/lyft_training_data.tar.gz -O dataset.tar.gz tar -xvzf dataset.tar.gz
You can also visualize your prepared annotations for verification of the prepared data.
./run.sh visualize
You need to download the pretrained VGG-16 weights trained on imagenet if you want to use VGG based models
mkdir data
cd data
wget "https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_th_dim_ordering_th_kernels.h5"
wget "https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels.h5"
To train the model run the following command:
./run.sh train
To get the predictions of a trained model
./run.sh predict <model_id>