Car panel segmenter — YOLO11s-seg trained from scratch
Instance segmentation of 21 exterior car parts: back-bumper, back-door, back-windshield, tail-light, front-bumper, front-door, windshield, headlight, hood, mirror, trunk, front-wheel, fender, quarter-panel, roof, front-window, back-window, rocker-panel, back-wheel, grille, license-plate. Part of the PanelPilot car-damage → panel localisation project (CMU 24-679): a damage detector finds damage boxes, and this model's masks tell which panel each box is on.
Training
- From scratch:
yolo11s-seg.yaml, random initial weights, no pretraining (10.1M params) - Data: shanexf/cardamagepanel-rotaug — photos of damaged cars with panel polygons, 415 train originals augmented offline ×7 (2,905 images): full-range rotation (−180°…180°), colour, blur, JPEG, noise, negative, label-aware cutout, grayscale; val 103, test 47
- Online: multi-scale ±40 % around 768 px, horizontal flip, scale, translate, mosaic (off for the last 20 epochs), no online rotation
- Settings: up to 250 epochs (patience 60), batch 12, cosine LR, seed 0
Validation (best epoch)
| metric | value |
|---|---|
| best epoch | 160 |
| epochs run | 220 |
| val mask mAP50 | 0.886 |
| val mask mAP50-95 | 0.689 |
| val box mAP50 | 0.878 |
Use
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
model = YOLO(hf_hub_download("shanexf/car-panel-yolo11s-seg-scratch", "panel_best.pt"))
res = model.predict("car.jpg", conf=0.25, retina_masks=True, agnostic_nms=True)