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,43 +10,45 @@ tags:
|
|
| 10 |
- education
|
| 11 |
- yolo11
|
| 12 |
---
|
| 13 |
-
# FactoryVision AI
|
|
|
|
| 14 |
|
| 15 |
-
**
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
**Publishing Organisation:** TechSphere Consultancy Services Private Limited
|
| 21 |
-
**Hugging Face:** https://huggingface.co/TechsphereAI
|
| 22 |
-
**Official Website:** https://techsphereconsultancy.com/
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
## Architecture and files
|
| 33 |
- Fine-tuned Ultralytics YOLO11n; original starting checkpoint `yolo11n.pt`
|
| 34 |
-
-
|
| 35 |
- 10 classes: see `labels.json`
|
| 36 |
-
- Training: 30
|
| 37 |
|
| 38 |
-
## Training data
|
| 39 |
-
Construction Site Safety Image Dataset, attributed to Snehil Sanyal / Roboflow Universe, referenced by the source project: https://www.kaggle.com/datasets/snehilsanyal/construction-site-safety-image-dataset-roboflow . 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.
|
| 40 |
|
| 41 |
-
|
| 42 |
-
- Precision (bounding boxes): **0.8400**
|
| 43 |
-
- Recall (bounding boxes): **0.6398**
|
| 44 |
-
- mAP@50: **0.7053**
|
| 45 |
-
- mAP@50:95: **0.3927**
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
## Example inference
|
| 50 |
```python
|
| 51 |
from ultralytics import YOLO
|
| 52 |
model = YOLO('model.pt')
|
|
@@ -55,13 +57,31 @@ for result in results:
|
|
| 55 |
print(result.boxes)
|
| 56 |
```
|
| 57 |
|
| 58 |
-
|
| 59 |
|
| 60 |
-
|
| 61 |
-
- 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 https://www.ultralytics.com/license
|
| 62 |
- The source repository's MIT licence does **not** automatically license this trained checkpoint, pretrained weights, or source datasets.
|
| 63 |
- The original developer has reportedly authorised publication; the publisher must still confirm the specific publication terms and applicable third-party rights.
|
| 64 |
- **Do not assign an MIT/Apache model licence or switch to public visibility until licensing has been checked and recorded.**
|
| 65 |
|
| 66 |
-
## Known limitations
|
|
|
|
| 67 |
Domain shift, lighting, small objects, occlusion, crowded scenes, cameras and inference thresholds may reduce performance. False negatives are especially concerning for PPE alerting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
- education
|
| 11 |
- yolo11
|
| 12 |
---
|
| 13 |
+
# π FactoryVision AI
|
| 14 |
+
## PPE Detection Β· YOLO11n
|
| 15 |
|
| 16 |
+
> **Educational prototype** Β· Object detection for factory and construction imagery Β· **Human review required**
|
| 17 |
|
| 18 |
+
| Model | Task | Framework | Weights |
|
| 19 |
+
|---|---|---|---|
|
| 20 |
+
| FactoryVision AI PPE YOLO11n | Object detection | Ultralytics YOLO11n | `model.pt` |
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
## π Held-out test results
|
| 23 |
|
| 24 |
+
| Metric | Reported result |
|
| 25 |
+
|---|---:|
|
| 26 |
+
| Precision (bounding boxes) | **0.8400** |
|
| 27 |
+
| Recall (bounding boxes) | **0.6398** |
|
| 28 |
+
| mAP@50 | **0.7053** |
|
| 29 |
+
| mAP@50:95 | **0.3927** |
|
| 30 |
|
| 31 |
+
These values are reported in `ppe_test_metrics.json`, 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.
|
| 32 |
+
|
| 33 |
+
## π― Purpose and safety
|
| 34 |
+
|
| 35 |
+
Educational object detection for people and PPE-related objects in factory/construction images. **This is not a certified industrial safety system.** 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.
|
| 36 |
+
|
| 37 |
+
> β οΈ 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.
|
| 38 |
+
|
| 39 |
+
## π§ Model details
|
| 40 |
|
|
|
|
| 41 |
- Fine-tuned Ultralytics YOLO11n; original starting checkpoint `yolo11n.pt`
|
| 42 |
+
- Packaged weights: `model.pt` (archive path `checkpoints/ppe_yolo.pt`)
|
| 43 |
- 10 classes: see `labels.json`
|
| 44 |
+
- Training configuration: 30 epochs, 640px image size, batch size 16; the training script uses a held-out PPE test split
|
| 45 |
|
| 46 |
+
## ποΈ Training data
|
|
|
|
| 47 |
|
| 48 |
+
Construction Site Safety Image Dataset, attributed to Snehil Sanyal / Roboflow Universe and referenced by the source project: [Kaggle dataset](https://www.kaggle.com/datasets/snehilsanyal/construction-site-safety-image-dataset-roboflow). 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
## π Example inference
|
| 51 |
|
|
|
|
| 52 |
```python
|
| 53 |
from ultralytics import YOLO
|
| 54 |
model = YOLO('model.pt')
|
|
|
|
| 57 |
print(result.boxes)
|
| 58 |
```
|
| 59 |
|
| 60 |
+
## βοΈ Licensing and redistribution
|
| 61 |
|
| 62 |
+
- 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 [Ultralytics licensing](https://www.ultralytics.com/license).
|
|
|
|
| 63 |
- The source repository's MIT licence does **not** automatically license this trained checkpoint, pretrained weights, or source datasets.
|
| 64 |
- The original developer has reportedly authorised publication; the publisher must still confirm the specific publication terms and applicable third-party rights.
|
| 65 |
- **Do not assign an MIT/Apache model licence or switch to public visibility until licensing has been checked and recorded.**
|
| 66 |
|
| 67 |
+
## β οΈ Known limitations
|
| 68 |
+
|
| 69 |
Domain shift, lighting, small objects, occlusion, crowded scenes, cameras and inference thresholds may reduce performance. False negatives are especially concerning for PPE alerting.
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
## π€ Credits and attribution
|
| 74 |
+
|
| 75 |
+
| Role | Contributor |
|
| 76 |
+
|---|---|
|
| 77 |
+
| Original Developer & Model Author | Theivanth Rajamohan |
|
| 78 |
+
| Technical Reviewer, Code Contributor & Publication Support | [Swapin Vidya](https://huggingface.co/Swapinvidya) |
|
| 79 |
+
| Project Contributor | [Rajah Shanmugasundaram](https://huggingface.co/rajahshan) |
|
| 80 |
+
| Publishing Organisation | TechSphere Consultancy Services Private Limited |
|
| 81 |
+
|
| 82 |
+
**Project provenance:** FactoryVision AI was originally developed by Theivanth Rajamohan. [Swapin Vidya](https://huggingface.co/Swapinvidya) 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.
|
| 83 |
+
|
| 84 |
+
- π€ [TechSphereAI on Hugging Face](https://huggingface.co/TechsphereAI)
|
| 85 |
+
- π [Official website](https://techsphereconsultancy.com/)
|
| 86 |
+
- π» [Original GitHub project](https://github.com/Theivanth/Factory-Vision-AI)
|
| 87 |
+
- π [Swapin Vidya's merged contribution](https://github.com/Theivanth/Factory-Vision-AI/pull/1)
|