Coder Social home page Coder Social logo

dr-robin / dog-cat-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mvmanh/dog-cat-classification

0.0 1.0 0.0 6.8 MB

This is a Flask app that can classify images of dog and cat. The underlying model is a CNN trained using Keras framework

Python 64.54% HTML 35.46%

dog-cat-classification's Introduction

Dog & Class Classification

Introduction

This repository provides you source code to train a deep convolutional neuron network on Kaggle's Dog & Cat dataset. We're not focus on choosing the best CNN network, we just design a network which gives acceptable accuracy. The trained model is then used by a Flask application which allows user to upload an image of dog or cat and have the model predict the image's label. If you want more details on how the model was trained and the flask app was developed, please visit https://www.mvmanh.com/machine-learning/huan-luyen-mo-hinh-deep-learning-de-phan-loai-anh-va-trien-khai-su-dung-trong-thuc-te.html.

We use Keras, an easy-to-use deep learning framework which builds on top of tensorflow to build and train the model.

How to use

We got an accuracy of 86% after finishing the training process. If you need a higer accuracy, you could adjust the network achitectures and training parameters. Required dependencies: tensorflow, keras, numpy and python. Use this command to start trainning:

python cat-dog-classification.py

After finishing the training process, put the model (dog-cat-final-model.h5) in static folder of Flask app and run the following commands to start the app:å

export FLASK_APP=app.py
python -m flask run

Using any web browser to access: http://127.0.0.1:5000/

dog-cat-classification's People

Contributors

dr-robin avatar mvmanh avatar

Watchers

 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.