I Trained an AI with 10,000 Memes
Вставка
- Опубліковано 17 чер 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.
None of them were funny though. You could get the same results just pasting article keywords onto an image with blob detection. It just seems like an incredible amount of effort for a thoroughly mediocre result.
@@jeffreygordon7194you've seen like 2 examples
“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
fact of people single is because one people will made fun this mistake just if they is annoying because make.
@@I.HEAR.A.SOUND.you do realize this is a meme, right? :|
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!
I recently had a nightmare where someone hacked my phone and made it so that the only way i could consume the news was via shitty automatically generated memes. What a coincidence.
cant wait to sleep with my vr headset on and wake up in that kind of hell
I love how you have never heard of actual newspapers or tv.
"I make bad code", every programmer makes bad code. it's not our fault and not your either. good job!
stop using libraries, stop listening to teachers, and read books from the 1980s like hal chamberlin.
Stuck in 2018, you do not know what brainrot is
my grandson just told me about these “memes”! 🤣 ! They are so hilarious and I sent Dolores the "skibi toilets"!
Sent from my IPhone
@@saycap xD
Shitposting has been a thing for ages
we had things a long time ago
people weren't just pricks saying the same two words and no imagination
@@atomictraveller you probably don't remember 2009 internet then if you think people back then weren't "just pricks saying the same two words and no imagination" (and btw, I'm interpreting your comment here because I can name far FAR more than 2 brainrot words, so don't come at me saying "uhhh I can name more than two 2009 internet memes so checkmate?")
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
you somehow explained the joke to ai....
Dead internet theory is so close man…
Now all we need is an AI that can simulate being chronically online to pair with this
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
I tried using the demo, but it always comes back with an error.
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.
Only lewis would train ai on 10,000 memes 😂
You would too bro. I know it
@@CodingWithLewis i know i would.
Good job. This is a very meaty project with a lot of pieces, just putting them all together is a big achievement.
14:19 not the media offline breuh 💀
So... how many models did this take to make?
Lewis: All of them.
Thanks for sticking through to the end. This information is very valuable ! I love your content! ❤❤❤❤❤
The AI memed you with 'Licorice Lass". 😂😂😂
You should train an ai language model with brainrot to see if it really rots the brain
Wonderful, wonderful project, thanks so much for showing us that!
I haven't seen many videos from you but this one is super cool. Thanks
I tried something similar, but for UA-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 UA-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.
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...
Really entertaining and well made ! huge props
I'm glad i lived through like 90% of meme history. It feels weird that kids now won't know nyan cat, rebecca black, etc lol
I refuse to believe nyan cat won't be universally known among children
thats a crazy project - what a task
Finally bro is making tutorials rather than just informative videos
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...
Bro might have single handed killed memes as a whole.
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’
The website gives error no matter what.
Edit (May 23): It still gives an error.
Same
because it probably wasn't meant to be permanent
This was by far the fastest time i've watched one of your videos after upload. Love your videos btw ❤❤
Welcome back!
Thanks for working so hard on this for the greater good of the community 😤😤
Thanks for sharing!! 🙌🏾
Wow! My video request, thanks lewis.
You should be able to pick the relevant meme image automatically since you already have descriptions of them. You could train an llm with examples of which captions are used for each [image description], and then, given the new news article, it should be able to pick an existing image description, which you can just have a hardcoded lookup table for that assigns the image descriptions to their filenames, since you already have that data already from your dataset.
From there it's 1 tiny step away from full automation. Instead of the user inputting the url, just scrape it from a random news site with a fetch request. Most of them even have RSS feeds so you don't need to scrape.
new rule, if you're talking about AI and you say the word "understanding" that's a $38 fine. I think I should be able to get the us government on this promptly
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 😅
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
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
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.
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 hope you had fun adjusting your knob!
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.
You took "Some ninjas make millions, other ninjas make memes" to "I do both" 😂 great vid
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
Give this to Vedal
Lmao imagine
13:54 I like how it just captions the imagine with the subjects of the news story 😆
I mean it was right!
Your videos never fail to inspire me.
Please train an AI to write funny UA-cam comments 😅😅
never
@@CodingWithLewis aww, come one
@@CodingWithLewis😕
@@CodingWithLewispleaaaaaaaase
This is something even humans can’t do, so I doubt AI could do it.
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
the link is broken, keeps saying authentication error openai
Same here
I am also having that problem
probably wasn't meant to be permanent
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!
Great🎉. Maybe make it post meems somewhere where it can get feedback from the masses whether it's funny or not.😊
6 month back i did a similar project where you can create ai art based in news
damn this video quality is top notch!
Honestly memes may be the best way to understand human psychology
Seeing the bro visited his friend meme hits different now
imagine your daily gen Z memes on instagram now created by AI
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
it requires more training data
I find it interesting how you happen to have a very similar speech quirk The Original Ace.
funniest thing in all of that was the Minion with the food
I laughed at the filet minion thing 😢
3:02 "chocolatine" is a crime again the world
How much time did you spend to make this?
lewis is a coding god! And so nice... you sir, are an inspiration!
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.
it is impossible for just one person to train this type of AI that generates memes, humor is too subjective
Wow, thank you.
AI CV generator next please.
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
Would be a crime against UA-cam to not call this AI “Super Meme Generator-4”.
Lmm, large meme model incoming
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 !
My favorite meme is “Mexican Word of the Day” im Hella good at Making them up
Trying to explain deep fried memes to data from star trek basically
Memes are very good if they are relatable to small things not many people talk about but everyone understands
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.
THE AI'S TAKING ALL THE FUN JOBS!
The planet fitness meme was on point
What do you use for the GUI?
I STEAL FROM PETER TO GIVE TO PAUL PAUL I STEAL FROM PAUL TO GIVE TO PETER
bro is stuck in the past, old ass memes u got there cuh
Insane effort
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)
You recreated the CIAs AI Meme Warfare
WOW You are a 10x bro... Thanks for recommending libraries and tools. Do some Rust tho, I'd like to see you try.
can you check, the demo is throwing openai authentication error
yeah
Got back from Seattle, will fix tomorrow
@@CodingWithLewis thanks
@@CodingWithLewis thanks
@@ChandravijayAgrawal thanks
it shouldn't be called mistral, it should be called monsoon
We need an automatic shitposter Lewis
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.
Current AI shares the pain of Lieutenant Commander Data
I like your funny words magic man
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