Current repository represents method for calculating optimal duration of green interval based on object detection of crossing road pedestrians
- Notebooks - there are 3 notebooks, which consist all necessary code for: a. Preprocessing images and data (DataProcessing.ipynb) b. Formula and it description for calculating optimal green interval (GreenIntervalCalculation.ipynb) c. Full pipeline with object detection of pedestrians and calculating optimal green interval (GreenIntervalCalculationFullPipeline.ipynb)
- ObjectDetectionResults - some results of working object detection algorithm for detecting: Pedestrians, Non-Pedestrians and Road
- Metrics - current folder consist all metrics and graphs, which depict how does object detection algorithm work
- Data - current folder consist full, train annotation and label map of object detection algorithm
- Tensorflow Object Detection API (https://github.com/tensorflow/models/tree/master/research/object_detection). Full process of setting up you can find in GreenIntervalCalculationFullPipeline.ipynb notebook
- Tensorflow < 2 version
There are scripts for GUI interface, which was designed for demonstrating curretn pipeline for predicting optimal green interval for pedestrians. For running current applications use the following instruction:
- Clone current repository
- Be sure that you have Inference folder, where does model weigths store
- Run gui_interface.py in Script folder
- Install dependencies (when you will click the button "Install dependencies", application will stop)
- Test application!
If you want to train on your own data:
- Fill Train and Test folders on Data
- Create your own annotation files All process of training and creating annotatio files you can find in GreenIntervalCalculationFullPipeline.ipynb notebook
Inference graph you can find here. How to test current inference graph you can find in GreenIntervalCalculationFullPipeline.ipynb notebook
Average mAp = 99.11%
Average mAp = 83.27%
Average mAp = 95.44%
- Web app for demo and testing
- Dockerfile for this web app


