Coder Social home page Coder Social logo

upendra-bajpai / memes-classification-model-end-to-end-solution Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pranaysawant/memes-classification-model-end-to-end-solution

0.0 1.0 0.0 183.93 MB

Nowdays there are so many memes picture are share over internet. Over whatsApp so many people share memes image then we have to take efforts to delete useless images. We have to manually find out all personal images and meme images. Google's File app is there to help you out it is finding memes images and listed those images to user, then user will decide whichone he/she want to keep in phone and whichone he/she would like to delete. Memes detection app is similar small demo version app.

Jupyter Notebook 99.93% Java 0.07% Python 0.01%

memes-classification-model-end-to-end-solution's Introduction

Memes-Classification-Model-End-to-End-Solution

Introduction

WhatsApp has over 1.2 billion daily active users today. WhatsApp has become an indispensible part of our lives. The app has made it fast and easier to stay connected with our friends. However, it can be little annoying at times when the chat app automatically download all those stupid memes, audio files, videos and photos. This not just makes the phone's gallery look like a complete mess, it also eats up you mobile data. Here is a fix to this to this problem. Too many WhatsApp images, videos making your phone slow down. Deleting whole WhasApp Images folder is bad option because it may contain our important personal images. So we need to somehow seperate out unnecessary memes picture and our personal images.

Can we build a model which can identify memes images and real images?

Google's File app is there to help you out it is finding memes images and listed those images to user, then user will decide whichone he/she want to keep in phone and whichone he/she would like to delete. Memes detection app is similar small demo version app.

Problem Statement :

Classify Memes images from phone gallery without touching personal images. Find out memes images from gallery.

Real world/Business Objectives and Constraints :

  • The cost of a mis-classification can be very high. Because suppose if image is not meme and we classified it is as meme then it not good for app.
  • Latency concerns. Model should quickly identify image meme or not. Otherwise app thrown into trash.

Performance Metric:

  • Binary cross entropy

Deploy Model

  1. Deploy model on andriod environment
  2. Deploy moodel on server using flask

1. Deploy model on andriod environment

We fine-tune couple of models. MOBILE-NET model on fine tuned and convert to .tflite using TFLite library. Full code can be found

2. Deploy model on server using flask

We fine-tune VGG19 model and deployed on GCP server using Flask framework. We have written REST API for the same. code can be found

Blog :

Result:

Below is "Files" app provided by Google.

Below is Memes Classification App

1. Landing Page
  1. Check single Images Locally
  2. Check Multiple Images Locally
  3. Check Single Image on Server(Flask REST API)
  4. Check Multiple Image on Server(Flask REST API)
  5. Ping

We have built 2 models. One is keras VGG19 fine tune model and other is MobileNet Model. So we VGG19 model is deployed using Flask framework and Mobilenet Keras model convert to .tflite version using TFLite library.

Locally means we are testing on Mobilenet Model

Server means we are testing over VGG19 model.

1. Check single Images Locally

It means Mobile-Net tflite model is running locally and test only single image.

2. Check Multiple Images Locally

It means Mobile-Net tflite model is running locally and we are testing multiple images.

3. Check Single Image on Server(Flask REST API)

It means fine tuned VGG19 model is running flask GCP server and test only single image.

4. Check Multiple Image on Server(Flask REST API)

It means fine tuned VGG19 model is running flask GCP server and testing on multiple images.

memes-classification-model-end-to-end-solution's People

Contributors

pranaysawant avatar

Watchers

James Cloos 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.