This repository contains the project from the article "Pothole Detection with Mask RCNN". You can find the article on my personal website or medium. You can find the detailed tutorial to this project in those blog articles.
Note: The tensorflow version used for this project is 1.15.2.
- Clone the entire repository into your local machine.
- Clone the contents of the tensorflow models folder from Github and place all the contents in the models folder.
- Place all the contents inside models from this repository inside models/research/object_detection folder.
- Download the training configuration file from the Tensorflow Model Zoo. We are going to be using "mask_rcnn_inception_v2_coco" because of it's speed compared to the others. Download it and place the extracted file also inside models/research/object_detection folder
- Open Anaconda Command Prompt and Setup a new environment
- Activate the environment and upgrade pip
- All other requirements can be installed using requirements.txt
- Replace "YOURPATH" below and Set The Python Path Location to where you have place the tensorflow models folder.
- Install the coco api library
- After all the package installations has been done navigate to the directory where the project has been downloaded and run "app.py":
C:\> git clone https://github.com/tensorflow/models.git
C:\> conda create -n pothole pip python=3.6
C:\> activate pothole
(pothole) C:\>python -m pip install --upgrade pip
(pothole) C:\>pip install -r requirements.txt
(pothole) C:\>set PYTHONPATH=YOURPATH\models;YOURPATH\models\research;D:\Projects\Pothole\MaskRCNN\models\research\slim
(pothole) C:\> pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
(pothole) C:\> python app.py