Object Detection
ultralytics
English
industrial-vision
factoryvision-ai
ppe-detection
education
yolo11
Instructions to use TechsphereAI/FactoryVision-PPE-YOLO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use TechsphereAI/FactoryVision-PPE-YOLO with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("TechsphereAI/FactoryVision-PPE-YOLO", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Publish FactoryVision AI model package (public review)
Browse files
README.md
CHANGED
|
@@ -10,78 +10,77 @@ tags:
|
|
| 10 |
- education
|
| 11 |
- yolo11
|
| 12 |
---
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
>
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
>
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
from ultralytics import YOLO
|
| 54 |
model = YOLO('model.pt')
|
| 55 |
results = model.predict('your_image.jpg', conf=0.25)
|
| 56 |
for result in results:
|
| 57 |
-
print(result.boxes)
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
|
|
| 10 |
- education
|
| 11 |
- yolo11
|
| 12 |
---
|
| 13 |
+
<div align="center">
|
| 14 |
+
<img src="hero.svg" alt="FactoryVision AI PPE detection: YOLO11n object detection for safety equipment" width="100%">
|
| 15 |
+
<p><strong>Educational prototype</strong> | Object detection for factory and construction imagery | Human review required</p>
|
| 16 |
+
</div>
|
| 17 |
+
|
| 18 |
+
<h2>Model overview</h2>
|
| 19 |
+
<table>
|
| 20 |
+
<thead><tr><th>Model</th><th>Task</th><th>Framework</th><th>Weights</th></tr></thead>
|
| 21 |
+
<tbody><tr><td>FactoryVision AI PPE YOLO11n</td><td>Object detection</td><td>Ultralytics YOLO11n</td><td><code>model.pt</code></td></tr></tbody>
|
| 22 |
+
</table>
|
| 23 |
+
|
| 24 |
+
<h2>Held-out test results</h2>
|
| 25 |
+
<table>
|
| 26 |
+
<thead><tr><th>Metric</th><th>Reported result</th></tr></thead>
|
| 27 |
+
<tbody>
|
| 28 |
+
<tr><td>Precision (bounding boxes)</td><td><strong>0.8400</strong></td></tr>
|
| 29 |
+
<tr><td>Recall (bounding boxes)</td><td><strong>0.6398</strong></td></tr>
|
| 30 |
+
<tr><td>mAP@50</td><td><strong>0.7053</strong></td></tr>
|
| 31 |
+
<tr><td>mAP@50:95</td><td><strong>0.3927</strong></td></tr>
|
| 32 |
+
</tbody>
|
| 33 |
+
</table>
|
| 34 |
+
<p>These values are reported in <code>ppe_test_metrics.json</code>, not independently reproduced. The reported test split has 82 images; a class-specific breakdown is not included in this package. Do not confuse the separate pretrained YOLO COCO person baseline with this PPE result.</p>
|
| 35 |
+
|
| 36 |
+
<h2>Purpose and safety</h2>
|
| 37 |
+
<p>Educational object detection for people and PPE-related objects in factory and construction images. <strong>This is not a certified industrial safety system.</strong> Detected PPE status is only a suggested alert requiring human review; it cannot establish a worker's actual PPE compliance or substitute for a trained safety inspector. Missed detections mean unsafe situations may go unflagged.</p>
|
| 38 |
+
<blockquote><strong>Safety limitation:</strong> Object detections alone do not perform the project's person-to-helmet association. The original application implements an additional alert logic layer; consult its source and use human review.</blockquote>
|
| 39 |
+
|
| 40 |
+
<h2>Model details</h2>
|
| 41 |
+
<ul>
|
| 42 |
+
<li>Fine-tuned Ultralytics YOLO11n; original starting checkpoint <code>yolo11n.pt</code></li>
|
| 43 |
+
<li>Packaged weights: <code>model.pt</code> (archive path <code>checkpoints/ppe_yolo.pt</code>)</li>
|
| 44 |
+
<li>10 classes: see <code>labels.json</code></li>
|
| 45 |
+
<li>Training configuration: 30 epochs, 640px image size, batch size 16; the training script uses a held-out PPE test split</li>
|
| 46 |
+
</ul>
|
| 47 |
+
|
| 48 |
+
<h2>Training data</h2>
|
| 49 |
+
<p>Construction Site Safety Image Dataset, attributed to Snehil Sanyal / Roboflow Universe and referenced by the source project: <a href="https://www.kaggle.com/datasets/snehilsanyal/construction-site-safety-image-dataset-roboflow">Kaggle dataset</a>. The source project lists CC BY 4.0 for this dataset; verify provenance and attribution requirements before public release. Dataset images are not included in this model package.</p>
|
| 50 |
+
|
| 51 |
+
<h2>Example inference</h2>
|
| 52 |
+
<pre><code>from ultralytics import YOLO
|
|
|
|
| 53 |
model = YOLO('model.pt')
|
| 54 |
results = model.predict('your_image.jpg', conf=0.25)
|
| 55 |
for result in results:
|
| 56 |
+
print(result.boxes)</code></pre>
|
| 57 |
+
|
| 58 |
+
<h2>Licensing and redistribution</h2>
|
| 59 |
+
<ul>
|
| 60 |
+
<li>Ultralytics YOLO11 and its fine-tuned checkpoints have AGPL-3.0 obligations by default, or require a suitable enterprise licence for uses incompatible with AGPL-3.0. See <a href="https://www.ultralytics.com/license">Ultralytics licensing</a>.</li>
|
| 61 |
+
<li>The source repository's MIT licence does <strong>not</strong> automatically license this trained checkpoint, pretrained weights, or source datasets.</li>
|
| 62 |
+
<li>The original developer has reportedly authorised publication; the publisher must still confirm the specific publication terms and applicable third-party rights.</li>
|
| 63 |
+
<li><strong>Do not assign an MIT/Apache model licence or switch to public visibility until licensing has been checked and recorded.</strong></li>
|
| 64 |
+
</ul>
|
| 65 |
+
|
| 66 |
+
<h2>Known limitations</h2>
|
| 67 |
+
<p>Domain shift, lighting, small objects, occlusion, crowded scenes, cameras and inference thresholds may reduce performance. False negatives are especially concerning for PPE alerting.</p>
|
| 68 |
+
|
| 69 |
+
<hr>
|
| 70 |
+
<h2>Credits and attribution</h2>
|
| 71 |
+
<table>
|
| 72 |
+
<thead><tr><th>Role</th><th>Contributor</th></tr></thead>
|
| 73 |
+
<tbody>
|
| 74 |
+
<tr><td>Original Developer & Model Author</td><td>Theivanth Rajamohan</td></tr>
|
| 75 |
+
<tr><td>Technical Reviewer, Code Contributor & Publication Support</td><td><a href="https://huggingface.co/Swapinvidya">Swapin Vidya</a></td></tr>
|
| 76 |
+
<tr><td>Project Contributor</td><td><a href="https://huggingface.co/rajahshan">Rajah Shanmugasundaram</a></td></tr>
|
| 77 |
+
<tr><td>Publishing Organisation</td><td>TechSphere Consultancy Services Private Limited</td></tr>
|
| 78 |
+
</tbody>
|
| 79 |
+
</table>
|
| 80 |
+
<p><strong>Project provenance:</strong> FactoryVision AI was originally developed by Theivanth Rajamohan. <a href="https://huggingface.co/Swapinvidya">Swapin Vidya</a> contributed technical review, detection-metrics improvements, testing, model publication preparation and documentation. The models are being prepared for publication under TechSphere Consultancy Services Private Limited's Hugging Face namespace, with the original developer's permission.</p>
|
| 81 |
+
<ul>
|
| 82 |
+
<li><a href="https://huggingface.co/TechsphereAI">TechSphereAI on Hugging Face</a></li>
|
| 83 |
+
<li><a href="https://techsphereconsultancy.com/">Official website</a></li>
|
| 84 |
+
<li><a href="https://github.com/Theivanth/Factory-Vision-AI">Original GitHub project</a></li>
|
| 85 |
+
<li><a href="https://github.com/Theivanth/Factory-Vision-AI/pull/1">Swapin Vidya's merged contribution</a></li>
|
| 86 |
+
</ul>
|
hero.svg
ADDED
|
|