Downloads · 30 days
80
3% of all-time downloads
tiya1012/vit-accident-image
vit-accident-image is a image classification model from tiya1012. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
80
3% of all-time downloads
All-time downloads
3K
Public
Repo size
4.5 GB
Likes
0
Public
Click a slice to open those files.
.bin343 MB · 100%
From the Hugging Face model README
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.
We utilized the Accident Detection from CCTV Footage dataset from Kaggle. This dataset contains annotated images from CCTV footage, showcasing various accident scenarios.
Here’s a sample from the dataset:
| Image | Label |
|---|---|
| ![Accident Image] | Accident |
The images are categorized into "Accident" and "No Accident," which helps train the model to distinguish between accident scenes and normal traffic conditions.
Our model employs a Vision Transformer (ViT) architecture, which is well-suited for image classification tasks. The key components of the model include:
To run the training job, follow these steps:
git clone https://github.com/yourusername/accident-detection.git
cd accident-detection
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the accident classification dataset. It achieves the following results on the evaluation set:
label 0 : non-accident , label 1 : accident-detected
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.3546 | 2.0 | 100 | 0.2327 | 0.9184 | 0.9184 |
| 0.1654 | 4.0 | 200 | 0.2075 | 0.9388 | 0.9388 |
| 0.0146 | 6.0 | 300 | 0.2497 | 0.9388 | 0.9387 |
| 0.0317 | 8.0 | 400 | 0.2179 | 0.9286 | 0.9285 |
| 0.0192 | 10.0 | 500 | 0.2255 | 0.9286 | 0.9286 |