Geerative-Adversarial-Network-Tutorial
Geerativeadversarialetworks(GANs)areoeofthehottesttopicsideeplearig.Fromahighlevel,GANsarecomposedoftwocompoets,ageeratoradadiscrimiator.Thediscrimiatorhasthetaskofdetermiigwhetheragiveimagelooksatural(ie,isaimagefromthedataset)orlookslikeithasbeeartificiallycreated.Thetaskofthegeeratoristocreateaturallookigimagesthataresimilartotheorigialdatadistributio,imagesthatlookaturaleoughtofoolthediscrimiatoretwork.
Theaalogyusedithepaperisthatthegeerativemodelislike“ateamofcouterfeiters,tryigtoproduceadusefakecurrecy”whilethediscrimiativemodelislike“thepolice,tryigtodetectthecouterfeitcurrecy”.Thegeeratoristryigtofoolthediscrimiatorwhilethediscrimiatoristryigtootgetfooledbythegeerator.
Asthemodelstraithroughalteratigoptimizatio,bothmethodsareimprovedutilapoitwherethe“couterfeitsareidistiguishablefromthegeuiearticles”.
ThetutorialiswritteiPytho,withtheTesorflowlibrary,soitwouldbegoodtohavefamiliaritywithTesorflowbeforetakigalookatthistutorial.
HowtoUseJupyterNotebooksFirststepisalwaystocloetherepository.gitcloehttps://github.com/uclaacmai/Geerative-Adversarial-Network-Tutorial.gitNext,wewattomakesurewehaveJupyterNotebookistalled.Youcaeitherfollowoeoftwopaths.YoucaeitheristallAacoda(whichistallsPytho,JupyterNotebook,adabuchofotherusefulcomputiglibraries)orusepip.ToistallAacoda,takealookattheirwebsite,whichhassomeprettygreatdocumetatio.
Ifyouwattoistallusigpip,you'lleedtoupdatepipwiththefollowigcode(Replacepipwithpip3ifusigPytho3).
OLiux/MacOS:
pipistall-UpipsetuptoolsOWidows:
pytho-mpipistall-UpipsetuptoolsNext,youshouldbeabletoruthefollowig.
pipistalljupyterFially,ruthefollowigcommadadaewtabiyourbrowserwiththeJupyterNotebookshouldcomeupjupyterotebookFormoreresourcesoJupyterNotebooks,checkoutthefollowig:
IstallatioDocumetatioTryigJupyterjustiyourbrowserJupyterDocsVideotutorialoJupyterDetailedtutorialsousigdifferetPytholibrariesiJupyterNotebooksMoreGANResourcesTheorigialpaperwrittebyIaGoodfellowi2014.SirajRaval'svideotutorialoGANs(Reallyfuvideo)IaGodfellow'skeyoteoGANs(Moreofatechicalvideo)BradoAmos'simagecompletioblogpostBlogpostousigGANsivideogames.AdrejKarpathy'sblogpostwithGANvisualizatios.AditDeshpade'sblogpostoGANsadoverviewofsomeassociatedpapers.






评论