Skip to content

Generating memes using Bing AI, Stable Diffusion WebUI, and the `shitpost` CLI tool

License

Notifications You must be signed in to change notification settings

SimonBaars/AI-Generated-Memes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Generated Memes

Generating memes using Bing AI, Stable Diffusion WebUI, and the shitpost CLI tool.

Prerequisites

  1. Install the Stable Diffusion WebUI together with any model you like, then run it with the --api command line option.
  2. Install a CLI tool that can generate memes. Easiest is to use shitpost for Linux (available in the AUR and probably for Ubuntu as well). Alternatively, you could use memegen for MacOS (click here for instructions), but it requires slight code changes.
  3. Add your _U Bing AI token as an environment variable named BING_AI. Check here for more instructions.
  4. Run the tool using node src/bing-memes.js (assuming you installed NodeJS, if not, please do :D).
  5. Sell the memes on any NFT broker.
  6. Stonks.

Code structure

For this project, I opted for a single code file: src/bing-memes.js. I made some convenience functions for chatting with Bing, extracting its output, and generating Stable Diffusion images with the WebUI. Then I just loop semi-endlessly to make Bing generate endless memes.

Example output

Demo output for 300 memes can be found in the demo-output/ folder. Here are some I consider funny: Zoom degree meme Boss accident meme Titanic grief meme Goat meme Covid meme Birthday meme Milk badass meme Cool penguin meme Taco cat meme Cool dog meme Cool penguin meme Tuna sandwich meme Pineapple pizza meme Bing meme Hacked meme VR accident meme Sad laptop cat meme Coffee sadness meme First child meme Wedding meme Mona lisa meme Bread cat meme Skipped exam meme Birds and bees meme My fish meme Homework meme Lazy meme Lying to children meme Car doge meme Sliding penguin meme Karen meme Pineapple ripe meme Cute duck meme Crypto meme Tinder meme Karen meme Song stuck in head meme Judgemental cat meme Coffee addiction meme Funny meme Dog homework meme Wine meme Cat hate meme Big Shaq meme Smooth penguin meme Tax refund meme Full name meme Inception plot meme Pineapple pizza meme Leonardo DiCaprio meme Wine drunk meme Netflix finale meme Bing FTW meme Tacat meme Deal with it meme

Final note

Elon open-sourcing the Twitter algorithm? Well, Elon, take this! Unlimited dank memes! You have nothing on me... except for a few billions in cash :D

About

Generating memes using Bing AI, Stable Diffusion WebUI, and the `shitpost` CLI tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published