Git Product home page Git Product logo

girlorboy's Introduction

GirlOrBoy

Intro

Very simple model. I retrained the top layer of the Inception v3 model neural network in order to tell if the person in a given picture was a man or a woman. Tensorflow provides already trained NNs with a retraining python program which allows you to retrain the network to custom classes. The ultimate goal of this project is to integrate this network into a useful program. FULLY CUSTOM MODEL/TRAINING PROGRAM TO COME

Usage

  1. Install Tensorflow
  2. Place picture you wish to classify in root of repo, or alter path in point 3 (--image=$HOME/) to desired directory
  3. Run following command from tensorflow directory
python tensorflow/examples/label_image/label_image.py \
--graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt \
--input_layer=Mul \
--output_layer=final_result \
--input_mean=128 --input_std=128 \
--image=$HOME/**<your photo>**
  1. Class probabilities should output to console.

Training

Images were gathered using a batch image chrome extension. Keywords were simply "Man" and "Woman" so the classifier is representative of Google Image search results, not my opinion.

girlorboy's People

Contributors

murchant avatar

Stargazers

Geoff Natin avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.