How pratham-nayak1/pothole-detector works
Road Pothole Detection is an offline computer-vision application for road-defect images and video. Its documented main workflow is a user submitting a built-in or uploaded clip in Streamlit; the video runner detects and filters defects, assigns clip-level track IDs, optionally predicts pothole severity, then produces an annotated MP4 and track-level CSV/JSON reports. The repository also includes image inference, detector evaluation, and severity data review and training utilities. Some subsystem paths and connections are documented, but their source was not sampled; those links are omitted rather than inferred.
Main entry points: video/runner.py Video runner · pipeline/runner.py Image runner · config.py Pipeline settings · app.py Streamlit dashboard
Components 22
Video application
- Streamlit dashboard
src/app.py - Video runner
src/video/runner.py - Video and reports
Inference runtime
- Pipeline settings
src/common/config.py - Detector model
src/pipeline/models.py - Image runner
src/pipeline/runner.py - Pipeline I/O
src/pipeline/io.py - Detection filtering
src/detection/postprocess.py - RoadTracker
src/video/tracker.py - Track summaries
src/video/tracks.py
Severity workflow
- Severity dataset
src/severity/dataset.py - Severity review
src/severity/review.py - Review application
src/severity/review_app.py - Severity training
src/severity/train_efficientnet.py - Severity preparation
src/severity/prepare_dataset.py - Label collection
src/severity/collect_labels.py
Detector development
- Detector training
src/detection/train_yolo11s.py - Detector experiments
src/detection/finetune_yolo11s_800.py
Evaluation
- Dataset audit
src/evaluation/dataset_audit.py - Detector evaluation
src/evaluation/evaluate_detector.py
Other components
- Video user
- Video input
Connections 21
- Video user → Streamlit dashboard: uses
README.md - Streamlit dashboard → Video runner: calls
README.md - Video user → Video input: provides
README.md - Video runner → Pipeline settings: loads
src/video/runner.py - Video runner → Detector model: loads
src/video/runner.py - Video runner → Detection filtering: filters
src/video/runner.py - Video runner → RoadTracker: assigns tracks
src/video/runner.py - Video runner → Track summaries: updates summaries
src/video/runner.py - Video runner → Pipeline I/O: uses
src/video/runner.py - Video runner → Video input: reads
README.md - Video runner → Video and reports: writes
README.md - Image runner → Pipeline settings: loads
src/pipeline/runner.py - Image runner → Detector model: uses
src/pipeline/runner.py - Image runner → Detection filtering: filters
src/pipeline/runner.py - Image runner → Pipeline I/O: uses
src/pipeline/runner.py - Review application → Severity review: uses
src/severity/review_app.py - Severity training → Severity dataset: loads
src/severity/train_efficientnet.py - Severity preparation → Severity dataset: prepares
- Label collection → Severity review: supplies labels
- Detector experiments → Detector training: fine-tunes
- Detector evaluation → Pipeline settings: loads
src/evaluation/evaluate_detector.py