This repository contains the source code, training scripts, and contents that is used to build, deploy the Capstone Project and the Conference papers.
Real-Time Covid-19 Face mask detection: Edge Intelligence with Convolutional Neural Network (CNN) and Single Shot Detectors
Paper can be found here: ./papers/(CSC3001_Capstone_Report__Final_Trimeter__Wilbur_Lua_Kai_Heng(1901839)
Conference (Accepted into 2022 IEEE 5th International Conference on Pattern Recognition and Artificial Intelligence)
Paper can be found here: ./papers/PRAI.pdf
- Current "Traditional" detectors (E.g. VGG-16, VGG-19, ResNet-50) have high amounts of trainable parameters leading to high computations, memory and power consumption (CPU, GPU, Network).
- Contribute to Public Health and Safety applications by researching, experimenting and deploying an FMD system that can be deployed on the Edge (NVIDIA Jetson Nano)
- Model Optimization, using Gradual Magnitude Pruning (GMP) algorithm to prune, quantize and re-train model using Sparsified transfer learning.
- Edge Intelligence, bring Deep Learning onto Internet of Things (IoT) devices.
- EfficientDet deployment codes are all under
./EfficientDet
- YOLOv5 deployment codes are all under
./yolov5-master
- YOLOv5s Mask Detection Script ->
/scripts/YOLOv5_TrainingScript.ipynb
- EfficientDet Mask Detection Script ->
/scripts/EfficientDet_TrainingScript.ipynb
- Model Compression and Sparse Transfer Learning Script ->
/scripts/Sparse_TransferLearning.ipynb
- PyTorch installation Script ->
/scripts/PyTorch_Torchvision.txt
- TorchVision installation Script ->
/scripts/PyTorch_Torchvision.txt
- OpenCV installation Script (Requires to make SwapFile and Compile on-device) ->
/scripts/OpenCV.txt
- Utils
./utils/*
cd ./yolov5-master
python3 detect.py --weights ./weights/CMFD_Best02.pt --source 0
cd ./EfficientDet
python3 efficientdet_test_videos.py