Code Monkey home page Code Monkey logo

meme-classifier's Introduction

Meme-Classifier

A tensorflow project in python to classify given meme

Training done by replacing last layer of Inception model.
Training has been done using very few images so the accuracy of prediction might be low in some meme templates.

Supported Meme templates

*evil kermit
*bad luck brian
*good guy greg
*the most interesting man in the world
*conspiracy keanu
*philosoraptor
*overly attached girlfriend
*doge
*one does not simply
*condescending wonka
*first world problems girl
*grumpy cat
*success kid
*ancient aliens guy

Description

Training has been done by using InceptionV3 model and training the last layer using bottlenecks.
Install dependencies using pip as sudo pip install -r requirements.txt
You can run the program and find the prediction by using python classify_meme.py path/to/meme.jpg

Using given test images

  1. cd into the directory.
  2. Then run python classify_meme.py memes/meme1.jpg
  3. The model will predict the normalised score as per the template of the meme (5 best results will be given)
  4. The results should be somewhat like this for the given meme: evil_kermit
evil kermit                 : 0.97493
condescending wonka         : 0.00606
doge                        : 0.00417
good guy greg               : 0.00226
success kid                 : 0.00224
  1. Test again by running python classify_meme.py memes/meme2.jpg
  2. The expected result for the given meme would be : doge
doge                        : 0.99790
good guy greg               : 0.00055
one does not simply         : 0.00037
grumpy cat                  : 0.00027
conspiracy keanu            : 0.00014

meme-classifier's People

Contributors

vpanjeta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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