A newer version of the Streamlit SDK is available: 1.59.1
title: APDS - Automated Pavement Distress System
emoji: ποΈ
colorFrom: blue
colorTo: indigo
sdk: streamlit
sdk_version: 1.35.0
app_file: app.py
pinned: false
license: mit
ποΈ APDS: Automated Pavement Distress System
An AI-powered Road Damage Assessment system using YOLOv11s & SAHI to detect potholes and cracks with high precision. Featuring a Streamlit dashboard for real-time analysis, it provides engineering reports based on IRC standards. Integrated with RAG technology to offer expert maintenance consulting derived from civil engineering manuals.
π Key Features
- Multi-Task YOLOv11s: Dual-purpose detection for potholes and longitudinal/transverse cracks.
- Precision Boost (SAHI): Slicing Aided Hyper Inference for detecting micro-cracks in high-resolution field photography.
- Civil Engineering Reports: Automated calculation of repair materials and standard-compliant maintenance recommendations.
- AI Expert Consultant (RAG): Retrieval-Augmented Generation using IRC engineering manuals to provide grounded, professional advice.
- Interactive Dashboard: Full suite of tools including Model Comparison, Video Analysis, and Field Camera simulators.
π οΈ Installation & Setup
Clone the repository:
git clone https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git cd YOUR_REPO_NAMEInstall Dependencies:
pip install -r requirements.txtSet up Environment Variables: Create a
.envfile in the root directory and add your Gemini API Key:GOOGLE_API_KEY=your_api_key_hereAdd Model Weights: Ensure your
.ptfiles are placed in themodels/directory structure:models/crack_detector_v12/best.ptmodels/pothole_v1/best.ptmodels/pothole_v2/best.pt(Experiment V2)
Run the App:
streamlit run app.py
π Project Structure
Following high-level professional standards, this project is organized as a modular package:
app.py: The main entry point for the Streamlit application.apds/: The core package containing the detection engine, geospatial logic, and AI consultant bridge.models/: Centralized storage for trained weights and performace validation artifacts.docs/: Indian Road Congress (IRC) engineering manuals used by the RAG system.tests/: Unit testing suite for core components.scripts/: Development and historical training scripts.
π Methodology
This project utilizes SAHI to overcome the limitations of standard object detectors on small, narrow distresses like cracks. By tiling images during inference, we maintain resolution and capture the fine textures required for accurate road distress classification.
π License
This project is licensed under the MIT License - see the LICENSE file for details.