Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.49.1
Car Damage Inspector (Hugging Face-ready)
An open-source, one-file Gradio app that:
- Classifies car damage type with a transformer classifier.
- Detects damage regions & severity (Light/Moderate/Severe) with YOLOv8.
Models used
beingamit99/car_damage_detection(image classification)nezahatkorkmaz/car-damage-level-detection-yolov8(YOLOv8 detector)
Quickstart (local)
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python app.py
Open the Gradio link shown in the terminal and upload a car photo.
Deploy to Hugging Face Spaces
- Create a new Space (Python).
- Upload these three files:
app.pyrequirements.txtREADME.md
- The Space will auto-build, download models on first run, and serve the UI.
Notes
- First inference will download model weights; allow a little time.
- Gate logic is heuristic: if the top classification score < 0.5 (or model predicts an explicit no-damage class), the app returns "No visible damage".
- Replace/extend with your own gate (e.g., a dedicated binary model) if desired.
- Outputs:
- JSON with top-3 labels and YOLO detections,
- Overlay image with bounding boxes,
- Raw YOLO JSON (for debugging/integration).