classify_nl_traffic_signs_zone
YOLOv26 image classification model for identifying whether a Dutch traffic sign is a zone sign (beginning, repetition, or end of zone). Trained on cropped sign images from the Panoramax platform.
This model is the fourth stage in a four-step pipeline:
- Detection β
Panoramax/detect_face_plate_signlocalises the sub-sign crop - Classification β this model identifies the traffic sign class from the crop
- Black code generation β this model generates the black code on the traffic sign from the crop
- Zone type classification β this model identifies the zone type of the traffic sign on the crop
Why classify by zone type?
There are some Dutch traffic signs that can be zone signs, such as a max-speed 30 km/h sign or a max-weight 7.5 tons sign. Others cannot be a zone sign, such as a zebra-crossing sign. In step 1 of the pipeline, the signs that can be zone signs are not trained separately based on whether they are or are not a zone sign. That is why this last step of classifying by zone type is necessary to distinguish a regular max-speed 30 km/h sign from its zone equivalent.
Model details
| Property | Value |
|---|---|
| Architecture | YOLO26n-cls (Ultralytics) |
| Base model | yolo26n-cls.pt (pretrained ImageNet) |
| Fine-tuning epochs | 30 |
| Input size | 224 Γ 224 px |
| Classes | 4 |
| Training images | 260 |
| Validation images | 112 |
Classes
| ID | Class | Description |
|---|---|---|
| 0 | no_zone |
not a zone sign |
| 1 | zone_begin |
start of a zone |
| 2 | zone_einde |
end of a zone |
| 3 | zone_herhaling |
repetition of a zone to indicate that the zone continues |
Performance
Validation set (4,760 images)
| Metric | Value |
|---|---|
| Top-1 accuracy | 96.4% |
Usage
from ultralytics import YOLO
model = YOLO("akniele/classify_sign_zones")
results = model.predict("sign_crop.jpg", conf=0.50)
for r in results:
print(r.probs.top1, model.names[r.probs.top1], float(r.probs.top1conf))
The model expects a cropped image of a sign β not a full street photo.
Use Panoramax/detect_face_plate_sign to obtain the crop first.
Training
| Parameter | Value |
|---|---|
| Epochs | 30 |
| Batch size | 16 |
| Image size | 224 Γ 224 |
| Optimizer | Auto (Ultralytics default) |
| Initial LR | 0.01 |
| Augmentation | RandAugment, fliplr disabled, translate=0.2, shear=10.0, dropout=0.2 |
The training dataset used for this model is based on the dataset Panoramax/Panoramax/classified_nl_road_signs.
Dataset
See Panoramax/???
for the training and validation images.
License
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)