• Stars
    star
    145
  • Rank 253,520 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A dataset of traffic, fire and accident images for training deep learning models.

Traffic-Net

Traffic-Net is a dataset containing images of dense traffic, sparse traffic, accidents and burning vehicles.


Traffic-Net is a dataset of traffic images, collected in order to ensure that machine learning systems can be trained to detect traffic conditions and provide real-time monitoring, analytics and alerts. This is part of DeepQuest AI's to train machine learning systems to perceive, understand and act accordingly in solving problems in any environment they are deployed.

This is the first release of the Traffic-Net dataset. It contains 4,400 images that span cover 4 classes. The classes included in this release are:

  • Accident
  • Dense Traffic
  • Fire
  • Sparse Traffic

There are 1,100 images for each category, with 900 images for trainings and 200 images for testing . We are working on adding more categories in the future and will continue to improve the dataset.



>>> DOWNLOAD, TRAINING AND PREDICTION:

The Traffic-Net dataset is provided for download in the release section of this repository. You can download the dataset via the link below.

https://github.com/OlafenwaMoses/Traffic-Net/releases/tag/1.0

We have also provided a python codebase to download the images, train ResNet50 on the images and perform prediction using a pretrained model (also using ResNet50) provided in the release section of this repository. The python codebase is contained in the traffic_net.py file and the model class labels for prediction is also provided the model_class.json. The pretrained ResNet50 model is available for download via the link below.

https://github.com/OlafenwaMoses/Traffic-Net/releases/download/1.0/trafficnet_resnet_model_ex-055_acc-0.913750.h5

This pre-trained model was trained for 60 epochs only, but it achieved over 91% accuracy on 800 test images. You can see the prediction results on new images that were not part of the dataset in the Prediction Results section below. More experiments will enhance the accuracy of the model.
Running the experiment or prediction requires that you have Tensorflow, and Keras, OpenCV and ImageAI installed. You can install this dependencies via the commands below.


- Tensorflow 1.4.0 (and later versions) Install or install via pip

 pip3 install --upgrade tensorflow 

- OpenCV Install or install via pip

 pip3 install opencv-python 

- Keras 2.x Install or install via pip

 pip3 install keras 

- ImageAI 2.0.3

pip3 install imageai 



>>> Video & Prediction Results

Click below to watch the video demonstration of the trained model at work.




Sparse_Traffic  :  99.98759031295776
Accident  :  0.006892996316310018
Dense_Traffic  :  0.0031178133212961257
Fire  :  0.0023975149815669283


Dense_Traffic  :  100.0
Accident  :  9.411973422857045e-07
Fire  :  2.656607822615342e-07
Sparse_Traffic  :  4.631924704900925e-09


Accident  :  99.94832277297974
Sparse_Traffic  :  0.04670554480981082
Fire  :  0.004610423275153153
Dense_Traffic  :  0.00035401615150476573


Fire  :  100.0
Accident  :  1.9869084979303675e-22
Dense_Traffic  :  3.262699368229192e-23
Sparse_Traffic  :  6.003136426033551e-28

References

  1. Kaiming H. et al, Deep Residual Learning for Image Recognition
    https://arxiv.org/abs/1512.03385

More Repositories

1

ImageAI

A python library built to empower developers to build applications and systems with self-contained Computer Vision capabilities
Python
8,403
star
2

FireNET

A deep learning model for detecting fire in video and camera streams
Python
262
star
3

IdenProf

IdenProf dataset is a collection of images of identifiable professionals. It is been collected to enable the development of AI systems that can serve by identifying people and the nature of their job by simply looking at an image, just like humans can do.
Python
183
star
4

DeepStack_ExDark

A DeepStack custom model for detecting common objects in dark/night images and videos.
Python
112
star
5

Action-Net

A dataset of images for artificial intelligence models to recognize human actions.
Python
51
star
6

ImageAIDocumentation

Official English Documentation of ImageAI
Python
22
star
7

IntelliP

IntelliP (Intelligent Photos) is a Windows photo gallery that intelligently organizes the pictures in your computer into 12 unique and related categories.
Python
21
star
8

DeepStack_OpenLogo

A DeepStack custom model for detecting 352 common logos
Python
20
star
9

DeepStack_ActionNET

A custom DeepStack model for detecting 16 human actions.
Python
19
star
10

Model-Playgrounds

A project developed and maintained as part of the aim at bringing current capabilities in machine learning and artificial intelligence into practical use for non-programmers and average computer users.
Python
14
star
11

CNNArchitectures

Code implementation of major Convolutional Neural Networks
Python
3
star
12

heartbeat-android

A collection of experiences utilizing machine learning models with Fritz
Java
3
star
13

AppleDetection

A dataset for detecting healthy and damaged apples
2
star
14

GoOne

Golang Practice
Go
2
star
15

DreamEngine

2
star
16

ImageAIDocumentation-French

Python
2
star
17

SampleRepo

1
star
18

imageai-fr

Python
1
star
19

prep

1
star
20

TheiaEngine

1
star