It is simple implementation of YOLOv3 model for detecting masked perople apart from unmasked ones in real time. Thid sydtem can be useful for entrance in this pandemic.
Do follow following links for dataset, model, and trained weight file.
-
Python version 3.8
-
Python libraries listed in requirements.txt
pip install -r requirements.txt
-
Weight file. ( If you do not want to train on your own )
Follow training steps as one by one from Training_YOLOv3.ipynb file. ( Use of Google colab suggested )
First you should download Weight file and keep it in the same folder.
-
To test on image execute test_on_photo.py file.
python test_on_photo.py
-
To test on image execute test_on_video.py file.
python test_on_video.py
result.mp4
Currently I have trained upto 2400 iterations and got descent result. this model can be trained even more. Try training upto 6000 iterations or even more.
mAP : 76%
fps on CPU : 1.7fps
Training Time : 2hrs 13 min