Custom Helmet Detection Dataset
This dataset contains 764 images for detecting two classes: wearing helmets and not wearing helmets. The images are annotated with bounding boxes in PASCAL VOC format.
Description
Dataset Overview
Introduction
This dataset is used to train a custom object‑detection model (based on TensorFlow 2.x) that automatically detects whether a person is wearing a helmet. The dataset originates from a custom helmet‑detection collection on Kaggle.
Dataset Preparation
- Load the dataset: It contains 764 images divided into two classes for helmet detection. Bounding‑box annotations use the PASCAL VOC format.
- Annotate bounding boxes: If the dataset lacks bounding boxes, they must be labeled manually. A common tool is labelImg.
- Create a label‑map file (.pbtxt): A label‑map must be defined for each class.
item { id: 1 name: With Helmet } item { id: 2 name: Without Helmet } - Create TFRecord files (.record): Convert the dataset to TFRecord format for training the custom detector.
Pre‑trained Model
The project uses the SSD MobileNet V2 FPNLite 320x320 pre‑trained model for transfer learning.
Training
Before training, modify the pipeline.config file to set the number of classes, batch size, pre‑trained model path, etc.
Training Command
python model_main_tf2.py --model_dir=[model_directory_path] --pipeline_config_path=[pipeline_config_path]
Output
Sample output images after training illustrate the helmet‑detection results.
AI studio
Generate PPTs instantly with Nano Banana Pro.
Generate PPT NowAccess Dataset
Please login to view download links and access full dataset details.
Topics
Source
Organization: github
Created: 11/6/2022
Power Your Data Analysis with Premium AI Models
Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.
Enjoy a free trial and save 20%+ compared to official pricing.