AI that can analyze face images and detect whether a person is wearing a face mask or not, as well as the type of mask that is being worn (No mask, Cloth mask, Surgical mask or N95 mask)
FaceMaskCNN class that is used to create a FaceMaskCNN object.
Script that uses a FaceMaskCNN object to train and test a convolutional neural network. It also generates a confusion matrix and other data such as accuracy, recall, precision, and F-score.
Script that uses a FaceMaskCNN object to train and test a convolutional neural network. It also generates a confusion matrix and other data such as accuracy, recall, precision, and F-score. This one uses Skorch features.
Calculate the mean and standard variation that we use in our normalization pattern.
This is the application mode of our CNN. It takes a single image and predicts the type of mask that is found in it.
Text file containing the references that we built our dataset with.
- create conda environment
- install all necessary plugins (pytorch, torchvision, matplotlib, pandas, skorch, sklearn)
- run following command in the command prompt: python CNNSk.py
- create conda environment
- install all necessary plugins (pytorch, torchvision, matplotlib, pandas, skorch, sklearn)
- run following command in the command prompt: python SingleImage.py