sngjuk / meme-glossary

Meme serving with NLP

Home Page:http://35.200.89.91:8000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meme-glossary

  • Retrieve meme-image with query sentence embedding over zmq.
  • Generate memes from comics.

Install

Server(nlp) & Client

git clone --recurse-submodules https://github.com/sngjuk/meme-glossary.git
./install.sh all

Client only :

git clone https://github.com/sngjuk/meme-glossary.git
./install.sh client

Usage :

Please check tutorial

Server :

./app.py --model_path model.bin --meme_dir meme_dir --saved_embedding saved_embedding.pickle

Client :

import client
mg = client.MgClient(ip='localhost', port=5555)

# Query with sentence and get meme images.
mg.dank(['Nice to meet you'], max_img=3, min_sim=0.15)

# Random meme
mg.random()

# Save as a file.
mg.save_meme(img_data, 'image.jpg')

About

Meme serving with NLP

http://35.200.89.91:8000

License:MIT License


Languages

Language:Python 74.7%Language:Jupyter Notebook 24.2%Language:Shell 1.2%