Downloads · 30 days
0
mpuneeth17/face-mask-detection
face-mask-detection is a image classification model from mpuneeth17. Use it when you need a label for an image. The card lists the license as mit.
An AI model that classifies whether a person is: - ✅ Wearing a mask correctly - ❌ Not wearing a mask - ⚠️ Wearing a mask improperly
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2026
Repo size
42.5 MB
Likes
0
Public
Click a slice to open those files.
.h528.7 MB · 100%
From the Hugging Face model README
An AI model that classifies whether a person is:
with_mask, without_mask, mask_worn_incorrectlyimport tensorflow as tf
import numpy as np
from PIL import Image
model = tf.keras.models.load_model("face_mask_model.h5")
img = Image.open("face.jpg").resize((224, 224))
arr = np.expand_dims(np.array(img), 0) / 255.0
pred = model.predict(arr)
print(["with_mask","without_mask","mask_worn_incorrectly"][pred.argmax()])
Try the interactive demo on Spaces.