Here are the steps that must be followed to be able to use the model to segment an image:
- First, clone or download the repository from https://github.com/bonlime/keras-deeplab-v3-plus.
- Extract the ZIP file downloaded to the keras-deeplab-v3-plus-master folder.
- Navigate to the keras-deeplab-v3-plus-master folder; the following code needs to be run from inside the directory.
Before running the following code block, create an input folder and an empty output folder. Save your images you want to segment inside the input folder. The following code block shows how to use the Deeplabv3+ in Python to do semantic segmentation:
#os.chdir('keras-deeplab-v3-plus-master') # go ...