The Face Mask Label Dataset (FMLD) is a challenging, in the wild dataset for experimentation with face masks. The dataset is the biggest annotated face mask dataset with 63,072 face images.
This repository contains labels and annotations for all images and the PyTorch implementation of the following paper: How to Correctly Detect Face-Masks for COVID-19 from Visual Information? [1]
Images annotated for FMLD were taken from datasets:
Images annotated for FMLD were taken from the MAFA and Wider Face datasets and partitioned into three classes (correctly worn masks, incorrectly worn masks and without masks) and later equipped with additional labels.
Our annotations [1]: FMLD_annotations.zip
As can be seen, the dataset contains labels for gender, pose and ethnicity in addition to the main labels indicating the presence of face masks and their correct/incorrect placement.
All images are annotated with labels indicating the presence of face masks, the placement of face masks (i.e., correct or incorrect), the gender of the subjects, their ethnicity and head pose.
Code for display images with annotations and save test/train faces from images.
MATLAB code : show_save_gt.m\ Python code : show_save_gt.py
resnet152.pt: Pytorch model for classification.
mask-test.py: Python code to classify the correctly worn mask (compliant/non-compliant)
If you use our annotations or models, please use following citations
[1]
@Article{app11052070,
AUTHOR = {Batagelj, Borut and Peer, Peter and Štruc, Vitomir and Dobrišek, Simon},
TITLE = {How to Correctly Detect Face-Masks for COVID-19 from Visual Information?},
JOURNAL = {Applied Sciences},
VOLUME = {11},
YEAR = {2021},
NUMBER = {5},
ARTICLE-NUMBER = {2070},
URL = {https://www.mdpi.com/2076-3417/11/5/2070},
ISSN = {2076-3417},
DOI = {10.3390/app11052070}
}
[2]
@inproceedings{ge2017detecting,
title={Detecting Masked Faces in the Wild with LLE-CNNs},
author={Ge, Shiming and Li, Jia and Ye, Qiting and Luo, Zhao},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={2682--2690},
year={2017}
}
[3]
@inproceedings{yang2016wider,
Author = {Yang, Shuo and Luo, Ping and Loy, Chen Change and Tang, Xiaoou},
Booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
Title = {WIDER FACE: A Face Detection Benchmark},
Year = {2016}
}
This project is licensed under the MIT License - see the LICENSE.md file for details