The Efficient Road Repairs System utilizes FPGA-porting of YOLO to detect road damage through vehicle black boxes during driving. The system employs a Large Multi-modal Model (LMM) RAG to generate repair cost estimates and stores this information in a GS1 EPCIS server, enabling centralized governmental management by web.
- YOLOv8 Damage Detection: Trained on the RDD2022 dataset.
- FPGA Porting: Optimized for in-vehicle black box systems.
- VLLM Serve: Efficient, high-throughput inference for LLMs.
- Multimodal Inference: Utilizing Phi 3.5 for damage analysis and cost estimation.
- Retrieval-Augmented Generation (RAG): Powered by FAISS for efficient data retrieval.
- EPCIS Integration: Manages repair event tracking via GS1-compliant server.
- Government Dashboard: React-based web interface for road damage management.
rrsys
├── backend
│ ├── flask-server # Flask-based backend server
│ ├── llm-server # VLLM inference engine
├── dashboard # React web application
└── epcis-application-2.0 # GS1-compliant EPCIS server
-
Start the backend services:
./run/start_backend.sh
-
Inside the Docker container, execute:
./start.sh
-
To stop the backend services:
./stop.sh
The backend server will be available at
http://localhost:5000
.The vllm server will be available at
http://localhost:8082
.
-
Start the EPCIS server:
./run/start_gs1.sh
-
To initialize the EPCIS Swagger UI:
cd epcis-application-2.0/src npm install node openApi.js
The EPCIS server will be available at
http://localhost:8090
.The EPCIS swagger will be available at
http://localhost:8081
.
-
Start the web dashboard:
./run/start_web
The dashboard web will be available at
http://localhost:3000
.
- Road damage images and YOLO outputs are processed through the FPGA-integrated black box.
- Detected damage types include longitudinal cracks, alligator cracks, transverse cracks, other corruptions, and potholes.
- The system uses Phi 3.5 and RAG to generate detailed repair cost estimates based on the detected damage.
- The repair cost estimates, along with metadata such as damage dimensions and geolocation, are stored in the GS1 EPCIS server for centralized tracking.
- Use the React dashboard to visualize and manage damage reports:
- View repair costs, damage types, and geolocations.
- Monitor historical repair events.
- Events can be queried and managed via the EPCIS API:
- Swagger UI:
http://localhost:8081
. - API Endpoints: Supports event queries, capture, and subscriptions.
- Swagger UI:
- YOLOv8: For road damage detection.
- FPGA: Optimized inference for in-vehicle systems.
- Flask: Backend API.
- React: Frontend framework.
- FAISS: Efficient similarity search for RAG.
- VLLM Serve: Fast Multimodal inference.
- EPCIS: Event tracking and integration.
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License.