This repo shows a sample code to implement semantic segmenation (people segmentation) using unet + mobilenetv2. The dataset I used was coco2017.
- Keras 2.4.3
- Tensorflow 2.2.0
- Coco API
- Opencv for python
python unet_semantic_seg_train.py
The training set is coco/train2017 and the validation set is coco/val2017. The pretained model under model is getting 96.42% accuracy for training set and 92.9% accuracy for validation set.
python unet_semantic_seg_inference.py
The testing set used for inference is test2017. Some results are shown below: