Real-time accident detection system using YOLOv8 and Gradio interface.
- Clone the repository:
git https://github.com/Abood-devo/CCTV-Accident-Detection.git
cd CCTV-Accident-Detection
- Create conda environment:
conda env create -f environment.yml
conda activate accident-detection
- Download pre-trained weights:
mkdir -p models/weights
# Download weights to models/weights/best.pt
Start the Gradio interface:
python src/main.py
Access the interface at: http://localhost:7860
- Prepare your dataset following instructions in
data/README.md
- Configure training parameters in
config/training_config.yaml
- Run training notebook:
notebooks/02_model_training.ipynb
src/
: Source code for inference and web interfacedata/
: Dataset and data processing scriptsmodels/
: Model weights and configurationsnotebooks/
: Jupyter notebooks for training and evaluationconfig/
: Configuration filesincidents/
: Detected accident clips and metadata