Aller au contenu
ModelPrésentéExterne
Télécharger

Cardd Yolov8s

YOLOv8s fine-tuned on the CarDD dataset for vision-based car damage detection and instance segmentation. The model detects and segments six types of car damage and outperforms the original paper's best model (DCN+...

TypeOtherModèle de baseultralytics/ultralyticsVersionRevision 9ee0339

Source du modèle

Type
Other
Taille du fichier
21,5–22,8 MB
Modèle de base
ultralytics/ultralytics
Version
vRevision 9ee0339
Mis à jour
27 sept. 2026
Téléchargements
0
Tâches
Détection d'objets
Source
Hugging Face

Description de la source

CarDD YOLOv8s — Car Damage Detection & Segmentation

YOLOv8s fine-tuned on the CarDD dataset for vision-based car damage detection and instance segmentation. The model detects and segments six types of car damage and outperforms the original paper's best model (DCN+ ResNet-101) on every individual damage class.


🗂️ Model Versions

VersionFileTaskmAP50
v1.0v1.0/best.ptDetection only71.67%
v2.0v2.0/best.ptDetection + Segmentation75.84% 🔥

v2.0 is the recommended version. It adds instance segmentation masks on top of detection and achieves significantly better results across all metrics.


📈 v1.0 vs v2.0 — Side by Side Comparison

Overall Metrics

Metricv1.0 (Detection)v2.0 (Segmentation)Improvement
mAP50 (Box)71.67%75.84%✅ +4.17%
mAP50-95 (Box)55.43%58.93%✅ +3.50%
Precision (Box)75.11%76.84%✅ +1.73%
Recall (Box)67.52%68.27%✅ +0.75%
Mask mAP50❌ N/A75.90%✅ New
Mask mAP50-95❌ N/A57.00%✅ New
Model size22.5 MB22.5 MB➡️ Same
Inference speed7.7ms61ms⚠️ Slower*

*Segmentation is slower due to mask generation on top of detection.

Per-Class Comparison (Box mAP50)

Classv1.0v2.0Improvement
dent57.8%60.6%✅ +2.8%
scratch59.6%63.2%✅ +3.6%
crack37.7%55.5%✅ +17.8%
glass_shatter99.0%97.9%➡️ ~Same
lamp_broken85.5%86.8%✅ +1.3%
tire_flat90.5%91.0%✅ +0.5%

The biggest gain is on crack (+17.8%) — the hardest class in the dataset.


📊 Full Results (v2.0)

Overall Performance (Test Set)

MetricBoxMask
[email protected]75.84%75.90%
[email protected]:0.9558.93%57.00%
Precision76.84%77.40%
Recall68.27%68.70%

Per-Class Results (v2.0 Test Set)

ClassBox mAP50Mask mAP50
glass_shatter97.9%97.9%
tire_flat91.0%90.2%
lamp_broken86.8%88.2%
scratch63.2%60.4%
dent60.6%64.9%
crack55.5%54.0%

Benchmark Comparison vs CarDD Paper (v2.0)

ModelBackbonemAP50
Mask R-CNNResNet-5066.3%
Cascade Mask R-CNNResNet-5064.7%
GCNetResNet-5066.4%
HTCResNet-5068.1%
DCNResNet-5070.9%
Mask R-CNNResNet-10167.7%
HTCResNet-10168.4%
DCNResNet-10169.8%
YOLOv8s-seg v2.0 (ours)—75.8% 🔥
DCN+ResNet-5077.4%
DCN+ResNet-10178.8%

Per-Class vs DCN+ ResNet-101 (Paper's Best)

ClassDCN+ ResNet-101v2.0 (Box)Gain
dent40.5%60.6%✅ +20.1%
scratch34.3%63.2%✅ +28.9%
crack16.6%55.5%✅ +38.9%
glass_shatter92.6%97.9%✅ +5.3%
lamp_broken70.8%86.8%✅ +16.0%
tire_flat86.0%91.0%✅ +5.0%

v2.0 beats DCN+ ResNet-101 on every individual damage class, while being ~10x smaller (22.5MB vs 200MB+) and requiring only a consumer GPU to train.


📉 Training Curves (v2.0)

Training Curves


🔢 Confusion Matrix (v2.0)

Confusion Matrix


📈 PR & F1 Curves (v2.0)

Box PR Curve Box F1 Curve Mask PR Curve


🖼️ Predictions (v2.0)

Validation Predictions


📊 Dataset Label Distribution

Labels


📉 Training Curves (v1.0)

Training Curves v1


📊 Per-Class Comparison (v1.0)

Per-Class Comparison


🖼️ Ground Truth vs Predictions (v1.0)

GT vs Pred


🖼️ Predictions Grid (v1.0)

Predictions Grid


🚀 Usage

Install Dependencies

pip install ultralytics huggingface_hub

Load v2.0 (Recommended)

from huggingface_hub import hf_hub_download
from ultralytics import YOLO

model_path = hf_hub_download(
    repo_id="abdullahg7/cardd-yolov8s",
    filename="v2.0/best.pt"
)

model = YOLO(model_path)

results = model.predict(
    source="your_car_image.jpg",
    conf=0.25,
    iou=0.45
)

results[0].show()

Load v1.0 (Detection only)

model_path = hf_hub_download(
    repo_id="abdullahg7/cardd-yolov8s",
    filename="v1.0/best.pt"
)

model = YOLO(model_path)

Interpret Results (v2.0)

results = model.predict("car.jpg", conf=0.25)

# Detection boxes
for box in results[0].boxes:
    class_name = model.names[int(box.cls)]
    confidence = float(box.conf)
    print(f"Detected: {class_name} ({confidence:.2%})")

# Segmentation masks
if results[0].masks is not None:
    for mask in results[0].masks.data:
        print(f"Mask shape: {mask.shape}")  # (H, W) binary mask

⚙️ Training Configuration (v2.0)

ParameterValue
Base modelyolov8s-seg.pt
Epochs50
Batch size4
Image size1024px
OptimizerSGD
LR00.01
LRF0.01
Momentum0.937
Weight decay0.0005
Warmup epochs5.0
Cosine LRTrue
Close mosaic15

🔴 Damage Categories

IDClassDescription
0dentSurface deformation on car body
1scratchLinear paint damage
2crackStructural fractures
3glass_shatterBroken windows or windshields
4lamp_brokenDamaged headlights or tail lights
5tire_flatDeflated or damaged tires

📦 Dataset

  • Name: CarDD (Car Damage Detection)
  • Size: 4,000 high-resolution images, 9,000+ annotated instances
  • Access: cardd-ustc.github.io (requires license agreement)
  • Paper: Wang et al., IEEE T-ITS, 2023
SplitImagesInstances
Train2,8166,211
Val8101,744
Test374785

⚠️ Limitations

  • Lower performance on hard classes (dent, scratch, crack) due to small size and visual similarity
  • Trained on exterior car damage only
  • Best results on clear, well-lit images

🔗 Links


📚 Citation

@article{wang2023cardd,
  title     = {CarDD: A New Dataset for Vision-Based Car Damage Detection},
  author    = {Wang, Xinkuang and Li, Wenjing and Wu, Zhongcheng},
  journal   = {IEEE Transactions on Intelligent Transportation Systems},
  volume    = {24},
  number    = {7},
  pages     = {7202--7214},
  year      = {2023}
}

📄 License

GNU AGPL-3.0 — in compliance with the YOLOv8 framework by Ultralytics.

⚠️ Dataset Notice: CarDD images are sourced from Flickr and Shutterstock. Proper licensing must be obtained before commercial use.

Sources

1 source
Hugging FacePrincipalVersion 9ee0339097a4c01cc70d5a61bc397c5026032260
huggingface.co/abdullahg7/cardd-yolov8s/tree/9ee0339097a4c01cc70d5a61bc397c5026032260

Vérifié 27 sept.

Artefacts du modèle

2 artefacts

v1.0/best.pt

pt · 21,5 MB · SHA-256 e9458d9285c5…1beb · Hugging Face

Télécharger

v2.0/best.pt

pt · 22,8 MB · SHA-256 529602f6390c…5698 · Hugging Face

Télécharger

Extraits de sources

2 extraits

--- license: agpl-3.0 base_model: ultralytics/ultralytics tags: - object-detection - instance-segmentation - computer-vision - yolov8 - car-damage - insurance datasets: - CarDD language: - en metrics: - map pipeline_tag: object-detection --- # CarDD YOLOv8s — Car Damage Detection & Segmentation YOLOv8s fine-tuned on the [CarDD dataset](https://cardd-ustc.github.io) for vision-based car damage detection and instance segmentation. The model detects and segments six types of car damage and **outperforms the original paper's best model (DCN+ ResNet-101) on every individual damage class**. --- ## 🗂️ Model Versions | Version | File | Task | mAP50 | |---|---|---|---| | v1.0 | `v1.0/best.pt` | Detection only | 71.67% | | **v2.0** | `v2.0/best.pt` | Detection + Segmentation | **75.84%** 🔥 | > **v2.0 is the recommended version.** It adds instance segmentation masks on top of detection and achieves significantly better results across all metrics. --- ## 📈 v1.0 vs v2.0 — Side by Side Comparison ### Overall Metrics | Metric | v1.0 (Detection) | v2.0 (Segmentation) | Improvement | |---|---|---|---| | mAP50 (Box) | 71.67% | **75.84%** | ✅ +4.17% | | mAP50-95 (Box) | 55.43% | **58.93%** | ✅ +3.50% | | Precision (Box) | 75.11% | **76.84%** | ✅ +1.73% | | Recall (Box) | 67.52% | **68.27%** | ✅ +0.75% | | Mask mAP50 | ❌ N/A | **75.90%** | ✅ New | | Mask mAP50-95 | ❌ N/A | **57.00%** | ✅ New | | Model size | 22.5 MB | 22.5 MB | ➡️ Same | | Inference speed | 7.7ms | 61ms | ⚠️ Slower* | *Segmentation is slower due to mask generation on top of detection. ### Per-Class Comparison (Box mAP50) | Class | v1.0 | v2.0 | Improvement | |---|---|---|---| | dent | 57.8% | **60.6%** | ✅ +2.8% | | scratch | 59.6% | **63.2%** | ✅ +3.6% | | crack | 37.7% | **55.5%** | ✅ +17.8% | | glass_shatter | 99.0% | 97.9% | ➡️ ~Same | | lamp_broken | 85.5% | **86.8%** | ✅ +1.3% | | tire_flat | 90.5% | **91.0%** | ✅ +0.5% | > The biggest gain is on **crack (+17.8%)** — the hardest class in the dataset. --- ## 📊 Full Results (v2.0) ### Overall Performance (Test Set) | Metric | Box | Mask | |---|---|---| | [email protected] | **75.84%** | **75.90%** | | [email protected]:0.95 | **58.93%** | **57.00%** | | Precision | 76.84% | 77.40% | | Recall | 68.27% | 68.70% | ### Per-Class Results (v2.0 Test Set) | Class | Box mAP50 | Mask mAP50 | |---|---|---| | glass_shatter | 97.9% | 97.9% | | tire_flat...

Source context: 0 downloads · 1 likes · Pipeline object-detection · Repo abdullahg7/cardd-yolov8s