I Trained an AI with 10,000 Memes
ฝัง
- เผยแพร่เมื่อ 30 พ.ค. 2024
- Bright Data: brdta.com/codingwithlewis
I tried training an AI model on 10,000+ memes to see if AI can be funny. In this video, we go through the process of creating a meme with AI and learn why we find things like memes and humor funny to begin with.
This video took a very long time to make. Over 10 different models were used. Throughout this video you will see all of the things that I did to get this to work. Let me know what you think in the comments :)
👉WE ARE PLANNING A HACKATHON!!! 👈
Join the discord to learn more:
dsc.gg/lewismenelaws
🧑💻DEMO & SOURCE CODE🧑💻
Demo: memegenerator-ergog3zn3pc7txn...
GitHub: github.com/CodingWithLewis/Me... (messy lol)
Fine-Tuned Model: huggingface.co/codingwithlewi...
OwlV2 Demo: huggingface.co/spaces/codingw...
If you like this video, check out some of my other videos where I build awesome projects and provide awesome developer resources that you can use in order to be a better developer :)
LINKS
---
MY NEWSLETTER 💌
thebetter.dev
------
CONNECT WITH ME ON SOCIAL
📸 Instagram: / lewismenelaws
🎚TikTok: / lewismenelaws
🐣 Twitter: / lewismenelaws
-
My gear 💻
liinks.co/lewismenelaws
-----
TIMESTAMPS
0:00 Intro
0:22 Why is AI not funny?
0:40 What is a meme... really?
1:51 Getting a LARGE amount of memes
2:32 The Data Collection
3:29 Using Bright Data
4:12 Initial Results
4:45 Prepping for Training
5:11 Getting image descriptions
6:03 Returned image descriptions
6:35 Training the AI Model
7:57 Results... and de-motivation...
8:49 Realizing... I should teach AI how to be funny
9:35 Getting Relevant Context
10:20 Initial Observations
10:37 Labelling Feature
11:27 The right AI model for the job...
12:14 Building out the UI
12:51 Reactions
14:08 Why I made this video...
14:40 SUBSCRIBE - วิทยาศาสตร์และเทคโนโลยี
Another video that took soooo long to make 🥲🥲. Thanks everyone for watching my videos. I made a second channel: www.youtube.com/@DebugWithLewis
Let me know what you guys think. Uploading project shortly :)
How do you set your mic , please share
It stopped working (the demo)
it has an error for me, which makes it not work
I believe it was about 4 months ago that you promised to open source the code from the "AI trading bot" video within that same week... Would appreciate if you would actually go through with it.
hey could you just put the a.i generated memes and some of the memes you fed the a.i into the video instead of making a 15+ video explaining how you did it because I genuinely couldn't care less about how you did it
Lewis: Give me a joke.
AI: Am I joke to you?
🥲🥲
@@CodingWithLewis ai doesnt work. image error
Ai is a very very bad joke.
“In the future humor will be randomly generated by computers”
W E E D E A T E R
Not funny
@@Fangamer1254not based
@@Super-il9nb Was that necessary?
Spongebob reference?
@@williamedwards6113 nah
Next Step AGI Meme Generator.......
If we can power memes... we can power anything
@@CodingWithLewis Some really great tips and tools for people wanting to tune models and understand that is is possible to tune your own AI. Man you really did go down the rabbit hole and FANTASTIC work and really helpful. Just so many applications for this..... when we have to battle AGI to save the planet we need hackers, tech security experts, developers and now a comedian to find a weak spot and exploit it so at least they will have jobs in the future.....
That’s just AGI, once you have AGI it can preform any task including becoming obsessed with memes.
@@RyluRockyself training models are very scary
MAIm
Hey thanks for pointing out the failures. As a software developer myself I see so many content creators pump out polished projects and the viewers don’t often realise that the tutor has probably done 20 takes and possibly completed the project before hand so you’re only seeing the polished version.
It can give people imposter syndrome thinking that people be out here writing flawless code. I mean some people do, I’ve had my senior engineer / owner of the business sit at my desk and write pretty complex components with no debugging needed and no testing. Like he’d get up and be like that should be what you need and 9/10 it’s perfect and I die a little inside.
Thanks for pointing that out :) that was the goal!
If you never made a bad code is because you never coding in your life
yup, exactly.
agreed
If you never made a good English I'd because you never speaking in your life
"I make bad code", every programmer makes bad code. it's not our fault and not your either. good job!
Really solid project here. Working on a multimodal project is a lot of trial and error. Really glad you shifted the channel towards these larger projects!
It takes a while but i love doing it!
Imagine an alien arrived on earth that could not feel pain.
They can ask about it. They can get detailed descriptions of people that were/are in pain.
They can analyze everything that being in pain involves on a nerve and brain chemistry level.
They can collect all information that is possible to collect about pain.
They will never *feel* pain. They will never *truly* grasp it.
That's why teaching AI to be funny will never really work.
I think it will, AI could learn to be funny, given enough information. Teaching the model the theory on humour seemed like it helped it getting more funnier.
Interesting idea, but AI does not resemble this. AI models a *human* brain. The way a human brain works is just a big function, with over 8 trillion steps, and tons of synapse connections. AI, is exactly this.
I used this format in chatgpt over 2 years ago (or whenever it first came out, the first version)
Write a 4chan greentext:
>be me
>(write anything random here, like 'went to seek enlightenment in tibet' or 'top google engineer' or 'my eyebrows are huge' or whatever)
Then hit enter, and chatgpt would complete the rest, and it was absolute comedy gold every time
One of the ones I got back was
>be me
>top google engineer
>working on google maps 3d modelling
>I have a deep understanding of geography, all places of the world, and am a leading expert in my field
>one day I go out for lunch break
>got lost
We're not trying to make the alien **feel** pain though, we just want the alien to be able to understand what makes **us** feel pain and then do that.
Completely different problem
ooo you almost got it but not quite. your fatal flaw is assuming that it NEEDS to feel humor to "really work", when given enough data, it can produce all the humor you want without ever truly knowing it. also this is just touching on a vast, grey philosophical topic, so dont be to sure of these things
Stuck in 2018, you do not know what brainrot is
you somehow explained the joke to ai....
If it's not being done already, I imagine someone further training an AI like this by having it simply upload each meme it auto-generates to reddit, and users will naturally just upvote/downvote them, providing real user feedback on the data to further train the AI until it becomes good at it. Crazy. Thanks for sharing this awesome idea!
in Steam's defense there are no constant fees for having your game up
Bud I think your watch later messed up your comment.
1:43
@@SomeoneNooneTomatoeswhat
@@Otamatone69 what?
@@SomeoneNooneTomatoes what
Now all we need is an AI that can simulate being chronically online to pair with this
I tried using the demo, but it always comes back with an error.
The website gives error no matter what.
Edit (May 23): It still gives an error.
Same
Interesting! I just had GPT-4 generate some Q/A jokes about the same time. First, it got the structure and the tone right, but there was nothing funny about them. So I explained it what makes a joke funny (in this case: a surprising link between seemingly unrelated things), and it started to get in a direction that could be funny. I gave some examples how make some of its replies more punchy, and its replies started to get usable. It still wouldn't make you fall off your chair laughing, but it demonstrated how proper priming the model has a huge impact.
the link is broken, keeps saying authentication error openai
Same here
I am also having that problem
Please train an AI to write funny TH-cam comments 😅😅
never
@@CodingWithLewis aww, come one
@@CodingWithLewis😕
@@CodingWithLewispleaaaaaaaase
This is something even humans can’t do, so I doubt AI could do it.
14:19 not the media offline breuh 💀
Good job. This is a very meaty project with a lot of pieces, just putting them all together is a big achievement.
Good day Lewis, Very interesting video. I couldn't help but recall the short story "Jokester" by Isaac Asimov, Noel Meyerhof is a "Grand Master" and an expert in humor and jokes. He becomes obsessed with teaching Multivac, a supercomputer, how to understand and appreciate humor. However, a computer scientist becomes concerned about Meyerhof's erratic behavior and discovers that he has been feeding jokes and riddles into Multivac.
Through computer analysis, the characters in the story investigate the origin of humor and why there seems to be no such thing as an original joke, except for puns. Eventually, the computer reveals that humor is actually a psychological study tool imposed on the human race by extraterrestrial beings who are studying mankind, similar to how humans study mice. This revelation suggests that the concept of humor is not of human origin but rather an experiment conducted by aliens to understand human psychology
The story explores the idea that humor is a unique aspect of human consciousness and raises questions about the nature of creativity, the limits of artificial intelligence, and the influence of external forces on human behavior and emotions.
Thanks for your great work Lewis. Best wishes from Cape Town
Thanks for sticking through to the end. This information is very valuable ! I love your content! ❤❤❤❤❤
So... how many models did this take to make?
Lewis: All of them.
Only lewis would train ai on 10,000 memes 😂
You would too bro. I know it
@@CodingWithLewis i know i would.
I tried something similar, but for TH-cam shorts once (No not just r/askreddit with minecraft parkour). I worked on this for over two months, and it still wasn't even close to good enough. But oh well, I now have like a million different TH-cam shorts stored on my pc (downscaled frames as .png's). It's cool to see that such a multi-modal thing can actually kinda work here.
I haven't seen many videos from you but this one is super cool. Thanks
Wonderful, wonderful project, thanks so much for showing us that!
I think a more chaotic version could be fine-tuning stable diffusion models for image generation based on memes. I'd wanna see what kind of outputs we'll get
I’m wondering if there could be a project that runs sentiment analysis on recent discord conversations. If there’s a thread that is deemed ‘funny’, use this project to generate a meme based on that ‘current news’
I am new to AIML and struggling to make a project.
So the project is to make a free version of AWS Textractor.
It is basically a document intelligent system that takes the handwritten document as input and converts it into digital form.
The document may consist of tables etc.
This is exactly what tech is supposed to be.
Ada Lovelace would be PROUD!
Thank you Lewis ✨ Exceptional as always 🚀
I really do wonder if madam Ada Lovelace would indeed be...
I would love to see a full hours long video on this tutorial with all explanations and techniques you used! I would love to pay and watch tbh...
Finally bro is making tutorials rather than just informative videos
You forget most important things memes in itself not need to be funny for humans, there are memes which are sad, and just relatable or for sympathy
I think that you could POSSIBLY (it's gonna be hellishly hard) make it so that you don't have to import a news article link.
Basicly just picks a random topic.
Fetch a news API, take a random one in the list. 10 min max
This was by far the fastest time i've watched one of your videos after upload. Love your videos btw ❤❤
Welcome back!
Really entertaining and well made ! huge props
Make a whole course on it , how you started it , which type of computer configuration you need for this project or anyone can do this on their average pc like me with hosting the LLMS locally, Please make a course on this , I'd love to buy it
Me and other 1 million other developers have had this ai meme idea. Props for lewis trying out this as a saas...meanwhile there's us who only know css and html 😢,, in time maybe 😅
I believe after brainroot era, we could get AI-generated meme
another form of brainrot
@@CodingWithLewis no, brainroot
elon musk will use brainroot backdoor 0day!!11!1!!!
edit: this is satire
tbh i would like brainrot more because at least it would feel like its generated by humans
@@fivezies no offense, but if AI trained by human stupidity, what is gonna happen to us?
the ai generated spongebob show was funnier than any of the memes that this dude generated
13:54 I like how it just captions the imagine with the subjects of the news story 😆
I mean it was right!
The AI memed you with 'Licorice Lass". 😂😂😂
To me the defining part of a meme is reapplicability. They either 1. Illustrate a specific emotion or 2. Just unusual, which makes them a good material to modify and share in a different context.
I hope you had fun adjusting your knob!
Thanks for sharing!! 🙌🏾
thats a crazy project - what a task
it requires more training data
Thanks for working so hard on this for the greater good of the community 😤😤
Give this to Vedal
Lmao imagine
What do you use for the GUI?
I think you are normalising all audio clips in PremierePro, and that's fine for longer clips, but when it's like half a second of a whisper, the volume is uneven.
Explanation: normalised sound is when an entire audio's volume is changed (from start to finish) so that the maximum peak of amplitude is the one you set. Please ask questions if you actually read this so I or a better educated person can explain this better
Wow! My video request, thanks lewis.
Hair length changed also during the making of the vid, did I get that right? Loved that you stuck to it till finished!
hahaha yep!
It is refreshing to see a video sponsorship that is actually completely related and relevant to the video. This is the type of sponsorship I dont mind as its relevant.
Training an AI on the memes I have on my phone would be a crime against humanity and get me in trouble with The Hague
Honestly memes may be the best way to understand human psychology
it is impossible for just one person to train this type of AI that generates memes, humor is too subjective
Your videos never fail to inspire me.
Am I tripping or was I watching ur videos a year and a half ago where u had less than 10k subs ?
What GPU do you have to run such AI? I personally use a 14900k + 4080 super
RTX 4090 for me!
@@CodingWithLewis Hey the demo isnt working, it always gives "openai.authenticationerror"
Seeing the bro visited his friend meme hits different now
On 1:51 I just realized that he was using a Mac cursor on windows (I know that there are Mac cursor packs I jus want to say that)
This guy is so smart, do you know how much money he's gonna be making from selling that to meme pages on all social media? 😂
09:00 reminds me of the impression, that it's appropriate to take bad photos with bad cameras, but you shouldn't take bad photos with good cameras. (Bad photos like weird mimics on the subject)
I find it interesting how you happen to have a very similar speech quirk The Original Ace.
Fun fact: because of your link to BRDTA in the top of your description, Facebook refuse to let me share the link to your video !
6 month back i did a similar project where you can create ai art based in news
imagine your daily gen Z memes on instagram now created by AI
6:46 why are you showing b-roll of Sphinx documentation? Am I missing something? The academic paper you began by showing seems to be related to what you are referring to, but the rest is just plain wrong? Am I crazy?
Haha good catch! During the edit, we must’ve got the wrong documentation page at that spot, but the following one “Llama 2 accessory” is correct
it shouldn't be called mistral, it should be called monsoon
Bro might have single handed killed memes as a whole.
is it possible for you to create an in depth RAG tutorial for specifically ollama? I would appreciate it a TON since nobody has really made an easy to follow one.
How much time did you spend to make this?
Trying to explain deep fried memes to data from star trek basically
can you check, the demo is throwing openai authentication error
yeah
Got back from Seattle, will fix tomorrow
@@CodingWithLewis thanks
@@CodingWithLewis thanks
@@ChandravijayAgrawal thanks
My favorite meme is “Mexican Word of the Day” im Hella good at Making them up
I laughed at the filet minion thing 😢
"Let me explain"
"No problem"
"Let me explain"
"Okay."
"Let me explain"
"I'm letting"
"Let me explain"
"AHHHH"
Current AI shares the pain of Lieutenant Commander Data
"In the future, all humour will be Randomly Generated."
-veggitales
Great🎉. Maybe make it post meems somewhere where it can get feedback from the masses whether it's funny or not.😊
Insane effort
Asking an ai to tell a joke is like trying to unscrew a Philips screw with a butterknife, it’ll sorta work but wrong tool man!😅
11:02 hahahaha, I’ve just mentioned a cat opening and closing its mouth on the background XD
funniest thing in all of that was the Minion with the food
what is your system configuration?
@ashsty
43 seconds ago
I was expecting more tbh....
Like. I as expecting to just press a "Generate" button and it would spit out a meme generated from a random recent news article. But having to go find a news article and then choose a meme template seems like you're doing 90% of the work already and might as well just create your own meme.
damn this video quality is top notch!
Bro can we hang out for a month! I got all the hardware you can dream of! Let's make some crazy shit!
As a French, at 3:00 I can only agree with the fact that we say chocolatine, and not pain au chocolat. Some meme are funny, others are just truth !
Memes are very good if they are relatable to small things not many people talk about but everyone understands
In 2024 a computer programmer managed to give people autism remotely with a video.
3:02 "chocolatine" is a crime again the world
Next you should make an ai that makes an ai to generate memes
lewis is a coding god! And so nice... you sir, are an inspiration!
Wow, thank you.
AI CV generator next please.
Speaking of randomly generated things
5:40 "Its what they use in charge CBT"
Ayo, Toronto food bank? Drake is from Toronto. "Started from the bottom now we're here", it's kinda sick and twisted but a little bit clever.
We are now living in the WEED EATER future.