Coder Social home page Coder Social logo

ml-lab / keras-transfer-learning-for-oxford102 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arsey/keras-transfer-learning-for-oxford102

0.0 2.0 0.0 2.1 MB

Keras pretrained models (VGG16) + Transfer Learning for predicting classes in the Oxford 102 flower dataset

License: MIT License

Python 100.00%

keras-transfer-learning-for-oxford102's Introduction

Keras pretrained models (currently only VGG16) + Transfer Learning for predicting classes in the Oxford 102 flower dataset

This bootstraps the training of deep convolutional neural networks with Keras to classify images in the Oxford 102 category flower dataset.

Train process is fully automated and best weights for model are saving

Overview

  • bootstrap.py: to download the Oxford 102 dataset and prepare image files
  • train.py: starts training process end-to-end
  • server.py: a small python server based on sockets and designed to keep a model in memory for fast recognition requests
  • client.py: a client that sends requests to server.py

Usage

Step 1: Bootstrap

python bootstrap.py

Step 2: Train

python train.py

Step 3: Get predictions using predict.py or server.py + client.py

Using predict.py:

python predict.py -p "/path/to/image"

Using server.py + client.py:

  1. run server and wait till model is loaded. Do not break server, it should be run and listen for incoming connections
python server.py
  1. send requests using client
python client.py -p "/path/to/image"

keras-transfer-learning-for-oxford102's People

Contributors

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