Coder Social home page Coder Social logo

flower_classification's Introduction

Flower_classification

AI algorithms will be incorporated into more and more everyday applications. For example, you might want to include an image classifier in a smart phone app. To do this, you'd use a deep learning model trained on hundreds of thousands of images as part of the overall application architecture. A large part of software development in the future will be using these types of models as common parts of applications.

In this project, i trained an image classifier to recognize different species of flowers. You can imagine using something like this in a phone app that tells you the name of the flower your camera is looking at. In practice you'd train this classifier, then export it for use in your application. We'll be using this dataset of 102 flower categories, you can see a few examples below.

Getting Started

Data

The data set contains images of flowers from 102 different species. The provided images were split into a training set and a validation set. You can download the images from here. Just uncompress it and you should be good to go.

Prerequisites

  • Python 3.
  • Numpy
  • Pandas
  • MatPlotLib
  • OpenCv
  • Pytorch.

Project Instruction

Instructions

  1. Clone the repository and navigate to the downloaded folder.

    git clone https://github.com/shyamStarwalt/Flower_classification.git
    
  2. Download and Install Anaconda from here

  3. Install the above packages mentioned in the Prerequisites (Anaconda Prompt)

  4. Open the cloned repository and navigate to

    cd pytorch_challenge-image-classification
    
  5. Open the Image_Classifier_Project.ipynb

    jupyter notebook Image_Classifier_Project.ipynb	
    
  6. Read and follow the instructions! This repository doesn't include any dataset you need. You can check out the getting started to download them.

Project Information

Contents

  • Intro
  • Step 0: Import Datasets
  • Step 1: Detect Flower Species
  • Step 2: Detect others
  • Step 3: Create a CNN to Classify Dog Breeds (from Scratch)
  • Step 4: Create a CNN to Classify Dog Breeds (using Transfer Learning)
  • Step 5: Write Your Algorithm
  • Step 6: Test Your Algorithm

Losses

Model scratch:

Training loss: 3.508 ... Validation loss: 0.127

Transfer model:

Training loss: 1.141 ... Validation loss: 0.021

Accuracy:

Model scratch:

Accuracy : 14%

Transfer model:

Accuracy : 76%

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • The data comes from Udacity.

flower_classification's People

Contributors

shyamstarwalt avatar

Stargazers

Vignesh C avatar

Watchers

James Cloos 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.