mask#

Module for loading the mask detection dataset and its pre-calculated predictions.

The mask dataset is a dataset of various images with people wearing masks, people not wearing masks and people wearing masks incorrectly. The dataset is used for object detection, and was downloaded from https://www.kaggle.com/datasets/andrewmvd/face-mask-detection, licenced under CC0.

Functions

load_dataset([day_index, batch_size, ...])

Get the mask dataset and return a dataloader.

load_model([device])

Load the pre-calculated prediction model and return it.

get_data_timestamps()

Get a list of the data timestamps, one entry per day in the production data.

Classes

MaskDataset

Dataset for the mask dataset.