Giter Site home page Giter Site logo

nicolas-raoul / selfie-or-not Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 4.0 29.31 MB

Using machine learning, tell whether an image is a selfie or not

License: Apache License 2.0

Python 81.16% Shell 18.84%
keras tensorflow selfie python machine-learning

selfie-or-not's Introduction

Goal

This project's goal is to detect selfies among random pictures.

Usage

Install the necessary packages, for instance on Ubuntu 2018.04:

sudo apt-get update && apt-get install -y python-numpy python-virtualenv
virtualenv tensorflow_env
pip install tensorflow keras

Then just run:

python run-preprocessed.py

Data samples

All images are from Wikimedia Commons under the same name. You can also use your own images and generate their thumbnails with the included preprocess-images.sh.

selfie-or-not's People

Contributors

nicolas-raoul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

selfie-or-not's Issues

Make Android library

Currently the neural network parameters are not even outputted.
They should be saved using tf.saved_model.builder.SavedModelBuilder and an Android library should be developed around that calling SavedModelBundle.load.
The biggest challenge is to reduce the size of the TensorFlow dependencies from 80 MB to as small as possible. This probably involves a lot of deep-level TensorFlow hacking, and thus a good understanding of neural networks.

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.