This is a simple and clean implementation of Deeplabv3+ on cityscapes dataset using tensorflow 2.0. It is meant to give a quick run through of the steps required to implement segmentation in TF2.0
Training methodology follows most implementation of random scale cropping and horizontal flipping
From https://www.cityscapes-dataset.com, download
- leftImg8bit_trainvaltest
- leftImg8bit_demoVideo
- gtFine_trainvaltest
Note that you will need to register.
python train.py --data_dir cityscape_data
cityscape_data points to the root of the downloaded dataset.
Training parameters are defined in the file train.py
python eval.py --data_dir cityscape_data
Evaluating with the current training setting could achieve a result similar to the demo