I thoughtattackpeoplewereasking, youknow, linearalgebraneeded, like, requiredfornonetworks.
And I thinkyoucanactuallyattesttothefactthatinordertogetthemworkingNotreally.
Right.
Uh, experimentingovertheweekenddidallsortsofcoolthings, butactually, I'llaskyoutotalkaboutthat a littlebitin a sec, Buttogethimworkingto, like, runneuralnetworkstofollowwithtutorialonline, I'd sayno, youdon't reallyneedinyour, uh, linearoutright.
Youdoneedneverletstouselittlesleepingtoday, butyeah, I wouldsaythatyoudon't necessarilyneeditinordertogetthemtoworkin a verykindoftechnicalsenseofthequestion.
But I thinkthatunderstandingsomekindoffundamentalsoflinearalgebraIves, aswassuggestedinthechat, issuperusefulforactuallydoingmeaningfulthingswithneuralnetwork.
But a theendgoalofthisarticlewasactuallycreatepixelartthatlookedlikethis, andthespritesthemselvesaren't actuallygenerated.
Butallthetilesinthis, theeverythingbut a Simonhere, thismonsterandthisbatisallgeneratedfrom a neuralnetwork, andthisisdonewithBasically, theywentintodetailonhowtheydidit.
Butdownherewescratched a littlebit, andtheygointoobviouslythedetailsonhow a d, uh, generaladversarialnetworkworksandallthatstuffwhichwillactuallyendupgettingto, ifnotthisone, butlike, oneofthemoreextremeongeneral.
Butbasically, theytook, I think, 10,000 screenshotsofany s games, likealloftheseonesherehiminto a ah a a neuralnetwork.
Andtheybasicallyjusttook a bunchoftilesherefromsomeofthatworkthattheydioandthenmade a made a levellotofit, andwhat I wantedtoendupdoingmyselfwassomethingverysimilar.
Sowhat I didwas I grabsomeartwork, forexample, fromthedungeoncrawlerstonedungeoncrawlstonesoupgamewhich, ifyougotodungeoncrawlstones, souptile.
I looked.
I waslookingfortheslicedtileset.
Um, whereisit?
Here?
Opengamearedotorg's hasit.
They're 32 by 32 tiles, and I apologizeforanybodywhoareeagertogetinto, likethetensorflowpartofthis.
Okay, it's allgoodguesses.
A.
Basically a massivetilesetforthisgamecalledDungeonCrawlStoneSoup.
It's a roguelikegame.
There's a tonoflike, youknow, weaponsandenemiesanditemsandallsortsofthings.
Perfectforthis.
Usecasesare 32 by 32 pixeltiles, right?
Andwhat I didwas I grabbedthatartwork I took.
I did a bunchofexperiments, butwe'lljusttalkaboutmymostrecentone.
Andon a CPUon a laptopondhe, youknow, we'redoing a lotofthingsthatwerekindofwhatpeoplewouldbelike.
Oh, there's noway I wouldworkitall, butitveryclearlygets a lotofthepatternsthatyou'relookingfor, whereitgetsthemainone.
Everythingsingledupintotheright.
Italsogetsthatthere's allthesedifferentcolorsthatbelong, andthere's I thinkthereare a coupleofminuteswe'relookingatitbeforethestreamthathadkindoflike a clearcoloredradiantlike a lotofweaponswillhavelike a darkerportionofthebottomandthenlateratthetopbecausemetalsareoftenreflectiveandwoodsandlikeplastic.
Something's ornot.
Andi, it's kindofamazing.
I thinktomethatit's evencapturinganypatternsin a veryshortperiodoftime.
It's verycool.
Yeah, no, itwasItwassuperawesome.
And, uh, thisismotivatingme.
And I thinktheultimatewayweendedupgettingtothisaroundaboutwasthatthemathissuperimportantbecause I donotknowwhat I needtochangeaboutthis, togetittoproducethethingsthat I want.
Soworkitfromthetopdownapproach.
I know.
Have a motivation, actually, digintotheinternalsofthisandfigureouthowallofthesepiecesendupworkingtogether.
Andsothisisstill a kindofthatsameassumption, butitworks a littlebitbetterforimageswhereyou'reactuallytaking, likeallthreethingsbeforeit, insteadofjusttheone I kindoflike, kindoflikeimagefilteringislikepurpleexactlywherewe'rekindofjustlikefilteringdowndiagonallyratherthanyousamplearound a pixeltoanyoneactuallytryingtofigureoutwhat's inthereon.
That's kindof a littlebitcleareridea.
Itworks a littlebitbetterforwhatweknowtobetruewithhowimagesoftenare.
Somuchaslike a deepneuralnetworkiskindof a generalizedformofhowyouwould, uh, itcouldbeusedformanythingsfromlikeclassificationtopredictiononwhatwillcomenextandthingslikethat.
SothatnightaskedhowmuchcomputationJerry, doweneedtogointomland I I thinkforthiswe'reactuallywe'vekindofworkedourwayfromthebottomup, Sowe'rewe'reactuallygonnatalkquite a bitaboutjustkindofhigherlevelthingsinthisone.
I actuallyprobablywon't coat a wholelottoday.
I'm a littletired.
Didn't havequiteenoughtimeformyselftoprep.
Um, sorry.
I wasdoing a lotof P sets, sothat's anexcuseforyouguys.
Butthatisessentiallywhat's goingon.
Beingourbeen a lotofworkgoingon, and I justyouknow, thereareotherthingsthatkindoftookpriority, butwewillstillcoat a littlebit.
Andthenwe'lltalkaboutsomeofthethingsthat I foundusefulwhen I wastryingtounderstandhowthiswholelikestyletransferconceptworks, andthat's ultimatelywhatwewanttodotoday.
Yes, yes.
Soit's theendoftoday.
Wewanttofigureouthowthissortofthingworks, and I figurewe'llstartwithit, andthenwe'llgofromthere.
Okay?
Sorry.
I don't have a websitethatdoesitforyou.
Yes, theydohave a nicewebsite.
It's calledDeepPartthat I oh, feelfreetohotbyifyou'd like.
Thisisduetotwo.
I thinktherewas a reallygoodonein, liketheCalistreamwherewebothlookkindofnothorrible.
Ifyou'refamiliarwithdeepfakes, there's kindof a similarconceptgoingonthere, andit's kindofscary, like, I mean, assomeonewho's interestedinsecurity.
Thisisterrifyingtome.
Peoplecanaffordthingsthateven I wouldstrugglethiotellapart, especiallybecauseonlygiventhis I maynotbeabletotellyouwhere, likewhichthingitwasfakedfromwithhowitworked, I mightnotevenbeabletonoticethatthisisn't reallygrantthing.
Itwouldbedefinitelyworthtryingonyourown, butthisismaybe a recognizableimagewith a prettyclearyouknowwhosestylethatlookslike 100% paintedcrazy, whichiskindofthewildpart.
Andhere's somekindofotherexamples.
I mean, it's definitelyworthGooglingaroundtokindofseewhatexactlyhappened, but I thinkthatit's mindboggling.
I reallylovethese, likephotorealisticones.
I thinkthey'retheonesthatjustblowmymindentirely.
Butbeingabletotransferstyleissomethingthat I thinkis a littlewild.
Butwhat I say, like a futureofsomeimage, I certainlydonotmeanlearningtheimageitself, whichissomethingthatneuralnetworkscanhave a problemwithintheformofoverfitting, whereweendupactuallyjustgrabbingtheface.
And I wasjustthatthewholeteamwasawesome, andclearlynoonepersoncouldhavedoneallofthat.
Butthereissocalledsuperinteresting.
I recommendgoinginreadingthearticleonhowtheydidthat.
Therewas a lotofworkdoneon, kindoflikeinferringwhatitmustlooklikeforusbecausetherearekindofproblemswiththisstandardwayofvisualizing a blackholeorvisualizingthingswherewegenerallyvisualizethembybouncingbeamslikephotonsoffofthemandseeingwhatenergycomesbacktous.
Buttheissuewith a blackholeisthatthosephotonsjustdon't comeback.
There's someonethatsaystheblackholepickwas a wasteoftimeuntilthere's nothingwedidn't alreadyknow.
I almostcouldnotmorestronglydisagreewitheverypartofthatsentenceifyou, I mean, yeah, I very, verythoroughlydisagreewiththat, justbasedontheideathatevenifyouitsuggeststhatyouknowpicturesornothingreasonablethantheliketerabytesofinformationthattheywereabletoprocessanddosoinsuch a cohesiveandreasonablefashionwithsuch a lowerrorrateandsuchkindofridiculouslycontrolledvariantsis I thinkimpressiveinandofitself, evenlikethecollaborationbetweentheteamsisimpressiveinandofitself.
Onthe J.
P.
Youguys, I thinkhe's beingironic, and I couldconcedethatthatislikelythat.
Butwhat I kindofmypointthereisthatthere's a lotofkindofcontroversygoingonwiththeblackholepicturewherepeoplearekindofharassingandgoingafterthescientistsinvolvedandkindofspreadingsomemisinformationabouthowitworksorwhatwentonbehinditorwhocodedwhat.
Yeah, Sonowwe'rebacktokindofourlittlebitless, I guess, celestial, ifyouwillimagegeneratorsandkindofhowdowetransfer a stylefromoneimagetothenext?
And I thinkthispicturedoes a reallygoodjobofexplainingwhatexactlyisgoingon.
Sothat's kindarecapwehavetheseconvolution, allneuralnetworksandsoconvolutionsarejust a wayofprocessinganimageandtryingtofigureoutwhatthingsairfeaturesfromtheimageexistandareimportantNow.
WhatcontentThingsareimportantfromtheimage, sothereiskindofthisideainordertotransferstyleoverishowmuchdo I wanttounderstandfromeachimageisstyle, andhowmuchdo I wanttounderstandiscontent, andthat's that's prettytricky.
Esogenerallywhatendsuphappening?
Theythinktheydo a prettygoodjobhereofshowingthatasyoureconstructtheimagesasyougofurtherdeeperintotheneuralnetworkfrom a convolution, allneuralnetwork, ifyou'rereconstructingtheimagefromreallydeepwithin, thestyleisprettymuchexactlyretrieved.
Thecontentis a littlebitmuddledifyougofromtheverybeginning.
You'llnoticethatgenerallyspeaking, a minimizationisactuallyalsomaximizationthatkindofthesameidea.
I justwantthereverse.
If I negatesomethingthathasthiskindoflikeabstractLeeoverreturnedbowlshapedanditendsupbeinganunderturnedorjust a normalbowl, and I canthenminimizethatandgenerallywejustprefertominimizethat's whereallthetermslikeGradyanddissentandthingslikethatcomefrom, we'regoingdown.
Ingredient.
Um, therearesome, like, littletricks.
Well, it's timetochecktheemail.
T.
That's a greatpoint.
I'm gonnaswapmeoutofthereso I canthankyouknow, wecouldhackintoyouremail.
Yeah, asfunasthatwouldbereallyntodefensestreetout, wewouldhave a veryentertaining, um, veryentertainingmoment.
AgrifoodAsk, didyoulearnneuralnets?
atHarvardorontheInternet.
Andifso, doyourecommendsources?
Well, sothat's a greatquestion.
I havekindofdone a littlebitofboth, tobehonest.
So I'veactually I'm currentlyin a machinelearningclassthatdoescoversomeneuralnetworkstuff I'm alsodealingwith, Like, howdo I Howdo I learnthisonmyown?
Howdo I goonGooglepapers?
Howdo I kindoflookaroundandtrytofindthingsthatareinteresting?
I guess I'vekindofbeen a littlebitofboth.
It's a prettycuttingedgefield, too.
So I imaginethatthere's a lotofnewstuffcomingouteveryday.