Giter Site home page Giter Site logo

traffic-signs-classification's Introduction

Traffic-signs-classification

Description

This projects aims to train a classifier that classifies traffic signs.

Architecture

I've used Convolutional neural networks as my learning algorithm to the dataset.
The architecture is abuout two convolutional layers, the first is about 20 3x3 filters, and the secod is 40 3x3 filters, after each convolutional layer there is max pooling layer of size 2x2, and eventually two fully connected layers of size 200 and 43

Dataset

The dataset used was german traffic signs, it contains of 26640 different labeled images, 25477 training image, and 1162 testing image, for 43 different classes, the dataset was downloaded from this link:
http://benchmark.ini.rub.de/?section=gtsrb&subsection=dataset

Training the model

You can simply train the model from the command line using the following command

python3 Training_classifier.py 

There is options you may want to set for training your model

Number of epochs to train, the default = 20

--epochs = <number>

Learning rate, default=0.03

--lr = <number>

Batch size, default = 64

--batch_size = <number>

The name of the model you want to save, default = new_model.pt

--save = <string of name>

If you want to train a pretrained model

--model = <string of name>

Example

python3 Training_classifier.py --epochs=20 --lr=0.03 --batch_size --model="model_sample.pt" --save = "new_model.pt"

Testing the classifier

You can test your model on the dataset from the command line using the following commands:

python3 Testing_classifier.p --model = <your model>

The only option here is to specify the name of your model file as a string and it is required.

Classifying

You can use your model to classify different images from the command line using the following commands:

python3 classify.py --image = <image file name as string> --model = <name of the model as string>

You are required to specify the name of the model you want to use

---model = "name of the model"

And the image you want to classify

--image = "name of the image"

traffic-signs-classification's People

Contributors

hassanalsamahi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.