Giter Site home page Giter Site logo

car_models_classification's Introduction

Car_Models_Classification

Python version GitHub issues GitHub forks GitHub Stars License

Car Models Classifier using TensorFlow.

About this repo:

In this repo, I used TensorFlow to build A ResNet50 Neural Network and train it from scratch using the Stanford Car Dataset, a dataset containing 196 car model.

Content:

  • categories.json: a json file conaining the car models names.
  • test.py: the code used to test the model once it is trained.
  • train.py: the code used to train the model.
  • utils.py: a python file containing utils functions.
  • resnet50.py: the code used to build the ResNet50 model.
  • requirements.txt: a text file containing the needed packages to run the project.
  • main.py: the file needed to run training, testing and preprocessing.

Train and test the model:

1. Prepare the environment:
NB: Use python 3+ only.
Before anything, please install the requirements by running: pip3 install -r requirements.txt.

2. Prepare the data:
Download the Stanford Car Dataset.
Extract the zip file. It should be organized as follows:
data/ should contain a folder named car_data/, that contains two folders named train/ and test/.
Convert the training data to npy file and prepare the labels file by running python3 main.py and following the instructions.

3. Train and test the ResNet model: (from scratch) To run both training and testing, you need to run python3 main.py then follow the instructions.

car_models_classification's People

Contributors

maky-hnou 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.