Code Monkey home page Code Monkey logo

bird-image-classifier's Introduction

Bird-Image-Classifier

An image classifier project to practice setting up a input pipeline, training a deep learning model, comparing performance between 6 different CNN arhictectures, using Flask API to a simple frontend and containerising the whole project using Docker.

Thi was done using the tutorial provided by Patrick Brus https://towardsdatascience.com/full-deep-learning-portfolio-project-part-1-78df161214aa

clean_dataset.ipynb

The open source birds species dataset from Kaggle is used in this notebook (source: https://www.kaggle.com/gpiosenka/100-bird-species). However, I first created a clean version of the Birds_Species.csv file, because the original file is missing some classes (only 285 of 300 classes were present -> see the Make_Clean_Dataset.ipynb notebook).

model_train.ipynb

Creating a reusable training pipeline to:

  1. Check data distribution.
  2. Create tensorflow input pipeline with normalization.
  3. Compare different state-of-the-art CNN architectures to find best suited.
  4. Check different images sizes on winning cnn.
  5. Check oversampling vs. imblanced.
  6. Apply Bayesian Hyperparameter Search to find best hyperparameters.
  7. Train final model.
  8. Test the final model on the hold-out test set.

app.py

Flask app rendering simple html template, allowing users to input an image, calling the model, then returning a label and a confidence percentage.

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.