Instructions to use morsetechlab/yolov11-license-plate-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use morsetechlab/yolov11-license-plate-detection 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("morsetechlab/yolov11-license-plate-detection", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Download README.md from morsetechlab/yolov11-license-plate-detection: direct link, hf CLI and curl.
- Browser
- Download file 3.78 kB
-
https://huggingface.co/morsetechlab/yolov11-license-plate-detection/resolve/main/README.md
- Command line
-
hf download hf://morsetechlab/yolov11-license-plate-detection/README.md
-
curl -L -o README.md https://huggingface.co/morsetechlab/yolov11-license-plate-detection/resolve/main/README.md
language: en
license: agpl-3.0
tags:
- computer-vision
- object-detection
- license-plate
- yolov11
- ultralytics
- finetuned
datasets:
- roboflow/license-plate-recognition-rxg4e
metrics:
- precision
- recall
- mAP@50
- mAP@50-95
YOLOv11-License-Plate Detection
This is a fine-tuned version of YOLOv11 (n, s, m, l, x) specialized for License Plate Detection, using a public dataset from Roboflow Universe: License Plate Recognition Dataset (10,125 images)
β οΈ Important Notice: Dataset Contamination
The upstream Roboflow dataset (license-plate-recognition-rxg4e) contains train/test contamination β the same source images appear in both the training and test splits with only minor manual augmentation applied (see Discussion #2 for concrete examples). As a result:
- The reported metrics below are likely overestimated, because the test set is not a true held-out evaluation.
- Real-world generalization performance is expected to be lower than the numbers in the table.
- Treat all evaluation figures with caution and validate the model on your own held-out data before production use.
A clean re-split with perceptual-hash deduplication, group-aware splitting, and a re-trained v2 release with honest metrics is planned. See Roadmap below.
π Use Cases
- Smart Parking Systems
- Tollgate / Access Control Automation
- Traffic Surveillance & Enforcement
- ALPR with OCR Integration
ποΈ Training Details
- Base Model: YOLOv11 (
n,s,m,l,x) - Training Epochs: 300
- Input Size: 640x640
- Optimizer: SGD (Ultralytics default)
- Device: NVIDIA A100
- Data Format: YOLOv5-compatible (images + labels in txt)
π Evaluation Metrics (YOLOv11x)
β οΈ These metrics are computed on a contaminated test split (see notice above) and should not be interpreted as a reliable measure of generalization.
| Metric | Value |
|---|---|
| Precision | 0.9893 |
| Recall | 0.9508 |
| mAP@50 | 0.9813 |
| mAP@50-95 | 0.7260 |
For full table across models (n to x), please see the README
π Known Limitations
- Train/test leakage in upstream dataset β see notice above. Metrics are inflated.
- Fixed 640Γ640 inference resizes large images β small or distant plates in high-resolution inputs (e.g. 1200Γ2400) may be missed. Workarounds: use a larger
imgsz(e.g. 1280 or 1600), rectangular inference, or tile-based inference with SAHI. See Discussion #1. - Trained primarily on automotive license plates; performance on motorcycles, non-Latin scripts, or unusual plate formats is not guaranteed.
πΊοΈ Roadmap (v2)
- Deduplicate the source dataset with perceptual hashing (pHash / dHash) to identify near-duplicate and augmented-variant pairs.
- Re-split with group-aware logic so augmented variants of the same source image stay in the same fold.
- Retrain across all model sizes and publish honest evaluation metrics.
- Add an independent external test set for a more realistic generalization signal.
Contributions, cleaner datasets, or external benchmark suggestions are welcome via Discussions.
π¦ Model Variants
- PyTorch (.pt) β for use with Ultralytics CLI and Python API
- ONNX (.onnx) β for cross-platform inference
π§ How to Use
With Python (Ultralytics API):