Тёмный

Computer Generates Human Faces 

CodeParade
Подписаться 477 тыс.
Просмотров 870 тыс.
50% 1

5:51 To skip to the results.
Try It Online: codeparade.net/...
Download App (Windows 64-bit): github.com/Hac...
Source Code: github.com/Hac...
This is another fun project I came up with using the same data set as my other video. This time, I experiment with unsupervised learning to see what the computer can learn about faces, and try to generate some new ones.

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,6 тыс.   
@TheOfficialCzex
@TheOfficialCzex 5 лет назад
The most important aspect of a face: shirt color.
@serenityrahn5656
@serenityrahn5656 5 лет назад
there is actually some truth to that
@jaykay4137
@jaykay4137 5 лет назад
I don't feel so bad about being ugly anymore
@jacobschweiger5897
@jacobschweiger5897 5 лет назад
@XodiakGangrene but where could we get 1700 naked highschoolers...
@excinerus
@excinerus 5 лет назад
@@jacobschweiger5897 even if we did, we'd only replace the shirt slider with a collarbone and chest hair / boobage sliders ... of said 1700 highschoolers
@iancampion6979
@iancampion6979 5 лет назад
ـ Excinerus wtf
@codinginflow
@codinginflow 5 лет назад
I will have horrible nightmares from this
@gulpgo
@gulpgo 4 года назад
Yes you will :)
@IBims1Mark
@IBims1Mark 3 года назад
@@gulpgo aBSolutely
@kennarajora6532
@kennarajora6532 3 года назад
Hopefully they've gone by know. If not, my comment will always be here to remind you of what you saw.
@codinginflow
@codinginflow 3 года назад
@@kennarajora6532 😭
@vibhav6551
@vibhav6551 10 дней назад
Nightmare has become reality
@bjorndoescubesnstuff4572
@bjorndoescubesnstuff4572 6 лет назад
is this the yearbook of Chernobyl High?
@ZonkoKongo
@ZonkoKongo 6 лет назад
decoder games fucking keked
@reallybadmeme2838
@reallybadmeme2838 6 лет назад
there is no school in Chernobyl you dumbface!
@holdenew
@holdenew 6 лет назад
really bad meme thatsthejoke.jpg
@Krong
@Krong 6 лет назад
@@reallybadmeme2838 r/woooosh Edit: TL;DR I don't woooosh anymore and you are free to laugh at Sir "really bad meme" From what I can tell, my man "really bad meme" here essentially ruined the joke in a sarcastic tone. It shows that he did get the joke, but chose to say something that someone who didn't get the joke would say. Therefore, it still stands that he ruined the joke. You could say the joke is that he pretended to want to ruin it even though he got it. If you think he was funny, I get it. Sarcasm can be funny. In my opinion it wasn't used in the *most* comedic way here, but whatever. I apologise if I have made anybody uncomfortable with my opinion, but please understand that not everybody will agree with you. Which is why you are still free to hate on me now. Peace.
@owengrimm1370
@owengrimm1370 5 лет назад
@@Krong did you even look at his profile name? Also, r/ihavereddit
@asmrcraft2117
@asmrcraft2117 5 лет назад
7:33 "Let her head be Large...." **Eye pops out** "...or actually just give her a smaller head"
@SevaOsso
@SevaOsso 5 лет назад
Ha ha ha
@alexradu1921
@alexradu1921 5 лет назад
that was my reaction too
@ishpeeedy
@ishpeeedy 5 лет назад
*_Nightmare Generator_*
@skilz8098
@skilz8098 5 лет назад
Freddy Kruger's Personal Smartphone App!
@junenaya2736
@junenaya2736 5 лет назад
Original
@microsoftword213
@microsoftword213 5 лет назад
​@@junenaya2736 It is original because he put it in b/ BOLD font....
@pogodanaprzygode
@pogodanaprzygode 5 лет назад
best comment :)
@Mynameisevanbro
@Mynameisevanbro 5 лет назад
That does actually look creepy
@kaioxys
@kaioxys 5 лет назад
I think it’s interesting that slider 2, male/female, also controls smile/frown so that males frown and females smile.
@prabhathakula2481
@prabhathakula2481 2 года назад
That indicates that the features are still correlated and not yet completely interpretable .
@sploofmcsterra4786
@sploofmcsterra4786 2 года назад
If there was a slider for frowning or smiling it was left in the middle, so all we can deduce is that males are correlated with frowning. OR it was actually a frown/smile slider and the gender was just the correlated element.
@cara-seyun
@cara-seyun Год назад
Probably an artifact from the data set, males tend to adopt a more serious/neutral expression and females smile in pictures
@carykh
@carykh 7 лет назад
FIRST!!! It's amazing how each slider is so logical and describable, when you're sliding them around it almost feels like you're customizing your player in The Sims. But it was all chosen by a computer? Whhhhaaaaatttt 8:06
@JasperPeters
@JasperPeters 7 лет назад
Thanks for bringing me here! This is awesome!
@TheSyborgue
@TheSyborgue 6 лет назад
Mind-blowing, thanks for the adress!
@grivar
@grivar 6 лет назад
Amazing. Unfortunately I can't try this kind of thing myself, German privacy laws would get me rekt.
@flTobi
@flTobi 6 лет назад
RE Is echt so :P
@grivar
@grivar 6 лет назад
fearlessTobi iss doch voll komi das der einfach so Fotos zeigt ne?
@user-fn3py8hv9p
@user-fn3py8hv9p 4 года назад
“Well I’m not sure, I can’t tell what this is doing, but it’s doing something” Basically every invention/discovery ever And also a quote from my uncle describing his dog
@rufus8821
@rufus8821 2 года назад
What da dog doin?
@nicefloweytheoverseer7632
@nicefloweytheoverseer7632 2 года назад
I dunno, _sumthin_
@BS-bd5uq
@BS-bd5uq 5 лет назад
5:54 If you want an average person you get nothing
@dibbidydoo4318
@dibbidydoo4318 5 лет назад
Tells something about the human nature...
@dhiahassen9414
@dhiahassen9414 5 лет назад
it is just because of the data set , that area is empty in the data set , the machine can guess it , because the closest point in the data set is already far , in other teams , it is either that the high school students are on average far from their average ( not similar , which is true ) , or means that the data set is not big enough , which is also true
@allat0nce
@allat0nce 5 лет назад
@Gromm: its called apache helicopter, you bigot /s
@imaginerus
@imaginerus 5 лет назад
I think it's just because there is no data with a shirt color between white and black. As soon as he defines it with the first slider, you get your average person
@PafiTheOne
@PafiTheOne 5 лет назад
@@imaginerus You seem to be the only one in this section who really learnt from the video. ;-)
@dembonez19
@dembonez19 5 лет назад
8:38 - That ended up being super clear!
@_goldfish
@_goldfish 4 года назад
Ikr
@grivar
@grivar 6 лет назад
The next step is is get a bunch of people to rate the attractiveness of each face and see how attractiveness correlates to each of those sliders. Maybe we don't realise but a slider that changes very little has a large effect on how we perceive that face!
@oskarkrogsgard3014
@oskarkrogsgard3014 6 лет назад
Yeah that would actually be really interesting
@grivar
@grivar 6 лет назад
Oskar Krogsgård yeah... If somewhat unethical :p
@CodeParade
@CodeParade 6 лет назад
Haha, if someone can make me a labeled dataset like that, I would try it out ;)
@devrim-oguz
@devrim-oguz 6 лет назад
We can set up a website for voting who is more beautiful like the mark zuckerberg did to create a labeled database. All we need is a lot of woman pictures and people to rate. You can achieve the people side if you tell people to vote to a website from your channel.
@grivar
@grivar 6 лет назад
Ali Devrim OĞUZ I'm pretty sure men can be attractive too haha
@amoghskulkarni
@amoghskulkarni 5 лет назад
5:55 Moral from the video: An *average* person is nobody. Be someone.
@wontcreep
@wontcreep 5 лет назад
be special. eat poop.
@Subakak
@Subakak 5 лет назад
@@wontcreep you forgot to say the creator of the quote you mentioned:it's Albert Einstein
@wontcreep
@wontcreep 5 лет назад
@@Subakak yes
@wontcreep
@wontcreep 5 лет назад
@@Subakak yes uwu
@pogodanaprzygode
@pogodanaprzygode 5 лет назад
or... is a monster. And the monster is something!
@ToastingInEpicBread
@ToastingInEpicBread 9 месяцев назад
Yesterday was nostalgic. The future is unprecedented.
@isaacrubinstein300
@isaacrubinstein300 5 лет назад
They Have No Eyes
@Incognito-rb4tz
@Incognito-rb4tz 4 года назад
Holy sh*t
@seakyle9500
@seakyle9500 4 года назад
Still soulless creatures...
@bamacadam
@bamacadam 4 года назад
Do AI dreams about creepy humans ?
@FoldUpCobra1017
@FoldUpCobra1017 4 года назад
Ahhhhh
@Incognito-rb4tz
@Incognito-rb4tz 4 года назад
@@FoldUpCobra1017 aAAAaaAaaaaaAAAAaaAaaAaAAaaaaaA
@aaronwarwick9966
@aaronwarwick9966 3 года назад
6:55 was lateral facial symmetry. As the slider went more to one side that side of the face became larger in features compared to the other side. Maybe a shortened name would be something like 'facial slant' or something like that.
@jonathanxdoe
@jonathanxdoe 5 лет назад
Computer Generates Human Faces... 10 years after car crash
@henryzhang3961
@henryzhang3961 6 лет назад
Try using mugshots instead and you actually could make a police sketching thing. Though I suppose the head position of the suspect wont matter too much
@jakelyon914
@jakelyon914 5 лет назад
Where the original photos are from wouldn't matter, you still end up with a face that looks right anyway.
@watamidoing8131
@watamidoing8131 5 лет назад
Jake Lyon The point of usingmugshots would be to weed out features such as shirt colour, height, and face orientation as they all have a standard arrangement.
@VeryProfessionalGamer
@VeryProfessionalGamer 5 лет назад
but then it would only range from brown to black skin colors...
@nimelanu
@nimelanu 5 лет назад
@@VeryProfessionalGamer lol good one=)))
@watamidoing8131
@watamidoing8131 5 лет назад
Not Not In a way, that would become an issue, but essentially by having less features to analyse it might as well be that the neural network ends up with more finesse. But it also could start over fitting
@shrimpfry880
@shrimpfry880 Год назад
meanwhile in 2023: you can animate donald trump catching an octopus and innviting his president friends to dinner
@kittadyne
@kittadyne 6 лет назад
This video gives me a reason to learn more math.
@cleverstation623
@cleverstation623 5 лет назад
same
@kebman
@kebman 5 лет назад
Bitcoin made me want to learn more math, and boy oh boy was that a rabbit hole!
@mamupelu565
@mamupelu565 5 лет назад
@@kebman was it worth the effort?
@ganaraminukshuk0
@ganaraminukshuk0 5 лет назад
Mostly linear algebra, if you're still curious. The relevant stuff for PCA has to do with eigenvectors and eigenvalues.
@Chris_t0
@Chris_t0 5 лет назад
Don't its not worth it
@piereligiodisante
@piereligiodisante 10 месяцев назад
I miss the times when this was a breakthrough
@CodeParade
@CodeParade 6 лет назад
Several of you have asked for a way to play with the sliders yourselves. I'd love to provide that, but its a little tricky. First of all, the data set is not public and there are privacy concerns with releasing it. Second this demo currently has dependencies with python and other ML libraries that require a GPU that take a lot of machine-specific setup, definitely something too difficult for the average person. Another idea is to provide a web interface, but I don't have any experience with designing interactive web GUIs, I'm not much of a web guy. If someone out there IS a web developer and is willing to remake a GUI and host this on their site, then I could provide the backend and make this accessible to everyone.
@luisfonseca2086
@luisfonseca2086 6 лет назад
Is there a way we could see the code on GitHub tho? I'm not really sure how to do a web interface for this but I'm sure a day on stack overflow would enlighten me :p
@robmckennie4203
@robmckennie4203 6 лет назад
IMO, the cardinal sin of sharing programming projects online is not uploading the code to github.
@CodeParade
@CodeParade 6 лет назад
True. Normally I like to clean my code so others can use it easily (bug-free, documentation, examples, etc.) but that takes a LOT of time. However I could create a 'scratch work' repo on GitHub with 'unpolished' projects like this. It may be difficult to setup and run, but at least someone technical could read through the source if they want to build something similar on their own... Is that something you'd find useful?
@robmckennie4203
@robmckennie4203 6 лет назад
It's probably not something i'd work on, i'm time poor and have other projects on the go, but I think it would be better than nothing for anyone who wants to work on it
@robmckennie4203
@robmckennie4203 6 лет назад
Also if you mean you have a single repo with multiple projects in it, I would recommend against that, repos are cheap
@samuelpalfreyman9143
@samuelpalfreyman9143 5 лет назад
this is actually kind of creepy looking at those faces
@Grigor421
@Grigor421 5 лет назад
Uncanny valley
@vgames1543
@vgames1543 5 лет назад
The Sims: Pripyat edition.
@lev7509
@lev7509 4 года назад
I can see you are more educated than an average memer.
@dougthedonkey1805
@dougthedonkey1805 4 года назад
6:10 “Obviously, hair length is highly correlated to gender” Me, a long haired guy: Damn
@nutzpflanze6088
@nutzpflanze6088 4 года назад
Well, it's corraleted to it, it's not a causality and long hair is mostly more associated with the female gender/more girls and women have long hair.
@dougthedonkey1805
@dougthedonkey1805 4 года назад
@Nutzpflanze it was a joke chief, I am aware that they are correlated
@nutzpflanze6088
@nutzpflanze6088 4 года назад
@@dougthedonkey1805 I know... my comment was also just a joke.
@wheedler
@wheedler 4 года назад
@@nutzpflanze6088 I don't get it.
@Soulvale88
@Soulvale88 4 года назад
Same
@namelessnick9791
@namelessnick9791 5 лет назад
8:55 wtf is that
@CaptainAlien132
@CaptainAlien132 5 лет назад
My nightmares
@patrikbartos8236
@patrikbartos8236 5 лет назад
Dude cmon thats my daughter...
@Tom21369
@Tom21369 5 лет назад
Its ma‘am!
@crugger2582
@crugger2582 5 лет назад
Ur mom
@l3p3
@l3p3 5 лет назад
That is your new girlfriend that will lie right next to you when you wake up this night.
@digitalartist779
@digitalartist779 5 лет назад
I didn't understand a single thing, but still watched it till the end.
@kreendurron
@kreendurron 5 лет назад
Would love to see a higher resolution version of this
@zakuro8532
@zakuro8532 4 года назад
There exists one.
@Journey_to_who_knows
@Journey_to_who_knows 4 года назад
Nightmares remastered
@neutralknight.6862
@neutralknight.6862 3 года назад
I would not.
@Everything_60
@Everything_60 9 месяцев назад
This face this doesn’t exist .com is here
@MotobugGaming
@MotobugGaming 3 года назад
It's amazing how it's been only 3 years but we've already advanced AI to the point where generated faces are near perfect!
@Imotbro
@Imotbro 6 месяцев назад
And another three years, AI can generated a next to impossible dectect, Hyper-realistic videos with 80% plus accuracy with faces with environmental factors and expressions with that. (No sound) In 2027, I bet it does the same as 2024, but better, with sound, 1.5 minutes of video / seconds production, 99.97% accuracy, voice editor, and generates faces of any age that match the voice, sound, brains, and action.
@UltimatePiccolo
@UltimatePiccolo 5 лет назад
This would be great for a horror game, good project though.
@JackLe1127
@JackLe1127 5 лет назад
Is there a way to train a model to score how realistic a face is and use it to tweak the sliders using genetic algorithm?
@evennot
@evennot 5 лет назад
Yes, that one is called adversarial learning. Basically, you have two competing systems and a set of real photos. System A generates faces from random noise, B is presented with A's output and real photos to be trained to distinguish them. Then A is improved (using B's correct answers as a loss function), then B is improved, etc No need for GA there too. It can be performed using simple gradient learning, etc
@eliasniemann7998
@eliasniemann7998 5 лет назад
@@evennot you'd have to label the images
@carlosfernandez5833
@carlosfernandez5833 5 лет назад
To expand in what the first commenter said, model B would be what we call a discriminator because it's trained to discriminate between real and fake images. This is also how deepfake videos are made.
@TavartDukod
@TavartDukod 3 года назад
@@eliasniemann7998 No you do not. You actually do two things: you generate images using NN A from random noise and you feed those images as well as images from the dataset into the NN B. NN B learns to distinguish images from the dataset and images that were generated by NN A. NN A learns to trick NN B into believing images it generates are from the dataset. No labeling involved. Of course you wouldn't get sliders neatly corresponding to describable features of the dataset, but you can get really realistic images as long as your datasets are big enough. For example thispersondoesnotexist.com/ uses GANs to generate faces.
@Mecharnie_Dobbs
@Mecharnie_Dobbs 2 года назад
@@TavartDukod I just typed "face" into Google image search and the 6th result wasn't a real face. So you don't need to label, but you need to manually check the input
@LehySnek
@LehySnek 5 лет назад
This is just a video of Oblivion's character editor...
@Micha-Hil
@Micha-Hil 6 месяцев назад
About half a decade later and modern AI has completely trivialized this process
@enmanniska
@enmanniska 6 лет назад
I definitely think that you should continue making videos like this one.
@KeinNiemand
@KeinNiemand Год назад
In just a few years we went from this to stable diffusion/dalle 2/midjourney.
@micahgilbertcubing5911
@micahgilbertcubing5911 6 лет назад
Here from carykh! You totally deserve more subs!
@prehistoricplaysyt3690
@prehistoricplaysyt3690 5 лет назад
Maxwellcrafter fellow cubers
@pugo7925
@pugo7925 5 лет назад
Ha I comes to carykh after I discovered this channel
@jademonass2954
@jademonass2954 5 лет назад
7:47 that is so freaking creepy
@danielvillegas6273
@danielvillegas6273 5 лет назад
This could improve a lot how police sketches are created. Not only that, this provides an interface that could be used with NLP to automatically generate a seed sketch and then refined. Congratulations, really cool.
@marcthenarc868
@marcthenarc868 5 лет назад
"I'm not sure what the format of this channel will be.": You're doing great. You keep it theoretically sound and practical so we can learn ourselves with your code.
@vanz681
@vanz681 4 года назад
The weird moment when you see your own face in the video
@corrupteddude9853
@corrupteddude9853 4 года назад
Imagine
@henrykkaufman1488
@henrykkaufman1488 5 лет назад
Number 8 is (a)symmetry y. It's easier to recognize if you don't think of these as faces but as images.
@garbageyoutubechannel310
@garbageyoutubechannel310 6 лет назад
I want an online face generator for the world to use
@herbiehusker1889
@herbiehusker1889 5 лет назад
Go to thispersondoesnotexist . com
@sergeboisse
@sergeboisse 5 лет назад
There is one. faceresearch.org/demos/average
@bg8224
@bg8224 5 лет назад
@@sergeboisse holy shit, thank you. I haven't laughed that much in a while.
@ThalesPo
@ThalesPo 4 года назад
@@herbiehusker1889 Are those computer generated? They're so perfect, look like real pictures. Wish there was a similar site but that generated only good looking people.
@ThalesPo
@ThalesPo 4 года назад
@@herbiehusker1889 Also, isn't there one where we can adjust the knobs to obtain a custom face?
@RGPankO
@RGPankO 5 лет назад
These faces were truly horrific. Just stumbled upon your channel. Please dont dissapoint me by becoming inactive but instead you have lots of new amazing content like this one! :)
@misaalanshori
@misaalanshori 5 лет назад
Me: *watches technical part* Brain: "oh, I totally understand this..." Me: "what did I just watch?" Brain: "ummmmmmmmmmmm what?"
@alspezial2747
@alspezial2747 5 лет назад
its simple he is not doing it the first way but choses to take the easier way
@gymprofessor329
@gymprofessor329 4 года назад
I love that you went into the statistics a bit. Really cool concepts hiding in there.
@Journey_to_who_knows
@Journey_to_who_knows 4 года назад
8:22 Zucc shedding his skin
@cara-seyun
@cara-seyun Год назад
Incredible how far we’ve come since this
@androlsaibot
@androlsaibot 4 года назад
7:27 "Let's say we want someone with a dark shirt" "Female" Game over
@RaviAnnaswamy
@RaviAnnaswamy 4 года назад
Very intuitive presentation of ideas. The combination of Auto encoder with PCA to make them interpretable was new to me, even though I have read about VAE etc etc. Also your ability to interpret and label the first 8 or 10 features was mind blowing. Nice work!
@arendmandelings4499
@arendmandelings4499 5 лет назад
This is one of the coolest, most inspiring videos I've seen in a long time. I really like what you do and what your interests are and seriously hope you're putting your skills and talent to good use in a challenging job. P.S. Where did you learn all this stuff? I learned about PCA just last year and was amazed at what it could do, but I'm referring to the programming skills.
@CodeParade
@CodeParade 5 лет назад
Programming is something I've been doing for so long, I've learned from so many sources. My own tinkering, game making, school, the internet, university, etc. Machine learning stuff was mostly self-taught though.
@arendmandelings4499
@arendmandelings4499 5 лет назад
Well, I hope you enjoy it as much as I like watching the results
@fernandohbc
@fernandohbc 5 лет назад
This video is so cool. The explanation about PCA and what the most important features are using the slides is really educational. Thanks for putting this together.
@xPROxSNIPExMW2xPOWER
@xPROxSNIPExMW2xPOWER 6 лет назад
Can you post the code on git I want to test this on my own dataset. Want to see where I stand in the customization of the sliders lol
@XxRiseagainstfanxX
@XxRiseagainstfanxX 5 лет назад
ProSurviver admit it, xou just want to feed it pornstars..
@Yanser234
@Yanser234 5 лет назад
@@XxRiseagainstfanxX 🤫🤫
@memnarch108
@memnarch108 5 лет назад
Great video. I'd love to see more similar technical videos, with unsupervised learning. Seems like supervised learning dominates almost everything, but those things seem quite powerful. I'd love to see e.g. some variational eutoencoder or similar things.
@I77AGIC
@I77AGIC 5 лет назад
at 2:49 what do you mean by "instead we just imbed all training samples randomly"? I understand what the latent space is. But if it's only 80 dimensions, how do you get an entire image down to those 80 dimensions without an encoder? Are you feeding a random vector into the latent space and training it to produce a face from just random inputs?
@I77AGIC
@I77AGIC 5 лет назад
Just realized the source is in the description. apparently keras actually has an "embedding" layer. the description they give of what it does is vague and i still don't get it, but it's a start
@TasmanianTigerGrrr
@TasmanianTigerGrrr Год назад
I generate a human face everytime i look in the mirror
@ChrissyoSpace
@ChrissyoSpace 7 лет назад
Really cool! I guess my main question would be something like: how well can you recognise (parts of?) your high school classmates in the generated faces? Do they look like total strangers to you, or are most of them like "oh, that generated face is mostly just Peter, but with some variations" or maybe "that face is part Peter, part George"? The sliders seem to show a pretty smooth transition between faces, so I assume the former ... but at the same time, it's hard to judge how random they are without having known any of the people in the training set. Once again, really cool video! :)
@CodeParade
@CodeParade 7 лет назад
As far as I can tell they all look 'new'. The school was pretty big though, and this combines all grades, I don't know most of the people either. I didn't show any of the originals since I don't have their permission.
@atomictraveller
@atomictraveller Год назад
@@CodeParade jesus i've been trying to remember your name for two days. all i want to do is extend the bin data of fourier audio frames to make low sample rate audio high sample rate audio with similar precision to this face app. today people publish papers about this, i don't want perfection, just something to mess around with. that's why i am thinking of you, because you understand art. i can't believe humanity is so selfish there's not even a free web platform offering any kind of "spectral improvisation" but i'd guess a simple GAN would make the 10kHz files at riffusion much more pleasing since it would be so easy to train for. any tips on ML algorithm? (i gotta watch this one again..) i'm gonig to have to make a windows app becaus ei'm sick of humanity, horribly greedy horribles.
@MoonlightMirage
@MoonlightMirage 3 года назад
7:33 / 7:34 Honestly, that right there looks really solid in comparison to most of the other faces in the video
@audiohacker5298
@audiohacker5298 5 лет назад
I accidentally click the random button then a beautiful girl shows up. I clicked it again its lost
@TheCymbalProject
@TheCymbalProject 2 года назад
The demo is crazy fun to play with....
@noahmaxwell4263
@noahmaxwell4263 5 лет назад
I have absolutely no clue what the hell is going on in this video but I'm hooked anyway
@ActionReplayPerson
@ActionReplayPerson 5 лет назад
All that time in linear algebra and I literally couldn't visualize the shit we did when dicking around with bases or linear independence. It took this video to even get me a foothold two years later.
@estebann
@estebann 6 лет назад
I was able to kindda replicate the concept your project. A rather poor man's version of it. My version is built with Tensorflow and Python, but I have a AMD GPU, so I had to make some sacrifices to be able to have interesting results with my CPU. Ended up scaling things down to 60x60 grayscale image. I don't know much academic level math, took me a while, but managed to grasp an intuitive understanding of PCA (and most importantly, implement it in python). As in your video, it made everything better. One thing I added to your concept was a couple randomizer buttons that switch all component values to +/-1 standard deviation, +/-2 standard deviation or +/-3 standard deviation it was really fun to see the generation of faces. I am afraid that in my search of scaling things down I might have overfitted the NN. My NN has an input of 3600 grayscale pixels (60x60 image), only one hidden layer of around 1000, and 40 dimensions in latent space. For training I used just 256 pictures , in batches of 16 pictures. For each epoch of training, I shuffled the training set, so that no 16 pictures batches the same, so to not have the same batches. I noticed this made a huge impact in quality of face generation. For optimizer I used a RMSPropOptimizer, learning step of 0.001 ,and for loss calculation, I tryied a few. I made several runs but all of them ended up simmilar. They didn't reduce loss over time. I also notice that some knob configurations produce really detailed images that I think are the same as one in the dataset. I am in doubt about it being overfitted, since I ran through the autoencoder images that I didn't use for training, and it did a really good job. Does this discard overfitting? What would be your choise about the method of loss calculation and choise of optimizer? I really learned a lot thanks to this video. It pushed me to learn something new.
@CodeParade
@CodeParade 6 лет назад
Wow, that's awesome! Having only 256 images for training would definitely make me nervous about over-fitting, especially if your loss isn't going down. Did you include horizontal-mirror images? That can double your dataset size if you didn't include them already, I used that trick in this project to double the total. You can also add random translations, rotations and scales of the dataset if you still need more. I like the Adam optimizer the best, I basically always use it unless its having convergence issues. MSE is fine for loss assuming you have a sigmoid activation as your last layer to clamp pixel brightness to 0-to-1.
@CJHElectro
@CJHElectro 5 лет назад
People saying there is no average person... The fader chooses between 2 features, in the exact middle means no feature has been chosen. there is no person if no feature is chosen, like in a drop down menu you have to choose something.
@OrangeC7
@OrangeC7 6 лет назад
It would be really nice to see this done with perhaps a much larger data set but maybe with 100 parameters, then hide all but about 20-30 of the less important parameters and have all of the others being randomly shifted constantly to see if it makes any kind of aesthetic. However, it would be amazing if there was some kind of download link to play around with this ourselves. I hope one becomes available sometime!
@Xandawesome
@Xandawesome 6 лет назад
Yeah I'd love to play around with this
@enosunim
@enosunim 2 месяца назад
Six years ago? Wow! And it is still online? Wow times Wow!
@2Cerealbox
@2Cerealbox 6 лет назад
I feel like the complications were just due to taking a shortcut you assumed would work, but didn't. And I suspect you'd get better results by simplifying your algorithm to actually encode first rather than use two out-of-the-box dimensionality reduction algorithms before finally applying the dimensionality reduction algorithm that this video is actually about.
@allennelson1987
@allennelson1987 4 года назад
Wow, in the latent space representation, the activations are correlated. Who knew? Not me. Please keep doing this.
@Mic_Glow
@Mic_Glow 5 лет назад
8:38 OH GOD OH GOD hey, that one is pretty OH GOD
@ubivermiscerritulus195
@ubivermiscerritulus195 4 года назад
I mean people and others have been doing this for thousands of years so why is this so impressive?
@mjde9532
@mjde9532 4 года назад
Imagine being a hypercube with all the generated faces
@therealbluedragon
@therealbluedragon 5 лет назад
You’ve created some good Nightmare fuel there.
@boyos
@boyos 5 лет назад
0:14 is that ksi
@TehTriikzta
@TehTriikzta 5 лет назад
I absolutely loved this video. Thank you. I only just found your channel today for the first time, I’m now binging all of your videos! Love you dude!
@Lemonatic
@Lemonatic 5 лет назад
cool tech.. but don't get me wrong.. every picture says: PLEASE KILL MEEEEEEE!
@WhojaVu
@WhojaVu 5 лет назад
I am studying media technology and this is really a nice way to explain everything.
@Jaggerbush
@Jaggerbush 6 месяцев назад
2024 could you have predicted Ai to be what it is now?
@jasonvoss1984
@jasonvoss1984 5 лет назад
Totally awesome video! Based on your insights, you could preprocess images to make largely redundant some of the biggest PCA components. Eg alighn all faces to the centre of the image, adjust for size differences of the face and maybe rotate faces so to be not tilted. Maybe also add 2 faces to the dataset which you generate yourself by averaging the faces of all girls and all guys. Those are likely to be used as major parts of the PCA axis for gender. Then rerun the training process. With a bit of iterative tweaking like that, my goodness, you really could have an amazing tool for modeling faces with all sorts of real world commercial applications. Well done mate! Brilliant work.
@grease92
@grease92 4 года назад
6:37 Wouldn’t you like to know, weatherboy!
@WarnerMeeks
@WarnerMeeks 5 лет назад
The statistical analysis by the author was really interesting.
@psi_rockin
@psi_rockin 4 года назад
This is more horrifying than "this person does not exist" so congrats.
@kpvdnber
@kpvdnber 5 лет назад
I know nothing of coding, but found this thoroughly entertaining. You're extremely promising.
@trevorreynafarje9395
@trevorreynafarje9395 6 лет назад
So gender is on a spectrum? Woah...
@gfbtfbtfilyfxbtyewqqef
@gfbtfbtfilyfxbtyewqqef 5 лет назад
Top to bottom: Female, Blur, Paint splat, blur, male.
@maxebanana6143
@maxebanana6143 5 лет назад
@@gfbtfbtfilyfxbtyewqqef i identify as an amorphous, blurry blob
@Momonga-s7o
@Momonga-s7o 5 лет назад
Conservatives hate him.
@shadowxxe
@shadowxxe 5 лет назад
@@gfbtfbtfilyfxbtyewqqef no its Female,W̷̵̨̛̹̫̙̰̥͚͖̮͙̦̩̳h͏̸̳͎̟̦͈̪̺̖͈̲̙̠̞͘͢à̵̴͖̦̼̘̗͔̲̺͓̬̞̜͈̹̞͖͠ṱ̢̫͈͉̤̟͉̖́͜͞͞?̵̞̙̲̩͠͝͝ , DiStOrTiOn , ǝʞᴉlsʞooluɐɯnɥɐʇɐɥʍsʇɐɥʇoS , Male.
@chase_h.01
@chase_h.01 5 лет назад
Its more like feminine or masculine traits.
@ohp98
@ohp98 5 лет назад
I for one definitely enjoy the more technical videos, keep up the good work!
@rv706
@rv706 5 лет назад
Somewhere among the 80 parameters there must be the Francis Bacon portrait effect
@friedmule5403
@friedmule5403 5 лет назад
Then imagine 1,000 or 100,000 points where the computer can detect changes in the same face, by fractions of a millimeter and can calculate the predicted aging of a person or, mood, energy, awareness and so on. Maybe even signs of illness or preventing stress.
@estebann
@estebann 6 лет назад
2:35 "We dont actually need the encoder. NOT EVEN DURING TRAINING. Instead we just embed all training sample randomly into the latent space. Their weights then just get updated just like the network weight during training" I got a bit lost there. How do you get those training sample? Where do you get those samples from the pictures if you don't encode them first?
@CodeParade
@CodeParade 6 лет назад
When the network initializes, all those vectors are random so you get garbage as you expect. But during back-propagation, the ground truth images back-propogate up the network (updating the network weights) all the way back to those latent space inputs, updating them as well. This is the Keras Embedding layer with the input length set to 1. keras.io/layers/embeddings/
@estebann
@estebann 6 лет назад
CodeParade thanks for answerring!
@estebann
@estebann 6 лет назад
So you built the encoder, initialized it with random values, and just ran your train data inside of it. Then you used those latent spaces generated with the untrained random encoder, and trained the decoder inserting each latent space and comparing the output to each latent space's original picture. Did I get the concept right? (I am a bit new to this, and built mine with Tensorflow. I think it is possible to do the same there).
@CodeParade
@CodeParade 6 лет назад
Not exactly. So suppose there were only 3 samples in the training. Then your encoder inputs are [1,0,0] [0,1,0] and [0,0,1] this is called 'one-hot encoding'. The decoder outputs are just the images as you'd expect (they are NOT used in the encoder). So if you have N images, your encoder input is an N-vector and your decoder output is an image. So Embedding is not really an AutoEncoder since the input and output of the network are not the same. Each input is a vector of zeros with the i-th value a '1' with corresponding output the i-th image. Does that make more sense?
@CodeParade
@CodeParade 6 лет назад
Yes, 100% :)
@MuradBeybalaev
@MuradBeybalaev 5 лет назад
The idea to use this for identifying criminals by victims is absolutely brilliant!!! Firstly, you can have them all posed uniformly for much better NN learning, since, duh, arrested. And secondly, the samples would all be registered criminals. Just imagining how this would increase efficiency of police sketching makes me shiver!
@thekyleyt
@thekyleyt 4 года назад
You should do this with bob ross paintings (there are 403 total)
@voidlessvoid6206
@voidlessvoid6206 4 года назад
I understand very little about math and complicated scientific whatever. But I'm still interested and I love listening to people talk about this stuff.
@bredstic9836
@bredstic9836 5 лет назад
Those faces are some real nightmare fuel jesus
@alsmith20000
@alsmith20000 5 лет назад
One feature that you may wish to try encoding is the fact that faces are approximately symmetrical around an axis that will be approximately vertical. I found it interesting that there was quite a lot of asymmetry in many of the images, though perhaps this is a prejudice that my brain applies based on being fairly good at recognizing faces.
@itzikgutzcha4779
@itzikgutzcha4779 5 лет назад
Very interesting, you would have gotten better results had you normlized the face sizes and cut out the faces discarding the shirt and hair all together, thus ignoring insignificant traits such as shirt color and colar length and focusing on more interesting traits such as eyes shape, nose shape etc'.
@BrightBlueJim
@BrightBlueJim 5 лет назад
That's if you really don't care about hair. But hair is a significant part of what a face looks like. I have seriously not recognized people after they changed their hair color or cut most of it off.
@MatthewBaka
@MatthewBaka 5 лет назад
@@BrightBlueJim I think most people would recognize someone even if they dyed their hair or had a big haircut.
@alecboi777
@alecboi777 Год назад
now we can just “hey chatgpt can you write a 50 page essay about hot dogs for me” “yeah sure”
@als_pals
@als_pals 6 лет назад
Is there some way I can play with the sliders?
@sharethataspect2739
@sharethataspect2739 5 лет назад
I had absolutely no idea what you were speaking about, but i still found this very interesting lol.
@niyasummer4940
@niyasummer4940 4 года назад
8:55 sleep paralysis demon
@alkeryn1700
@alkeryn1700 Год назад
i recalled and wanted to watch that video again after years, for some reasons in my memory the faces would look almost perfect except low res haha.
@computersocsci
@computersocsci 5 лет назад
"Number 8" at 6:52 seems like it's skin color with darker skin on top and lighter skin on the bottom.
@PTactician
@PTactician 5 лет назад
He is deliberately avoiding to say it because "reasons"
@arslanrasit
@arslanrasit 5 лет назад
It's just "lighting" imo
@justingolden21
@justingolden21 3 года назад
Your friend: Don't worry, nobody ever looks at yearbook photos You in the yearbook, making it into a video with a million views
@CLUSTERFVCK
@CLUSTERFVCK 4 года назад
it COULD be used to make police sketches... ORRR it could go the other way and be used to make fake ID's
@zoiuduu
@zoiuduu 4 года назад
it could be both, so u cant put the "or" and should use "and"
@wheedler
@wheedler 4 года назад
I don't think that's how fake IDs work.
@DarrylCross
@DarrylCross 3 года назад
"and" would mean that it must be used for both, an inclusive "or" means it could be used for either or both, and an exclusive "or" (xor) would mean that it would have to be used for one or the other but not both. (Though colloquial English doesn't differentiate between the inclusive and exclusive "or" and usually relies on context) Logically speaking, the Inclusive Or is proper usage.
@CLUSTERFVCK
@CLUSTERFVCK 3 года назад
@@wheedler lol i know im very clearly joking
@wheedler
@wheedler 3 года назад
CLUSTERFVCK Was the police sketch thing part of the joke too?
@bredstic9836
@bredstic9836 4 года назад
3:15 i would kill to have a horror game with these faces in it it’s so unsettling and i think it’ll make for an amazing scare
Далее
Neural Network Learns to Sketch Faces (Deep Doodle)
5:45
Exploring Word Chains
9:45
Просмотров 169 тыс.
To mahh too🫰🍅 #abirzkitchen #tomato
01:00
Просмотров 2,7 млн
Они захватят этот мир🗿
00:48
Просмотров 920 тыс.
Why AI art struggles with hands
9:57
Просмотров 2,6 млн
AI Learns to Generate Faces
10:03
Просмотров 19 тыс.
The True Story of How GPT-2 Became Maximally Lewd
13:54
C++ Developer Learns Python
9:26
Просмотров 2,7 млн
AI Learns What Pizza Is
8:03
Просмотров 347 тыс.
The Slow Death of Windows
17:22
Просмотров 1,1 млн
Fast Inverse Square Root - A Quake III Algorithm
20:08