Alessandro Ferrante commited on
Commit
10c30e8
Β·
1 Parent(s): f730558

Upload StreetSignSense YOLO12m model and metrics

Browse files
.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
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
  license: cc-by-4.0
5
+ library_name: ultralytics
6
+ tags:
7
+ - real-time
8
+ - object-detection
9
+ - yolo
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
+ [![Ultralytics 8.3.229 ](https://img.shields.io/badge/Ultralytics-8.3.229-lightblue?logo=ultralytics&logoColor=white)](https://github.com/ultralytics/ultralytics)
29
+ [![Ultralytics Github](https://img.shields.io/badge/Ultralytics-Github-darkgreen?logo=ultralytics&logoColor=white)](https://github.com/ultralytics/ultralytics)
30
+ [![Ultralytics YOLO12](https://img.shields.io/badge/Ultralytics-YOLO12-8A2BE2?logo=ultralytics&logoColor=white)](https://github.com/sunsmarterjie/yolov12)
31
+
32
+ [![Python 3.11.13 ](https://img.shields.io/badge/Python-3.11.13-blue?logo=python&logoColor=white)](https://www.python.org/)
33
+ [![PyTorch 2.6.0](https://img.shields.io/badge/PyTorch-2.6.0-EE4C2C?logo=pytorch&logoColor=white)](https://pytorch.org/)
34
+ [![License](https://img.shields.io/badge/License-MIT-green.svg?)](LICENSE)
35
+ [![License](https://img.shields.io/badge/License-CC_BY_4.0-orange.svg?)](LICENSE)
36
+
37
+ [![Project-StreetSignSense](https://img.shields.io/badge/Project-StreetSignSense-007bff.svg)](https://github.com/AlessandroFerrante/StreetSignSense/)
38
+ [![Badge Report PDF](https://img.shields.io/badge/πŸ“‘-Technical_Report-white?logo=pdf&logoColor=white)](https://alessandroferrante.github.io/StreetSignSense/report/Report.pdf)
39
+
40
+ [![GitHub Release](https://img.shields.io/badge/GitHub-StreetSignSenseY12n-181717?logo=github)](https://github.com/AlessandroFerrante/StreetSignSense/releases)
41
+ [![GitHub Release](https://img.shields.io/badge/GitHub-StreetSignSenseY12s-181717?logo=github)](https://github.com/AlessandroFerrante/StreetSignSense/releases)
42
+ [![GitHub Release](https://img.shields.io/badge/GitHub-StreetSignSenseY12m-181717?logo=github)](https://github.com/AlessandroFerrante/StreetSignSense/releases)
43
+
44
+ [![Model-StreetSignSense](https://img.shields.io/badge/KaggleModel-StreetSignSenseY12n-20BEFF.svg?logo=kaggle&logoColor=white)](https://www.kaggle.com/models/ferrantealessandro/streetsignsensey12n/)
45
+ [![Model-StreetSignSense](https://img.shields.io/badge/KaggleModel-StreetSignSenseY12s-20BEFF.svg?logo=kaggle&logoColor=white)](https://www.kaggle.com/models/ferrantealessandro/streetsignsensey12s/)
46
+ [![Model-StreetSignSense](https://img.shields.io/badge/KaggleModel-StreetSignSenseY12m-20BEFF.svg?logo=kaggle&logoColor=white)](https://www.kaggle.com/models/ferrantealessandro/streetsignsensey12m/)
47
+
48
+ [![Model-StreetSignSense](https://img.shields.io/badge/HuggingFace-StreetSignSenseY12n-FFD21E.svg?logo=huggingface)](https://huggingface.co/AlessandroFerrante/StreetSignSenseY12n)
49
+ [![Model-StreetSignSense](https://img.shields.io/badge/KaggleModel-StreetSignSenseY12s-FFD21E.svg?logo=huggingface)](https://HuggingFace.co/AlessandroFerrante/StreetSignSenseY12s)
50
+ [![Model-StreetSignSense](https://img.shields.io/badge/HuggingFace-StreetSignSenseY12m-FFD21E.svg?logo=huggingface)](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 (&gt;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
+ ![Results Small](metrics/results.png)
155
+ * **Confusion Matrix:**
156
+ ![Confusion Matrix Small](metrics/confusion_matrix_normalized.png)
157
+
158
+ #### Detailed Curves (Small)
159
+
160
+ | Precision-Recall | F1 Score |
161
+ | :----------------------------------------: | :----------------------------------------: |
162
+ | ![PR Curve Small](metrics/BoxPR_curve.png) | ![F1 Curve Small](metrics/BoxF1_curve.png) |
163
+ | **Precision** | **Recall** |
164
+ | ![P Curve Small](metrics/BoxP_curve.png) | ![R Curve Small](metrics/BoxR_curve.png) |
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

  • SHA256: ac56ebfb1e05341cb57539805e893521b12d45e0787827841766fc6d18c71580
  • Pointer size: 131 Bytes
  • Size of remote file: 477 kB
metrics/BoxPR_curve.png ADDED

Git LFS Details

  • SHA256: 4a7111484a9a358328b488951477f7e264a1d65932e370f62ad1c96e767516d5
  • Pointer size: 131 Bytes
  • Size of remote file: 218 kB
metrics/BoxP_curve.png ADDED

Git LFS Details

  • SHA256: 5177f02cc94bb27b8ba76e64da3ba4c0241d92e71f70a4c803da2ea20c127edd
  • Pointer size: 131 Bytes
  • Size of remote file: 457 kB
metrics/BoxR_curve.png ADDED

Git LFS Details

  • SHA256: 91e0c49d0514d5ea8e183b9523e41e48e39a8584a37381f08a9a39e157879abe
  • Pointer size: 131 Bytes
  • Size of remote file: 392 kB
metrics/confusion_matrix.png ADDED

Git LFS Details

  • SHA256: 529b1d82a740aa5b20de603dd6e7a72f7b3693098a7f20d65c28949881ee8730
  • Pointer size: 131 Bytes
  • Size of remote file: 659 kB
metrics/confusion_matrix_normalized.png ADDED

Git LFS Details

  • SHA256: 76527bfd03d995b5fcae7534d0b84ee74f143dcc321685d8b358f63060fe3189
  • Pointer size: 131 Bytes
  • Size of remote file: 660 kB
metrics/labels.jpg ADDED

Git LFS Details

  • SHA256: c53afd942b881c9a0d0ad1226799d8b1272f7d6600c5519291a2c200597b5844
  • Pointer size: 131 Bytes
  • Size of remote file: 185 kB
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

  • SHA256: d5a7946788b041323e34a8e4cbde1156c5512128b115d68603e9f5ddae215f16
  • Pointer size: 131 Bytes
  • Size of remote file: 276 kB
streetsignsense-yolo12m.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f73a8d3f74583d2cb2f658f8234b46835f90d8eb5bf8a932a394b1263697ba6
3
+ size 81419736