Weight demodulation for generative neural networks

Through the style-based generative network architecture, the style signal and spatial noise are used to solve the problem of GAN's insufficient understanding of random features in the image synthesis process, achieve fine control and quality improvement of image attributes, and generate high-quality diversity image.

CN113408694BActive Publication Date: 2024-08-27NVIDIA CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110276236.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-01-28
Filing Date
2021-03-15
Publication Date
2024-08-27
Estimated Expiration
2041-03-15

AI Technical Summary

Technical Problem

Existing generative adversarial networks (GANs) lack the understanding of random features in the image synthesis process, and the properties of the latent space are poorly understood, making it difficult to make quantitative comparisons, and the image synthesis quality and resolution improvements are limited.

Method used

A style-based generative network architecture is adopted to achieve scale-specific control of synthetic output data through the combination of mapping network and synthesis network, and utilize style signals and spatial noise to generate high-quality, multi-attribute changing images.

Benefits of technology

It achieves fine control over image attributes, improves image quality and resolution, and can generate diverse images, including faces, objects, etc., and generates less entanglement under unsupervised conditions, simplifying the training process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113408694B_ABST
    Figure CN113408694B_ABST
Patent Text Reader

Abstract

The present invention discloses weight demodulation for generative neural networks. A style-based generative network architecture enables scale-specific control of synthesized output data (such as images). During training, a style-based generative neural network (generator neural network) includes a mapping network and a synthesis network. During prediction, the mapping network can be omitted, copied, or evaluated several times. The synthesis network can be used to generate highly variable, high-quality output data with multiple attributes. For example, when used to generate images of people's faces, the variable attributes are age, race, camera viewpoint, posture, facial shape, glasses, color (eyes, hair, etc.), hairstyle, lighting, background, etc. Depending on the task, the generated output data can include images, audio, video, three-dimensional (3D) objects, text, etc.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Claiming priority

[0002] This application is a continuation-in-part of U.S. Patent Application No. 16 / 418,317, filed on May 21, 2019, entitled “A Style-Based Architecture For Generative Neural Networks,” which claims the benefit of U.S. Provisional Application No. 62 / 767,417, filed on November 14, 2018, entitled “A Style-Based Architecture For Generative Neural Networks,” and U.S. Provisional Application No. 62 / 767,985, filed on November 15, 2018, entitled “A Style-Based Architecture For Generative Neural Networks,” the entire contents of which are incorporated herein by reference. This application also claims the benefit of U.S. Provisional Application No. 62 / 990,012, filed on March 16, 2020, entitled “Style-Based Architecture For Generative Neural Network for Improved Image Quality,” the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present invention relates to neural networks and, more particularly, to generator architectures for synthesizing data using scale-specific control. Background Art

[0004] In recent years, the resolution and quality of images produced by generative adversarial networks (GANs) have greatly improved. However, GANs still continue to act as black boxes, and despite recent efforts, there is still a lack of understanding of various aspects of the image synthesis process, for example, the origin of random features. The properties of the latent space are also poorly understood, and commonly demonstrated latent space interpolation methods do not provide quantitative methods to compare between different GANs. There is a need to address these and / or other issues associated with the prior art. Summary of the invention

[0005] Style-based generative network architectures enable scale-specific control over synthesized output data (e.g., images). During training, a style-based generative neural network (generator neural network) includes a mapping network and a synthesis network. During prediction, the mapping network can be omitted, duplicated, or evaluated several times. The synthesis network can be used to generate highly variable, high-quality output data with a variety of attributes. For example, when used to generate images of a person's face, the attributes that can vary are age, race, camera viewpoint, pose, facial shape, glasses, color (eyes, hair, etc.), hairstyle, lighting, background, etc. Depending on the task, the generated output data can include images, audio, video, three-dimensional (3D) objects, text, etc.

[0006] A method, computer-readable medium, and system for synthesizing output data using a mapping neural network and a synthesis neural network are disclosed. A latent code defined in an input space is processed by a mapping neural network to generate an intermediate latent code defined in an intermediate latent space. The intermediate latent code is converted into a first style signal. The first style signal is applied at a first layer of the synthesis neural network to modify the first intermediate data according to the first style signal to generate modified first intermediate data. In one embodiment, the intermediate latent code is a vector converted to the first style signal via an affine transformation. The modified first intermediate data is processed to generate second intermediate data, and the second style signal is applied at a second layer of the synthesis neural network to modify the second intermediate data according to the second style signal to generate second modified intermediate data. In one embodiment, the intermediate latent code is a combination of the first style signal and the second style signal, and a portion of the intermediate latent code is extracted to generate the first style signal and / or the second style signal. In one embodiment, the intermediate latent code is converted into the second style signal via an affine transformation. In one embodiment, the second latent code defined in the input space is processed by the mapping neural network to generate a second intermediate latent code defined in the intermediate latent space, and the second intermediate latent code is converted into the second style signal. In one embodiment, the modified first intermediate data is processed by a subsequent layer such as a 3×3 convolutional layer to generate second intermediate data. The second intermediate data is processed to generate output data including content corresponding to the second intermediate data.

[0007] A method, computer readable medium, and system for synthesizing output data using a synthetic neural network are disclosed. A first set of spatial noise is applied at a first layer of the synthetic neural network to generate modified first intermediate data, which includes content corresponding to the first intermediate data modified based on the first set of spatial noise. The modified first intermediate data is processed to generate second intermediate data, and a second set of spatial noise is applied at a second layer of the synthetic neural network to generate modified second intermediate data, which includes content corresponding to the second intermediate data modified based on the second set of spatial noise. The modified second intermediate data is processed to generate output data, which includes content corresponding to the second intermediate data. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1A A block diagram of a style-based generator system according to one embodiment is shown.

[0009] Figure 1B An image generated by a style-based generator system is shown according to one embodiment.

[0010] Figure 1C A flow chart of a method for style-based generation according to one embodiment is shown.

[0011] Figure 2A According to an embodiment Figure 1A Block diagram of the mapping neural network shown.

[0012] Figure 2B According to an embodiment Figure 1A Block diagram of the synthetic neural network shown in .

[0013] Figure 2C A flow chart of a method for applying spatial noise using a style-based generator system is shown according to one embodiment.

[0014] Figure 2D A block diagram of a GAN system according to one embodiment is shown.

[0015] Figure 3 A parallel processing unit according to one embodiment is shown.

[0016] Figure 4A According to one embodiment, Figure 3 A general-purpose processing cluster within a parallel processing unit.

[0017] Figure 4B According to one embodiment, Figure 3 A memory partitioning unit for parallel processing units.

[0018] Figure 5A According to one embodiment, Figure 4A Streaming multiprocessor.

[0019] Figure 5B According to one embodiment, using Figure 3 Conceptual diagram of the processing system implemented by the PPU.

[0020] Figure 5C An exemplary system is shown that may implement the various architecture and / or functionality of various previous embodiments.

[0021] Figure 5D Components of an exemplary system that may be used to train and utilize machine learning are shown for implementing some embodiments of the present disclosure.

[0022] Fig. 6A Illustration of artifacts in an image generated by a style-based generator system, according to one embodiment.

[0023] Figure 6B According to an embodiment Figure 2B Block diagram of the processing blocks shown.

[0024] Figure 6C A block diagram of a style block for implementing some embodiments of the present disclosure is shown.

[0025] Fig.6D A block diagram of another style block for implementing some embodiments of the present disclosure is shown.

[0026] Fig. 6E A flow chart of a method for demodulating weights applied by a generator neural network is shown according to one embodiment.

[0027] Fig. 6F An image and feature map generated using the demodulated weights according to one embodiment are shown.

[0028] Fig. 7A An image with a high perceptual path length (PPL) score generated by a style-based generator system is shown, according to one embodiment.

[0029] Figure 7B An image with a low PPL score generated using a style-based generator system according to one embodiment is shown.

[0030] Figure 7C A graph showing PPL scores for a set of images according to one embodiment.

[0031] Fig.7D A graph showing PPL scores for a set of images generated when smoothing regularization is used, according to one embodiment.

[0032] Fig. 7EA conceptual diagram of a path without regularization is shown according to one embodiment.

[0033] Figure 7F A conceptual diagram of a path with regularization according to one embodiment is shown.

[0034] Fig. 8A The use of some embodiments for implementing the present disclosure is shown Fig.6D Block diagram of the synthetic neural network implemented by the style block.

[0035] Figure 8B A block diagram of a generator neural network training system according to one embodiment is shown.

[0036] Figure 8C A flowchart of a method for smoothing regularization for use in a generator neural network is shown according to one embodiment. DETAILED DESCRIPTION

[0037] The style-based generative network architecture enables scale-specific control of the synthesized output. The style-based generator system includes a mapping network and a synthesis network. Conceptually, in one embodiment, the feature maps (containing spatially varying information representing the content of the output data, where each feature map is a channel of intermediate activations) generated by different layers of the synthesis network are modified based on the style control signal provided by the mapping network. The style control signals for different layers of the synthesis network can be generated from the same or different latent codes. The latent code can be a random N-dimensional vector extracted from, for example, a Gaussian distribution. The style control signals for different layers of the synthesis network can be generated from the same or different mapping networks. In addition, spatial noise can be injected into each layer of the synthesis network.

[0038] Figure 1A A block diagram of a style-based generator system 100 according to one embodiment is shown. The style-based generator system 100 includes a mapping neural network 110, a style transfer unit 115, and a synthesis neural network 140. After training the synthesis neural network 140, the synthesis neural network 140 can be deployed without the mapping neural network 110 when the intermediate latent code and / or style signal generated by the style transfer unit 115 is pre-calculated. In one embodiment, an additional style transfer unit 115 can be included to convert the intermediate latent code generated by the mapping neural network 110 into a second style signal, or to convert a different intermediate latent code into a second style signal. One or more additional mapping neural networks 110 can be included in the style-based generator system 100 to generate additional intermediate latent codes from the latent code or additional latent codes.

[0039] The style-based generator system 100 can be implemented by a program, a custom circuit, or a combination of a custom circuit and a program. For example, the style-based generator system 100 can be implemented using a GPU (graphics processing unit), a CPU (central processing unit), or any processor capable of performing the operations described herein. In addition, it will be understood by those of ordinary skill in the art that any system that performs the operations of the style-based generator system 100 is within the scope and spirit of embodiments of the present invention.

[0040] Conventionally, the latent code is provided to the generator through an input layer (such as the first layer of a feed-forward neural network). Instead, in one embodiment, instead of receiving the latent code, the synthesis neural network 140 starts with learned constants, and the latent code is input to the mapping neural network 110. In one embodiment, the first intermediate data is the learned constants. Given an input latent space The latent code z in the nonlinear mapping network First, generate the intermediate latent code The mapping neural network 110 can be configured to implement a nonlinear mapping network. In one embodiment, the input latent space and the intermediate latent space The dimensions of the input and output activations in are equal (e.g., 512). In one embodiment, an 8-layer MLP (multilayer perceptron, i.e., a neural network consisting of only fully connected layers) is used to implement the mapping function f.

[0041] While a conventional generator feeds a latent code only through the input layer of the generator, the mapping neural network 110 maps the input latent code z to an intermediate latent space W to generate an intermediate latent code w. The style transfer unit 115 converts the intermediate latent code w into a first style signal. One or more intermediate latent codes w are converted into a spatially invariant style including a first style signal and a second style signal. Compared to conventional style transfer techniques, the spatially invariant style is calculated from a vector (i.e., the intermediate latent code w) rather than from an example image. One or more intermediate latent codes w can be generated by one or more mapping neural networks 110 for one or more corresponding latent codes z. For example, the synthesis neural network 140 processes the first intermediate data (e.g., a learning constant encoded as a feature map) according to the style signal, increases the density of the first intermediate data from 4x4 to 8x8, and continues until the output data density is reached.

[0042] In one embodiment, the style transfer unit 115 performs an affine transformation. The style transfer unit 115 may be trained to learn the affine transformation during training of the synthetic neural network 140. The first style signal controls an operation at the first layer 120 of the synthetic neural network 140 to produce modified first intermediate data. In one embodiment, the first style signal controls an adaptive instance normalization (AdaIN) operation within the first layer 120 of the synthetic network 140. In one embodiment, the AdaIN operation receives a set of content feature maps and a style signal, and modifies the first-order statistics (i.e., "style") of the content feature maps to match the first-order statistics defined by the style signal. The modified first intermediate data output by the first layer 120 is processed by the processing layer 125 to generate second intermediate data. In one embodiment, the processing layer 125 includes a 3×3 convolutional layer. In one embodiment, the processing layer 125 includes a 3×3 convolutional layer, followed by an AdaIN operation, the AdaIN operation receiving an additional style signal, the additional style signal being Figure 1A Not explicitly shown.

[0043] The second intermediate data is input to the second layer 130 of the synthetic neural network 140. The second style signal controls the operation at the second layer 130 to generate the modified second intermediate data. In one embodiment, the first style signal modifies the first attribute encoded in the first intermediate data, and the second style signal modifies the second attribute encoded in the first intermediate data and the second intermediate data. For example, the first intermediate data is coarse data compared to the second intermediate data, and the first style is transmitted to the coarse feature map at the first layer 120, while the second style is transmitted to the higher density feature map at the second layer 130.

[0044] In one embodiment, the second layer 130 upsamples the second intermediate data and includes a 3×3 convolution layer followed by an AdaIN operation. In one embodiment, the second style signal controls the AdaIN operation within the second layer 130 of the synthesis network 140. The modified second intermediate data output by the second layer 130 is processed by the processing layer 135 to generate output data, the output data including content corresponding to the second intermediate data. In one embodiment, multiple (e.g., 32, 48, 64, 96, etc.) channels of features in the modified second intermediate data are converted into output data encoded as color channels (e.g., red, green, blue).

[0045] In one embodiment, the processing layer 135 includes a 3×3 convolutional layer. In one embodiment, the output data is an image including a first attribute corresponding to a first scale and a second attribute corresponding to a second scale, wherein the first scale is coarser than the second scale. The first scale may correspond to a scale of a feature map processed by the first layer 120, and the second scale may correspond to a scale of a feature map processed by the second layer 130. Thus, the first style signal modifies the first attribute of the first scale, and the second style signal modifies the second attribute of the second scale.

[0046] Now, more illustrative information about various optional architectures and features that can implement the aforementioned framework will be described, depending on the user's expectations. It should be particularly noted that the following information is described for illustrative purposes and should not be interpreted as limiting in any way. Any of the following features may be optionally incorporated into or without excluding the other features described.

[0047] Figure 1B An image generated by the style-based generator system 100 according to one embodiment is shown. The image is in 1024 2 Resolution Generation. In other embodiments, images may be generated at different resolutions. Two different latent codes are used to control the style of the image, which is generated by the style-based generator system 100. Specifically, the first part of the style is generated by the mapping neural network 110 and the style transfer unit 115 from the "source" latent code in the top row. The second part of the style is generated by the same or additional mapping neural network 110 and the corresponding style transfer unit 115 from the "destination" latent code in the leftmost column. The style-based generator system 100 starts with a learned constant input at the synthetic neural network 140 and adjusts the "style" of the image at each convolutional layer based on the latent code, thereby directly controlling the strength of the image attributes encoded in the feature map at different scales. In other words, a given set of styles from the "source" data is copied to the "destination" data. Therefore, the copied style (coarse, intermediate, or fine) is taken from the "source" data, while all other styles remain the same as the style in the "destination" data.

[0048] The synthetic neural network 140 applies the first portion of the pattern (destination) to process the learned constants, and the first subset of the first portion of the pattern is replaced with the corresponding second subset of the second portion of the pattern (source). In one embodiment, the learned constants are a 4×4×512 constant tensor. Figure 1B In the second, third, and fourth rows of the image in FIG. 1 , the second portion (source) of the pattern replaces the first portion (destination) of the pattern in the coarse layer of the synthesis neural network 140. In one embodiment, the coarse layer corresponds to the coarse spatial density 4 2 -8 2In one embodiment, high-level attributes such as pose, general hairstyle, face shape, and glasses are copied from the source, while other attributes such as all colors (eyes, hair, lighting) and fine facial features at the destination are preserved.

[0049] exist Figure 1B In the fifth and sixth rows of the image in FIG. 1 , the second portion of the pattern (source) replaces the first portion of the pattern (destination) at the middle layer of the synthesis neural network 140. In one embodiment, the middle layer corresponds to 16 2 -32 2 Smaller proportions of facial features, hairstyle, eyes open / closed are inherited from the source, while pose, overall face shape, and glasses from the destination are preserved. Figure 1B In the last row of the image in FIG. 1 , the second portion (source) of the pattern replaces the first portion (destination) of the pattern at the high density (fine) layer of the synthesis neural network 140. In one embodiment, the fine layer corresponds to 64 2 -1024 2 For the fine layer, the styles in the second part (source) of the style are used, which inherit the color scheme and microstructure of the source while preserving the pose and general facial shape in the destination.

[0050] The architecture of the style-based generator system 100 enables control of image synthesis through scale-specific modifications to the styles. The mapping network 110 and the affine transformations performed by the style transfer unit 115 can be viewed as a way to draw samples from the learned distribution for each style, and the synthesis network 140 provides a mechanism for generating new images based on a collection of styles. The effect of each style is localized in the synthesis network 140, i.e., modifying a specific subset of styles can be expected to affect only certain properties of the image.

[0051] like Figure 1B As shown, using style signals from at least two different latent codes is called style mixing or mixing regularization. Style mixing during training can decorrelate adjacent styles and can provide finer-grained control over the generated images. In one embodiment, during training, two random latent codes are used instead of one to generate a given percentage of images. When such an image is generated, a random position (e.g., a crossover point) can be selected in the synthetic neural network 140 where processing switches from a style signal generated using a first latent code to a style signal generated using a second latent code. In one embodiment, two latent codes z1, z2 are processed by the mapping neural network 110, and the corresponding intermediate latent codes w1, w2 control the style so that w1 is applied before the crossover point and w2 is applied after the crossover point. The mixing regularization technique prevents the synthetic neural network 140 from assuming that adjacent styles are correlated.

[0052] Table 1 shows how enabling mixture regularization during training significantly improves style localization, as indicated by the improved (lower is better) Fréchet Inception Distance (FID) when multiple latent codes are mixed at test time. Figure 1B The images shown are examples of images synthesized by mixing two latent codes in different ratios. Each subset of styles controls meaningful high-level properties of the image.

[0053]

[0054] Table 1 FID of different mixed regularization ratios

[0055] The mixture ratio indicates the percentage of training examples that are eligible for mixture regularization. During testing, up to four different latent codes are randomly selected, and the intersections between different latent codes are also randomly selected. Mixture regularization significantly improves tolerance to these adverse operations.

[0056] As confirmed by the FID, the average quality of the images generated by the style-based generator system 100 is high, and even accessories such as glasses and hats are successfully synthesized. Figure 1B The image shown in Rather than The so-called truncation technique implemented in Note that the style-based generator system 100 can be implemented so that truncation can be selectively applied only to low resolutions, leaving high-resolution details unaffected.

[0057] Given the distribution of the training data, low-density regions are poorly represented and thus may be difficult for the style-based generator system 100 to learn. The non-uniform distribution of training data raises important open problems in all generative modeling techniques. However, it is known that extracting latent vectors from a truncated or reduced sampling space helps improve average image quality, albeit at the expense of some variation. In one embodiment, to improve the training of the style-based generator system 100, the centroids is calculated as In the case of a face dataset (e.g., FFHQ, Flickrfaces HQ), the point represents an average face (ψ = 0). The deviation of a given w is scaled down from the center, i.e. where ψ < 1. In traditional generative modeling systems, even when using orthogonal regularization, only a subset of neural networks are suitable for this truncation, even without changing the loss function. Truncating in space also seems to work reliably.

[0058] Figure 1C A flow chart of a method 150 for style-based generation according to one embodiment is shown. The method 150 may be performed by a program, custom circuitry, or a combination of custom circuitry and a program. For example, the method 150 may be performed by a GPU (graphics processing unit), a CPU (central processing unit), or any processor capable of performing the operations of the style-based generator system 100. In addition, a person of ordinary skill in the art will appreciate that any system that performs the method 150 is within the scope and spirit of embodiments of the present invention.

[0059] At step 155, the mapping neural network 110 processes the latent code defined in the input space to generate an intermediate latent code defined in the intermediate latent space. At step 160, the intermediate latent code is converted into a first style signal by the style transfer unit 115. At step 165, the first style signal is applied at the first layer 120 of the synthesis neural network 140 to modify the first intermediate data according to the first style signal to generate modified first intermediate data. At step 170, the processing layer 125 processes the modified first intermediate data to generate second intermediate data. At step 175, the second style signal is applied at the second layer 130 of the synthesis neural network 140 to modify the second intermediate data according to the second style signal to generate modified second intermediate data. At step 180, the modified second intermediate data is processed by the processing layer 135 to generate output data including content corresponding to the second intermediate data.

[0060] There are many definitions of disentanglement, but a common goal is to have a latent space composed of linear subspaces, each of which controls a factor of variation. The sampling probability of each combination of factors in needs to match the corresponding density in the training data.

[0061] The main advantage of the style-based generator system 100 is that the intermediate latent space It is not necessary to support sampling from any fixed distribution; the sampling density of the style-based generator system 100 is derived through the learned piecewise continuous mapping f(z). The mapping can be made suitable for "unwarping" to make the factor of variation more linear. The style-based generator system 100 will naturally tend to unwind Because disentangled representations are easier to generate realistic images than entangled representations, training can produce less entangled (entangled) in an unsupervised manner, that is, without knowing the factors of change in advance.

[0062] Figure 2A According to an embodiment Figure 1A Block diagram of the mapping neural network 110 shown. The distribution of training data may lack combinations of attributes, such as children wearing glasses. In contrast, in the intermediate latent space The distribution of the variation factor in the glasses and age combinations becomes more linear.

[0063] In one embodiment, the mapping neural network 110 includes a normalization layer 205 and a plurality of fully connected layers 210. In one embodiment, eight fully connected layers 210 are coupled sequentially to produce intermediate latent codes. During training, the parameters (e.g., weights) of the mapping neural network 110 are learned, and when the style-based generator system 100 is deployed to generate output data, the parameters are used to process the input latent codes. In one embodiment, the mapping neural network 110 generates one or more intermediate latent codes that are used at a later time by the synthesis neural network 140 to generate output data.

[0064] There are many attributes in a portrait that can be considered random, such as the exact location of hair, stubble, freckles, or skin pores. Any of these can be randomized without affecting the perception of the image, as long as the randomization follows the correct distribution. Artificially ignoring noise when generating images can result in images with a featureless, "painted" appearance. In particular, when generating portraits, coarse noise may result in large-scale frizz in the hair and large background features, while fine noise may produce finer hair frizz, finer background details, and skin pores.

[0065] A conventional generator may generate random variations based solely on the inputs to the neural network provided through the input layer. During training, whenever a pseudo-random number is needed, the conventional generator may be forced to learn to generate spatially varying pseudo-random numbers from earlier activations. In other words, pseudo-random number generation is not intentionally built into the conventional generator. Instead, the generation of pseudo-random numbers emerges on its own during training to allow the conventional generator to meet the training destination. Generating pseudo-random numbers consumes the capacity of the neural network and is difficult to hide the periodicity of the generated signal and is not always successful, as evidenced by common repeating patterns in generated images. In contrast, the style-based generator system 100 can be configured to avoid these limitations by adding per-pixel noise after each convolution.

[0066] In one embodiment, the style-based generator system 100 is configured with a direct means to generate random details by introducing an explicit noise input. In one embodiment, the noise input is a single channel image composed of uncorrelated Gaussian noise, and the dedicated noise image is input to one or more layers of the synthesis network 140. The noise image can be broadcast to all feature maps using a learned per-feature scaling factor and then added to the output of the corresponding convolution.

[0067] Figure 2B According to an embodiment Figure 1A 1 is a block diagram of a synthetic neural network 140. The synthetic neural network 140 includes a first processing block 200 and a second processing block 230. In one embodiment, the processing block 200 processes a 4×4 resolution feature map, and the processing block 230 processes an 8×8 resolution feature map. One or more additional processing blocks may be included in the synthetic neural network 140 after, before, and / or between the processing blocks 200 and 230.

[0068] The first processing block 200 receives first intermediate data, first spatial noise, and second spatial noise. In one embodiment, the first spatial noise is scaled by a learned per-channel scaling factor before being combined with (e.g., added to) the first intermediate data. In one embodiment, the first spatial noise, the second spatial noise, the third spatial noise, and the fourth spatial noise are independent per-pixel Gaussian noises.

[0069] The first processing block 200 also receives the first style signal and the second style signal. As explained above, the style signal can be obtained by processing the intermediate latent code according to the learned affine transformation. The learned affine transformation applies w to the style y=(y s ,y b ) to control an adaptive instance normalization (AdaIN) operation implemented by module 220 in synthetic neural network 140. AdaIN is particularly suitable for implementation in style-based generator system 100 due to its efficiency and compact representation compared to more general feature transformations.

[0070] The AdaIN operation is defined as:

[0071]

[0072] Each feature map x iare normalized, and then scaled and biased using the scalar component corresponding to the style y. Therefore, the dimension of y is twice the number of feature maps compared to the input of the layer. In one embodiment, the dimension of the style signal is a multiple of the number of feature maps in the layer to which the style signal is applied. Unlike conventional style transfer, the spatially invariant style y is computed from the vector w instead of the example image.

[0073] The effect of each style signal is localized in the synthetic neural network 140, i.e., it can be expected that modifying a particular subset of the style signals will only affect certain properties of the image represented by the output data. To see the reason for the localization, consider how the AdaIN operation (Equation 1) implemented by module 220 first normalizes each channel to zero mean and unit variance, and only then applies the scale and bias based on the style signal. As indicated by the style, the new per-channel statistics modify the relative importance of the features for subsequent convolution operations, but due to the normalization, the new per-channel statistics do not depend on the original statistics. Therefore, each style signal controls only a predetermined number of convolutions 225 before being overwritten by the next AdaIN operation. In one embodiment, scaled spatial noise is added to the features after each convolution and before being processed by another module 220.

[0074] Each module 220 may be followed by a convolutional layer 225. In one embodiment, the convolutional layer 225 applies a 3×3 convolution kernel to the input. Within the processing block 200, the second intermediate data output by the convolutional layer 225 is combined with the second spatial noise and input to the second module 220, which applies the second style signal to generate the output of the processing block 200. In one embodiment, the second spatial noise is scaled by a learned per-channel scaling factor before being combined with (e.g., added to) the second intermediate data.

[0075] The processing block 230 receives the feature map output by the processing block 200, and the feature map is upsampled by the upsampling layer 235. In an embodiment, the 4x4 feature map is upsampled by the upsampling layer 235 to produce an 8x8 feature map. The upsampled feature map is input to another convolutional layer 225 to produce a third intermediate data. Within the processing block 230, the third intermediate data is combined with the third spatial noise and input to the third module 220, and the third module 220 applies the third style signal through the AdaIN operation. In one embodiment, before the third spatial noise is combined with the third intermediate data (e.g., added to the third intermediate data), the third spatial noise is scaled by the learned per-channel scaling factor. Another convolutional layer 225 processes the output of the third module 220 to produce a fourth intermediate data. The fourth intermediate data is combined with the fourth spatial noise and input to the fourth module 220, and the fourth module 220 applies the fourth style signal via the AdaIN operation. In one embodiment, the fourth spatial noise is scaled by the learned per-channel scaling factor before being combined with (eg, added to) the fourth intermediate data.

[0076] In one embodiment, the resolution of the output data is 1024 2 , and the synthetic neural network 140 includes 18 layers, each with a power-of-two resolution of 2(4 2 _1024 2 ). The output of the last layer of the synthetic neural network 140 may be converted to RGB using a separate 1×1 convolution. In one embodiment, the synthetic neural network 140 has a total of 26.2M trainable parameters, compared to 23.1M in a conventional generator with the same number of layers and feature maps.

[0077] Introducing spatial noise affects only the random aspects of the output data, without affecting the overall composition and high-level properties (such as identity). Separate noise inputs to the synthetic neural network 140 enable random variations to be applied to different subsets of layers. Applying the spatial noise input to a specific layer of the synthetic neural network 140 results in random variations in proportion that match the proportions of the specific layer.

[0078] The effect of the noise appears to be tightly localized in the synthetic neural network 140. At any point in the synthetic neural network 140, there is pressure to introduce new content as quickly as possible, and the simplest way for the synthetic neural network 140 to create random variation is to rely on spatial noise inputs. A new set of spatial noise is available for each layer in the synthetic neural network 140, so there is no incentive to generate random effects from earlier activations, resulting in local effects. As a result, the noise only affects insignificant random variations (combing different hair, beards, etc.). In contrast, changes in the style signal have a global effect (changing pose, identity, etc.).

[0079] In the synthetic neural network 140, when the output data is an image, the style signal affects the entire image because the complete feature map is scaled and biased with the same value. Therefore, global effects such as pose, lighting, or background style can be controlled simultaneously. At the same time, spatial noise is added to each pixel independently and is therefore well suited to controlling random variations. If the synthetic neural network 140 attempts to use noise to control, for example, pose, this will result in spatially inconsistent decisions, which will be penalized during training. Therefore, the synthetic neural network 140 learns to use global and local channels appropriately without explicit guidance.

[0080] Figure 2C A flow chart of a method 250 for applying spatial noise using a style-based generator system 100 according to one embodiment is shown. The method 250 may be performed by a program, custom circuitry, or a combination of custom circuitry and a program. For example, the method 250 may be performed by a GPU (graphics processing unit), a CPU (central processing unit), or any processor capable of performing the operations of the style-based generator system 100. In addition, a person of ordinary skill in the art will appreciate that any system that performs the method 250 is within the scope and spirit of embodiments of the present invention.

[0081] At step 255, a first set of spatial noise is applied to a first layer of the synthetic neural network 140 to generate first intermediate data, the first intermediate data including content corresponding to the source data modified based on the first set of spatial noise. In one embodiment, the source data is the first intermediate data, and the first layer is a layer including the module 220 and / or the convolution layer 225. At step 258, the modified first intermediate data is processed by the processing layer 125 to generate second intermediate data. At step 260, a second set of spatial noise is applied to a second layer of the synthetic neural network 140 to generate second intermediate data, the second intermediate data including content corresponding to the first intermediate data modified based on the second set of spatial noise. In one embodiment, the first intermediate data is modified by at least the module 220 to generate the second intermediate data. At step 265, the second intermediate data is processed to generate output data, the output data including content corresponding to the second intermediate data. In one embodiment, the second intermediate data is processed by another module 220 and the block 230 to generate output data.

[0082] Noise can be injected into the layers of the synthesis neural network 140 to induce the synthesis of random variations in scale corresponding to the layers. Importantly, noise should be injected during both training and generation. Additionally, during generation, the intensity of the noise can be modified to further control the "look" of the output data. Providing a style signal, rather than directly inputting a latent code into the synthesis neural network 140, coupled with noise injected directly into the synthesis neural network 140, results in the automatic, unsupervised separation of high-level attributes (e.g., pose, identity) from random variations (e.g., freckles, hair) in the generated images, and enables intuitive scale-specific blending and interpolation operations.

[0083] In particular, the style signal adjusts the strength of the image attributes at different scales directly in the synthesis neural network 140. During generation, the style signal can be used to modify selected image attributes. Additionally, during training, the mapping neural network 110 can be configured to perform style mixing regularization to improve localization of the style.

[0084] The mapping neural network 110 embeds the input latent code into an intermediate latent space, which has a profound impact on how the factors of variation are represented in the synthetic neural network 140. The input latent space follows the probability density of the training data, which may lead to some degree of unavoidable entanglement. The intermediate latent space has no such restriction and is therefore allowed to be disentangled. Compared to traditional generator architectures, the style-based generator system 100 allows for a more linear, less entangled representation of different factors of variation. In one embodiment, replacing a traditional generator with a style-based generator may not require modifying any other components of the training framework (loss function, discriminator, optimization method, etc.).

[0085] The style-based generative neural network 100 can be trained, for example, using a GAN (Generative Adversarial Network), a VAE (Variational Autoencoder) framework, a flow-based framework, or the like. Figure 2D A block diagram of a GAN 270 training framework according to one embodiment is shown. GAN 270 may be implemented by a program, custom circuitry, or a combination of custom circuitry and programs. For example, GAN 270 may be implemented using a GPU, a CPU, or any processor capable of performing the operations described herein. In addition, one of ordinary skill in the art will appreciate that performing the operations of GAN 270 is within the scope and spirit of embodiments of the present invention.

[0086] GAN 270 includes a generator, such as a style-based generator system 100, a discriminator (neural network) 275, and a training loss unit 280. The topology of both the generator 110 and the discriminator 275 can be modified during training. GAN 270 can operate in an unsupervised setting or a conditional setting. The style-based generator system 100 receives input data (i.e., at least one latent code and / or noise input) and produces output data. Depending on the task, the output data can be an image, audio, video, or other type of data (configuration settings). The discriminator 275 is an adaptive loss function used during the training of the style-based generator system 100. The style-based generator system 100 and the discriminator 275 are trained simultaneously using a training data set, the training data set includes example output data, and the output data generated by the style-based generator system 100 should be consistent with the example output data. The style-based generator system 100 generates output data in response to the input data, and the discriminator 275 determines whether the output data looks similar to the example output data included in the training data. Based on the determination, parameters of the discriminator 275 and / or the style-based generative neural network 100 are adjusted.

[0087] In an unsupervised setting, the discriminator 275 outputs a continuous value indicating the degree of match of the output data with the example output data. For example, in one embodiment, when it is determined that the output data matches the example output data, the discriminator 275 outputs a first training stimulus (e.g., a high value), and when it is determined that the output data does not match the example output data, the discriminator 275 outputs a second training stimulus (e.g., a low value). The training loss unit 280 adjusts the parameters (weights) of the GAN 270 based on the output of the discriminator 275. When the style-based generator system 100 is trained for a specific task, such as generating an image of a face, the discriminator outputs a high value when the output data is an image of a face. It is not required that the output data generated by the style-based generator system 100 is the same as the example output data used for the discriminator 275 to determine that the output data matches the example output data. In the context described below, when the output data is similar to any example output data, the discriminator 275 determines that the output data matches the example output data.

[0088] In a conditional setting, the input to the style-based generative neural network 100 may include other data, such as images, classification labels, segmentation contours, and other (additional) types of data (distributions, audio, etc.). The additional data may be specified in addition to the random latent code, or the additional data may completely replace the random latent code. The training data set may include input / output data pairs, and the task of the discriminator 275 may be to determine whether the output of the style-based generative neural network 100 appears consistent with the input based on the example input / output pairs that the discriminator 275 has seen in the training data.

[0089] Parallel processing architecture

[0090] Figure 3 A parallel processing unit (PPU) 300 is shown according to one embodiment. The PPU 300 may be used to implement the style-based generator system 100. The PPU 300 may be used to implement one or more of the mapping neural network 110, the style transfer unit 115, the synthetic neural network 140, the generative adversarial network 270, the style block 640, the style block 645, and the synthetic neural network 840. In one embodiment, a processor such as the PPU 300 may be configured to implement a neural network model. The neural network model may be implemented as software instructions executed by the processor, or in other embodiments, the processor may include a matrix of hardware elements configured to process a set of inputs (i.e., electrical signals representing values) to generate a set of outputs, which may represent activations of the neural network model. In other embodiments, the neural network model may be implemented as a combination of software instructions and processing performed by a matrix of hardware elements. Implementing the neural network model may include determining a set of parameters for the neural network model by, for example, supervised or unsupervised training of the neural network model, and, or alternatively, performing inference using the set of parameters to process a new set of inputs.

[0091] In one embodiment, PPU 300 is a multithreaded processor implemented on one or more integrated circuit devices. PPU 300 is a latency-hiding architecture designed for processing many threads in parallel. A thread (i.e., an execution thread) is an instance of an instruction set configured to be executed by PPU 300. In one embodiment, PPU 300 is a graphics processing unit (GPU) configured to implement a graphics rendering pipeline for processing three-dimensional (3D) graphics data to generate two-dimensional (2D) image data for display on a display device (such as a liquid crystal display (LCD) device). In another embodiment, PPU 300 is configured to implement neural network system 100. In other embodiments, PPU 300 can be used to perform general-purpose calculations. Although an exemplary parallel processor is provided herein for illustrative purposes, it should be specifically noted that the processor is described only for illustrative purposes and any processor can be used to supplement and / or replace the processor.

[0092] One or more PPUs 300 can be configured to accelerate thousands of high-performance computing (HPC), data center, and machine learning applications. PPU 300 can be configured to accelerate numerous deep learning systems and applications, including autonomous vehicle platforms, deep learning, high-precision speech, image, and text recognition systems, intelligent video analysis, molecular simulation, drug development, disease diagnosis, weather forecasting, big data analysis, astronomy, molecular dynamics simulation, financial modeling, robotics, factory automation, real-time language translation, online search optimization, and personalized user recommendations, among others.

[0093] like Figure 3 As shown, the PPU 300 includes an input / output (I / O) unit 305, a front-end unit 315, a scheduler unit 320, a work distribution unit 325, a hub 330, a crossbar switch (Xbar) 370, one or more general processing clusters (GPCs) 350, and one or more partition units 380. The PPU 300 can be connected to a host processor or other PPUs 300 via one or more high-speed NVLink 310 interconnects. The PPU 300 can be connected to a host processor or other peripheral devices via an interconnect 302. The PPU 300 can also be connected to a local memory 304 including multiple memory devices. In one embodiment, the local memory can include multiple dynamic random access memory (DRAM) devices. The DRAM device can be configured as a high bandwidth memory (HBM) subsystem in which multiple DRAM dies are stacked within each device.

[0094] The NVLink 310 interconnect enables the system to scale and include one or more PPUs 300 in conjunction with one or more CPUs, supporting cache coherency between the PPU 300 and the CPU, and CPU mastering. Data and / or commands may be sent by the NVLink 310 through the hub 330 to or from other units of the PPU 300, such as one or more copy engines, video encoders, video decoders, power management units, etc. (not explicitly shown). Figure 5B NVLink 310 is described in more detail.

[0095] I / O unit 305 is configured to send and receive communications (e.g., commands, data, etc.) from a host processor (not shown) via interconnect 302. I / O unit 305 may communicate with the host processor directly via interconnect 302, or through one or more intermediate devices (such as a memory bridge). In one embodiment, I / O unit 305 may communicate with one or more other processors (e.g., one or more PPUs 300) via interconnect 302. In one embodiment, I / O unit 305 implements a peripheral component interconnect express (PCIe) interface for communicating over a PCIe bus, and interconnect 302 is a PCIe bus. In alternative embodiments, I / O unit 305 may implement other types of known interfaces for communicating with external devices.

[0096] The I / O unit 305 decodes packets received via the interconnect 302. In one embodiment, the packets represent commands configured to cause the PPU 300 to perform various operations. The I / O unit 305 sends the decoded commands to various other units of the PPU 300 as specified by the commands. For example, some commands may be sent to the front end unit 315. Other commands may be sent to the hub 330 or other units of the PPU 300, such as one or more copy engines, video encoders, video decoders, power management units, etc. (not explicitly shown). In other words, the I / O unit 305 is configured to route communications between and among the various logical units of the PPU 300.

[0097] In one embodiment, a program executed by a host processor encodes a command stream in a buffer that provides a workload to the PPU 300 for processing. The workload may include many instructions and data to be processed by those instructions. A buffer is an area in memory that is accessible (e.g., read / write) by both the host processor and the PPU 300. For example, the I / O unit 305 may be configured to access a buffer in a system memory connected to the interconnect 302 via a memory request transmitted through the interconnect 302. In one embodiment, the host processor writes a command stream to the buffer and then sends a pointer to the start of the command stream to the PPU 300. The front end unit 315 receives a pointer to one or more command streams. The front end unit 315 manages one or more streams, reads commands from the streams, and forwards the commands to the various units of the PPU 300.

[0098] The front end unit 315 is coupled to a scheduler unit 320, which configures the various GPCs 350 to process the tasks defined by one or more streams. The scheduler unit 320 is configured to track state information related to the various tasks managed by the scheduler unit 320. The state may indicate which GPC 350 the task is assigned to, whether the task is active or inactive, a priority associated with the task, etc. The scheduler unit 320 manages the execution of multiple tasks on one or more GPCs 350.

[0099] Scheduler unit 320 is coupled to work distribution unit 325, which is configured to dispatch tasks for execution on GPC 350. Work distribution unit 325 may keep track of a number of scheduled tasks received from scheduler unit 320. In one embodiment, work distribution unit 325 manages a pending task pool and an active task pool for each GPC 350. The pending task pool may include a number of time slots (e.g., 32 time slots) containing tasks assigned to be processed by a particular GPC 350. The active task pool may include a number of time slots (e.g., 4 time slots) for tasks that are being actively processed by GPC 350. When a GPC 350 completes execution of a task, the task is evicted from the active task pool of GPC 350, and one of the other tasks from the pending task pool is selected and scheduled for execution on GPC 350. If an active task on a GPC 350 has become idle, such as while waiting for a data dependency to be resolved, then the active task may be evicted from the GPC 350 and returned to the pending task pool, while another task in the pending task pool is selected and scheduled for execution on the GPC 350 .

[0100] Work distribution unit 325 communicates with one or more GPCs 350 via XBar (crossbar) 370. XBar 370 is an interconnect network that couples many units of PPU 300 to other units of PPU 300. For example, XBar 370 can be configured to couple work distribution unit 325 to a particular GPC 350. Although not explicitly shown, one or more other units of PPU 300 can also be connected to XBar 370 via hub 330.

[0101] Tasks are managed by a scheduler unit 320 and dispatched to GPCs 350 by a work distribution unit 325. GPCs 350 are configured to process tasks and generate results. Results can be consumed by other tasks within the GPC 350, routed to a different GPC 350 via XBar 370, or stored in memory 304. Results can be written to memory 304 via a partition unit 380, which implements a memory interface for reading data from and writing data to memory 304. Results can be sent to another PPU 304 or CPU via NVLink 310. In one embodiment, a PPU 300 includes a number U of partition units 380, which is equal to the number of independent and distinct memory devices 304 coupled to the PPU 300. This will be described below in conjunction with Figure 4B The partition unit 380 is described in more detail.

[0102] In one embodiment, the host processor executes a driver kernel that implements an application programming interface (API) that enables one or more applications to be executed on the host processor to schedule operations for execution on the PPU 300. In one embodiment, multiple computing applications are executed simultaneously by the PPU 300, and the PPU 300 provides isolation, quality of service (QoS), and independent address spaces for multiple computing applications. The application can generate instructions (e.g., API calls) that cause the driver kernel to generate one or more tasks to be executed by the PPU 300. The driver kernel outputs the tasks to one or more streams being processed by the PPU 300. Each task can include one or more related groups of threads, referred to herein as warps. In one embodiment, a warp includes 32 related threads that can execute in parallel. Collaborating threads can refer to multiple threads that include instructions to perform tasks and can exchange data through shared memory. In combination Figure 5A Describes threads and cooperative threads in more detail.

[0103] Figure 4A According to an embodiment Figure 3 PPU 300 GPC 350. Figure 4A As shown, each GPC 350 includes multiple hardware units for processing tasks. In one embodiment, each GPC 350 includes a pipeline manager 410, a pre-raster operation unit (PROP) 415, a raster engine 425, a work distribution crossbar switch (WDX) 480, a memory management unit (MMU) 490, and one or more data processing clusters (DPCs) 420. It should be understood that Figure 4A The GPC 350 may include instead Figure 4A Other hardware units or units other than those shown in Figure 4AOther hardware units than those shown in .

[0104] In one embodiment, the operation of the GPC 350 is controlled by a pipeline manager 410. The pipeline manager 410 manages the configuration of one or more DPCs 420 for processing tasks assigned to the GPC 350. In one embodiment, the pipeline manager 410 may configure at least one of the one or more DPCs 420 to implement at least a portion of a graphics rendering pipeline. For example, a DPC 420 may be configured to execute a vertex shading program on a programmable streaming multiprocessor (SM) 440. The pipeline manager 410 may also be configured to route packets received from the work distribution unit 325 to appropriate logic units in the GPC 350. For example, some packets may be routed to fixed-function hardware units in the PROP 415 and / or the raster engine 425, while other packets may be routed to the DPC 420 for processing by the primitive engine 435 or the SM 440. In one embodiment, the pipeline manager 410 may configure at least one of the one or more DPCs 420 to implement a neural network model and / or a computational pipeline.

[0105] PROP unit 415 is configured to route data generated by raster engine 425 and DPC 420 to a raster operations (ROP) unit, in conjunction with Figure 4B The PROP unit 415 may also be configured to perform optimization of color blending, organize pixel data, perform address translation, etc.

[0106] The raster engine 425 includes several fixed-function hardware units configured to perform various raster operations. In one embodiment, the raster engine 425 includes a setup engine, a coarse raster engine, a culling engine, a clipping engine, a fine raster engine, and a tile aggregation engine. The setup engine receives the transformed vertices and generates plane equations associated with the geometric primitives defined by the vertices. The plane equations are sent to the coarse raster engine to generate coverage information for the primitives (e.g., x, y coverage masks for tiles). The output of the coarse raster engine is sent to the culling engine, where fragments associated with primitives that fail the z-test are culled, and is sent to the clipping engine, where fragments outside the viewing cone are clipped. Those fragments that remain after clipping and culling can be passed to the fine raster engine to generate attributes of pixel fragments based on the plane equations generated by the setup engine. The output of the raster engine 425 includes, for example, fragments to be processed by a fragment shader implemented in the DPC 420.

[0107] Each DPC 420 included in the GPC 350 includes an M pipeline controller (MPC) 430, a primitive engine 435, and one or more SMs 440. The MPC 430 controls the operation of the DPC 420, routing packets received from the pipeline manager 410 to appropriate units in the DPC 420. For example, packets associated with vertices may be routed to the primitive engine 435, which is configured to fetch vertex attributes associated with the vertices from the memory 304. Conversely, packets associated with shading programs may be sent to the SM 440.

[0108] SM 440 includes a programmable stream processor configured to process tasks represented by multiple threads. Each SM440 is multithreaded and is configured to execute multiple threads (e.g., 32 threads) from a specific thread group simultaneously. In one embodiment, SM 440 implements a SIMD (single instruction, multiple data) architecture, wherein each thread in a thread group (e.g., warp) is configured to process different data sets based on the same instruction set. All threads in a thread group execute the same instruction. In another embodiment, SM 440 implements a SIMT (single instruction, multiple thread) architecture, wherein each thread in a thread group is configured to process different data sets based on the same instruction set, but wherein each thread in a thread group is allowed to diverge during execution. In one embodiment, a program counter, a call stack, and an execution state are maintained for each thread bundle, and when threads within a thread bundle diverge, concurrency between serial executions in the thread bundle and the thread bundle is made possible. In another embodiment, a program counter, a call stack, and an execution state are maintained for each individual thread, thereby achieving equal concurrency between all threads within and between thread bundles. When execution state is maintained for each individual thread, threads executing the same instructions can be converged and executed in parallel for maximum efficiency. Figure 5A Describe SM440 in more detail.

[0109] MMU 490 provides an interface between GPC 350 and partition unit 380. MMU 490 can provide virtual address to physical address translation, memory protection, and arbitration of memory requests. In one embodiment, MMU 490 provides one or more translation lookaside buffers (TLBs) for performing translations from virtual addresses to physical addresses in memory 304.

[0110] Figure 4B According to an embodiment Figure 3 The memory partition unit 380 of the PPU 300. Figure 4BAs shown, the memory partition unit 380 includes a raster operation (ROP) unit 450, a second level (L2) cache 460, and a memory interface 470. The memory interface 470 is coupled to the memory 304. The memory interface 470 can implement a 32, 64, 128, 1024 bit data bus, etc. for high-speed data transmission. In one embodiment, the PPU 300 incorporates U memory interfaces 470, one for each pair of partition units 380, wherein each pair of partition units 380 is connected to a memory device of the corresponding memory 304. For example, the PPU 300 can be connected to up to Y memory devices 304, such as a high bandwidth memory stack or a graphics double data rate version 5 synchronous dynamic random access memory or other types of persistent memory.

[0111] In one embodiment, memory interface 470 implements an HBM2 memory interface and Y is equal to half of U. In one embodiment, the HBM2 memory stack is located on the same physical package as PPU 300, providing significant power and area savings compared to conventional GDDR5 SDRAM systems. In one embodiment, each HBM2 stack includes four memory dies and Y is equal to 4, where the HBM2 stack includes two 128-bit channels per die, a total of 8 channels and a data bus width of 1024 bits.

[0112] In one embodiment, memory 304 supports single error correction double error detection (SECDED) error correction code (ECC) to protect data. ECC provides higher reliability for computing applications that are sensitive to data corruption. Reliability is particularly important in large cluster computing environments where PPU 300 processes very large data sets and / or long-running applications.

[0113] In one embodiment, the PPU 300 implements a multi-level memory hierarchy. In one embodiment, the memory partition unit 380 supports unified memory to provide a single unified virtual address space for the CPU and PPU 300 memory, enabling data sharing between virtual memory systems. In one embodiment, the frequency of PPU 300 accesses to memory located on other processors is tracked to ensure that memory pages are moved to the physical memory of the PPU 300 that accesses the page more frequently. In one embodiment, the NVLink 310 supports address translation services that allow the PPU 300 to directly access the CPU's page tables and provide full access to the CPU memory by the PPU 300.

[0114] In one embodiment, the copy engine transfers data between multiple PPUs 300 or between a PPU 300 and a CPU. The copy engine can generate a page fault for an address that is not mapped to a page table. The memory partition unit 380 can then service the page fault, map the address into a page table, and then the copy engine can perform the transfer. In conventional systems, fixed memory (e.g., non-pageable) is operated for multiple copy engines between multiple processors, which significantly reduces the available memory. Due to hardware paging faults, addresses can be passed to the copy engine without worrying about whether the memory page is resident, and the copy process is transparent.

[0115] Data from memory 304 or other system memory may be retrieved by memory partition unit 380 and stored in L2 cache 460, which is located on-chip and shared between various GPCs 350. As shown, each memory partition unit 380 includes a portion of L2 cache 460 associated with a corresponding memory device 304. Lower level caches may then be implemented in multiple units within a GPC 350. For example, each SM 440 may implement a level 1 (L1) cache. An L1 cache is a dedicated memory dedicated to a particular SM 440. Data from L2 cache 460 may be retrieved and stored in each L1 cache for processing in a functional unit of the SM 440. L2 cache 460 is coupled to a memory interface 470 and XBar 370.

[0116] The ROP unit 450 performs graphics raster operations related to pixel color such as color compression, pixel blending, etc. The ROP unit 450 also implements depth testing in conjunction with the raster engine 425, receiving the depth of a sample position associated with a pixel fragment from the culling engine of the raster engine 425. The depth of the sample position associated with the fragment is tested relative to the corresponding depth in the depth buffer. If the fragment passes the depth test for the sample position, the ROP unit 450 updates the depth buffer and sends the result of the depth test to the raster engine 425. It will be understood that the number of partition units 380 may be different than the number of GPCs 350, and thus each ROP unit 450 may be coupled to each GPC 350. The ROP unit 450 tracks packets received from different GPCs 350 and determines to which GPC 350 the results generated by the ROP unit 450 are routed via the Xbar 370. Although in Figure 4B In the embodiment shown, ROP unit 450 is included within memory partition unit 380, but in other embodiments, ROP unit 450 may be external to memory partition unit 380. For example, ROP unit 450 may reside in GPC 350 or another unit.

[0117] Figure 5A According to an embodiment Figure 4A The streaming multiprocessor 440. Figure 5A As shown, SM 440 includes an instruction cache 505, one or more scheduler units 510, a register file 520, one or more processing cores 550, one or more special function units (SFU) 552, one or more load / store units (LSU) 554, an interconnection network 580, and a shared memory / L1 cache 570.

[0118] As above, the work distribution unit 325 schedules tasks to be executed on the GPC 350 of the PPU 300. Tasks are assigned to specific DPCs 420 within the GPC 350, and if the task is associated with a shader program, the task may be assigned to the SM 440. The scheduler unit 510 receives tasks from the work distribution unit 325 and manages the scheduling of instructions assigned to one or more thread blocks assigned to the SM 440. The scheduler unit 510 schedules the thread blocks to execute as warps of parallel threads, where each thread block is assigned at least one warp. In one embodiment, each warp executes 32 threads. The scheduler unit 510 can manage a plurality of different thread blocks, assign warps to different thread blocks, and then dispatch instructions from a plurality of different cooperative groups to various functional units (i.e., core 550, SFU 552, and LSU 554) during each clock cycle.

[0119] Cooperative Groups is a programming model for organizing groups of communicating threads that allows developers to express the granularity at which threads are communicating, enabling the expression of richer and more efficient decompositions of parallelism. The cooperative launch API supports synchronization between thread blocks to execute parallel algorithms. Conventional programming models provide a single simple structure for synchronizing cooperative threads: a barrier across all threads of a thread block (e.g., the syncthreads() function). However, programmers often want to define thread groups at a granularity smaller than the thread block granularity and synchronize within the defined group, enabling higher performance, design flexibility, and software reuse in the form of a collective group-wide function interface.

[0120] Cooperative Groups enables programmers to explicitly define thread groups at sub-block (e.g., as small as a single thread) and multi-block granularity and perform collective operations such as synchronization on threads in a cooperative group. The programming model supports clean composition across software boundaries so that libraries and utility functions can safely synchronize in their local environment without making assumptions about convergence. Cooperative Groups primitives enable new patterns of cooperative parallelism, including producer-consumer parallelism, opportunistic parallelism, and global synchronization across the entire grid of thread blocks.

[0121] The dispatch unit 515 is configured to transmit instructions to one or more functional units. In this embodiment, the scheduler unit 510 includes two dispatch units 515, which enables two different instructions from the same thread warp to be scheduled during each clock cycle. In alternative embodiments, each scheduler unit 510 may include a single dispatch unit 515 or additional dispatch units 515.

[0122] Each SM 440 includes a register file 520 that provides a set of registers for the functional units of the SM 440. In one embodiment, the register file 520 is divided between each functional unit so that each functional unit is assigned a dedicated portion of the register file 520. In another embodiment, the register file 520 is divided between different warps executed by the SM 440. The register file 520 provides temporary storage for operands connected to the data paths of the functional units.

[0123] Each SM 440 includes L processing cores 550. In one embodiment, SM 440 includes a large number (e.g., 128, etc.) of different processing cores 550. Each core 550 may include a fully pipelined, single-precision, double-precision, and / or mixed-precision processing unit, including a floating-point arithmetic logic unit and an integer arithmetic logic unit. In one embodiment, the floating-point arithmetic logic unit implements the IEEE 754-2008 standard for floating-point operations. In one embodiment, core 550 includes 64 single-precision (32-bit) floating-point cores, 64 integer cores, 32 double-precision (64-bit) floating-point cores, and 8 tensor cores.

[0124] The tensor core is configured to perform matrix operations, and in one embodiment, one or more tensor cores are included in the core 550. Specifically, the tensor core is configured to perform deep learning matrix operations, such as GEMM (matrix-matrix multiplication), which is used for convolution operations during neural network training and inference. In one embodiment, each tensor core operates on a 4×4 matrix and performs a matrix multiplication and accumulation operation D=A×B+C, where A, B, C, and D are 4×4 matrices.

[0125] In one embodiment, the matrix multiplication inputs A and B can be integer, fixed point, or floating point matrices, and the accumulation matrices C and D can be integer, fixed point, or floating point matrices of equal or higher bit width. In one embodiment, the tensor core operates on 1, 4, or 8-bit integer input data with 32-bit integer accumulation. 8-bit integer matrix multiplication requires 1024 operations and produces full-precision products, which are then accumulated using 32-bit integer additions with other intermediate products for 8x8x16 matrix multiplication. In one embodiment, the tensor core operates on 16-bit floating point input data as well as 32-bit floating point accumulation. 16-bit floating point multiplication requires 64 operations, produces full-precision products, which are then accumulated using 32-bit floating point additions with other intermediate products of 4×4×4 matrix multiplication. In practice, tensor cores are used to perform larger two-dimensional or higher-dimensional matrix operations built from these smaller elements. APIs such as the CUDA 9 C++ API expose specialized matrix load, matrix multiply and accumulate, and matrix store operations to efficiently use tensor cores from CUDA-C++ programs. At the CUDA level, the warp-level interface assumes that a 16×16 size matrix spans all 32 threads of a warp.

[0126] Each SM 440 also includes M SFUs 552 that perform special functions (e.g., attribute evaluation, reciprocal square root, etc.). In one embodiment, the SFUs 552 may include a tree traversal unit configured to traverse a hierarchical tree data structure. In one embodiment, the SFUs 552 may include a texture unit configured to perform texture map filtering operations. In one embodiment, the texture unit is configured to load a texture map (e.g., a 2D array of texture pixels) from memory 304 and sample the texture map to produce sampled texture values ​​for use in a shader program executed by the SM 440. In one embodiment, the texture map is stored in a shared memory / L1 cache 470. The texture unit implements texture operations, such as filtering operations using mip maps (i.e., texture maps of different levels of detail). In one embodiment, each SM 440 includes two texture units.

[0127] Each SM 440 also includes N LSUs 554 that implement load and store operations between the shared memory / L1 cache 570 and the register file 520. Each SM 440 includes an interconnect network 580 that connects each functional unit to the register file 520 and connects the LSUs 554 to the register file 520, the shared memory / L1 cache 570. In one embodiment, the interconnect network 580 is a crossbar switch that can be configured to connect any functional unit to any register in the register file 520 and to connect the LSUs 554 to memory locations in the register file and the shared memory / L1 cache 570.

[0128] The shared memory / L1 cache 570 is an on-chip memory array that allows data storage and communication between the SM 440 and the primitive engine 435, as well as between threads in the SM 440. In one embodiment, the shared memory / L1 cache 570 includes 128KB of storage capacity and is in the path from the SM 440 to the partition unit 380. The shared memory / L1 cache 570 can be used to cache reads and writes. One or more of the shared memory / L1 cache 570, the L2 cache 460, and the memory 304 are backing stores.

[0129] Combining the data cache and shared memory functions into a single memory block provides the best overall performance for both types of memory accesses. This capacity can be used by programs as a cache that does not use the shared memory. For example, if the shared memory is configured to use half of the capacity, texture and load / store operations can use the remaining capacity. Integration within the shared memory / L1 cache 570 enables the shared memory / L1 cache 570 to function as a high throughput pipeline for streaming data, while providing high bandwidth and low latency access to frequently reused data.

[0130] When configured for general parallel computing, a simpler configuration can be used compared to graphics processing. Specifically, Figure 3 The fixed function graphics processing unit is shown bypassed, creating a simpler programming model. In a general purpose parallel computing configuration, the work distribution unit 325 assigns and distributes thread blocks directly to the DPC 420. The threads in the block execute the same program, use unique thread IDs in computations to ensure that each thread produces unique results, use SM 440 to execute the program and perform computations, use shared memory / L1 cache 570 to communicate between threads, and use LSU 554 to read and write global memory through shared memory / L1 cache 570 and memory partition unit 380. When configured for general purpose parallel computing, SM 440 can also write commands that scheduler unit 320 can use to start new work on DPC 420.

[0131] The PPUs 300 may each include and / or be configured to perform the functions of one or more processing cores and / or components thereof, such as a tensor core (TC), a tensor processing unit (TPU), a pixel visual core (PVC), a ray tracing (RT) core, a visual processing unit (VPU), a graphics processing cluster (GPC), a texture processing cluster (TPC), a streaming multiprocessor (SM), a tree traversal unit (TTU), artificial intelligence accelerators (AIAs), a deep learning accelerator (DLA), an arithmetic logic unit (ALU), an application-specific integrated circuit (ASIC), a floating point unit (FPU), an input / output (I / O) element, a peripheral component interconnect (PCI) or a peripheral component interconnect express (PCIe) element, etc.

[0132] The PPU 300 may be included in a desktop computer, a laptop computer, a tablet computer, a server, a supercomputer, a smartphone (e.g., wireless, handheld device), a personal digital assistant (PDA), a digital camera, a vehicle, a head-mounted display, a handheld electronic device, etc. In one embodiment, the PPU 300 is included on a single semiconductor substrate. In another embodiment, the PPU 300 is included on a system on a chip (SoC) along with one or more other devices (such as an additional PPU 300, a memory 304, a reduced instruction set computer (RISC) CPU, a memory management unit (MMU), a digital-to-analog converter (DAC), etc.).

[0133] In one embodiment, the PPU 300 may be included on a graphics card that includes one or more memory devices 304. The graphics card may be configured to interface with a PCIe slot on a motherboard of a desktop computer. In yet another embodiment, the PPU 300 may be an integrated graphics processing unit (iGPU) or parallel processor included in a chipset of the motherboard. In yet another embodiment, the PU 300 may be implemented in reconfigurable hardware. In yet another embodiment, portions of the PPU 300 may be implemented in reconfigurable hardware.

[0134] Exemplary Computing System

[0135] Systems with multiple GPUs and CPUs are used in a variety of industries as developers expose and exploit more parallelism in applications such as artificial intelligence computing. High-performance GPU-accelerated systems with tens to thousands of computing nodes are deployed in data centers, research institutions, and supercomputers to solve larger problems. As the number of processing devices within high-performance systems increases, communication and data transmission mechanisms need to scale to support this increased bandwidth.

[0136] Figure 5B According to one embodiment, the use Figure 3300. The exemplary system 565 may be configured to implement Figure 1C The method 150 shown in and / or Figure 2C The processing system 500 includes a CPU 530, a switch 510, and a plurality of PPUs 300 and corresponding memories 304. NVLink 310 provides a high-speed communication link between each PPU 300. Figure 5B A specific number of NVLink 310 and interconnect 302 connections are shown in FIG, but the number of connections connected to each PPU 300 and CPU 530 may vary. Switch 510 interfaces between interconnect 302 and CPU 530. PPU 300, memory 304, and NVLink 310 may be located on a single semiconductor platform to form a parallel processing module 525. In one embodiment, switch 510 supports two or more protocols that interface between various different connections and / or links.

[0137] In another embodiment (not shown), NVLink 310 provides one or more high-speed communication links between each PPU 300 and CPU 530, and switch 510 interfaces between interconnect 302 and each PPU 300. PPU 300, memory 304, and interconnect 302 may be located on a single semiconductor platform to form a parallel processing module 525. In yet another embodiment (not shown), interconnect 302 provides one or more communication links between each PPU 300 and CPU 530, and switch 510 interfaces between each PPU 300 using NVLink 310 to provide one or more high-speed communication links between PPUs 300. In another embodiment (not shown), NVLink 310 provides one or more high-speed communication links between PPU 300 and CPU 530 through switch 510. In yet another embodiment (not shown), interconnect 302 provides one or more communication links directly between each PPU 300. One or more NVLink 310 high-speed communication links may be implemented as a physical NVLink interconnect or as an on-chip or on-die interconnect using the same protocol as NVLink 310.

[0138] In the context of this specification, a single semiconductor platform may refer to a unique single semiconductor-based integrated circuit manufactured on a die or chip. It should be noted that the term single semiconductor platform may also refer to a multi-chip module with increased connectivity that simulates on-chip operations and is substantially improved by utilizing conventional bus implementations. Of course, various circuits or devices may also be placed separately or in various combinations of semiconductor platforms, depending on the needs of the user. Optionally, the parallel processing module 525 may be implemented as a circuit board substrate, and each of the PPU 300 and / or memory 304 may be a packaged device. In one embodiment, the CPU 530, switch 510, and parallel processing module 525 are located on a single semiconductor platform.

[0139] In one embodiment, the signaling rate of each NVLink 310 is 20 to 25 Gbit / s, and each PPU 300 includes six NVLink 310 interfaces (e.g., Figure 5B As shown, each PPU 300 includes five NVLink 310 interfaces. Each NVLink 310 provides a data transfer rate of 25 Gbit / s in each direction, with six links providing 300 Gbit / s. When the CPU 530 also includes one or more NVLink 310 interfaces, the NVLink 310 can be used exclusively for, for example, Figure 5B PPU to PPU communication as shown, or some combination of PPU to PPU and PPU to CPU.

[0140] In one embodiment, NVLink 310 allows direct load / store / atomic access from CPU 530 to memory 304 of each PPU 300. In one embodiment, NVLink 310 supports coherency operations, allowing data read from memory 304 to be stored in the cache hierarchy of CPU 530, reducing cache access latency of CPU 530. In one embodiment, NVLink 310 includes support for address translation services (ATS), allowing PPU 300 to directly access page tables within CPU 530. One or more NVLink 310 can also be configured to operate in a low power mode.

[0141] Figure 5C An exemplary system 565 is shown in which various architectures and / or functions of various previous embodiments may be implemented. The exemplary system 565 may be configured to implement Figure 1C The method 150 shown in and / or Figure 2C The method 250 shown in .

[0142] As shown, a system 565 is provided, the system 565 includes at least one central processing unit 530, and the central processing unit 530 is connected to a communication bus 575. The communication bus 575 can directly or indirectly couple one or more of the following devices: main memory 540, network interface 535, CPU 530, display device 545, input device 560, switch 510 and parallel processing system 525. The communication bus 575 can be implemented using any suitable protocol and can represent one or more links or buses, such as address bus, data bus, control bus or a combination thereof. The communication bus 575 can include one or more bus or link types, such as industrial standard architecture (ISA) bus, extended industrial standard architecture (EISA) bus, video electronics standard association (VESA) bus, peripheral component interconnect (PCI) bus, peripheral component interconnect fast (PCIe) bus, HyperTransport, and / or other types of bus or link. In some embodiments, there is a direct connection between components. As an example, CPU 530 can be directly connected to main memory 540. In addition, CPU 530 can be directly connected to parallel processing system 525. In the case where there is a direct or point-to-point connection between components, the communication bus 575 can include a PCIe link to perform the connection. In these examples, the system 565 need not include a PCI bus.

[0143] although Figure 5C The various boxes are shown as being connected via a communication bus 575 having wires, but this is not intended to be limiting and is merely for clarity. For example, in some embodiments, presentation components such as (one or more) display devices 545 can be considered I / O components, such as input devices 560 (e.g., if the display is a touch screen). As another example, (one or more) CPUs 530 and / or parallel processing system 525 may include memory (e.g., main memory 540 may represent a storage device in addition to the memory of parallel processing system 525, CPU 530, and / or other components). In other words, Figure 5C The computing devices described herein are illustrative only. No distinction is made between categories such as "workstations," "servers," "laptops," "desktops," "tablets," "client devices," "mobile devices," "handheld devices," "game consoles," "electronic control units (ECUs)," "virtual reality systems," and / or other device or system types, as all are considered Figure 5C within the range of computing devices.

[0144] The system 565 also includes a main memory 540. Control logic (software) and data are stored in the main memory 540, which can take the form of various computer-readable media. Computer-readable media can be any available media that can be accessed by the system 565. Computer-readable media can include volatile and non-volatile media and removable and non-removable media. By way of example and not limitation, computer-readable media can include computer storage media and communication media.

[0145] Computer storage media may include volatile and nonvolatile media and / or removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, and / or other data types. For example, main memory 540 may store computer-readable instructions (e.g., representing programs and / or program elements, such as an operating system). Computer storage media may include, but are not limited to, RAM, ROM, EEPROM, flash memory or other storage technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by system 565. As used herein, computer storage media does not include the signals themselves.

[0146] Computer storage media may contain computer readable instructions, data structures, program modules, and / or other data types in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information delivery media. The term "modulated data signal" may refer to a signal that has one or more of its characteristics set or changed in such a way that information is encoded into the signal. By way of example and not limitation, computer storage media may include wired media such as a wired network or a direct wired connection, and wireless media such as sound, RF, infrared, and other wireless media. Any combination of the above should also be included within the scope of computer readable media.

[0147] The computer program enables the system 565 to perform various functions when executed. The CPU 530 can be configured to execute at least some computer-readable instructions so as to control one or more components of the system 565 to perform one or more of the methods and / or processes described herein. Each of the CPUs 530 may include one or more cores (e.g., one, two, four, eight, twenty-eight, seventy-two, etc.) capable of simultaneously processing a large number of software threads. The CPU 530 may include any type of processor, and may include different types of processors, depending on the type of system 565 implemented (e.g., a processor with fewer cores for mobile devices and a processor with more cores for servers). For example, depending on the type of system 565, the processor may be an advanced RISC machine (ARM) processor implemented using reduced instruction set computing (RISC) or an x86 processor implemented using complex instruction set computing (CISC). In addition to one or more microprocessors or supplementary coprocessors such as mathematical coprocessors, the system 565 may also include one or more CPUs 530.

[0148] In addition to or in lieu of one or more CPUs 530, the parallel processing module 525 can be configured to execute at least some computer-readable instructions to control one or more components of the system 565 to perform one or more methods and / or processes herein. The system 565 can use the parallel processing module 525 to render graphics (e.g., 3D graphics) or perform general-purpose computing. For example, the parallel processing module 525 can be used for general-purpose computing on a GPU (GPGPU). In an embodiment, the CPU 530 and / or the parallel processing module 525 can perform any combination of methods, processes, and / or portions thereof discretely or jointly.

[0149] System 565 also includes input device 560, parallel processing system 525, and display device 545. Display device 545 may include a display (e.g., a monitor, a touch screen, a television screen, a head-up display (HUD), other display types, or a combination thereof), speakers, and / or other presentation components. Display device 545 may receive data from other components (e.g., parallel processing system 525, CPU 530, etc.) and output the data (e.g., as images, video, sound, etc.).

[0150] The network interface 535 can enable the system 565 to be logically coupled to other devices including input devices 560, display devices 545, and / or other components, some of which can be built into (e.g., integrated into) the system 565. Illustrative input devices 560 include microphones, mice, keyboards, joysticks, game pads, game controllers, satellite dishes, scanners, printers, wireless devices, and the like. The input device 560 can provide a natural user interface (NUI) that processes air gestures, voice, or other physiological inputs generated by the user. In some instances, the input can be transmitted to an appropriate network element for further processing. The NUI can implement any combination of voice recognition, stylus recognition, facial recognition, biometric recognition, gesture recognition on and adjacent to the screen, air gestures, head and eye tracking, and touch recognition associated with the display of the system 565 (as described in more detail below). The system 565 can include depth cameras such as stereo camera systems, infrared camera systems, RGB camera systems, touch screen technology, and combinations of these for gesture detection and recognition. Additionally, system 565 may include an accelerometer or gyroscope to enable motion detection (e.g., as part of an inertial measurement unit (IMU)). In some examples, the output of the accelerometer or gyroscope may be used by system 565 to render immersive augmented reality or virtual reality.

[0151] In addition, the system 565 can be coupled to a network (e.g., a telecommunications network, a local area network (LAN), a wireless network, a wide area network (WAN) (such as the Internet), a peer-to-peer network, a cable network, etc.) for communication purposes through the network interface 535. The system 565 can be included in a distributed network and / or cloud computing environment.

[0152] The communication interface 535 may include one or more receivers, transmitters, and / or transceivers that enable the system 565 to communicate with other computing devices via an electronic communication network, including wired and / or wireless communications. The network interface 535 may include components and functionality that enable communication over any of a number of different networks, such as wireless networks (e.g., Wi-Fi, Z-wave, Bluetooth, Bluetooth LE, ZigBee, etc.), wired networks (e.g., via Ethernet or wireless broadband (InfiniBand) communications), low power wide area networks (e.g., LoRaWAN, SigFox, etc.), and / or the Internet.

[0153] The system 565 may also include auxiliary storage (not shown). The auxiliary storage includes, for example, a hard disk drive and / or a removable storage drive, representative floppy disk drive, tape drive, optical disk drive, digital versatile disk (DVD) drive, recording device, universal serial bus (USB) flash memory. The removable storage drive reads from and / or writes to the removable storage unit in a well-known manner. The system 565 may also include a hard-line power supply, a battery power supply, or a combination thereof (not shown). The power supply can provide power to the system 565 to enable the components of the system 565 to operate.

[0154] Each of the aforementioned modules and / or devices may even be located on a single semiconductor platform to form system 565. Alternatively, the various modules may also be placed separately or in various combinations of semiconductor platforms, depending on the needs of the user. Although various embodiments have been described above, it should be understood that they are presented by way of example only and not limitation. Therefore, the breadth and scope of the preferred embodiments should not be limited by any of the above-described exemplary embodiments, but should only be defined in accordance with the appended claims and their equivalents.

[0155] Network environment example

[0156] A network environment suitable for implementing embodiments of the present disclosure may include one or more client devices, servers, network attached storage (NAS), other backend devices, and / or other device types. The client devices, servers, and / or other device types (e.g., each device) may be configured to communicate with the client device, server, or other device types. Figure 5A The processor system 500 and / or Figure 5B The exemplary system 565 may be implemented on one or more instances of the exemplary system 565 , for example, each device may include similar components, features, and / or functionality of the processing system 500 and / or the exemplary system 565 .

[0157] The components of the network environment can communicate with each other via a network, which can be wired, wireless, or both. The network can include multiple networks or networks of networks. For example, the network can include one or more wide area networks (WANs), one or more local area networks (LANs), one or more public networks, such as the Internet and / or a public switched telephone network (PSTN), and / or one or more private networks. In the case where the network includes a wireless telecommunications network, components such as base stations, communication towers, and even access points (and other components) can provide wireless connections.

[0158] Compatible network environments may include one or more peer-to-peer network environments (in which case the server may not be included in the network environment) and one or more client-server network environments (in which case one or more servers may be included in the network environment). In a peer-to-peer network environment, the functionality described herein for the server may be implemented on any number of client devices.

[0159] In at least one embodiment, the network environment may include one or more cloud-based network environments, distributed computing environments, combinations thereof, and the like. A cloud-based network environment may include a framework layer, a job scheduler, a resource manager, and a distributed file system implemented on one or more servers, and the server may include one or more core network servers and / or edge servers. The framework layer may include a framework for supporting software at the software layer and / or one or more applications at the application layer. The software or application may include web-based service software or applications, respectively. In an embodiment, one or more client devices may use web-based service software or applications (e.g., by accessing the service software and / or application via one or more application programming interfaces (APIs)). The framework layer may be, but is not limited to, a free and open source software Web application framework, such as a distributed file system that may be used for large-scale data processing (e.g., "big data").

[0160] A cloud-based network environment can provide cloud computing and / or cloud storage, which performs any combination of the computing and / or data storage functions (or one or more parts thereof) described herein. Any of these different functions can be distributed from a central or core server (e.g., in one or more data centers, which can be distributed across states, regions, countries, the world, etc.). If the connection to a user (e.g., a client device) is relatively close to one or more edge servers, one or more core servers can specify at least a portion of the functions to one or more edge servers. A cloud-based network environment can be private (e.g., limited to a single organization), public (e.g., available to many organizations), and / or a combination thereof (e.g., a hybrid cloud environment).

[0161] The client device may include the Figure 5B The processing system 500 and / or Figure 5CAt least some components, features, and functionality of the exemplary system 565 of the embodiment of the present invention. By way of example and not limitation, the client device may be embodied as a personal computer (PC), a laptop computer, a mobile device, a smart phone, a tablet computer, a smart watch, a wearable computer, a personal digital assistant (PDA), an MP3 player, a virtual reality headset, a global positioning system (GPS) or device, a video player, a camera, a surveillance device or system, a vehicle, a boat, a flying vessel, a virtual machine, a drone, a robot, a handheld communication device, a hospital device, a gaming device or system, an entertainment system, a vehicle computer system, an embedded system controller, a remote control, a device, a consumer electronic device, a workstation, an edge device, any combination of the depicted devices, or any other suitable device.

[0162] Machine Learning

[0163] Deep Neural Networks (DNNs) developed on processors such as the PPU 300 have been used in a variety of use cases: from self-driving cars to faster drug development, from automatic image captioning in online image databases to intelligent real-time language translation in video chat applications. Deep learning is a technology that models the neural learning process of the human brain, constantly learning, constantly getting smarter, and delivering more accurate results faster over time. A child is initially taught by an adult to correctly identify and classify various shapes, and eventually is able to recognize shapes without any coaching. Similarly, deep learning or neural learning systems need to be trained in object recognition and classification in order to become smarter and more efficient in recognizing basic objects, occluded objects, etc. while also assigning context to objects.

[0164] At the simplest level, neurons in the human brain look at the various inputs they receive, assign importance levels to each of these inputs, and pass outputs to other neurons for processing. An artificial neuron, or perceptron, is the most basic model of a neural network. In one example, a perceptron can receive one or more inputs that represent various features of an object that the perceptron is being trained to recognize and classify, and each of these features is given a certain weight based on the importance of that feature when defining the shape of the object.

[0165] Deep neural network (DNN) models include multiple layers of many connected nodes (e.g., perceptrons, Boltzmann machines, radial basis functions, convolutional layers, etc.), which can be trained with large amounts of input data to solve complex problems quickly and accurately. In one example, the first layer of a DNN model breaks down an input image of a car into its parts and looks for basic patterns (such as lines and angles). The second layer assembles lines to look for higher-level patterns, such as wheels, windshields, and mirrors. The next layer identifies the type of vehicle, and the last few layers generate labels for the input image, identifying the model of a specific car brand.

[0166] Once a DNN is trained, it can be deployed and used to recognize and classify objects or patterns in a process called inference. Examples of inference (the process by which a DNN extracts useful information from a given input) include recognizing handwritten numbers on check deposits in ATM machines, identifying images of friends in photos, providing movie recommendations to over 50 million users, recognizing and classifying different types of cars, pedestrians, and road hazards in self-driving cars, or translating human speech in real time.

[0167] During training, data flows through the DNN in a forward propagation phase until a prediction is produced, which indicates a label corresponding to the input. If the neural network does not correctly label an input, the error between the correct label and the predicted label is analyzed, and the weights are adjusted for each feature during a backward propagation phase until the DNN correctly labels that input and other inputs in the training data set. Training complex neural networks requires a large amount of parallel computing performance, including floating-point multiplication and addition supported by the PPU 300. Inference is less computationally intensive than training and is a latency-sensitive process in which a trained neural network is applied to new inputs it has not seen before to classify images, translate speech, and generally reason about new information.

[0168] Neural networks rely heavily on matrix math operations, and complex multi-layer networks require a lot of floating point performance and bandwidth for efficiency and speed. With thousands of processing cores optimized for matrix math operations and delivering tens to hundreds of TFLOPS of performance, the PPU 300 is a computing platform capable of delivering the performance required for deep neural network-based artificial intelligence and machine learning applications.

[0169] In addition, images generated using one or more of the techniques disclosed herein can be used to train, test, or certify DNNs for recognizing objects and environments in the real world. These images can include scenes of roads, factories, buildings, urban environments, rural environments, people, animals, and any other physical objects or real-world environments. Such images can be used to train, test, or certify DNNs used in machines or robots to manipulate, process, or modify physical objects in the real world. In addition, such images can be used to train, test, or certify DNNs used in autonomous vehicles to navigate and move vehicles in the real world. In addition, images generated using one or more of the techniques disclosed herein can be used to transmit information to users of such machines, robots, and vehicles.

[0170] Figure 5DComponents of an example system 555 that can be used to train and utilize machine learning in accordance with at least one embodiment are shown. As will be discussed, various components can be provided by various combinations of computing devices and resources or a single computing system that can be under the control of a single entity or multiple entities. In addition, aspects can be triggered, initiated, or requested by different entities. In at least one embodiment, the training of the neural network can be directed by a vendor associated with the vendor environment 506, and in at least one embodiment, the training of the neural network can be requested by a customer or other user who can access the vendor environment through a client device 502 or other such resource. In at least one embodiment, the training data (or data to be analyzed by the trained neural network) can be provided by the vendor, the user, or the third-party content provider 524, etc. In at least one embodiment, the client device 502 can be a vehicle or object that can navigate on behalf of a user, for example, the user can submit requests and / or receive instructions to facilitate navigation of the device.

[0171] In at least one embodiment, the request can be submitted via at least one network 504 to be received into the provider environment 506. In at least one embodiment, the client device 502 can be any suitable electronic and / or computing device that enables a user to generate and send such a request, such as, but not limited to, a desktop computer, a laptop computer, a computer server, a smart phone, a tablet computer, a game console (portable or otherwise), a computer processor, computing logic, and a set-top box, etc. The one or more networks 504 may include any suitable network for transmitting the request or other such data, and may include, for example, the Internet, an intranet, a cellular network, a local area network (LAN), a wide area network (WAN), a personal area network (PAN), a network for direct wireless connection between peers, and the like.

[0172] In at least one embodiment, the request may be received to the interface layer 508, which in this example may forward the data to the training and reasoning manager 532. In at least one embodiment, the training and reasoning manager 532 may be a system or service including hardware and software for managing services and requests consistent with data or content, and the training and reasoning manager 532 may receive a request to train a neural network and may provide the requested data to the training module 512. In at least one embodiment, if the request is not specified, the training module 512 may select an appropriate model or neural network to use and may use the relevant training data to train the model. In at least one embodiment, the training data may be a batch of data received from the client device 502 or obtained from a third-party supplier 524, etc., stored in the training data repository 514. In at least one embodiment, the training module 512 may be responsible for the training data. The neural network may be any appropriate network, such as a recurrent neural network (RNN) or a convolutional neural network (CNN), etc. Once the neural network is trained and successfully evaluated, the trained neural network may be stored in the model repository 516, for example, which may store different models or networks for users, applications, or services, etc. In at least one embodiment, there may be multiple models for a single application or entity, such as multiple models that may be utilized based on a number of different factors.

[0173] In at least one embodiment, at a later point in time, a request for content (e.g., path determination) or data that is at least partially determined or influenced by a trained neural network may be received from the client device 502 (or another such device). The request may include, for example, input data to be processed using the neural network to obtain one or more inferences or other output values, classifications, or predictions, or in at least one embodiment, although different systems or services may also be used in various embodiments, the input data may be received by the interface layer 508 and directed to the inference module 518. If not already stored locally to the inference module 518, the inference module 518 may obtain an appropriate training network, such as a trained deep neural network (DNN) herein, from the model repository 516. In at least one embodiment, the inference module 518 may provide data as input to the training network, and may then generate one or more inferences as output. For example, this may include a classification of the input data instance. In at least one embodiment, the inference may then be sent to the client device 502 for display to the user or other communication with the user. In at least one embodiment, the user's environment data may also be stored in a user environment data repository 522, which may include data about the user, which may be used as network input for generating inferences or determining data returned to the user after obtaining an instance, etc. In at least one embodiment, related data including at least a portion of the input or inference data may also be stored in a local database 534 for processing future requests. In at least one embodiment, a user may use an account or other information to access resources or functions of a provider environment. In at least one embodiment, if permitted and available, user data may also be collected and used to further train the model to provide more accurate inferences for future requests. In at least one embodiment, a request for a machine learning application 526 executed on a client device 502 may be received through a user interface, and the results may be displayed through the same interface. The client device may include resources such as a processor 528 and a memory 562 for generating requests and processing results or responses, and at least one data storage element 552 for storing data for the machine learning application 526.

[0174] In at least one embodiment, the processor 528 (or the processor of the training module 512 or the reasoning module 518) will be a central processing unit (CPU). However, as above, resources in such an environment can utilize GPUs to process data for at least some types of requests. GPUs (such as PPU 300) have thousands of cores and are designed to handle large parallel workloads, and therefore have become popular in deep learning for training neural networks and generating predictions. Although using GPUs for offline construction can train larger and more complex models faster, generating predictions offline means that request-time input features cannot be used, or predictions must be generated for all feature permutations and stored in lookup tables to serve real-time requests. If the deep learning framework supports CPU mode, and the model is small and simple enough that feedforward can be performed on the CPU with reasonable latency, the service on the CPU instance can host the model. In this case, training can be performed offline on the GPU and reasoning can be performed in real time on the CPU. If the CPU approach is not a viable option, the service can run on a GPU instance. However, because GPUs have different performance and cost characteristics than CPUs, running a service that offloads runtime algorithms to GPUs may require that it be designed differently from CPU-based services.

[0175] In at least one embodiment, video data may be provided from client device 502 for enhancement in provider environment 506. In at least one embodiment, video data may be processed for enhancement on client device 502. In at least one embodiment, video data may be streamed from third party content provider 524 and enhanced by third party content provider 524, provider environment 506, or client device 502. In at least one embodiment, video data may be provided from client device 502 for use as training data in provider environment 506.

[0176] In at least one embodiment, supervised and / or unsupervised training can be performed by the client device 502 and / or the provider environment 506. In at least one embodiment, a set of training data 514 (e.g., classified or labeled data) is provided as input to be used as training data. In one embodiment, the set of training data can be used in a generative adversarial training configuration to train a generator neural network.

[0177] In at least one embodiment, the training data may include images of at least one human subject, avatar, character, animal, object, etc., for which the neural network is to be trained. In at least one embodiment, the training data may include instances of at least one type of object for which the neural network is to be trained, and information identifying the type of object. In at least one embodiment, the training data may include a set of images, each image containing a representation of an object type, wherein each image also contains or is associated with a label, metadata, classification, or other information identifying the type of object represented in the respective image. Various other types of data may also be used as training data, and may include text data, audio data, video data, etc. In at least one embodiment, the training data 514 is provided as training input to the training model 512. In at least one embodiment, the training model 512 may be a system or service including hardware and software, such as one or more computing devices executing a training application, for training a neural network (or other model or algorithm, etc.). In at least one embodiment, the training model 512 receives an instruction or request indicating the type of model to be used for training. The model may be any suitable statistical model, network, or algorithm that can be used for such purposes, and may include, for example, an artificial neural network, a deep learning algorithm, a learning classifier, a Bayesian network, etc. In at least one embodiment, the training model 512 can select an initial model or other untrained model from an appropriate repository 516 and use the training data 514 to train the model to generate a trained model (e.g., a trained deep neural network) that can be used to classify similar types of data, or generate other such inferences. In at least one embodiment that does not use training data, an appropriate initial model can still be selected according to the training model 512 to train the input data.

[0178] In at least one embodiment, the model can be trained in a number of different ways, which may depend in part on the type of model selected. In one embodiment, a set of training data can be provided to a machine learning algorithm, where the model is a model artifact created by a training process. In at least one embodiment, each instance of the training data contains a correct answer (e.g., a classification), which can be referred to as a destination or a destination attribute. In at least one embodiment, the learning algorithm finds patterns in the training data that map the input data attributes to the destination, the answer to be predicted, and outputs a machine learning model that captures these patterns. In at least one embodiment, the machine learning model can then be used to obtain predictions for new data that does not specify a destination.

[0179] In at least one embodiment, the training and inference manager 532 can select from a set of machine learning models, including binary classification, multi-classification, generative, and regression models. In at least one embodiment, the type of model to be used can depend at least in part on the type of destination to be predicted.

[0180] The image generated by applying one or more of the techniques disclosed herein can be displayed on a monitor or other display device. In some embodiments, the display device can be directly coupled to a system or processor that generates or renders an image. In other embodiments, the display device can be indirectly coupled to a system or processor, such as via a network. Examples of such networks include the Internet, mobile telecommunications networks, WIFI networks, and any other wired and / or wireless network systems. When the display device is indirectly coupled, the image generated by the system or processor can be streamed to the display device via a network. This streaming (e.g., a video game or other application that renders an image) allows execution on a server, a data center, or in a cloud-based computing environment, and the rendered image will be transmitted and displayed on one or more user devices (such as computers, video game consoles, smartphones, other mobile devices, etc.) that are physically separated from the server or data center. Therefore, the technology disclosed herein can be applied to enhance streaming images and enhance streaming image services, such as NVIDIA GeForce Now (GFN), Google Stadia, etc.

[0181] Weight demodulation of the generator neural network

[0182] The style-based GAN architecture (StyleGAN) implemented in the style-based generator system 100 produces impressive results in data-driven unconditional generative image modeling. However, the style-based GAN architecture can synthesize images containing undesirable artifacts. As further described herein, several characteristic artifacts can be avoided or reduced by changing the synthetic neural network structure and / or training method. In one embodiment, the normalization operation is restructured and the style-based generator system can be regularized to encourage good regulation in the mapping from latent vectors to output data (e.g., images). Improving the style-based GAN architecture to avoid and / or reduce artifacts can significantly improve the results of unconditional image modeling, both in terms of existing distribution quality indicators and perceived output data quality.

[0183] Now, more illustrative information about various optional architectures and features that can implement the aforementioned framework will be described, depending on the user's desire. It should be particularly noted that the following information is described for illustrative purposes and should not be interpreted as limiting in any way. The optional following features may be optionally incorporated with or without excluding the other features described.

[0184] Fig. 6A Artifacts in images and feature maps that may be generated by the style-based generator system 100 are shown, according to one embodiment. Artifact 601 appears as a blob-like anomaly that resembles a water droplet. Even when artifact 601 may not be noticeable in the final image, artifact 602 is present in the intermediate feature maps produced by the synthetic neural network. In one embodiment, the anomaly begins to appear near the 64x 64 resolution and appears in all subsequent feature maps, gradually increasing at higher resolutions. In another example, artifact 603 is visible in the final image of a vehicle, and a corresponding artifact 604 is present in the feature map generated during the synthesis of the final output image of the vehicle. In another example, artifact 605 is visible in the final output image of a horse, and a corresponding artifact 606 is present in the feature map generated during the synthesis of the final output image of the horse. The presence of such a consistent artifact is puzzling because the discriminator should be able to detect it during training.

[0185] The “blob” or “water drop” artifacts in the images generated by the synthetic neural network 140 appear to be caused because the normalization operations performed in the processing layers of the synthetic neural network 140 are too destructive, completely eliminating the means and scales of the intermediate activations of each feature map. In fact, the style-based GAN may create the artifacts to circumvent design flaws in its architecture.

[0186] In summary, the distinguishing feature of the style-based generator system 100 is the non-traditional architecture of the generator. Instead of feeding the latent code z∈Z directly as input to the synthetic neural network 140, the mapping neural network 110 first converts the input latent code into an intermediate latent code w∈W. Then, the affine transformation performed by the style transfer unit 115 produces a style signal that controls the layers of the synthetic neural network 140 via adaptive instance normalization (AdaIN). In the context of the following description, instance normalization refers to performing normalization separately or independently for each instance or sample (image) without interaction between samples. In contrast, when batch normalization is used, all samples in a minibatch are normalized together. In addition, in one embodiment, random variation is promoted by providing an additional random noise map to the synthetic neural network 140. The noise map can be inserted into the intermediate data output by each convolutional layer of the synthetic neural network 140. It has been demonstrated that the unconventional design allows the intermediate latent space to be The entanglement of is much smaller than that of the input latent space Z. In the following description, the analysis focuses only on , because from the perspective of the synthetic neural network 140, it is the relevant latent space.

[0187] The artifacts are introduced by the AdaIN operation, which normalizes the mean and variance of each feature map separately, thereby potentially destroying any information found in the feature magnitudes relative to each other. The water drop artifacts may be a result of the style-based generator system 100 intentionally hiding signal strength information to instance normalization. More specifically, by creating strong, localized spikes that dominate the statistics, the style-based generator system 100 may effectively scale the signal as if it were elsewhere. This hypothesis is supported by the following findings: In one embodiment, when the normalization step is removed from the synthetic neural network 140, as follows, the water drop artifacts disappear completely.

[0188] Figure 6B According to an embodiment Figure 2B A block diagram of the processing block 200 is shown. Figure 1A and Figure 2B In the synthetic neural network 140 shown, the style signal can be active for each processing stage to apply properties specific to the processing stage. In one embodiment, the style transfer unit 115 applies the learned affine transformation to To generate each style signal. Conceptually, the feature maps (representing the content of the image) generated by the different processing layers 125, 135 and / or 220 of the synthesis neural network 140 are modified based on the style signal provided by the mapping neural network 110. In other words, for each stage, the first-order statistics are replaced with style-specific properties. Figure 1A and Figure 2B In contrast, the Adaptive Instance Normalization (AdaIN) operation within layers 120 and 130 and module 220 is decomposed into its two components: normalization 620 followed by modulation 625, both operating on the mean and standard deviation of each feature map. Normalization 620 is performed for each style application to avoid accumulation of a particular style in subsequent stages, where different styles may be applied at different scales.

[0189] Before normalization 620, element 610 can insert spatial noise into the first intermediate data. In one embodiment, the first intermediate data is a learned constant or input sample. In one embodiment (not shown), the deviation of each scale can also be applied together with the spatial noise. The learned parameters (weights) are applied by each convolution layer 225. By demodulating the weights (rather than normalizing the activation), a style block 600 that can include at least a convolution layer 225, normalization 620, spatial noise inserted by element 610, and demodulation 625 can be reorganized to eliminate artifacts. Interestingly, the synthetic neural network 140 applies spatial noise within the processing block 200 so that the relative impact of the spatial noise is inversely proportional to the amplitude of the style signal applied at the processing block 200. By moving the insertion operation outside the processing block 200, a more predictable result can be obtained, and therefore, the insertion will operate on the normalized data.

[0190] Figure 6C A block diagram of a style block 640 for implementing some embodiments of the present disclosure is shown. Figure 6B Compared to the processing block 200 shown in FIG. 2 , the insertion of spatial noise (and bias) by element 610 is moved outside of the style block 640. In other words, the application of spatial noise and bias is independent of each style encoded in the style signal. In one embodiment, after moving the insertion operation outside of the style block 600 to produce the style block 640, it is sufficient to normalize and modulate the standard deviation only (i.e., no mean is required). In one embodiment, the application of bias, spatial noise, and normalization to the input samples (e.g., the first intermediate data) can also be safely removed without significant disadvantages.

[0191] Compared to the normalization 620 and the modulation 625 in the style block 600, the modulation of the mean is removed, and the modulation unit 630 and the normalization unit 635 operate only on the standard deviation. The modulation unit 630 modulates the first intermediate data based on the style signal to generate a modulated feature. In one embodiment, in addition to the modulation unit 630, the convolution layer 225 and the normalization unit 635, the style block 640 may also include an upsampler 632 that performs a similar operation to Figure 2B The modulated features are upsampled (or not upsampled) and input as input activations to the convolution layer 225. The parameters are applied to the input activations by the convolution layer 225 to produce output activations.

[0192] The style block 640 can be reorganized to relax or reduce the strength of the normalization operation while retaining the scale-specific effects of the style. Removing only the instance normalization operation improves image quality (e.g., removes blobby artifacts). However, removing instance normalization also causes the effect of the style to be cumulative rather than specific to each scale. As a result, the controllability for synthesis provided by scale-specific styles is greatly reduced. An alternative approach to removing artifacts while maintaining controllability is to base the normalization on the expected statistics of the incoming feature maps, but without explicitly enforcing it.

[0193] Think back, Figure 6C The style block 640 in includes at least a modulation unit 630, a convolution layer 225, and a normalization unit 635. The effect of performing convolution after modulation is that the modulation scales each input feature map of the convolution according to the incoming style, which can also be achieved by scaling the convolution weights:

[0194] w′ ijk =s i ·w ijk , formula (2)

[0195] where w and w' are the original weight and the modulated weight respectively, s i is the scaling factor corresponding to the i-th input feature map, j and k enumerate the output feature map and the spatial footprint of the convolution, respectively.

[0196] Now, the purpose of instance normalization is to essentially remove the effect of s from the output feature map statistics produced by each convolution. The goal of removing the effect of s from the output feature map can be achieved more directly. Assuming that the intermediate data input to the style block 640 are independent and are uniformly distributed (i.e., id) random variables with unit standard deviation, the standard deviation of the output activations produced by the convolution layer 225 after modulation and convolution is

[0197]

[0198] That is, through the corresponding weighted L 2 norm to scale each output feature map. The subsequent normalization aims to restore the output activation to unit standard deviation. Based on formula (3), if each output feature map j is scaled by 1 / σ j Scaling ("demodulation") achieves the restored output. Alternatively, demodulation can be combined into convolution weights:

[0199]

[0200] where ∈ is a small constant to avoid numerical problems.

[0201] Considering the actual implementation of equations (2) and (4), it is important to note that the resulting set of weights will be different for each sample in the mini-batch, which may preclude a straightforward implementation using standard convolution primitives. In one embodiment, grouped convolutions can be used to temporarily reshape the weights and activations so that each convolution sees one sample with N groups – rather than N samples with one group. Grouped convolutions are efficient because the reshaping operation does not actually modify the contents of the weight and activation tensors. In another embodiment, explicit scaling operations can be employed before and after the convolutions.

[0202] Fig.6D A block diagram of a style block 645 for implementing some embodiments of the present disclosure is shown. The normalization unit 635 in the style block 640 is replaced with a "demodulation" operation, which is applied to the weights associated with each convolutional layer 225 in the style block 645. It should be understood that this arrangement and other arrangements described herein are only set forth as examples. Other arrangements and elements (e.g., machines, interfaces, functions, commands, functional groupings, etc.) can be used to supplement or replace the arrangements and elements shown, and some elements can be omitted completely. In addition, many elements described herein are functional entities, which can be implemented as discrete or distributed components, or combined with other components, and implemented in any suitable combination and position. The various functions described herein as being performed by an entity can be performed by hardware, firmware and / or software. For example, various functions can be performed by a processor executing instructions stored in a memory. In addition, it will be understood by those of ordinary skill in the art that any system that performs the operation of a style block 640 or 645 is within the scope and spirit of the embodiments of the present disclosure.

[0203] like Fig.6D As shown, instead of normalizing the features (e.g., intermediate data), the weights are normalized based on the "expected statistics" of the intermediate data. Since convolution is a linear operator, scaling the weights is equivalent to scaling the features. Therefore, compared to the style block 640, the modulation unit 630 and the normalization unit 635 are removed from the feature processing, and the modulation unit 650 and the demodulation unit 655 are inserted in the processing path of the weights.

[0204] The weights are first modulated by the modulation unit 650 by the style signal to produce modulated weights. The modulated weights are equivalent to the modulation unit 630 scaling the first intermediate data to produce modulated features in the style block 640. In the style block 645, the input features are optionally upsampled by the upsampler 632 and input to the convolution layer 225 to produce output features. Assuming that the input features are normally distributed, the expected standard deviation of the output features is calculated. Finally, the modulated weights are demodulated by the demodulation unit 655 based on the expected standard deviation to produce normalized weights. Demodulating the modified weights is equivalent to scaling the output features generated by the convolution layer 225. Spatial noise can be selectively inserted into the output features to produce modified features. Then, the synthetic neural network including at least one style block 645 can generate output data (e.g., an image) according to the style, but without "spot" artifacts or artifacts that are significantly reduced.

[0205] The weights of each convolutional layer 225 are adjusted within the style block 645 based on s using equations (2) and (4). To avoid considering the activation function in equation (4), the activation function can be scaled so that the activation function preserves the desired signal variation. Compared to instance normalization, the demodulation technique is weaker because it is based on statistical assumptions about the signal rather than on the actual content of the feature map. In summary, statistical analysis is implemented by the style block 645 as an alternative to data-dependent normalization.

[0206] Fig. 6E A flow chart of a method 660 for demodulating weights applied by a generator neural network is shown according to one embodiment. Each block of the method 660 herein includes a computational process that can be performed using any combination of hardware, firmware, and / or software. For example, various functions can be performed by a processor executing instructions stored in a memory. The method can also be embodied as computer usable instructions stored on a computer storage medium. The method can be provided by a stand-alone application, a service or a hosted service (standalone or in combination with another hosted service), or a plug-in to another product, to name a few. Additionally, as an example, with respect to Fig.6D The style block 645 of describes the method 660. However, the method can be additionally or alternatively performed by any system or any combination of systems, including but not limited to the system of this article. In addition, it will be understood by a person of ordinary skill in the art that any system that performs the method 660 is within the scope and spirit of the embodiments of the present disclosure.

[0207] At step 665, the style block 645 receives a first weight for modifying a first feature in a first stage of a generator neural network, the generator neural network comprising a plurality of stages, wherein the last stage of the generator neural network produces output data. In one embodiment, the synthetic neural network 140 of the style-based generator system 100 is reorganized to implement the style block 645 to produce the output data. In one embodiment, the components of the first intermediate data input to the synthetic neural network 140 are adjusted during training and initialized using N(0, 1). In another embodiment, the first intermediate data corresponds to (or is derived from) additional input data, such as a reference image.

[0208] At step 670, the modulation unit 650 modulates the first weight with the first style control signal to generate a first modulated weight. At step 675, the demodulation unit 655 demodulates the first modulated weight to generate a first normalized weight. In one embodiment, the modulation unit 650 and the demodulation unit 655 perform demodulation to change the weight (rather than activation) based on each sample. In other words, the weight can be modulated for each first intermediate data input to the synthetic neural network 140. At step 680, the first normalized weight is applied by the first stage to generate a modified first feature. In one embodiment, the modified first feature is an output feature generated by the style block 645. In one embodiment, the modified first feature is a modified feature generated by inserting spatial noise into the output feature. At step 685, the modified first feature is processed by at least one additional stage of the generator neural network to generate output data, and the output data includes content corresponding to the first feature.

[0209] In one embodiment, at least one additional stage includes another style block 645. In one embodiment, spatial noise and / or bias are inserted to further modify the modified features to generate modified intermediate data, which are processed by at least one additional stage of the generator neural network. In one embodiment, weight modulation and demodulation operations are included in the synthetic neural network, the synthetic neural network includes one or more stages, each stage includes style block 645, and the demodulation operation is omitted from the output style block 645.

[0210] Fig. 6F An output image 662 and modified feature maps 664 and 668 generated using weighted demodulation according to one embodiment are shown. Fig. 6ACompared to the output image in , visible artifacts are absent or greatly reduced in the output image 662. Similarly, visible artifacts are absent or greatly reduced in the modified feature maps 664 and 668 produced by the style block 645 at different scales. While reducing and / or eliminating artifacts, full controllability of the style at different scales can be retained. In addition, as a result of the simplified data flow for modulation and demodulation weights rather than feature maps, training time can be reduced.

[0211] Smoothing Regularization of Generator Neural Networks

[0212] Smoothness regularization techniques can be used in conjunction with or independently of weight demodulation to improve the quality of output data produced by the generator neural network. Smoothness regularization strives to ensure that small changes in the input to the neural network result in small changes in the output, the magnitude of the change remains consistent across the possible input space, and the possible direction of the change input. In other words, small changes in the latent space (or the intermediate latent space that in turn changes the style signal) should result in small changes in the output space (e.g., an image). The goal is to achieve a uniform distribution of changes in the input space and a uniform distribution of corresponding changes in the output space. Smoothness regularization techniques can be used to encourage smooth transformations between the latent space to the output data, between the first intermediate data and other intermediate data or output, between any two intermediate data, or between any intermediate data and the output.

[0213] Metrics that can be used to measure smoothness can also indicate an improvement in quality in the output data. During training, the metrics can be used to adjust the learned parameters of the style-based generator system 100. Specifically, the weights for the synthetic neural network 140 can be adjusted by smoothness regularization to improve the metrics as well as the quality of the output data.

[0214] Several metrics can be used to quantitatively analyze the quality of images produced using generative methods. Frechette Inception Distance (FID) measures the difference in the density of two distributions in the high-dimensional feature space of the Inception V3 classifier. Precision and Recall (P&R) provide additional visibility by explicitly quantifying the percentage of generated images that are similar to the training data and the percentage of training data that can be generated. Although FID and P&R successfully capture many aspects of generators, both metrics have some blind spots in terms of image quality. FID and P&R are based on classifier networks, which have recently been shown to focus on texture rather than shape, and therefore, these metrics cannot accurately capture all aspects of image quality. However, the perceptual path length (PPL) metric was originally introduced as a method to estimate the quality of latent space interpolations, which is related to shape consistency and stability. PPL quantifies the smoothness of the transformation by estimating the expected path length of a random interpolation path in the intermediate latent space. The expected path length is measured based on the perceptual change of the image during the interpolation process. By considering infinitely short interpolation paths within the immediate vicinity of a given image, a PPL metric may be calculated for each image (each image PPL). In one embodiment, the synthetic neural network 140 may be trained based on the PPL metric to facilitate smooth transformations and achieve improved quality of generated output data.

[0215] Fig. 7A 1 shows images with high PPL scores (long interpolation paths) generated by the style-based generator system 100 according to one embodiment. Each of the six images includes a cat, but in each image, the shape of the cat is distorted and / or discontinuous, and sometimes mixed with other scene elements. In other words, Fig. 7A The six images in lack semantic consistency. Fig. 7A The PPL score calculated for each image in is in the top 90% of a set of random example images generated by the style-based generator system 100.

[0216] Figure 7B An image with a low PPL score (short interpolation path) generated using the style-based generator system 100 according to one embodiment is shown. Figure 7B Each of the six images in the image also includes a cat, and each cat looks as expected. No cat appears disconnected or confusing with the other elements in the scene. In other words, Figure 7B The six images in are usually semantically consistent. Figure 7B The PPL score computed for each image in is in the bottom 10th percentile of a set of random example images generated by the style-based generator system 100.

[0217] By comparison Fig. 7A and Figure 7B It can be observed that there is a correlation between the perceived image quality and the computed PPL metric. The PPL metric is computed by measuring the average learned perceptual image patch similarity (LPIPS) distance between generated images under small perturbations in the latent space. Lower PPL (smoother generator mappings) seems to be correlated with higher overall image quality, while the other metrics lack correlation with image quality.

[0218] In practice, applying smoothing regularization between the intermediate latent code and the output image is very beneficial in terms of the quality of the generated images. The benefits of smoothing regularization can be understood by comparing the distribution of per-image PPL scores for a style-based generator system 100 trained with and without smoothing regularization.

[0219] Figure 7C A graph of PPL scores 700 for a set of images is shown, according to one embodiment. Images are generated by changing the input latent code or intermediate latent code by a small amount to produce each new image. In other words, a small movement in the intermediate latent space should correspond to a small change in the output data. The set of images may include Fig. 7A and Figure 7B The PPL score in the distribution area 705 is a low PPL score, which corresponds to a high-quality image. The high-quality image includes Figure 7B The PPL scores in the region 710 of the distribution are high PPL scores, which correspond to low-quality images, including Fig. 7A The image shown in FIG. 7 shows large and / or discontinuous changes in the image in region 710 relative to changes in the input latent code that produced the image. In other words, in response to small changes in the latent code, the image changes abruptly rather than smoothly compared to the previous image. The images are generated by the style-based generator system 100 using different random seed values ​​as input and based on The path endpoints in are used to calculate the path length.

[0220] Fig.7DThe distribution of PPL scores 720 for a set of images generated when smoothing regularization is used according to one embodiment is shown. In one embodiment, a smoothing regularization technique is applied to the style-based generator system 100 during training. The mapping neural network 110 receives an input latent code and generates an intermediate latent code. The synthesis neural network 140 receives the intermediate latent code in turn and generates an output image. Specifically, smoothing regularization is applied between the intermediate latent code and the output image to ensure that the transformation between the intermediate latent code and the output image is smooth. In one embodiment, smoothing regularization is applied between a style signal and the output data. The average FID calculated for the images associated with the distributions of PPL scores 700 and 720 is equal. However, the average PPL scores are completely different, and the tail of the distribution within region 710 of the distribution of PPL scores 700 is missing in the distribution of PPL scores 720.

[0221] The relationship between low PPL and image quality is not currently obvious. Perhaps the most direct way to improve the style-based generator system 100 is to effectively stretch regions of the latent space that produce good images as the discriminator 275 penalizes corrupted images during training. As a result, low-quality images may be compressed into small, rapidly changing regions of the latent space. While the stretching and compression of different latent space regions may improve average output quality in the short term, the accumulated distortion affects the dynamics of training and, therefore, the final image quality. The empirical correlation between lower PPL and improved output quality suggests that image quality can be improved by encouraging low PPL while favoring smooth generator mappings during training.

[0222] Excessive path distortions in the style-based generator system 100 are evident as poor local conditioning: any small regions in the intermediate latent space W are arbitrarily compressed and stretched as the style-based generator system 100 is trained. A generator mapping from latent space to image space is considered well-conditioned if, at every point in the latent space, small displacements produce changes of equal magnitude in image space, regardless of the direction of the perturbation. Small displacements can be applied in the latent space to produce corresponding changes of equal magnitude in image space, or small displacements can be applied in image space to produce corresponding changes of equal magnitude in latent space.

[0223] Figure 2BThe synthetic neural network 140 shown includes a series of processing blocks 200 and 230, each of which generates intermediate data (activations). Regularization can be applied to the synthetic neural network 140 to ensure that the transformation between the intermediate latent code and the output image is smooth. Alternatively, regularization can be applied between any two corresponding points in the synthetic neural network 140. For example, the relationship between the outputs (e.g., output features or modified features) from any pair of style blocks 645 can be regularized. The final style block 645 generates the output image. Alternatively, regularization can be applied to other generator neural network architectures. In one embodiment, in order to balance the computational expense of regularization, regularization can be performed less frequently without compromising efficiency.

[0224] Fig. 7E A conceptual diagram of a path without regularization according to one embodiment is shown. A linear trajectory 725 of the style signal is generated by repeatedly changing the same amplitude of the style signal. In response, the synthetic neural network 140 generates a curved trajectory 730 of the output data. The curved trajectory is caused by changes in the output data, which have a changing amplitude compared to changes of the same amplitude in the style signal.

[0225] Figure 7F A conceptual diagram of a path with regularization according to one embodiment is shown. The mapping network 110 is trained to map the latent code into an intermediate latent space and generate a style signal. Fig. 7E Compared to the mapping shown, Figure 7F The mapping shown is more uniform. A linear trajectory 735 of the style signal is generated by repeatedly changing the style signal by the same magnitude. In response, the synthetic neural network 140 generates an approximately linear trajectory 740 of the output data, which has changes of the same magnitude. Changes in the style signal of a first magnitude produce corresponding changes in the output data of a similar magnitude.

[0226] Fig. 8A Shows the use of Fig.6D Block diagram of a synthetic neural network 840 implemented by a style block 645 of the present invention, the synthetic neural network 840 is used to implement some embodiments of the present disclosure. The synthetic neural network 840 includes a series of style blocks 645 and style blocks 646. Compared with the style block 645, the demodulation unit 640 is omitted from the style block 646 because it is the last style block in the synthetic neural network 840. The first style block 645 receives the first intermediate data, the first style signal, and at least a portion of the weights in the weight set. The weights are processed according to the first style signal, and the weights are applied to the first intermediate data to generate second intermediate data. The second intermediate data includes content encoded in the first intermediate data, which is modified based on the first style signal. Spatial noise and / or bias (not shown) can be inserted into the second intermediate data.

[0227] The second style block 645 receives the second intermediate data, the second style signal, and at least another part of the weights in the weight set. The weights are processed according to the second style signal and applied to the second intermediate data to generate third intermediate data. The third intermediate data includes the content encoded in the first intermediate data, and the content is modified based on the first style signal and the second style signal. In one embodiment, the first style signal and the second style signal operate at different ratios. Therefore, the style modification generated by the first style signal is retained in the third intermediate data. In other embodiments, one or more additional style blocks 645 may be included between the second style block 645 and the style block 646. In another embodiment, the second style block 645 is omitted, and the style block 646 receives the second intermediate data. Spatial noise and / or deviation (not shown) may be inserted into the third intermediate data.

[0228] Style block 646 receives the third intermediate data, the third style signal, and at least another portion of the weights in the weight set. The weights are processed according to the third style signal and applied to the third intermediate data to generate fourth intermediate data. The fourth intermediate data includes content encoded in the first intermediate data, which is modified based on the first style signal, the second style signal, and the third style signal. In one embodiment, the first, second, and third style signals operate at different ratios. Therefore, the style modifications generated by the first and second style signals are retained in the fourth intermediate data. Spatial noise and / or bias (not shown) can be inserted into the fourth intermediate data to generate output data.

[0229] Figure 8B A block diagram of a generator training system 800 according to an embodiment is shown. The generator training system 800 can be implemented by a program, a custom circuit, or a combination of a custom circuit and a program. For example, the generator training system 800 can be implemented using a GPU, a CPU, or any processor capable of performing the operations described herein. In addition, it will be understood by those of ordinary skill in the art that any system that performs the operations of the generator training system 800 is within the scope and spirit of embodiments of the present invention.

[0230] The generator training system 800 includes a generator neural network 820, such as the style-based generator system 100 including the synthetic neural network 140 or 840, and a training loss unit 810. The generator neural network 820 receives input data (e.g., at least one latent code and / or noise input) and produces output data. Depending on the task, the output data can be an image, audio, video, or other type of data (configuration settings). The generator neural network 820 can use a training data set that includes example output data, and the output data generated by the generator neural network 820 should be consistent with the example output data. The generator neural network 820 generates output data in response to the input data, and the training loss unit 810 determines whether the output data looks similar to the example output data, which is included in the training data. Based on this determination, a set of parameters of the generator neural network 820 are adjusted.

[0231] When performing regularization, the training loss unit 810 is configured to identify two points within the generator neural network 820, and apply a first modification to the first point, and calculate a second modification for the second point. The second modification is consistent with the first modification, and the regularization loss is calculated based on the second modification. The parameter set used by the generator neural network is then updated to reduce the regularization loss. In one embodiment, the two points may include intermediate data and output data. In one embodiment, the two points may include a style signal and intermediate data or output data.

[0232] In one embodiment, the second modification is calculated using a finite difference technique by applying a first modification to the style signal or intermediate data at a first point and processing the modified first style signal or intermediate data by a subsequent layer of the generator neural network 820 to produce a second modification in the intermediate data, or output data at a second point. In one embodiment, the first modification is a small random amount.

[0233] In one embodiment, the second modification is calculated using a forward difference technique by differentiating the intermediate or output data at a second point relative to a linear trajectory of the pattern signal or intermediate data at a first point, wherein the linear transformation is defined by the first modification. In one embodiment, the linear trajectory is randomly selected.

[0234] Another smoothing regularization technique changes the output data rather than modifying the intermediate data or style signal and propagating the modification forward through the generator neural network 820. In one embodiment, a backward difference technique is used to calculate the second modification by reversing the first point and the second point so that the first point is downstream (in terms of processing by the generator neural network 820) relative to the second point. For backward difference, an inner product (e.g., a dot product) is calculated between the intermediate data or output data at the first point and the first modification, and the inner product is differentiated according to the style signal or intermediate data at the second point to calculate the second modification. For example, in one embodiment, the gradient vector can be calculated as the dot product between the output data and a random vector, and the gradient vector is differentiated relative to the intermediate data or style signal.

[0235] When training the synthetic neural network 840, regularization is performed by repeatedly calculating the second modification and then penalizing the deviation of the amplitude of the second modification compared to the reference value. A parameter set (e.g., weight) is adjusted based on the deviation to increase the uniformity of the amplitude. The first point may correspond to the first style signal, the second style signal, the third style signal, the first intermediate data, the second intermediate data, or the third intermediate data. The second point may correspond to the second intermediate data, the third intermediate data, the fourth intermediate data, or the output data. When backward difference is used, the correspondence between the first point and the second point is reversed.

[0236] Figure 8C A flow chart of a method 825 for smoothing regularization for use in a generator neural network is shown according to one embodiment. Each block of the method 825 described herein includes a computational process that can be performed using any combination of hardware, firmware, and / or software. For example, various functions can be performed by a processor executing instructions stored in a memory. The method can also be embodied as computer-usable instructions stored on a computer storage medium. The method can be provided by a stand-alone application, a service or a hosted service (standalone or in combination with other hosted services), or a plug-in for another product, etc. In addition, by way of example, with respect to Figure 8B The generator neural network 820 of the present invention describes the method 825. However, the method can be performed additionally or alternatively by any system or any combination of systems, including but not limited to the system of the present invention. In addition, it will be understood by a person skilled in the art that any system that performs the method 825 is within the scope and spirit of the embodiments of the present disclosure.

[0237] At step 830, output data is generated by a generator neural network based on a set of parameters, wherein the generator neural network includes one or more layers, each layer outputting features to a subsequent layer in one or more layers. In one embodiment, the generator neural network includes one or more layers, each layer including a first layer 120, a second layer 130, a processing block 200 or 230 and / or a style block 600, 640, 645 or 646. In one embodiment, the generator neural network includes a synthetic neural network 140 or 840. In one embodiment, generating the output data includes: calculating the second feature before calculating the first feature. In one embodiment, the first feature is the output data and the second feature is a style signal or intermediate data, so that regularization is performed using backward differentiation.

[0238] At step 835, a first feature and a second feature are identified, the first feature being associated with a first layer of the one or more layers, and the second feature being associated with a second layer of the one or more layers. In one embodiment, the first feature is one of a style signal, intermediate data, and output data. In one embodiment, the second feature is one of a style signal, intermediate data, and output data.

[0239] At step 845, a first modification to the first feature is selected. In one embodiment, the first modification results in a change in the first feature. In one embodiment, selecting the first modification includes randomly selecting each component of the first modification to produce a Gaussian distribution of the first modification.

[0240] At step 850, a second modification to the second feature is calculated, wherein the second modification is consistent with the first modification. In one embodiment, calculating the second modification includes: modifying the first feature (e.g., the style signal or intermediate data) according to the first modification to produce a modified first feature, recalculating the second feature based on the modified first feature to produce a modified second feature (e.g., downstream intermediate data or output data), and calculating the second modification as a difference between the second feature and the modified second feature. In one embodiment, recalculating the second feature includes: processing the modified first feature by one or more layers of the generator neural network to produce the modified second feature.

[0241] When regularization is performed using backward differentiation, the second modification may be calculated by calculating an inner product between a first feature (eg, downstream intermediate data or output data) and the first modification, and then calculating a differential of the inner product with respect to the second modification.

[0242] At step 855, a regularization loss is calculated based on the second modification. In one embodiment, the regularization loss is calculated by the training loss unit 810. In one embodiment, the regularization loss includes the magnitude of the second modification. In one embodiment, the regularization loss includes L 2norm function. In one embodiment, the regularization loss is calculated by comparing the magnitude of the second modification to a reference value. In one embodiment, the reference value is a constant. In another embodiment, the reference value is calculated as the average of the magnitudes of multiple executions of the generator neural network.

[0243] At step 860, the parameter set is updated to reduce the regularization loss. In one embodiment, the parameter set is a weight, where different portions of the weight are applied to activations by different layers in the generator neural network. In one embodiment, the parameter set is updated to bring the amplitude closer to the reference value.

[0244] At a single point in the intermediate latent space, Generator Mapping The local metric scale property of is given by the Jacobian matrix Capture. The point in the intermediate latent space may be the first feature identified at step 840 and may include a style signal or intermediate data associated with a layer of the generator. Due to the desire to maintain the expected length of the vector (regardless of direction), the regularizer function for performing backward differentiation can be formulated as

[0245]

[0246] Where a is a reference value, y is a modification, such as a random image with normally distributed pixel intensities, and w ≈ f(z), where the latent vectors in the latent space z are normally distributed. Random images can be generated by the style-based generator system 100 using random latent codes to generate an initial image. A set of random per-pixel Gaussian noise images can be used to define a set of modifications to the initial image. The noise images need not be used to actually modify the initial image.

[0247] To avoid explicit computation of the Jacobian, the identity can be computed efficiently using standard backpropagation: Since random noise y is added to the initial image g(w), A second modification is included, the second modification corresponding to the modification of the style signal or the intermediate data. In one embodiment, a is a constant that is dynamically set during optimization, and the constant is a long-term exponential moving average of the length of the magnitude of the second modification. Allow the optimization to find the right global ratio. In one embodiment, the second modification to the product Perform analytical calculations. w Equation (5) is minimized when orthogonal at any w (up to global scale). Orthogonal matrices preserve length and do not introduce compression along any dimension. Therefore, orthogonal matrices are associated with a uniform space.

[0248] The change of the initial image g(w) produced by the modification (e.g., the noise image) is calculated as the dot product between the image and each noise image y in the set of noise images g(w) y. Assuming that the initial image is modified based on each noise image, the dot product represents the speed at which the initial image moves in the direction of the noise image. The noise image defines the change in image space. The difference gradient of the dot product with respect to the intermediate latent code w can be calculated by The direction of each change is determined by the intermediate latent code w, which is used to generate the style signal. The direction indicates the direction in which the movement should occur in the intermediate latent space to maximize the change in the modified image. The length (magnitude) of the difference gradient indicates the speed of the change in the image relative to the corresponding change in the latent space (e.g., the second modification) of the noise image, which is in the direction of the difference gradient.

[0249] As shown in formula (5), the magnitude of the second modification (difference gradient length) is compared to the reference length (a), and the square of the difference is the regularization penalty for a particular choice of w and y calculated during training. The difference gradients should converge in the direction of equal length, indicating that the transformation between spaces is more uniform. During training, changes in the difference gradient length can be penalized by a loss function to perform smooth regularization. During training of the style-based generator system 100 or generator neural network 820, when the regularization process is repeated for multiple choices of w and y, formula (5) calculates the average of the regularization penalties for multiple choices that are minimized.

[0250] Due to the difference in gradient The computation of is somewhat expensive, so a general optimization method that applies to all regularization techniques can be used. Typically, the main loss function (e.g., the logistic loss) and the regularization term (e.g., R1) are written as a single expression and are therefore optimized simultaneously. However, the regularization term is computed much less frequently than the main loss function, which greatly reduces their computational cost and overall memory usage. For example, R1 regularization can be performed only once every 16 mini-batches without any disadvantages. In addition, since the regularization term is computed less frequently, training performance can also be improved. In one embodiment, the reduced computational frequency training of a generator neural network implementing weight demodulation is performed at a speed of 61 images / second, which is 40% faster than the 37 images / second achieved without weight demodulation and regularization.

[0251] Image quality issues have been identified, such as Fig. 6AThe artifacts 601, 603 and 605 shown in the image 7A are reduced by regularizing the smoothness between the intermediate data output by two different layers (or stages), or by regularizing the smoothness between the intermediate data and the output image, and reorganizing the synthetic neural network to implement weight demodulation can improve the quality. The weight demodulation method can also be applied to other generator neural networks. In addition, regularizing the smoothness between the intermediate data output by two different layers (or stages), or regularizing the smoothness between the intermediate data and the output image, reduces image artifacts, such as the artifacts shown in image 7A. Regularization techniques can be used in combination with weight demodulation or alone to improve the performance of the generator neural network.

[0252] Note that the techniques described herein may be embodied in executable instructions stored in a computer-readable medium for use by or in conjunction with a processor-based instruction execution machine, system, device, or apparatus. Those skilled in the art will appreciate that for some embodiments, various types of computer-readable media may be included to store data. As used herein, "computer-readable media" includes one or more of any suitable media for storing executable instructions of a computer program, such that an instruction execution machine, system, device, or apparatus can read (or obtain) instructions from the computer-readable medium and execute the instructions for executing the described embodiments. Suitable storage formats include one or more of electronic, magnetic, optical, and electromagnetic formats. A non-exhaustive list of conventional exemplary computer-readable media includes: portable computer floppy disks; random access memory (RAM); read-only memory (ROM); erasable programmable read-only memory (EPROM); flash memory devices; and optical storage devices, including portable compact disks (CDs), portable digital video disks (DVDs), and the like.

[0253] It should be understood that the arrangement of the components shown in the drawings is for illustrative purposes, and other arrangements are also possible. For example, one or more elements described herein may be implemented in whole or in part as electronic hardware components. Other elements may be implemented in software, hardware, or a combination of software and hardware. In addition, some or all of these other elements may be combined, some other elements may be completely omitted, and additional components may be added while still implementing the functionality of this article. Therefore, the subject matter described herein may be embodied in many different variations, and all of these variations are considered to be within the scope of this claim.

[0254] For the convenience of understanding the subject matter described herein, many aspects are described according to the action sequence. It will be appreciated by those skilled in the art that various actions can be performed by a dedicated circuit or circuit, by a program instruction executed by one or more processors, or by a combination of the two. The description of any action sequence herein is not intended to imply that the specific order described for executing the sequence must be followed. Unless otherwise noted herein or clearly contradictory to the context, all methods described herein can be performed in any suitable order.

[0255] The use of the terms "one", "an" and "the" and similar references in the context of describing the subject matter (particularly in the context of the appended claims) should be interpreted as covering both the singular and the plural. Unless otherwise specified herein or clearly contradicted by the context, it is plural. The term "at least one" followed by a list of one or more items (e.g., "at least one of A and B") should be understood to refer to an item selected from the listed items (A or B)) or any combination of two or more listed items (A and B), unless otherwise specified herein or clearly contradicted by the context. In addition, the above description is for illustrative purposes only, not for limiting purposes, because the scope of protection sought is defined by the claims below and their equivalents. Unless otherwise required, the use of any and all examples or exemplary language (e.g., "such as") provided herein is intended only to better illustrate the subject matter and does not limit the scope of the subject matter. In the claims and written specifications, the use of the term "based on" and other similar phrases to indicate the conditions for producing a result is not intended to exclude any other conditions for producing the result. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the claimed invention.

Claims

1. A computer-implemented method comprising: receiving a first weight for modifying a first feature in a first stage of a generator neural network, the generator neural network comprising a plurality of stages, wherein a last stage of the generator neural network produces output data; modulating the first weight with a first pattern control signal to produce a first modulated weight; calculating an expected standard deviation of the modified first feature; demodulating the first modulated weight using the expected standard deviation to produce a first normalized weight; applying, by the first stage, the first normalized weights to produce the modified first features; as well as The modified first feature is processed by at least one additional stage of the generator neural network to produce the output data, the output data including content corresponding to the first feature.

2. The computer-implemented method of claim 1 , wherein the first weight comprises a first value associated with a first execution of the generator neural network for processing a first input sample and a second value associated with a second execution of the generator neural network for processing a second input sample.

3. The computer-implemented method of claim 1 , wherein the application comprises: The first normalized weight is convolved with the first feature to generate the modified first feature.

4. The computer-implemented method of claim 1 , further comprising: Mapping a latent code in an input space to an intermediate space to generate an intermediate latent code, the intermediate space comprising linear subspaces, wherein each of the linear subspaces corresponds to a different attribute of the content; as well as An affine transform is applied to the intermediate latent code to produce the first pattern signal. The computer-implemented method of claim 1 , wherein the first style control signal controls at least a first property of the content.

6. The computer-implemented method of claim 1 , further comprising: receiving, at the additional stage of the generator neural network, a second weight for modifying a second feature; modulating the second weight with a second pattern control signal to produce a second modulated weight; demodulating the second modulated weight to generate a second normalized weight; as well as The second normalized weight is applied by the additional stage to the modified first feature to produce a modified second feature.

7. The computer-implemented method of claim 6, wherein the first style control signal modifies the first characteristic to change the content at a first scale, and the second style control signal modifies the modified first characteristic to change the content at a second scale.

8. The computer-implemented method of claim 6, further comprising: Noise is inserted into the modified first feature before the second normalized weight is applied by the additional stage.

9. The computer-implemented method of claim 1 , further comprising: receiving, at the final stage of the generator neural network, a second weight for modifying a second feature; modulating the second weight with a second pattern control signal to produce a second modulated weight; The second modulated weight is applied by the final stage to the modified first feature to produce the output data.

10. The computer-implemented method of claim 1, wherein the steps of receiving, modulating, demodulating, applying, and processing are performed in a cloud computing environment.

11. The computer-implemented method of claim 1, wherein the steps of receiving, modulating, demodulating, applying, and processing are performed on a server or in a data center to generate an image, and the image is streamed to a user device.

12. The computer-implemented method of claim 1, wherein the steps of receiving, modulating, demodulating, applying, and processing are performed to generate images for training, testing, or certifying a neural network employed in a machine, robot, or autonomous vehicle.

13. A system comprising: A processor configured to implement a generator neural network comprising a plurality of stages, wherein a final stage of the generator neural network produces output data, and wherein the generator neural network is configured to: receiving, at a first stage of the generator neural network, a first weight for modifying a first feature; modulating the first weight with a first pattern control signal to produce a first modulated weight; calculating an expected standard deviation of the modified first feature; demodulating the first modulated weight using the expected standard deviation to produce a first normalized weight; applying, by the first stage, the first normalized weights to produce the modified first features; as well as The modified first feature is processed by at least one additional stage of the generator neural network to produce the output data, the output data including content corresponding to the first feature.

14. The system of claim 13, wherein the first weight comprises a first value associated with a first execution of the generator neural network for processing a first input sample and a second value associated with a second execution of the generator neural network for processing a second input sample.

15. The system of claim 13, wherein the application comprises: The first normalized weight is convolved with the first feature to generate the modified first feature.

16. The system of claim 13, wherein the generator neural network is further configured to: Mapping a latent code in an input space to an intermediate space to generate an intermediate latent code, the intermediate space comprising linear subspaces, wherein each of the linear subspaces corresponds to a different attribute of the content; and An affine transform is applied to the intermediate latent code to produce the first pattern signal.

17. The system of claim 13, wherein the first style control signal controls at least a first attribute of the content.

18. A non-transitory computer readable medium storing computer instructions which, when executed by one or more processors, cause the one or more processors to perform the following steps: receiving a first weight for modifying a first feature in a first stage of a generator neural network, the generator neural network comprising a plurality of stages, wherein a last stage of the generator neural network produces output data; modulating the first weight with a first pattern control signal to produce a first modulated weight; calculating an expected standard deviation of the modified first feature; demodulating the first modulated weight using the expected standard deviation to produce a first normalized weight; applying, by the first stage, the first normalized weights to produce the modified first features; as well as The modified first feature is processed by at least one additional stage of the generator neural network to produce the output data, the output data including content corresponding to the first feature.