File size: 1,653 Bytes
feb6f17
94332c9
 
 
 
feb6f17
9c3bdc9
feb6f17
 
 
 
9c3bdc9
 
94332c9
9c3bdc9
 
 
94332c9
9c3bdc9
94332c9
 
 
 
 
 
b9985cf
94332c9
 
 
b9985cf
 
 
 
 
94332c9
 
 
b9985cf
 
94332c9
b9985cf
94332c9
b9985cf
 
 
 
94332c9
 
 
b9985cf
94332c9
 
b9985cf
94332c9
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: Car Analysis Advisor (Multi‑Image, Deterministic)
emoji: 🛠️
colorFrom: purple
colorTo: indigo
sdk: gradio
sdk_version: "4.36.1"
app_file: app.py
pinned: false
license: mit
tags:
  - automotive
  - computer-vision
  - service-advisor
  - gradio
---

# Car Analysis Advisor (Hugging Face Space)

An end‑to‑end **car analysis AI** that ingests **multiple images** of a vehicle and outputs **precise, actionable recommendations**:
- **Model** (zero‑shot CLIP baseline; optional fine‑tune)
- **Color** (dominant body color with named snapping)
- **Issues** (mechanical/aesthetic) → **deterministic** final decisions
- **Exact price estimate** (parts + labor + region multipliers)
- **PDF & JSON** export

No probability scores are exposed—only clear decisions & totals.

## Run locally
```bash
pip install -r requirements.txt
python app.py
```

## Train (optional, improves accuracy)
See `training/train_classifier.py` for a ViT fine‑tuning script.
Dataset CSV:
```csv
image_path,label
images/nexon_001.jpg,Tata Nexon
```
Then:
```bash
python training/train_classifier.py --data_root data/your_dataset --annotations data/your_dataset/annotations.csv --out_dir checkpoints/vision
```

## Pricing configuration
- `configs/parts_catalog.yaml` — parts & standard labor hours per issue
- `configs/regions.yaml` — labor rates & part multipliers per region (example values provided)

## Deterministic decisions
Internally, scores are computed but **final outputs are rule‑based** (top evidence & thresholds) to provide **unambiguous** issue lists and **exact** costs.

## Exports
- `exports/report.pdf`
- `exports/report.json`