GithubHelp home page GithubHelp logo

n94kholdi / fruit-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xsai1202/fruit-classification

0.0 0.0 0.0 6.88 MB

Using deep learning to recognize different types of fruits.

Python 6.26% Jupyter Notebook 93.74%

fruit-classification's Introduction

ECE285_CNN_FruitClassification

Description

This is a project about classification of 60 types of fruits by team "Triple SD". In this project, we built our own CNN models using Tensorflow and also compared the results with transfer learning using VGG16 model. Given a not complex dataset that contains sufficient images, blindly using transfer learning would lead to a higher tendency of overfitting. Choosing a model with 4 hidden layers, we then carefully fine-tuned and used data augmentation and regularization to avoid overfitting. To summarize, using AdamOptimizer (learning rate=0.001), a mini-batch size of 256, our model could reach a maximun accuracy of about 98.9% after 30 epochs.

Requirements

  • Language: Python(Version 3)
  • Frameworks: Tensorflow, Keras

Code Organization

demo.ipynb - - Run a demo of our CNN models (reproduce Table 5 of our report, run in python2 on the server since python3 is somewhere incompitable with Keras)
train.ipynb - - Run our CNN models with original data (reproducde Table 2,3, Figure 5)
train_augmented.ipynb - - Run our CNN models with augmented data (reproduce Tabel 5)
train_regularized.ipynb - - Run our CNN models with regularization (reproduce result in Section 4.1.5)
VGG16.ipynb - - Run using VGG16 model (reproduce Table 6)
data preprocessing.py - - Code for data preprocessing and origin data (as described in Section 3.1.1)
DA-Gaussian.py - - Data augmented by adding Gaussian noise (as described in Section 3.1.2)
DA-salt&pepper.py - - Data augmented by adding salt&pepper noise (as described in Section 3.1.2)
DA-perspective.py - - Data augmented by adding perspective transformation (as described in Section 3.1.2)
model.h5 - - Our fine-tuned model (as described in Section 3.2)
test set.py - - Test set for running the demo

Authors

Team: Triple SD
Members: Huadong Zhang, Xiao Sai, Yiyuan Xing

fruit-classification's People

Contributors

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