Example: confidence

A Style-Based Generator Architecture for Generative ...

A Style-Based Generator Architecture for Generative Adversarial NetworksTero propose an alternative Generator Architecture for gen-erative adversarial networks, borrowing from style transferliterature. The new Architecture leads to an automaticallylearned, unsupervised separation of high-level attributes( , pose and identity when trained on human faces) andstochastic variation in the generated images ( , freckles,hair), and it enables intuitive, scale-specific control of thesynthesis. The new Generator improves the state-of-the-artin terms of traditional distribution quality metrics, leads todemonstrably better interpolation properties, and also bet-ter disentangles the latent factors of variation. To quantifyinterpolation quality and disentanglement, we propose twonew, automated methods that are applicable to any genera-tor Architecture . Finally, we introduce a new, highly variedand high-quality dataset of human IntroductionThe resolution and quality of images produced by gener-ative methods especially Generative adversarial networks(GAN) [21] have seen rapid improvement recently [28,41,4].

Method Pathlength Separa-full end bility b Traditionalgenerator Z 412.0 415.3 10.78 d Style-basedgeneratorW 446.2 376.6 3.61 e +Addnoiseinputs W 200.5 160.6 3.54

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of A Style-Based Generator Architecture for Generative ...

1 A Style-Based Generator Architecture for Generative Adversarial NetworksTero propose an alternative Generator Architecture for gen-erative adversarial networks, borrowing from style transferliterature. The new Architecture leads to an automaticallylearned, unsupervised separation of high-level attributes( , pose and identity when trained on human faces) andstochastic variation in the generated images ( , freckles,hair), and it enables intuitive, scale-specific control of thesynthesis. The new Generator improves the state-of-the-artin terms of traditional distribution quality metrics, leads todemonstrably better interpolation properties, and also bet-ter disentangles the latent factors of variation. To quantifyinterpolation quality and disentanglement, we propose twonew, automated methods that are applicable to any genera-tor Architecture . Finally, we introduce a new, highly variedand high-quality dataset of human IntroductionThe resolution and quality of images produced by gener-ative methods especially Generative adversarial networks(GAN) [21] have seen rapid improvement recently [28,41,4].

2 Yet the generators continue to operate as black boxes,and despite recent efforts [2], the understanding of variousaspects of the image synthesis process, , the origin ofstochastic features, is still lacking. The properties of the la-tent space are also poorly understood, and the commonlydemonstratedlatentspaceinterpola tions[12,48,34]provideno quantitative way to compare different generators againsteach by style transfer literature [26], we re-designthe Generator Architecture in a way that exposes novel waysto control the image synthesis process. Our Generator startsfrom a learned constant input and adjusts the style ofthe image at each convolution layer based on the latentcode, therefore directly controlling the strength of imagefeatures at different scales. Combined with noise injecteddirectly into the network, this architectural change leads toautomatic, unsupervised separation of high-level attributes( , pose, identity) from stochastic variation ( , freckles,hair) in the generated images, and enables intuitive scale-specific mixing and interpolation operations.

3 We do notmodify the discriminator or the loss function in any way, andour work is thus orthogonal to the ongoing discussion aboutGAN loss functions, regularization, and hyper-parameters[23,41,4,37,40,33].Our Generator embeds the input latent code into an inter-mediate latent space, which has a profound effect on howthe factors of variation are represented in the network. Theinput latent space must follow the probability density of thetraining data, and we argue that this leads to some degreeof unavoidable entanglement. Our intermediate latent spaceis free from that restriction and is therefore allowed to bedisentangled. As previous methods for estimating the de-gree of latent space disentanglement are not directly ap-plicable in our case, we propose two new automated met-rics perceptual path length and linear separability forquantifying these aspects of the Generator . Using these met-rics, we show that compared to a traditional Generator archi-tecture, our Generator admits a more linear, less entangledrepresentation of different factors of , we present a new dataset of human faces (Flickr-Faces-HQ, FFHQ) that offers much higher quality andcovers considerably wider variation than existing high-resolutiondatasets(AppendixA).

4 Wehavemadethisdatasetpublicly available, along with our source code and pre-trained accompanying video can be foundunder the same Style-Based generatorTraditionally the latent code is provided to the gener-ator through an input layer, , the first layer of a feed-forward network (Figure1a). We depart from this designby omitting the input layer altogether and starting from alearned constant instead (Figure1b, right). Given a la-tent codezin the input latent spaceZ, a non-linear map-ping networkf:Z Wfirst producesw W(Fig-ure1b, left). For simplicity, we set the dimensionality of1 3 3 Conv 3 3 Conv 3 3 PixelNormPixelNormUpsampleNormalizeFCFCF CFCFCFCFCFCAAAABBBBC onst 4 4 512 AdaINAdaINAdaINAdaINUpsampleConv 3 3 Conv 3 3 Conv 3 34 48 84 48 8stylestylestylestyleNoiseLatentLatentMa ppingnetworkSynthesis network(a) Traditional(b) Style-Based generatorFigure 1. While a traditional Generator [28] feeds the latent codethough the input layer only, we first map the input to an interme-diate latent spaceW, which then controls the Generator throughadaptive instance normalization (AdaIN) at each convolution noise is added after each convolution, before evaluatingthenonlinearity.

5 Here A standsforalearnedaffinetransform, and B applies learned per-channel scaling factors to the noise mapping networkfconsists of 8 layers and the synthesis net-workgconsistsof18layers twoforeachresolution(42 10242).The output of the last layer is converted to RGB using a separate1 1convolution, similar to Karras et al. [28]. Our Generator hasa total of trainable parameters, compared to in thetraditional spaces to 512, and the mappingfis implemented usingan 8-layer MLP, a decision we will analyze in affine transformations then specializewtostylesy= (ys,yb)that control adaptive instance normalization(AdaIN) [26,16,20,15] operations after each convolutionlayer of the synthesis networkg. The AdaIN operation isdefined asAdaIN(xi,y) =ys,ixi (xi) (xi)+yb,i,(1)where each feature mapxiis normalized separately, andthen scaled and biased using the corresponding scalar com-ponents from styley.

6 Thus the dimensionality ofyis twicethe number of feature maps on that our approach to style transfer, we computethe spatially invariant styleyfrom vectorwinstead of anexample image. We choose to reuse the word style forybecause similar network architectures are already usedfor feedforward style transfer [26], unsupervised image-to-image translation [27], and domain mixtures [22]. Com-pared to more general feature transforms [35,53], AdaIN isparticularly well suited for our purposes due to its efficiencyand compact Baseline Progressive GAN [28] + Tuning (incl. bilinear up/down) + Add mapping and + Remove traditional + Add noise + Mixing 1. Fr chet inception distance (FID) for various Generator de-signs (lower is better). In this paper we calculate the FIDs using50,000 images drawn randomly from the training set, and reportthe lowest distance encountered over the course of , we provide our Generator with a direct means togenerate stochastic detail by introducing explicitnoise in-puts.

7 These are single-channel images consisting of uncor-related Gaussian noise, and we feed a dedicated noise im-age to each layer of the synthesis network. The noise imageis broadcasted to all feature maps using learned per-featurescaling factors and then added to the output of the corre-sponding convolution, as illustrated in Figure1b. The im-plications of adding the noise inputs are discussed in Quality of generated imagesBefore studying the properties of our Generator , wedemonstrate experimentally that the redesign does not com-promise image quality but, in fact, improves it chetinceptiondistances(FID)[24]forvari-o us Generator architectures in CelebA-HQ [28] and our newFFHQ dataset (AppendixA). Results for other datasets aregiven in the supplement. Our baseline configuration (a)is the Progressive GAN setup of Karras et al. [28], fromwhich we inherit the networks and all hyperparameters ex-cept where stated otherwise.

8 We first switch to an improvedbaseline (b) by using bilinear up/downsampling operations[58], longer training, and tuned hyperparameters. A de-tailed description of training setups and hyperparameters isincluded in the supplement. We then improve this new base-line further by adding the mapping network and AdaIN op-erations (c), and make a surprising observation that the net-work no longer benefits from feeding the latent code into thefirst convolution layer. We therefore simplify the architec-ture by removing the traditional input layer and starting theimage synthesis from a learned4 4 512constant tensor(d). We find it quite remarkable that the synthesis networkis able to produce meaningful results even though it receivesinput only through the styles that control the AdaIN , we introduce the noise inputs (e) that improvethe results further, as well as novelmixing regularization(f)that decorrelates neighboring styles and enables more fine-grained control over the generated imagery ( ).

9 We evaluate our methods using two different loss func-tions: for CelebA-HQ we rely on WGAN-GP [23], while4402 Figure 2. Uncurated set of images produced by our Style-Based gen-erator (config f) with the FFHQ dataset. Here we used a variationof the truncation trick [38,4,31] with = resolutions42 322. Please see the accompanying video for more uses WGAN-GP for configuration a and non-saturating loss [21] withR1regularization [40,47,13] forconfigurations b f. We found these choices to give the bestresults. Our contributions do not modify the loss observe that the Style-Based Generator (e) improvesFIDs quite significantly over the traditional Generator (b), al-most 20%, corroborating the large-scale ImageNet measure-ments made in parallel work [5,4]. Figure2shows an uncu-rated set of novel images generated from the FFHQ datasetusing our Generator . As confirmed by the FIDs, the aver-age quality is high, and even accessories such as eyeglassesand hats get successfully synthesized.

10 For this figure, weavoided sampling from the extreme regions ofWusing theso-called truncation trick [38,4,31] AppendixBdetailshow the trick can be performed inWinstead ofZ. Notethat our Generator allows applying the truncation selectivelyto low resolutions only, so that high-resolution details arenot FIDs in this paper are computed without the trun-cation trick, and we only use it for illustrative purposes inFigure2and the video. All images are generated Prior artMuch of the work on GAN architectures has focused onimprovingthediscriminatorby, , usingmultiplediscrim-inators [17,43,10], multiresolution discrimination [55,51],orself-attention[57]. Theworkongeneratorsidehasmostlyfocused on the exact distribution in the input latent space [4]or shaping the input latent space via Gaussian mixture mod-els [3], clustering [44], or encouraging convexity [48].Recent conditional generators feed the class identifierthrough a separate embedding network to a large numberof layers in the Generator [42], while the latent is still pro-vided though the input layer.


Related search queries