Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sngjuk/meme-glossary
Meme serving with NLP
https://github.com/sngjuk/meme-glossary
comics meme meme-generator meme-glossary meme-labeling
Last synced: 23 days ago
JSON representation
Meme serving with NLP
- Host: GitHub
- URL: https://github.com/sngjuk/meme-glossary
- Owner: sngjuk
- License: mit
- Created: 2018-12-31T03:11:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-20T10:42:17.000Z (over 1 year ago)
- Last Synced: 2024-10-12T15:28:36.722Z (about 1 month ago)
- Topics: comics, meme, meme-generator, meme-glossary, meme-labeling
- Language: Python
- Homepage: http://35.200.89.91:8000
- Size: 14.7 MB
- Stars: 35
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 :
```python
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')
```