Skip to content

ColinDao/sign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What's That Sign Say?

Project Description

This project aims to build a Convolutional Neural Network (CNN) using TensorFlow to classify images from the German Traffic Sign Recognition Benchmark (GTSRB) dataset. The GTSRB dataset consists of thousands of images of traffic signs, categorized into different classes. The CNN model will be trained to swiftly and accurately classify these images into their respective traffic sign categories, enabling the recognition of traffic signs from real-world images.

Table of Contents

Installation

You'll need to have Python and pip3 installed. You can download them from the official Python website.

  1. Clone the repository:
git clone https://github.com/ColinDao/sign.git
  1. Navigate to the project directory:
cd sign
  1. Install the required dependencies:
pip3 install -r requirements.txt

Usage

To train the model, run the following command:

python traffic.py gtsrb [model.h1]

Watch as the model learns from its predictions! It'll learn to astoundingly become more and more accurate in how it distinguishes images.

Features

CNN Architecture: Design and implement a CNN architecture using TensorFlow, comprising convolutional layers, pooling layers, and fully connected layers to extract features from the input images and perform classification. Tuned using specific hyperparameters such as ReLU activation and Categorical Cross-Entropy loss functions.

Data Preprocessing: Preprocess the GTSRB dataset to prepare the images for training, including extracting, resizing, labeling, and data augmentation techniques to enhance model generalization and performance.

Model Training: Train the CNN model using the preprocessed GTSRB dataset, employing techniques such as backpropagation to optimize the model parameters and minimize classification error.

Evaluation Metrics: Evaluate the trained model's performance using evaluation metrics such as accuracy on a separate test dataset to assess its effectiveness in classifying traffic sign images.

Technologies

Language: Python
Libraries: OpenCV, NumPy, OS, Sys, TensorFlow, Scikit-learn

Credit

This project was completed as a part of CS50's Introduction to Artificial Intelligence with Python. Go check them out!

License

MIT License

Copyright (c) 2024 Colin Dao

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.