ClaimSight damage detector (RT-DETRv2 r18)

Finds car damage in photos: broken_part, corrosion, crack, dent, flaking, missing_part, paint_chip, scratch. It is the damage detector of ClaimSight, an auto-insurance claims triage project, where its boxes are matched to car parts and fed to the claim's estimate.

It is weak (test mAP 0.076): good enough to show the pipeline working on real photos, not to price a repair. Treat its output as a signal for a human, not a measurement.

Use

from transformers import pipeline

detect = pipeline("object-detection", model="guptashashank/claimsight-damage-rtdetr")
detect("car.jpg", threshold=0.5)
# [{"score": 0.65, "label": "dent", "box": {"xmin": 424, "ymin": 168, ...}}, ...]

0.5 is the threshold ClaimSight uses: on the test photos it returns about 4 boxes a photo, 36% of them right (IoU 0.5, right class), with at least one right box on 72 of 94 photos. At 0.3 it returns about 26 a photo at 13% precision.

Training

  • Base: PekingU/rtdetr_v2_r18vd (Apache-2.0), fine-tuned end to end.
  • Data: Humans in the Loop's "Car Parts and Car Damages", damage half: 814 photos, 8 classes, about 11 boxes a photo, released under CC0 1.0 (the copy at DrBimmer/car-parts-and-damage-dataset). Polygons were turned into their bounding boxes.
  • Split 80/10/10 by a hash of the file name: 651 train, 69 val, 94 test.
  • 640 x 640 input, 30 epochs, AdamW with one-cycle (lr 1e-4, backbone 1e-5), best validation checkpoint kept (epoch 17). About 100 minutes on an Apple M4.
  • Script: scripts/train_detector.py in the source repo.

CarDD's labels fit insurance work better, but its licence needs the lab's signed consent and forbids redistribution, so these CC0 photos were used instead.

Evaluation

COCO-style AP on the 94 held-out test photos (1,086 boxes), top 100 detections a photo. The photos were shrunk to at most 800 px a side (JPEG, quality 95) before the model's 640 px resize, as in training; on full-size photos the scores shift by a couple of points.

class AP AP50 test boxes
all (mAP) 0.076 0.129 1,086
missing part 0.201 0.338 57
broken part 0.161 0.291 161
dent 0.058 0.143 169
crack (too few to mean much) 0.126 0.126 2
scratch 0.035 0.089 482
corrosion 0.014 0.024 35
paint chip 0.004 0.012 145
flaking 0.006 0.011 35

Limitations

  • Big, distinct damage (missing and broken parts) is learnable; thin or tiny damage (scratches, paint chips, flaking) is not at this input size: a polygon's box is mostly undamaged paint, and 640 px shrinks a chip to a few pixels.
  • Validation mAP plateaued at about 0.06 from epoch 11. More data, tiling or a larger input are the likely fixes, not more epochs.
  • 814 photos, mostly close-ups; it has not been tested on claim photos taken by drivers.
  • Labels describe the damage, not the part; ClaimSight finds the part with a separate zero-shot model (OWLv2).

model.safetensors sha256: 7211ee809509ca4111e2684bbb89110e4e04c3256409b2129d081bd03728beb9

Downloads last month
44
Safetensors
Model size
20.1M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for guptashashank/claimsight-damage-rtdetr

Finetuned
(23)
this model

Dataset used to train guptashashank/claimsight-damage-rtdetr

Evaluation results