Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    IndexError
Message:      list index out of range
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
                  original_shard_lengths[original_shard_id] += len(table)
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
              IndexError: list index out of range
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1869, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

text
string
0 0.865385 0.508434 0.230769 0.202410
0 0.438702 0.326506 0.257212 0.248193
0 0.097356 0.344578 0.194712 0.226506
0 0.437500 0.090361 0.259615 0.180723
0 0.097356 0.074699 0.194712 0.149398
0 0.697115 0.328125 0.221154 0.266827
0 0.376202 0.269231 0.199519 0.250000
0 0.698317 0.028846 0.223558 0.057692
0 0.375000 0.054087 0.201923 0.108173
0 0.401442 0.462651 0.048077 0.057831
0 0.492788 0.491566 0.052885 0.057831
0 0.590144 0.493976 0.045673 0.048193
0 0.662260 0.513253 0.045673 0.043373
0 0.329327 0.387952 0.028846 0.033735
0 0.237981 0.356627 0.028846 0.033735
0 0.731971 0.538554 0.074519 0.108434
0 0.501202 0.269880 0.117788 0.096386
0 0.621394 0.234940 0.108173 0.118072
1 0.461538 0.348193 0.125000 0.118072
0 0.501202 0.053012 0.117788 0.096386
0 0.621394 0.090361 0.108173 0.118072
1 0.462740 0.018072 0.127404 0.036145
0 0.087740 0.337740 0.045673 0.055288
1 0.183894 0.318510 0.050481 0.050481
1 0.305288 0.306490 0.057692 0.060096
1 0.233173 0.330529 0.038462 0.045673
1 0.420673 0.330529 0.043269 0.045673
1 0.474760 0.338942 0.031250 0.033654
1 0.572115 0.283654 0.081731 0.086538
1 0.611779 0.295673 0.040865 0.048077
1 0.875000 0.337740 0.110577 0.112981
0 0.086538 0.016827 0.048077 0.033654
1 0.182692 0.025240 0.052885 0.050481
1 0.305288 0.037260 0.057692 0.060096
1 0.234375 0.018029 0.040865 0.036058
1 0.421875 0.018029 0.045673 0.036058
1 0.473558 0.010817 0.033654 0.021635
1 0.572115 0.057692 0.081731 0.086538
1 0.611779 0.045673 0.040865 0.048077
1 0.876202 0.031250 0.112981 0.062500
0 0.322115 0.308434 0.144231 0.178313
0 0.376202 0.385542 0.069712 0.096386
1 0.771635 0.439759 0.038462 0.036145
0 0.323317 0.062651 0.146635 0.125301
0 0.496394 0.257831 0.127404 0.130120
0 0.731971 0.395181 0.103365 0.101205
0 0.496394 0.074699 0.127404 0.130120
1 0.552885 0.444578 0.091346 0.103614
1 0.789663 0.454217 0.040865 0.060241
1 0.706731 0.455422 0.038462 0.053012
1 0.859375 0.467470 0.040865 0.048193
1 0.830529 0.449398 0.026442 0.036145
1 0.878606 0.445783 0.026442 0.033735
0 0.350962 0.493976 0.125000 0.154217
0 0.475962 0.533735 0.100962 0.127711
0 0.275240 0.359375 0.151442 0.175481
0 0.082933 0.424279 0.069712 0.079327
0 0.643029 0.388221 0.093750 0.117788
0 0.368990 0.425481 0.060096 0.072115
0 0.274038 0.024038 0.153846 0.048077
0 0.036058 0.377404 0.062500 0.081731
0 0.100962 0.370192 0.072115 0.086538
0 0.864183 0.379808 0.060096 0.067308
1 0.781250 0.338942 0.115385 0.125000
1 0.477163 0.379808 0.088942 0.105769
1 0.206731 0.319712 0.100962 0.120192
1 0.377404 0.361779 0.076923 0.088942
1 0.590144 0.413462 0.060096 0.072115
1 0.723558 0.426683 0.062500 0.084135
0 0.335337 0.389423 0.055288 0.081731
1 0.705529 0.393029 0.079327 0.112981
1 0.152644 0.366587 0.122596 0.141827
1 0.438702 0.366587 0.088942 0.117788
1 0.808894 0.365385 0.112981 0.153846
1 0.534856 0.423077 0.055288 0.072115
1 0.377404 0.413462 0.057692 0.057692
1 0.276442 0.445913 0.038462 0.045673
1 0.233173 0.419471 0.038462 0.060096
0 0.615663 0.193510 0.137349 0.141827
0 0.301683 0.162260 0.122596 0.112981
0 0.282452 0.414663 0.180288 0.117788
0 0.358173 0.532452 0.163462 0.137019
0 0.519231 0.180288 0.144231 0.149038
0 0.042067 0.161058 0.084135 0.115385
0 0.066106 0.413462 0.132212 0.120192
0 0.024038 0.531250 0.048077 0.139423
0 0.445913 0.381928 0.218750 0.262651
0 0.551683 0.432530 0.137019 0.204819
0 0.444712 0.042169 0.221154 0.084337
0 0.276442 0.389157 0.067308 0.084337
0 0.405048 0.384337 0.055288 0.069880
0 0.820913 0.434940 0.055288 0.065060
0 0.602163 0.421687 0.045673 0.062651
0 0.496394 0.414458 0.050481 0.062651
0 0.106971 0.406024 0.045673 0.055422
0 0.316106 0.413253 0.040865 0.060241
0 0.883413 0.439759 0.045673 0.065060
0 0.639423 0.396635 0.067308 0.081731
0 0.381010 0.394231 0.055288 0.067308
0 0.877404 0.388221 0.067308 0.079327
End of preview.

PPE Detection Dataset (3-Class)

딥러닝 기반 건설현장 안전 장비(PPE) 착용 모니터링을 위한 데이터셋

Dataset Description

개인보호구(Personal Protective Equipment) 착용/미착용 상태를 감지하기 위한 YOLO 형식의 객체 탐지 데이터셋입니다.

주요 특징:

  • ✅ 헬멧 착용 감지 (helmet)
  • ⚠️ 헬멧 미착용 감지 (head) - 실시간 안전 경고 가능
  • ✅ 안전조끼 착용 감지 (vest)
  • 15,500개 이미지, 60,991개 객체
  • YOLOv8 최적화 포맷

Classes

Class ID Class Name Description
0 helmet 안전 헬멧 착용 ✅
1 head 헬멧 미착용 (머리만) ⚠️
2 vest 반사 안전 조끼 착용 ✅

Dataset Statistics

Split Images Labels Helmet Head Vest Total Objects
Train 9,999 9,999 25,425 3,679 10,351 39,455
Val 2,750 2,750 6,793 1,144 2,737 10,674
Test 2,751 2,751 6,939 962 2,961 10,862
Total 15,500 15,500 39,157 5,785 16,049 60,991

Class Distribution:

  • Helmet: 39,157개 (64.2%) - 헬멧 착용
  • Head: 5,785개 (9.5%) - 헬멧 미착용
  • Vest: 16,049개 (26.3%) - 안전조끼 착용

Split Ratio:

  • Train: 64.5% (9,999 images)
  • Val: 17.7% (2,750 images)
  • Test: 17.7% (2,751 images)

Data Format

YOLO 형식 (normalized coordinates):

class_id x_center y_center width height

Example:

0 0.456789 0.345678 0.123456 0.234567  # helmet
1 0.234567 0.123456 0.098765 0.187654  # head
2 0.567890 0.456789 0.145678 0.256789  # vest

Dataset Structure

ppe-dataset/
├── train/
│   ├── images/     # 9,999 images
│   └── labels/     # 9,999 label files (3 classes)
├── val/
│   ├── images/     # 2,750 images
│   └── labels/     # 2,750 label files (3 classes)
└── test/
    ├── images/     # 2,751 images
    └── labels/     # 2,751 label files (3 classes)

Usage

Download with Hugging Face CLI

# Install huggingface-hub
pip install huggingface-hub

# Download dataset
huggingface-cli download jhboyo/ppe-dataset --repo-type dataset --local-dir ./dataset

Using with uv

uv tool install huggingface-hub
uv tool run hf download jhboyo/ppe-dataset --repo-type dataset --local-dir ./dataset/data

YOLO Training Configuration

Create a YAML configuration file:

# ppe_dataset.yaml
path: /path/to/dataset
train: train/images
val: val/images
test: test/images

nc: 3
names:
  0: helmet
  1: head
  2: vest

Training with YOLOv8

from ultralytics import YOLO

# Load model
model = YOLO('yolov8n.pt')

# Train
model.train(
    data='ppe_dataset.yaml',
    epochs=100,
    imgsz=640,
    batch=16
)

Data Sources

This dataset is merged from two Kaggle datasets:

  1. Hard Hat Detection (5,000 images)

    • Original classes: helmet, head, person
    • Used: helmet, head (착용/미착용 모두 탐지)
  2. Safety Helmet and Reflective Jacket (10,500 images)

    • Classes: Safety-Helmet, Reflective-Jacket
    • Used: both classes (helmet, vest)

Preprocessing

  • VOC to YOLO format conversion for Dataset 1
  • 3-Class Mapping:
    • helmet: 0 (헬멧 착용)
    • head: 1 (헬멧 미착용, Dataset 1 only)
    • vest: 2 (안전조끼 착용)
  • File naming with prefix (ds1_, ds2_) to avoid conflicts
  • Dataset split:
    • Train: 64.5% (9,999 images)
    • Val: 17.7% (2,750 images)
    • Test: 17.7% (2,751 images)
    • Seed: 42 (reproducible)

License

MIT License

Citation

@dataset{ppe_detection_2024,
  title={PPE Detection Dataset for Construction Safety},
  author={SafetyVisionAI Team},
  year={2024},
  publisher={Hugging Face},
  url={https://huggingface.co/datasets/jhboyo/ppe-dataset}
}

Project

This dataset is part of the Safety Vision AI project - a deep learning-based construction site safety equipment monitoring platform.

Original Dataset Sources

This dataset is created by merging and preprocessing the following Kaggle datasets:

  1. Hard Hat Detection Dataset

  2. Safety Helmet and Reflective Jacket Dataset

Acknowledgments: We thank the original dataset creators for making their work publicly available.

Downloads last month
134