Downloads · 30 days
0
TristanF04/helmet-detector
helmet-detector is a machine learning model from TristanF04. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Goal: Classify if a person is wearing a safety helmet from an image.
Downloads · 30 days
0
Access
Public
Updated Sep 25, 2025
Parameters
11.2M
224 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors134 MB · 60%
From the Hugging Face model README
Goal: Classify if a person is wearing a safety helmet from an image.
Tech: PyTorch, TorchVision, transfer learning (ResNet18), ONNX export.

python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
python infer.py sample_images/Helmet6.jpg
python infer.py sample_images/WithoutHelmet9.jpg