GithubHelp home page GithubHelp logo

data-selfie-image-classification's Introduction

Image Classification API for Data Selfie

This is the code for the image classification API that is used by Data Selfie. Its main components are Yolo and Darknet, used via the pyyolo-wrapper for image classification and Gunicorn for reliable server functionality.

Build it yourself

Install pyyolo

Follow the installation instructions of pyyolo. To avoid unexcessary logging of the prediction times for each image, I got rid of this line before the install.

Download weight file

For Data Selfie, we are using weights from the makers of Darknet as described on this page.

wget https://pjreddie.com/media/files/yolo.weights

Download this repo

Finally, clone this repo with

git clone [email protected]:d4t4x/data-selfie-image-classification.git

The folder structure should look like this:

.
├── data-selfie-image-classification
│   ├── ...
├── pyyolo
│   ├── ...
└── weights
    └── yolo.weights

A few more dependencies

Before running the server, we need to install pillow, flask, request, numpy

pip install pillow flask request numpy

and gunicorn, greenlet and gevent

pip install gunicorn greenlet gevent

Run the API

For Data Selfie we run the API like this, from the directory of this repo:

gunicorn --workers=2 --bind=0.0.0.0:8888 -t 100 -k gevent wsgi

Good luck! File a issue in this repo, contact us or Leon Eckert if you have any questions.

data-selfie-image-classification's People

Contributors

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