arshvir commited on
Commit
742ec66
Β·
verified Β·
1 Parent(s): 217c819

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +106 -1
README.md CHANGED
@@ -11,4 +11,109 @@ license: mit
11
  short_description: Deep Learning Model for PPE Detection
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  short_description: Deep Learning Model for PPE Detection
12
  ---
13
 
14
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
15
+
16
+ # PPE Object Detection System
17
+ The PPE (Personal Protective Equipment) Object Detection System is a deep learning–based computer vision application designed to automatically detect whether workers are wearing required safety equipment such as **Helmet, Vest, Gloves, and Boots** in environments like construction sites and factories.
18
+
19
+ This system aims to improve workplace safety by automating PPE compliance monitoring using camera-based inspection instead of manual human observation.
20
+
21
+ ---
22
+
23
+ ## Problem Statement
24
+ Construction sites, factories, and other hazardous working environments require workers to wear proper safety equipment to minimize the risk of injury. Manual inspection of PPE compliance is time-consuming, costly, and prone to human error.
25
+
26
+ To address this problem, I developed an automated PPE detection system that uses deep learning and object detection to identify safety equipment worn by workers in real time using camera feeds. This system can be further integrated with embedded systems and access-control mechanisms (such as automatic doors or alarms) to enforce safety compliance.
27
+
28
+ ---
29
+
30
+ ## Detected PPE Classes
31
+ - Helmet
32
+ - Vest
33
+ - Gloves
34
+ - Boots
35
+
36
+ ---
37
+
38
+ ## Tech Stack
39
+ - **Programming Language**: Python
40
+ - **Libraries**: Ultralytics(for YOLO), Gradio(for UI), Open CV, PyTorch
41
+ - **Dataset**: Roboflow PPE Dataset -> [Link](https://universe.roboflow.com/randomlangyan/ppe-project-7brvs/dataset/3)
42
+ - **Tools**: VS code (Development), Google Colab(Training)
43
+ - **Deployment**: HuggingFace -> [Link](https)
44
+
45
+ ---
46
+
47
+ ## Model Training Approach
48
+
49
+ - Used a **pretrained YOLOv8 model** trained on the COCO dataset
50
+ - Applied **transfer learning** to fine-tune the model on a custom PPE dataset
51
+ - Training performed on Google Colab using a **Tesla T4 GPU**
52
+ - Model selection based on validation performance (`best.pt`)
53
+
54
+ ---
55
+
56
+ ## Model Evaluation Metrics
57
+
58
+ The trained model was evaluated using IoU-based object detection metrics on the validation dataset:
59
+ ```
60
+ Precision: 0.8946163686006668
61
+ Recall: 0.8912529904398928
62
+ mAP@50: 0.911266088587406
63
+ mAP@50-95: 0.6869156525972596
64
+ ```
65
+ These metrics indicate strong detection accuracy and reliable localization of PPE items.
66
+
67
+ ---
68
+
69
+
70
+
71
+ ## Getting Started
72
+ ### Step 1: Clone Repository
73
+ ```
74
+ - git clone https://github.com/avarshvir/PPE_Object_Detection_System.git
75
+ - cd PPE_Object_Detection_System
76
+ ```
77
+ ### Step 2: Model Training (Google Colab)
78
+ ```
79
+ - Open Google Colab and change runtime to T4 GPU
80
+ - Upload PPE_Dataset.zip (make sure dataset in zip format)
81
+ - Run Actual_Code_To_Train_Model.ipynb to train the model
82
+ ```
83
+ ### Step 3: Application Setup
84
+ ```
85
+ - Download the trained best.pt model from Colab (or use the provided model)
86
+ - Open the project in VS Code
87
+ ```
88
+
89
+ ### Step 4: Run the Application
90
+ ```
91
+ - cd PPE_Application (make sure you are inside PPE_Object_Detection_System)
92
+ - python app.py
93
+ ```
94
+
95
+ ---
96
+ ## Project Directory Structure
97
+ ```
98
+ PPE_Object_Detection_System/
99
+ β”œβ”€β”€ PPE_Application/
100
+ β”‚ β”œβ”€β”€ app.py
101
+ β”‚ └── best.pt
102
+ β”œβ”€β”€ Actual_Code_To_Train_Model.ipynb
103
+ β”œβ”€β”€ PPE_Dataset.zip
104
+ β”œβ”€β”€ LICENSE
105
+ └── README.md
106
+ ```
107
+
108
+ ## About the Developer
109
+ - Name: Arshvir
110
+ - Stack Overflow: [arshvir](https://stackoverflow.com/users/17771039/arshvir)
111
+ - GitHub: [https://github.com/avarshvirr](https://github.com/avarshvir)
112
+ - Portfolio: [https://avarshvir.github.io/arshvir/](https://avarshvir.github.io/arshvir/)
113
+ ---
114
+
115
+ ## Contributing
116
+ Feel free to contribute to this repository by improving it performance and application ideas.
117
+
118
+ ## Star
119
+ Star or Love the repo if you like it :)