Update README.md
Browse files
README.md
CHANGED
@@ -13,6 +13,38 @@ model-index:
|
|
13 |
|
14 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
should probably proofread and complete it, then remove this comment. -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
# vit-accident-image
|
18 |
|
|
|
13 |
|
14 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
# Enhancing Road Safety with AI-Powered Accident Detection
|
17 |
+
|
18 |
+
## Objective
|
19 |
+
The objective of this project is to develop an AI-driven system that detects accident scenes from images captured by CCTV footage. By leveraging advanced machine learning techniques, we aim to improve response times to road incidents, thereby enhancing overall road safety.
|
20 |
+
|
21 |
+
## Data Sample
|
22 |
+
We utilized the [Accident Detection from CCTV Footage](https://www.kaggle.com/datasets/ckay16/accident-detection-from-cctv-footage/data) dataset from Kaggle. This dataset contains annotated images from CCTV footage, showcasing various accident scenarios.
|
23 |
+
|
24 |
+
### Sample Data
|
25 |
+
Here’s a sample from the dataset:
|
26 |
+
|
27 |
+
| Image | Label |
|
28 |
+
|-------|-------|
|
29 |
+
| ![Accident Image]| Accident |
|
30 |
+
|
31 |
+
The images are categorized into "Accident" and "No Accident," which helps train the model to distinguish between accident scenes and normal traffic conditions.
|
32 |
+
|
33 |
+
## Model Architecture
|
34 |
+
Our model employs a Vision Transformer (ViT) architecture, which is well-suited for image classification tasks. The key components of the model include:
|
35 |
+
- **Input Layer:** Accepts images resized to a specified resolution.
|
36 |
+
- **Transformer Encoder Layers:** Extract features through self-attention mechanisms, capturing spatial relationships.
|
37 |
+
- **Feedforward Neural Networks:** Process the features and classify them into accident-related categories.
|
38 |
+
- **Output Layer:** Provides the final classification probabilities for "Accident" and "No Accident."
|
39 |
+
|
40 |
+
## Instructions for Running the Training Job
|
41 |
+
To run the training job, follow these steps:
|
42 |
+
1. Clone the repository:
|
43 |
+
```bash
|
44 |
+
git clone https://github.com/yourusername/accident-detection.git
|
45 |
+
cd accident-detection
|
46 |
+
|
47 |
+
|
48 |
|
49 |
# vit-accident-image
|
50 |
|