This project uses Transfer Learning to train a Model which classifies with_mask, without_mask and mask_weared_incorrecly. The Mask Detection Dataset from kaggle is used to train the model. The Models used in this projects is MobilenetV2. Accuracy of Model is 95.27%.
You need python installed on your system. You can download and install it from here. After installing python, follow these steps:
- Open the
cmdin the working dictionary. - Type
python -m venv venvto create a vitual environment. - Type
call venv\Scripts\activate.batto activate the virtual environment. - Type
pip install -r requirements.txtto install all the required dependencies. - Type
jupyter-labto run the jupyter-server.
- Open the
terminalin the working dictionary. - Type
python3 -m venv venvto create a vitual environment. - Type
source ./venv/bin/activateto activate the virtual environment. - Type
pip3 install -r requirements.txtto install all the required dependencies. - Type
jupyter-labto run the jupyter-server.
Follow the First 4 steps from How to run? section. After that, use python Predict.py [.../path/to/img] to predict the images.
Follow the First 4 steps from How to run? section. After that, use python Predict_live.py to predict the images.