I Trained an AI with 10,000 Memes
Ғылым және технология
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
Пікірлер: 349
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 :)
@shakebraza196
19 күн бұрын
How do you set your mic , please share
@ZphyZphyer
9 күн бұрын
It stopped working (the demo)
@shxrpen
7 күн бұрын
it has an error for me, which makes it not work
@thechampshrimp9337
5 күн бұрын
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.
@chickennuggetman2593
2 күн бұрын
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
19 күн бұрын
🥲🥲
@cchhey3812
15 күн бұрын
@@CodingWithLewis ai doesnt work. image error
@denisblack9897
4 күн бұрын
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
@Fangamer1254
16 күн бұрын
Not funny
@Super-il9nb
16 күн бұрын
@@Fangamer1254not based
@Fangamer1254
16 күн бұрын
@@Super-il9nb Was that necessary?
@williamedwards6113
9 күн бұрын
Spongebob reference?
@ethan44866
9 күн бұрын
@@williamedwards6113 nah
Next Step AGI Meme Generator.......
@CodingWithLewis
19 күн бұрын
If we can power memes... we can power anything
@richardwatkins6725
19 күн бұрын
@@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.....
@RyluRocky
18 күн бұрын
That’s just AGI, once you have AGI it can preform any task including becoming obsessed with memes.
@lemonchannel8955
15 күн бұрын
@@RyluRockyself training models are very scary
@DeadJDona
7 күн бұрын
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.
@CodingWithLewis
18 күн бұрын
Thanks for pointing that out :) that was the goal!
If you never made a bad code is because you never coding in your life
@Fredomnom
14 күн бұрын
yup, exactly.
@Itz.Chernograd
8 күн бұрын
agreed
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.
@aviko9560
8 күн бұрын
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.
@thatonehenward4275
7 күн бұрын
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.
@louiserocks1
6 күн бұрын
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
@SonOfMeme
6 күн бұрын
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
@hata6290
6 күн бұрын
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
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!
@CodingWithLewis
19 күн бұрын
It takes a while but i love doing it!
"I make bad code", every programmer makes bad code. it's not our fault and not your either. good job!
you somehow explained the joke to ai....
in Steam's defense there are no constant fees for having your game up
@SomeoneNooneTomatoes
7 күн бұрын
Bud I think your watch later messed up your comment.
@Otamatone69
Күн бұрын
1:43
@Otamatone69
Күн бұрын
@@SomeoneNooneTomatoeswhat
@SomeoneNooneTomatoes
Күн бұрын
@@Otamatone69 what?
@Otamatone69
Күн бұрын
@@SomeoneNooneTomatoes what
Now all we need is an AI that can simulate being chronically online to pair with this
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.
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!
14:19 not the media offline breuh 💀
Only lewis would train ai on 10,000 memes 😂
@CodingWithLewis
19 күн бұрын
You would too bro. I know it
@fus3n
19 күн бұрын
@@CodingWithLewis i know i would.
The website gives error no matter what. Edit (May 23): It still gives an error.
@mruwczakfill
10 күн бұрын
Same
Good job. This is a very meaty project with a lot of pieces, just putting them all together is a big achievement.
Stuck in 2018, you do not know what brainrot is
Give this to Vedal
@DanielVCOliveira
2 күн бұрын
Lmao imagine
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
the link is broken, keeps saying authentication error openai
@homeoftheineptgamer318
5 күн бұрын
Same here
@pvzprime187
5 сағат бұрын
I am also having that problem
I believe after brainroot era, we could get AI-generated meme
@CodingWithLewis
19 күн бұрын
another form of brainrot
@ProSureStrings
16 күн бұрын
@@CodingWithLewis no, brainroot elon musk will use brainroot backdoor 0day!!11!1!!! edit: this is satire
@fivezies
15 күн бұрын
tbh i would like brainrot more because at least it would feel like its generated by humans
@kingki1953
15 күн бұрын
@@fivezies no offense, but if AI trained by human stupidity, what is gonna happen to us?
@Aestareth_
2 күн бұрын
the ai generated spongebob show was funnier than any of the memes that this dude generated
I tried something similar, but for KZread 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 KZread 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.
Thanks for sticking through to the end. This information is very valuable ! I love your content! ❤❤❤❤❤
Please train an AI to write funny KZread comments 😅😅
@CodingWithLewis
19 күн бұрын
never
@sierragutenberg
18 күн бұрын
@@CodingWithLewis aww, come one
@user-cn2je8pc8t
16 күн бұрын
@@CodingWithLewis😕
@UltraDubzYT
8 күн бұрын
@@CodingWithLewispleaaaaaaaase
@admin-ji2pu
5 күн бұрын
This is something even humans can’t do, so I doubt AI could do it.
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 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.
Wonderful, wonderful project, thanks so much for showing us that!
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’
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
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
What do you use for the GUI?
I haven't seen many videos from you but this one is super cool. Thanks
Finally bro is making tutorials rather than just informative videos
The AI memed you with 'Licorice Lass". 😂😂😂
This is exactly what tech is supposed to be. Ada Lovelace would be PROUD! Thank you Lewis ✨ Exceptional as always 🚀
@Brahvim
15 күн бұрын
I really do wonder if madam Ada Lovelace would indeed be...
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
What GPU do you have to run such AI? I personally use a 14900k + 4080 super
@CodingWithLewis
19 күн бұрын
RTX 4090 for me!
@Soporonix
15 күн бұрын
@@CodingWithLewis Hey the demo isnt working, it always gives "openai.authenticationerror"
it requires more training data
Wow! My video request, thanks lewis.
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? 😂
How much time did you spend to make this?
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 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...
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.
@Mdqnw
15 күн бұрын
Fetch a news API, take a random one in the list. 10 min max
thats a crazy project - what a task
Really entertaining and well made ! huge props
I hope you had fun adjusting your knob!
Hair length changed also during the making of the vid, did I get that right? Loved that you stuck to it till finished!
@CodingWithLewis
19 күн бұрын
hahaha yep!
Thanks for sharing!! 🙌🏾
This was by far the fastest time i've watched one of your videos after upload. Love your videos btw ❤❤
@CodingWithLewis
19 күн бұрын
Welcome back!
Honestly memes may be the best way to understand human psychology
what is your system configuration?
I laughed at the filet minion thing 😢
it is impossible for just one person to train this type of AI that generates memes, humor is too subjective
imagine your daily gen Z memes on instagram now created by AI
Thanks for working so hard on this for the greater good of the community 😤😤
6 month back i did a similar project where you can create ai art based in news
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
Is there any way you can upload this to replicate?
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.
"Let me explain" "No problem" "Let me explain" "Okay." "Let me explain" "I'm letting" "Let me explain" "AHHHH"
Bro can we hang out for a month! I got all the hardware you can dream of! Let's make some crazy shit!
“When I realize there isn’t a steakhouse with the slogan ‘savor prime moments’ and I need to make a meme about it in case the big A.I. brain decides to prompt it’s subliminal algorithm into dropping the slogan into the subconsciouses of steakhouse owners globally” was the text in one of the memes. One step closer I guess
"In the future, all humour will be Randomly Generated." -veggitales
Seeing the bro visited his friend meme hits different now
Bro might have single handed killed memes as a whole.
damn this video quality is top notch!
it shouldn't be called mistral, it should be called monsoon
im trying to make the meme generator work but it wont do.
Am I tripping or was I watching ur videos a year and a half ago where u had less than 10k subs ?
We are now living in the WEED EATER future.
I find it interesting how you happen to have a very similar speech quirk The Original Ace.
Insane effort
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.
13:54 I like how it just captions the imagine with the subjects of the news story 😆
@CodingWithLewis
19 күн бұрын
I mean it was right!
Trying to explain deep fried memes to data from star trek basically
can you check, the demo is throwing openai authentication error
@lukeorendorff1293
5 күн бұрын
yeah
@CodingWithLewis
3 күн бұрын
Got back from Seattle, will fix tomorrow
@ChandravijayAgrawal
3 күн бұрын
@@CodingWithLewis thanks
@lukeorendorff1293
3 күн бұрын
@@CodingWithLewis thanks
@lukeorendorff1293
3 күн бұрын
@@ChandravijayAgrawal thanks
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)
We need an automatic shitposter Lewis
Current AI shares the pain of Lieutenant Commander Data
My favorite meme is “Mexican Word of the Day” im Hella good at Making them up
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?
@CodingWithLewis
3 күн бұрын
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
Great🎉. Maybe make it post meems somewhere where it can get feedback from the masses whether it's funny or not.😊
Your videos never fail to inspire me.
In 2024 a computer programmer managed to give people autism remotely with a video.
Github link? Website?
@CodingWithLewis
19 күн бұрын
Yep! Hold up, docker issues.... lol
The planet fitness meme was on point
Memes are very good if they are relatable to small things not many people talk about but everyone understands
Train an AI with sweet bro and hella Jeff. Trust me, it'll be stupid
A major weakness in IT right now is lack of psychology and ethics training. In the future tech nerds need to know how their creations will affect society
THE AI'S TAKING ALL THE FUN JOBS!
its really crazy ai can process stuff no human could in a lifetime
rip fallenchungus
Now is time for black umor
I've tried the demo but it keeps crashing. Anyone knows what's up?
I tried using the demo, but it always comes back with an error.
bro is stuck in the past, old ass memes u got there cuh
Next you should make an ai that makes an ai to generate memes