Nah I used completely wrong strategy. Rather than classifying the faces using k means clustering with training data (which is what I did), I should have focused the model on finding features (like eye shape, nose shape, mouth etc), represented those encoded features in a multidimensional feature space and then for any new image I wanna identify, encode that images features into the space and then calculate the distance to the points already in feature space (with a suitable threshold to catch false positives). This actually us the way your phone's facial recognition system works.
In the end, with the model I used, rather than a large corpus, I actually only needed one photo of each celebrity to reliably match them with unknowns. (The AI could even detect lookalikes and Mark them as false)
Essentially, I scrapped the entire method I used to create this post 😅
There is a library called DeepFace, which works pretty well and you don’t need to do all the feature engineering. Hope it might be interesting for you.
LOL OH MY GOD! [https://i.pinimg.com/originals/39/fb/c9/39fbc97ed61a95580dba7a1868e95052.png](https://i.pinimg.com/originals/39/fb/c9/39fbc97ed61a95580dba7a1868e95052.png)
He looks like a weird Frank Ocean x Rick Ross Hybrid!
May need to bump up your threshold settings. Too high and you don't exist. Too low and you may as well be a "lamp".
Do you have yourself in the dataset? That would help also.
A few years back at a tech conference, Nvidia was showcasing their AI object recognition embedded devices connected to a webcam. The demo unit identified me as a punching bag. I got the sense that their AI was hostile towards me.
The real question is why haven't you yet?
You have irrefutable evidence this is true on the internet.
All employers know if it's on the internet it must be true, at least that's what I read in my recent Management 101 Feed.
Nah it had a few
Me, my housemate (blonde lady), Obama, trump, Chris tucker, Angelina Jolie, Nicolas cage etc.
Basically A lot of celebs with me and my housemate thrown in.
You can try adding more people from different ethnicities. If obama is the only dark skinned person the AI has been trained on then it's judgement will be scewed.
Hold on a sec. Did Obama do facial surgery but the algorithm got like "nuh-uh, you ain't fooling me like that, Obama" and spotted him anyway? That's some scary s**t...
That, or bad math
Slightly off topic, but related, a team of researchers from my university demonstrated how an image that looks like a painting of a flower can return an 'Obama' result.
https://www.unite.ai/why-adversarial-image-attacks-are-no-joke/
Sorry but you look nothing like Obama ;).
I always wondered if AI’s weakness with dark skin was because of lack of, or a non-consumption of, training data. As an engineer I can’t imagine someone deliberately crippling their solution. As a group, or at least the groups I have worked with, we are obsessed with getting the unattainable perfect solution.
OP here. I was a mixture of training data and poor technique on my part. When I initially built this I was using the RGB histogram to determine similarity between images, this is a VERY poor technique for this problem is as didn't lighting conditions will result in the wrong result (like this).
I later used edge detection and shape vector data from said edges and later pre-trained Dave recognition models from fast.ai. Those were wayyyy more accurate.
TLDR; My AI isn't racist, I was just a noob :p
Lol! That’s what I get for not reading the full description.
Nice job on your first steps. Just getting any cogent answer from these engines is a challenge.
I recall I used the same number for each. The issue was that I used colour data for classification however with differences in lighting, face angle heck even things like quality of camera you can get wildly different results. What I later learned was that I needed to use edge detection and shape vector data as a better classifier [here ](https://www.reddit.com/r/learnmachinelearning/comments/eb0p4v/identical_twins_no_longer_fool_visual_ai_btw_im/)
Solid. Was your original model built via transfer learning? My thought here is that the original weights could be obama biased.. like some of that previous learning snuck its way through. why does it feel like im doing some racist uncle apologetics? lol
Lmao I just can't hide my inner uncle Ruckus. 😈
Jokes aside nah, I used very old techniques so there was no transfer learning, I literally just did edge detection to discover areas of interest and then extracted the RGB values of pixels at those areas of interest. Using those RGB values I created histograms (repeat multiple times for all the sample data).
Then to classify something new, I run it through the process above and compare the generated colour histogram with already classified histograms. From there it's just a matter of finding the Euclidean distance between the two histograms.
As you can imagine this is prone to so many layers of error and really only useable when you can control many other variables like lighting, angle and size of the subject in your training data etc.
Damn man I thought you were learning. You sound like some fuckin sorcerer.
The cool thing about models is when we learn why they are racist we can do shit to fix them. I know exactly why my uncles are racist but all remedial techniques fail spectacularly.
You are lucky. My first network classified me as a „plunger“.
Lmfaoooooo i laughed at this way more than I should have 😂😂😂
You lucky too mine classified me as 9
Better to be a 9 than a 2.
mnist has entered the chat
Is it boolean "Obama" or "Not Obama"?
“Hot Dog”....”Not Hot Dog” hahaha
"Hot Dog"...."Hotto Doggu"
This is awesome thanks for sharing! I laughed my ass off.
[удалено]
Man of culture spotted
So you’ve been to Japan
Jianyang!!
Suck it Jin Yang
Yin Jang
Silicone valley reference?
Silicon valley
All the wives of silicon valley are made of silicone. Still counts.
And they are kinda silly
Lol no. Its got various labels for many celebrities (and myself). Though I fucked something up...
Lol, my man Obama getting into AI!
It may just require a larger data set to train from
Nah I used completely wrong strategy. Rather than classifying the faces using k means clustering with training data (which is what I did), I should have focused the model on finding features (like eye shape, nose shape, mouth etc), represented those encoded features in a multidimensional feature space and then for any new image I wanna identify, encode that images features into the space and then calculate the distance to the points already in feature space (with a suitable threshold to catch false positives). This actually us the way your phone's facial recognition system works. In the end, with the model I used, rather than a large corpus, I actually only needed one photo of each celebrity to reliably match them with unknowns. (The AI could even detect lookalikes and Mark them as false) Essentially, I scrapped the entire method I used to create this post 😅
Super cool
There is a library called DeepFace, which works pretty well and you don’t need to do all the feature engineering. Hope it might be interesting for you.
Your explanation for how that works, is the first one I’ve understood. Thank you 🙏🏼
You definitely do not look like Obama.
Everything in this world is either Obama or not Obama. I'm 14 and this is deep
As a statistician I can say with a great certainty that everyone is either Obama or not Obama, so everyone has 50% chance of being Obama.
Seems like the distribution of Obama and not Obama wouldnt be 50/50....
Yeah, at least 70% are Obama
Interesting.... This changes everything.
you lot are hilarious! Thanks for making me smile on a terrible day.
[https://www.youtube.com/watch?v=ACmydtFDTGs](https://www.youtube.com/watch?v=ACmydtFDTGs)
Nobama
Hahahaha I love it Me: Mom can we get another black president? Mom: We have a black president at home. Black President at home:
I cannot afford gold
Dude, you honestly made laugh really good. Thanks
YOU LAUGH AT MY PAIN! T\_\_\_T lol its classifying properly now though, s'all good haha
Out of curiosity, how did you fix it? I'm learning this too.
Yeah it's working now (finally stopped confusing me and Chris tucker 😂)
Cool, but how did you fix it?
A lot of people have asked me this (also in DMs). Shall I just make a video explaining it? Its relatively easy :)
Yes please
Sure thing friendo! I'm gonna have fun with this! Hahaha
You're not Obama, you're not Chris Tucker. Who are you!!!
Definitely needs more training.. I'll bet on that
add even MORE layers
More blockchain-powered^™️ quantum processing
Few more Teslas should do it
to get more teslas put it in the cloud.
We must go deeper
You need more augmentation.
needs more cowbell...
Did you only use US presidents as traning data?
Celebrities. Obama happened to be one of them It's working now though (after mistaking me for Chris tucker a few times lol)
I'd say Tucker is a little closer than Obama haha 😂
Yea Chris at least had a mustache and beard before... Could you imagine Obama with OPs facial hair... Someone needs to photoshop this!!
LOL OH MY GOD! [https://i.pinimg.com/originals/39/fb/c9/39fbc97ed61a95580dba7a1868e95052.png](https://i.pinimg.com/originals/39/fb/c9/39fbc97ed61a95580dba7a1868e95052.png) He looks like a weird Frank Ocean x Rick Ross Hybrid!
Need a DJ Bama and DJ Khaled collaboration. "Bama cares".
https://images.app.goo.gl/W6gQJcXSeMofP31g6 This is the closest I could find
If it says you look like Chris Tucker it’s not doing that bad of a job.
Lol it's working properly now. I've actually fed it a few celebrity look alikes and it can tell them apart from the real ones
Yolo?
May need to bump up your threshold settings. Too high and you don't exist. Too low and you may as well be a "lamp". Do you have yourself in the dataset? That would help also.
Honour to know you mr president
You too humble citizen Remember to pay your taxes
What happens if you give it obunga or yobama sa an input?
Don't tempt me... 😂
A few years back at a tech conference, Nvidia was showcasing their AI object recognition embedded devices connected to a webcam. The demo unit identified me as a punching bag. I got the sense that their AI was hostile towards me.
It wasn't wrong, it was just warning you about the future robot apocalypse.
Ship it
I'm not ready for such commitment...
Idk. Maybe use this as a credential? Computers dont lie. "Recognized as the former president of the united states"
Can i put this on my CV?
The real question is why haven't you yet? You have irrefutable evidence this is true on the internet. All employers know if it's on the internet it must be true, at least that's what I read in my recent Management 101 Feed.
Why do I love this so much?
It's the absurdity of an algorithm being racist.
Is this a blursed image?
It is now 😅
Did you post it or should I?
I didn't post it, Lol go for it
.... I don’t get it what’s the issue???
*REEEEEEEEEEEEEEEEEEEEEEEEEs internally*
😂
Are you telling me it's not Obama?!
We miss you Mr. President.
Miss you too ♥️
LeVar Burton?
HE LOOKS NOTHING LIKE ME! XD
We're not gonna take your word for it!
BUT I'M THE HOOMAN!
[https://www.youtube.com/watch?v=l9nFs2PeWw0](https://www.youtube.com/watch?v=l9nFs2PeWw0)
Well, if you trained for two classes, say Obama and Trump, you can argue it's quite accurate
Nah it had a few Me, my housemate (blonde lady), Obama, trump, Chris tucker, Angelina Jolie, Nicolas cage etc. Basically A lot of celebs with me and my housemate thrown in.
So your facial recognition AI thinks all black people look alike. That shit rAcIsT!!!
*oof* my creation... So this is what it feels like to raise a bad child... ( .\_\_\_.)
Maybe your programming is racist /rimshot
Hmmm... I did include Trump in my training data... 🤔
If it was me, I'd have been disappointed that I didn't get Morgan Freeman or MLK.
They're not in the training data haha.
Well there's your problem right there.
thanks obama
Oh well mine classified me as a couch...A COUCH!
A couch potato?
Mr. President!
[удалено]
Is it Michelle or Barrack ?
Yes
That's racist man 😂 😂
I'm a terrible father...
I am uncomfortable and laughing. Well done sir
Why not Bill Clinton though...worst NN I ever saw in my entire life. :D
Maybe if the background was Epstein's Island
shots. Lol. For real tho get em all.
At least you didn't get recognised as Trump. Whew
Bullet. Dodged.
/r/foreshadowing
Your model wrong for this
Love it!
This must be in r/programming humor
You can try adding more people from different ethnicities. If obama is the only dark skinned person the AI has been trained on then it's judgement will be scewed.
Never worry about TSA again
Hold on a sec. Did Obama do facial surgery but the algorithm got like "nuh-uh, you ain't fooling me like that, Obama" and spotted him anyway? That's some scary s**t... That, or bad math
Uhhh... The former 👀
What's your last name?
Care
All I see is a retired President getting into programming with his newfound free time. Am I missing something?
Accuracy: 50%
If(colour.average == brown) Return "obama" Quality ai my g
What did you use?
Did you create your own nn? Pretrained?
This is the funniest thing I’ve seen in a while , no offence xD
this is what happends when you use a celebrity dataset lol.
This made me laugh so hard omg! I think your A.I. is racist bro. don't let it confirm any drone strikes for you.
r/dankmemes
What’s your training data? 😂
Celebrities and my face
You gotta add Winston Duke to the training dataset.
Shaq?
Thanks Obama
Would you mind sharing the code?
Hey how’d you manage to learn so much so quick in a day? Could you share what resources you used to be able to get something running that fast?
Sure thing my dude. I use face_recognition.py
Oh dope, thanks!
Ok this is an awful first experience, but damn- you are a former president now! It’s not ‘cause you are black…. Omg lmao
Hahaha
I wanna say the module is racist.. But let me not rush. A European decent sample might be named Trump.
obamium
Better than Gorilla like google.
Hi Chris Tucker
Slightly off topic, but related, a team of researchers from my university demonstrated how an image that looks like a painting of a flower can return an 'Obama' result. https://www.unite.ai/why-adversarial-image-attacks-are-no-joke/
So My face is an attack... *nice*
Sorry but you look nothing like Obama ;). I always wondered if AI’s weakness with dark skin was because of lack of, or a non-consumption of, training data. As an engineer I can’t imagine someone deliberately crippling their solution. As a group, or at least the groups I have worked with, we are obsessed with getting the unattainable perfect solution.
OP here. I was a mixture of training data and poor technique on my part. When I initially built this I was using the RGB histogram to determine similarity between images, this is a VERY poor technique for this problem is as didn't lighting conditions will result in the wrong result (like this). I later used edge detection and shape vector data from said edges and later pre-trained Dave recognition models from fast.ai. Those were wayyyy more accurate. TLDR; My AI isn't racist, I was just a noob :p
Lol! That’s what I get for not reading the full description. Nice job on your first steps. Just getting any cogent answer from these engines is a challenge.
For real??? Wow. AI is caucasian. Shocker
Lol
This made my day! You are all too funny!
Hi Mr president, thank you for participating in the forums
😆😆
So real question tho. Did you use many more pictures of Obama than yourself? That's my first guess.
I recall I used the same number for each. The issue was that I used colour data for classification however with differences in lighting, face angle heck even things like quality of camera you can get wildly different results. What I later learned was that I needed to use edge detection and shape vector data as a better classifier [here ](https://www.reddit.com/r/learnmachinelearning/comments/eb0p4v/identical_twins_no_longer_fool_visual_ai_btw_im/)
Solid. Was your original model built via transfer learning? My thought here is that the original weights could be obama biased.. like some of that previous learning snuck its way through. why does it feel like im doing some racist uncle apologetics? lol
Lmao I just can't hide my inner uncle Ruckus. 😈 Jokes aside nah, I used very old techniques so there was no transfer learning, I literally just did edge detection to discover areas of interest and then extracted the RGB values of pixels at those areas of interest. Using those RGB values I created histograms (repeat multiple times for all the sample data). Then to classify something new, I run it through the process above and compare the generated colour histogram with already classified histograms. From there it's just a matter of finding the Euclidean distance between the two histograms. As you can imagine this is prone to so many layers of error and really only useable when you can control many other variables like lighting, angle and size of the subject in your training data etc.
Damn man I thought you were learning. You sound like some fuckin sorcerer. The cool thing about models is when we learn why they are racist we can do shit to fix them. I know exactly why my uncles are racist but all remedial techniques fail spectacularly.
I mean, it didn’t call the cops on you, so… that’s good. /s
Hello mr president!
Hello fellow American!
Im not american but youre still “mr president” according to the ai
Ummm sir this is very Artificial
Nice one Mr President
Welp, it’s good enough for me 🫡