GithubHelp home page GithubHelp logo

karolrives / image-classifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 331.1 MB

An implementation of an image classifier by training a deep learning model on a data set of images and then using the same trained model to classify the images.

Jupyter Notebook 97.40% Python 2.60%
deep-learning machine-learning pytorch

image-classifier's Introduction

ImageClassifier

Implemented a convolutional neural network to classify images from the CIFAR-10 dataset.

Installation

There is no necessary libraries to run the code, except the ones included in the Jupyter Notebook. The code runs with no issues using Python 3 or newer versions.

Project Motivation

This project was part of the Data Science Udacity Program and needed to be completed in order to obtain a certificate.

File Description

This project is divided in two parts. The first part is a Jupyter Notebook, where I implemented an image classifier with PyTorch. The files involved in this part are the following:

  • Image Classifier Project_Final.ipynb
  • cat_to_name.json: Dictionary file. Needed for mapping the name of images.

The second part is a commmand line application for the image classifier. The files involved in this part are the following:

  • train.py: Trains a new network on a dataset ans save the model as a checkpoint. Usage:

    python train.py [-h] [--save_dir SAVE_DIR] [--arch ARCH] [--learning_rate LEARNING_RATE] [--hidden_units HIDDEN_UNITS] [--epoch EPOCH] [--gpu] data_directory

    Run python train.py -h for more information.

  • predict.py: Uses a trained network to predict the class for an input image. Usage:

    python predict.py [-h] [--top_k TOP_K] [--category_names CATEGORY_NAMES] [--gpu] image_path checkpoint

    Run python predict.py -h for more information.

  • utils.py: Contains functions relating to the creation of the model, loading data, preprocessing images. Used by train.py and predict.py

  • cat_to_name.json: Dictionary file. Needed for mapping the name of images.

Note: The two parts of this project are independent from each other.

Results

The main findings are found in the Jupyter Notebook Image Classifier Project_Final.ipynb, where markdown cells were used to walk through all the steps.

image-classifier's People

Contributors

karolrives avatar

Watchers

 avatar  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.