Coder Social home page Coder Social logo

cguerrero13 / ai-memes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from schesa/ai-memes

0.0 0.0 0.0 22.05 MB

:trollface: Generating memes using deep learning

Shell 0.30% JavaScript 12.55% Python 71.90% HTML 1.16% Vue 11.33% Dockerfile 2.76%

ai-memes's Introduction

Ai memes

About | Web Arhitecture | Neural Network | ImgFlip API | GRPC Server | Backend | Frontend | Examples | References

About

Generating memes using Neural Networks

Dataset used: ImgFlip575K_Dataset

Neural Network

Code -> net/ai-memes.ipynb

Colab notebook -> ai-memes.ipynb

Used Show and Tell Model[1][2].

Training

Colab

  • Trained for all memes
  • 50 epochs, batch size 32
  • GPUs: Tesla K80 / Tesla P100-PCIE-16GB

Windows 10

  • Managed to train for a small number of memes(10).

  • Used GPU NVIDIA GeForce GTX 950M with CUDA 9.0, CuDNN 7.3.1 installed

  • Anaconda environment with: python 3.6.8, TF-GPU 1.12 installed as in here.

Web Arhitecture

Arhitecture

GRPC Server

Connected to django SQLite db

Uses the neural network to generate captions

Is a Grpc server and sends request to Grpc client ( ImgFlip API ) to get link with the captioned img

Backend

Django and Graphene

Used default SQLite db

Frontend

Developed in Vue.js using cool lottie animations

Uses GraphQL to get and create memes from backend

ImgFlip API

To run

$> cd ./api
$> touch .env

Add your ImgFlip account info to .env file

IMGFLIP_USERNAME=<your ImgFlip account>
IMGFLIP_PASSWORD=<your ImgFlip password>

Run the server

$> npm start

Api examples

Call examples found in /api/src/index.js

ex1. https://i.imgflip.com/3vh5hr.jpg

ex2. https://i.imgflip.com/3vh5hs.jpg

Examples

ex1

ex2

References

[1] Oriol Vinyals, Alexander Toshev, Samy Bengio, & Dumitru Erhan. (2014). Show and Tell: A Neural Image Caption Generator.

[2] Jeff Heaton. Washington University (in St. Louis) Course T81-558: Applications of Deep Neural Networks Module 10: Time Series in Keras. https://github.com/jeffheaton/t81_558_deep_learning

ai-memes's People

Contributors

schesa avatar dependabot[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.