raychenv / Safety-Helmet-Wearing-Dataset

Safety helmet wearing and head detect dataset, with pretrained model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SafetyHelmetWearing-Dataset(安全帽佩戴检测数据集)

Safety helmet wearing and head detect dataset(安全帽佩戴检测数据集, SHWD). We also provide pretrained models.

Introduction

SHWD provide the dataset used for both safety helmet wearing and human head detection. It includes 7581 images with 9044 human safety helmet wearing objects(positive) and 111514 normal head objects(not wearing or negative). The positive objects got from goolge or baidu, and we manually labeld with LabelImg. Some of negative objects got from SCUT-HEAD. We fixed some bugs for original SCUT-HEAD and make the data can be directly loaded as normal Pascal VOC format. Also we provide some pretrained models with MXNet GluonCV.

Dataset and model download

Dataset

BaiduDrive GoogleDrive

Model

BaiduDrive

How to use dataset

We annotate the data as Pascal VOC format:

---VOC2028    
    ---Annotations    
    ---ImageSets    
    ---JPEGImages   

Two object class names for the task, "hat" for positive object and "person" for negative object.

How to run

Dependency

Make sure you install MXNet, GluonCV, OpenCV

Test with pretrained models

1. Download models from link.  
2. Run "python test_yolo.py" with default settings, or change options:  
--network: darknet/mobile1.0/mobile0.25 network, default darknet53;  
--threshold: confidence that filter object;  
--gpu: use gpu or cpu, default gpu;  
--short: short side input size for original image.

Notice

1. This repo provide 3 yolo models with different size, default darknet53.
2. Parameter "short" means the input size of short side for original image, you can try larger value if want to detect dense objects or big size image.
3. Hyper-parameter threshold means the confidence for detect, change it for different task.

Demo

About

Safety helmet wearing and head detect dataset, with pretrained model


Languages

Language:Python 100.0%