Explanation Video: Click Here
Installation steps:
- git clone https://github.com/NippunSharma/pothole-smartathon
- conda env create --file environment.yaml python=3.8.8
- conda activate smartathon
- Now, install pytorch based upon your operating system and GPU. (refer from https://pytorch.org/get-started/locally/)
- pip install -r sort/requirements.txt
- pip install -r yolov5/requirements.txt
After installation, you can download the demo folder from here and place in the root directoty of the project.
You can also download the results folder from here and place in the root directory of the ptoject.
There is also a pdf version of the notebook in case latex does not render properly on your system.
If there is some issue while installing certain pip packages, please make sure that you have upgraded to a new version of pip. This can be done by:
pip install --upgrade pip
Please note that all pretrained models are present inside the pretrained_model
folder.
The models are exported in both onnx
as well as torchscript
format.
Please see pothole_analysis.ipynb
for the detailed description of my approach.
A screenshot of a pothole after reconstruction is present below:
As you can see, the distances measured are in a relative scale. If we multiplt these values
with an absolute scale (which was found to be approx. 0.27 in the pothole_analysis.ipynb
)
file, then the dimensions of the pothole would become: 0.27 * 1.33 meter (=36 cm) and 0.27 * 0.41 meter (=11cm)
In case of any queries, kindly contact me at: inbox.nippun@gmail.com