Alessandro Ferrante
commited on
Commit
Β·
10c30e8
1
Parent(s):
f730558
Upload StreetSignSense YOLO12m model and metrics
Browse files- .gitattributes +3 -0
- README.md +193 -0
- metrics/BoxF1_curve.png +3 -0
- metrics/BoxPR_curve.png +3 -0
- metrics/BoxP_curve.png +3 -0
- metrics/BoxR_curve.png +3 -0
- metrics/confusion_matrix.png +3 -0
- metrics/confusion_matrix_normalized.png +3 -0
- metrics/labels.jpg +3 -0
- metrics/results.csv +3 -0
- metrics/results.png +3 -0
- streetsignsense-yolo12m.pt +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,196 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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10 |
+
- yolov12
|
| 11 |
+
- traffic-signs
|
| 12 |
+
- autonomous-driving
|
| 13 |
+
- adas
|
| 14 |
+
datasets:
|
| 15 |
+
- AlessandroFerrante/StreetSignSet
|
| 16 |
+
metrics:
|
| 17 |
+
- mAP
|
| 18 |
+
- f1
|
| 19 |
+
- precision
|
| 20 |
+
- recall
|
| 21 |
+
pipeline_tag: object-detection
|
| 22 |
---
|
| 23 |
+
|
| 24 |
+
<div align="center">
|
| 25 |
+
|
| 26 |
+
# StreetSignSenseYOLO12m
|
| 27 |
+
|
| 28 |
+
[](https://github.com/ultralytics/ultralytics)
|
| 29 |
+
[](https://github.com/ultralytics/ultralytics)
|
| 30 |
+
[](https://github.com/sunsmarterjie/yolov12)
|
| 31 |
+
|
| 32 |
+
[](https://www.python.org/)
|
| 33 |
+
[](https://pytorch.org/)
|
| 34 |
+
[](LICENSE)
|
| 35 |
+
[](LICENSE)
|
| 36 |
+
|
| 37 |
+
[](https://github.com/AlessandroFerrante/StreetSignSense/)
|
| 38 |
+
[](https://alessandroferrante.github.io/StreetSignSense/report/Report.pdf)
|
| 39 |
+
|
| 40 |
+
[](https://github.com/AlessandroFerrante/StreetSignSense/releases)
|
| 41 |
+
[](https://github.com/AlessandroFerrante/StreetSignSense/releases)
|
| 42 |
+
[](https://github.com/AlessandroFerrante/StreetSignSense/releases)
|
| 43 |
+
|
| 44 |
+
[](https://www.kaggle.com/models/ferrantealessandro/streetsignsensey12n/)
|
| 45 |
+
[](https://www.kaggle.com/models/ferrantealessandro/streetsignsensey12s/)
|
| 46 |
+
[](https://www.kaggle.com/models/ferrantealessandro/streetsignsensey12m/)
|
| 47 |
+
|
| 48 |
+
[](https://huggingface.co/AlessandroFerrante/StreetSignSenseY12n)
|
| 49 |
+
[](https://HuggingFace.co/AlessandroFerrante/StreetSignSenseY12s)
|
| 50 |
+
[](https://huggingface.co/AlessandroFerrante/StreetSignSenseY12m)
|
| 51 |
+
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
# Model Summary
|
| 57 |
+
|
| 58 |
+
**Street Sign Sense (YOLO12m)** is an object detection model designed to identify and classify traffic signs in real-time. Based on the advanced **YOLO12 Medium** architecture, this model balances high accuracy with computational efficiency, making it suitable for Advanced Driver Assistance Systems (ADAS) research. It has been trained on the custom **Street Sign Set**, covering **63 distinct classes** of traffic signs.
|
| 59 |
+
|
| 60 |
+
## Usage
|
| 61 |
+
|
| 62 |
+
### Live Demo
|
| 63 |
+
|
| 64 |
+
You can test this model instantly in your browser without any setup: π **[Interactive Web Demo](http://alessandroferrante.github.io/StreetSignSense)**
|
| 65 |
+
|
| 66 |
+
#### Python
|
| 67 |
+
|
| 68 |
+
This model can be used with the Ultralytics framework or the official YOLO12 repository. It takes an image as input and outputs bounding boxes with class labels and confidence scores.
|
| 69 |
+
|
| 70 |
+
### Code Snippet (Python)
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
from ultralytics import YOLO
|
| 74 |
+
|
| 75 |
+
# Load the model
|
| 76 |
+
model = YOLO('path/to/streetsignsense-yolo12m.pt') # Replace with the downloaded model path
|
| 77 |
+
|
| 78 |
+
# Run inference on an image
|
| 79 |
+
results = model.predict(source='path/to/image.jpg')
|
| 80 |
+
|
| 81 |
+
# Show results
|
| 82 |
+
results[0].show()
|
| 83 |
+
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
**Inputs:** Images (RGB) of various resolutions (model trained at standard YOLO resolutions, e.g., 640x640).
|
| 87 |
+
**Outputs:** List of `Results` objects containing bounding boxes (`xyxy`), class IDs, and confidence scores.
|
| 88 |
+
``` text
|
| 89 |
+
/StreetSignSenseY12m
|
| 90 |
+
βββ .gitattributes
|
| 91 |
+
βββ README.md
|
| 92 |
+
βββ streetsignsense-yolo12m.pt
|
| 93 |
+
βββ metrics/ # metrics image folder
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
## System
|
| 97 |
+
|
| 98 |
+
**Standalone Model:** Yes, this is a standalone object detection model.
|
| 99 |
+
**Input Requirements:** Standard RGB images. No specific metadata required.
|
| 100 |
+
**Downstream Dependencies:** The output (detected classes and locations) is intended to be used by decision-making logic in ADAS simulations or autonomous driving pipelines.
|
| 101 |
+
|
| 102 |
+
## Implementation requirements
|
| 103 |
+
|
| 104 |
+
**Hardware:** Training was performed on Kaggle Notebooks using NVIDIA GPUs (e.g., Tesla P100 or T4).
|
| 105 |
+
**Software:** PyTorch, Ultralytics YOLO framework.
|
| 106 |
+
**Compute:**
|
| 107 |
+
|
| 108 |
+
* **Training Time:** 13h 23m 53s Β· GPU T4 x (depending on epochs).
|
| 109 |
+
* **Inference:** Capable of real-time performance (>30 FPS) on modern GPUs.
|
| 110 |
+
|
| 111 |
+
# Model Characteristics
|
| 112 |
+
|
| 113 |
+
## Model initialization
|
| 114 |
+
|
| 115 |
+
**Fine-tuned:** The model was initialized with pre-trained COCO weights (Transfer Learning) and then fine-tuned on the "Street Sign Sense" dataset to specialize in traffic sign detection.
|
| 116 |
+
|
| 117 |
+
## Model stats
|
| 118 |
+
|
| 119 |
+
**Architecture:** YOLO12m (Medium).
|
| 120 |
+
**Characteristics:** Utilizes attention-centric mechanisms to improve feature extraction compared to previous YOLO versions.
|
| 121 |
+
**Size:** Medium-sized model, offering a trade-off between the speed of the 'Nano/Small' versions and the raw accuracy of the 'Large/X-Large' versions.
|
| 122 |
+
|
| 123 |
+
## Other details
|
| 124 |
+
|
| 125 |
+
**Precision:** Trained using Mixed Precision (AMP).
|
| 126 |
+
**Pruning/Quantization:** The uploaded weights are standard FP32/FP16. No post-training quantization has been applied yet.
|
| 127 |
+
|
| 128 |
+
# Data Overview
|
| 129 |
+
|
| 130 |
+
## Training data
|
| 131 |
+
|
| 132 |
+
The model was trained on the **Street Sign Set** (available on Kaggle).
|
| 133 |
+
|
| 134 |
+
* **Source:** A combination of public datasets and manually collected/annotated images.
|
| 135 |
+
* **Size:** Contains thousands of images with bounding box annotations.
|
| 136 |
+
* **Classes:** 63 specific traffic sign classes (speed limits, warnings, prohibitions, etc.).
|
| 137 |
+
* **Preprocessing:** Images were resized, and data augmentation (Mosaic, scaling, color adjustments) was applied during training to improve robustness.
|
| 138 |
+
|
| 139 |
+
## Demographic groups
|
| 140 |
+
|
| 141 |
+
**N/A:** The dataset consists of street signs and environmental imagery. No human demographic data is involved or analyzed.
|
| 142 |
+
|
| 143 |
+
## Evaluation data
|
| 144 |
+
|
| 145 |
+
The dataset was split into:
|
| 146 |
+
|
| 147 |
+
* **Train:** 70-80%
|
| 148 |
+
* **Validation:** 10-20%
|
| 149 |
+
* **Test:** 10%
|
| 150 |
+
**Differences:** The test set contains unseen images from different environmental conditions to test generalization.
|
| 151 |
+
|
| 152 |
+
# Evaluation Results
|
| 153 |
+
* **Overview Risultati:**
|
| 154 |
+

|
| 155 |
+
* **Confusion Matrix:**
|
| 156 |
+

|
| 157 |
+
|
| 158 |
+
#### Detailed Curves (Small)
|
| 159 |
+
|
| 160 |
+
| Precision-Recall | F1 Score |
|
| 161 |
+
| :----------------------------------------: | :----------------------------------------: |
|
| 162 |
+
|  |  |
|
| 163 |
+
| **Precision** | **Recall** |
|
| 164 |
+
|  |  |
|
| 165 |
+
|
| 166 |
+
## Summary
|
| 167 |
+
|
| 168 |
+
The model achieves high Mean Average Precision (mAP) on the test set, demonstrating strong capabilities in detecting small objects (traffic signs at a distance) and operating in varied lighting conditions.
|
| 169 |
+
|
| 170 |
+
* **Detailed Metrics:** Please refer to the training graphs (F1-score, Precision-Recall curve) included in the attached notebooks.
|
| 171 |
+
|
| 172 |
+
## Subgroup evaluation results
|
| 173 |
+
|
| 174 |
+
Performance is generally consistent across major classes (e.g., Speed Limits, Stop signs). However, classes with significantly fewer samples in the dataset may show slightly lower recall.
|
| 175 |
+
|
| 176 |
+
## Fairness
|
| 177 |
+
|
| 178 |
+
**Definition:** Fairness in this context is defined as the model's ability to detect signs regardless of background clutter or slight occlusions.
|
| 179 |
+
**Results:** The model shows robust performance in standard driving scenarios.
|
| 180 |
+
|
| 181 |
+
## Usage limitations
|
| 182 |
+
|
| 183 |
+
* **Lighting:** Performance may degrade in extreme low-light conditions (night without streetlights) or heavy weather (dense fog/heavy rain) if not sufficiently represented in the training data.
|
| 184 |
+
* **Occlusion:** Signs that are more than 50% occluded may not be detected reliably.
|
| 185 |
+
* **Geography:** The model is trained primarily on European/International standard signs; it may not recognize signs specific to other regions that differ significantly in shape or color.
|
| 186 |
+
|
| 187 |
+
## Ethics
|
| 188 |
+
|
| 189 |
+
**Safety:** This model is for research and educational purposes (ADAS development). It should **not** be used as the sole system for controlling a real vehicle on public roads without extensive safety validation and redundancy.
|
| 190 |
+
**Privacy:** The dataset focuses on public street signs. Any incidental faces or license plates in the background are not the target of this model.
|
| 191 |
+
|
| 192 |
+
## π¨βπ» Author
|
| 193 |
+
|
| 194 |
+
[Alessandro Ferrante](https://alessandroferrante.net)
|
| 195 |
+
|
| 196 |
+
Email: [streetsignsense@alessandroferrante.net](mailto:streetsignsense@alessandroferrante.net)
|
metrics/BoxF1_curve.png
ADDED
|
Git LFS Details
|
metrics/BoxPR_curve.png
ADDED
|
Git LFS Details
|
metrics/BoxP_curve.png
ADDED
|
Git LFS Details
|
metrics/BoxR_curve.png
ADDED
|
Git LFS Details
|
metrics/confusion_matrix.png
ADDED
|
Git LFS Details
|
metrics/confusion_matrix_normalized.png
ADDED
|
Git LFS Details
|
metrics/labels.jpg
ADDED
|
Git LFS Details
|
metrics/results.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65f8b9a3addc2e46ac715debd394ff806d5394df1749df52fb42d20a80b50bf9
|
| 3 |
+
size 31266
|
metrics/results.png
ADDED
|
Git LFS Details
|
streetsignsense-yolo12m.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f73a8d3f74583d2cb2f658f8234b46835f90d8eb5bf8a932a394b1263697ba6
|
| 3 |
+
size 81419736
|