A stylistic experiment with inverted GANs
LOHO addresses the challenge of photorealistic hairstyle transfer by disentangling hair attributes in a GAN's latent space using two-stage optimization and gradient orthogonalization, resulting in improved image quality and control over hair attributes.
Patent Information
- Application Number
- FR2022001829
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-03-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-03-02
AI Technical Summary
Existing methods for controlled image manipulation, particularly in hairstyle transfer, struggle with photorealistic synthesis due to differences in structure references between source and target objects, leading to blurry artifacts and inadequate capture of hair shape and structure details.
The Latent Optimization of Hairstyles via Orthogonalization (LOHO) approach uses a two-stage optimization and gradient orthogonalization in the latent space of a generative adversarial network (GAN) to disentangle hair attributes into shape, appearance, and finer style, optimizing losses sequentially to enhance photorealism and control.
LOHO achieves photorealistic hair transfer even in cases of source/target misalignment, outperforming state-of-the-art methods in quality and realism, as measured by Fréchet Inception Distance (FID) scores, and allows for intuitive control over individual hair attributes.
Smart Images

Figure 00000032_0000 
Figure 00000032_0001 
Figure 00000032_0002
Abstract
Description
Description Title of the invention: Style test with inverted GANs Domain
[0001] — This application concerns the improvement of computer processing, of the processing of image and neural networks for image processing and more specifically systems, methods and techniques for style testing with inverse GANs, in par- especially the hairstyle test. Context
[0002] — Computer processing of images using neural networks has opened up new avenues for effects simulation. Advances in adversarial networks gene- negative networks (GAN for Generative Adversarial Networks) allow the synthesis of both conditional [15, 32] and unconditional
[19] of photorealistic images. In parallel, Recent work has enabled impressive manipulation of latent space by learning representations of disentangled particularities
[26] , allowing photorealistic global and local image manipulation.
[0003] — However, controlled manipulation of the attributes of synthesized images while Now photorealism remains a challenge to be met. Summary
[0004] — Style transfer, including hairstyle transfer, poses a problem due to dif- structural differences in source objects and target objects such as hair. In one embodiment, latent optimization of hairstyles by orthogonalization (LOHO for Latent Optimization of Hairstyles via Orthogonalization) is a optimization-based approach using GAN inversion to fill in details missing hair structure in the latent space during transfer of hairstyle. Hair is broken down into three attributes: perceptual structure (by example the shape), slimmer look and style, and includes custom losses for model each of these attributes independently. Two-stage optimization and gradient orthogonalization allows for disentangled optimization of space latent of the three hair attributes. Using LOHO for manipulation of latent space, users can synthesize new photorealistic images by manipulating hair attributes, individually or jointly, in transferring the desired attributes from reference hairstyles. In a mode of realization, the LOHO approach (e.g. two-stage optimization and gradient orthogonalization for disentangling latent space optimization style attributes) is generalizable to other style transfers such as clothes.
[0005] = The invention relates to a method for performing style transfer using artificial intelligence (AI), the style comprising a plurality of style attributes, the method comprising: processing a plurality of images comprising a first image ( / ,), a second image (Z;) and a third image (J;) using an artificial intelligence network (LA) framework comprising a generative adversarial network (GAN) generator and two-stage optimization to produce a synthesized image (Iç) comprising an identity represented by the first image ( / ;) and a style determined from at least one style attribute represented by the second image ( / ) and at least one style attribute represented by the third image (I); wherein the network framework is configured to optimize a latent space of the GAN model to perform the style transfer while disentangling the at least one style attribute represented by / , and the at least one style attribute represented by / ,. In a particular embodiment, L comprises an identity region, a style region and a background region and wherein, at a first stage according to an objective function for optimizing the latent space, the network framework is configured to: reconstruct the identity represented by I, in the identity region of Iç; and reconstruct the at least one style attribute represented by L in the style region of Le. In a particular embodiment, at a second stage according to the objective function, the network framework is configured to: respectively transfer each of the at least one style attribute represented by I; to the style region of Ze. In a particular embodiment, the network framework is configured to retouch the background region after the style transfer. In a particular embodiment, the network framework is configured to perform gradient orthogonalization in the two-stage optimization to disentangle the at least one style attribute represented by / , and the at least one style attribute represented by / ,. In a particular embodiment, the style is a hairstyle; the at least one style attribute represented by I, is a hair shape and structure attribute; the at least one style attribute represented by / ; is i) an appearance attribute and ii) a finer style attribute. In a particular embodiment, the GAN generator is defined from a pre-trained GAN configured for style transfer. In a particular embodiment, the two-stage optimization optimizes losses including: a loss of identity reconstruction (L;); a loss of reconstruction of hair shape and structure (L,); a loss of appearance (L,); and a loss of finer style (L,). In a particular embodiment, Let L, are optimized at the first stage without optimizing L, and L, ; and L, L,, L, and L, are optimized at the second stage where L, is optimized by gradient orthogonalization to avoid competition between the finer appearance and style attributes of I, with those of I. Brief description of the drawings [Figs. 1A, 1B, 1C, 1D, 1E] Figs. 1A, 1B, 1C, 1D and 1E are images 100, 102, 104, 106 and 108 illustrating hair transfer samples synthesized according to one embodiment. [Fig.2] [Fig.2] is a framework of a two-stage network structure with background mixing according to one embodiment. [Fig.3] [Fig.3] is an image table showing the effect of two-stage optimization according to one embodiment. [Fig.4] [Fig.4] is an image array showing an effect of gradient orthogonalization (GO) according to one embodiment. [Figs. 5A, 5B] Figs. 5A and 5B are graphs showing an effect of GO according to one embodiment. [Fig.6] [Fig.6] is an image table showing a qualitative comparison of MichiGAN and LOHO according to one embodiment. [Fig.7] [Fig.7] shows an array of example images representing the editing of individual attributes according to one embodiment. [Fig.8] [Fig.8] shows an array of example images representing the editing of multiple attributes according to one embodiment. [Figs. 9A, 9B] Figs. 9A and 9B are image charts showing examples of misalignment according to one embodiment. [Figs. 10A, 10B] Figs. 10A and 10B are image charts showing examples of transferring hair details according to one embodiment. Detailed Description Various embodiments are detailed herein in connection with hairstyle transfer. It will be understood by those skilled in the art that other style transfer tasks may be implemented using the techniques, methods, and apparatuses described herein and as adapted to the other style transfer task. In one embodiment, users are allowed to make semantic and structural edits to their portrait image with fine-grained control. As a particularly tough and commercially interesting example, hairstyle transfer is evaluated and described herein, in which a user can transfer attributes of hair from multiple independent source images to manipulate one's own portrait image. In one embodiment, Latent Hairstyle Optimization by Orthogonalization (LOHO) is a two-stage optimization process in the latent space of a generative model, such as a Generative Adversarial Network (GAN) [12, 18]. An example of a technical contribution is that attribute transfer is controlled by orthogonalizing the gradients of the transferred attributes so that the application of one attribute does not interfere with others. Previous work on hairstyle transfer
[30] produced realistic hair appearance transfer using a complex pipeline of GAN generators, each specialized for a specific task such as hair synthesis or background retouching. However, using pre-trained retouching networks to fill in the holes left by misaligned hair masks produces blurry artifacts. To produce more realistic synthesis from a transferred hair shape, the missing shape and structure details are filled, in one embodiment, by using the prior distribution of a single pre-trained GAN to generate faces. LOHO achieves photorealistic hairstyle transfer even in the presence of source / target hair misalignment. LOHO directly optimizes the extended latent space and noise space of a pre-trained Style GANv2
[20] . Using carefully designed loss functions, the LOHO approach decomposes hair into three attributes: perceptual structure (e.g., shape), appearance, and finer style. Each of these attributes is then modeled individually, allowing for greater control over the synthesis process. Moreover, LOHO significantly improves the quality of synthesized images by using a two-stage optimization, where each stage optimizes a subset of losses in the objective function. Some of the losses, due to their similar design, are optimized sequentially and not jointly in the LOHO approach.Finally, LOHO uses gradient orthogonalization to explicitly disentangle hair attributes during the optimization process. Figs. 1A, 1B, 1C, 1D, and 1E are images 100, 102, 104, 106, and 108 for illustrating hairstyle transfer samples synthesized using LOHO according to one embodiment. For the portrait images 100 and 106 given in Figs. 1A and 1D, LOHO is capable of manipulating hair attributes based on multiple input conditions. The inset images (e.g., 102A, 104A, and 108A) represent the target hair attributes in the following order: finer appearance and style, structure, and shape. LOHO can transfer the finer appearance and style (e.g., as shown in Fig. 1B), and the perceptual structure (e.g., as shown in Fig. 1B) while keeping the background unchanged. Additionally, LOHO can modify multiple hair attributes simultaneously and independently (e.g., as shown in Figure 1C). According to the particularities of the LOHO approach, it is provided: @ a novel approach to perform hairstyle transfer by optimizing the extended latent space and noise space of StyleGANv2. @ an objective function that includes multiple losses tailored to modeling each key hairstyle attribute. @ a two-stage optimization strategy that leads to significant improvements in the photorealism of synthesized images. @ the introduction of gradient orthogonalization, a general method for jointly optimizing attributes in the latent space without interference. The effectiveness of gradient orthogonalization is demonstrated both qualitatively and quantitatively. @ Hairstyle transfer on portrait images in nature with evaluation using the Fréchet Inception Distance (FID) score. FID is used to evaluate generative models by calculating the distance between inception features
[29] for real and synthesized images in the same domain. The calculated FID score shows that the framework and associated methods and techniques according to the embodiments can outperform current state-of-the-art (SOTA) hairstyle transfer results. Related works Generative adversarial networks. Generative models, especially GANs, have achieved great success in various computer vision applications, such as image-to-image translation [15, 32, 40], video generation [34, 33, 9], and data augmentation for discriminative tasks such as object detection
[24] . GANSs [18, 3] transform a latent code into an image by learning the underlying distribution of training data. A more recent architecture, StyleGANv2
[20] , has served as a benchmark for generating photorealistic human faces. However, training these networks requires significant amounts of data, which significantly increases the barrier of training SOTA GANs for specific use cases such as hairstyle transfer.Therefore, methods built using pre-trained generators are becoming the de facto standard for performing various image manipulation tasks. In one embodiment, Style GANv2
[20] is exploited as an expressive pre-trained face synthesis model, and an optimization approach for using pre-trained generators for controlled attribute manipulation is highlighted. Integration of latent space. Understanding and manipulating space Latent space reconstruction of GANs via inversion has become an active area of research. GAN inversion involves embedding an image into the latent space of a GAN such that the synthesized image resulting from this latent embedding is the most accurate reconstruction of the original image. I2S [1] is a framework capable of reconstructing an image by optimizing the extended latent space / * of a pre-trained Style GAN
[19] . Embeddings sampled from 74 / * are the concatenation of 18 different 512-dimensional w vectors, one for each layer of the StyleGAN architecture. I2S++ [2] further improved the image reconstruction quality by additionally optimizing the noise space N. Furthermore, including semantic masks in the I2S++ framework allows users to perform tasks such as image retouching and global editing.Recent methods [13, 27, 41] teach an encoder to map inputs from image space directly to the 4 / * latent space. In one embodiment, LOHO follows GAN inversion, in that the approach optimizes the 4 / * space and the N noise space of the more recent StyleGANVv2 to perform semantic hair editing on portrait images. In one embodiment, LOHO further uses a GAN inversion algorithm for simultaneous manipulation of spatially local attributes, such as hair structure, from multiple sources, while avoiding interference between different competing objectives of the attributes. Hairstyle Transfer. Hair is a difficult part of the human face to model and synthesize. Previous work on hair modeling includes capturing hair geometry [8, 7, 6, 35], and using this geometry downstream for interactive hair editing. However, these methods are unable to capture key visual factors, which compromises the quality of the result. Although recent work [16, 23, 21] has shown progress in using GANs for hair generation, these methods do not allow intuitive control of synthesized hair. MichiGAN
[30] proposed a conditional synthesis GAN that allows controlled manipulation of hair. MichiGAN disentangles hair into four attributes by designing deliberate mechanisms and representations and produces SOTA results for the evolution of hair appearance.However, MichiGAN struggles to handle hair transfer scenarios with arbitrary shape evolution. This is because MichiGAN implements the [orm change by using a separately trained retouch network to fill its “holes” created during the hair transfer process. In contrast, aspects of the present method make use of the prior distribution of a pre-trained GAN network to “fill” the latent space rather than the pixel space. Compared to MichiGAN, aspects of the present method produce more realistic synthesized images in the difficult case where the shape of the hair evolves. Methodology Context The objective function proposed in Image2StyleGAN++ (I2S++) [2] is observed as follows: L= ALsayie(M, G(w,n), y) ) + ApLpercep (Mp, G{w,n), x) +258 || M, OG(w,n)-x |; At, 2 +222 || (1-M,) OG(w,n)-v1; where w is an embedding in the extended latent space q4 / * of StyleGAN, ” is a noise vector embedding, M, Mm and Mp are binary masks to specify image regions contributing to the respective losses, © denotes the Hadamard product, G is the StyleGAN generator, * is the image to be reconstructed in the mask M and Ÿ is the image to be reconstructed outside of M, i.e. in (1-M,,). Variations on the 12S++ objective function of equation (1) are used by [2] to improve image reconstruction, image crossing, image retouching, local style transfer and other tasks. For hairstyle transfer, one wishes to perform both image crossing and image retouching. Transferring a hairstyle to another person requires image crossing, and the remaining region where the original person's hair was located must be retouched. Frame Fig. 2 shows a two-stage network framework with background mixing (retouching) 200 for LOHO according to one embodiment. The network framework 200 represents an inference time frame as opposed to a training frame. The GAN generator 202 includes a pre-trained GAN for style transfer. Starting from the “average” face 204 (ç), in stage 1 (206), the network framework 200 reconstructs a target identity (from 7, (208)) and a target perceptual hair structure (from / > (210)). In stage 2 (212), the framework 200 transfers a finer hair style and appearance (from / 3 (214)), while maintaining the perceptual structure by gradient orthogonalization (GO). Finally, / ç is mixed with the background of / }. For the hairstyle transfer problem, three portrait images of people are provided: 1, 13 and 13, (208, 210 and 214), Consider the transfer of the shape attribute and structure of the hair of person 2 (l-), and the attributes of the appearance and finer style of the hair of person 3 (13) to person 1 (Z;). Let Mf (208A) be the binary face mask of 71, and M, M and M (not shown) the binary hair masks of 1, lzet a. Then, M'' is separately dilated and eroded by approximately 20% to produce the dilated version, M'A , and the eroded version, Me (210A). Let My = MF - Mi be the ignored region (e.g., the non-face, non-hair background) that requires retouching. In the embodiment, M is not optimized, instead Style GANv2 (GAN generator 202) is used to retouch relevant details in this region. This feature allows the network framework 200 to perform hair shape transfer in situations where the hair shapes of person 1 and person 2 are misaligned.At both stages 206 and 212, a segmentation network 218 is used to process the synthesized image (respectively as input at stage 1 206 and after it has been refined and provided as input at stage 2 212) and the input images (1, !» and / 3) to define respective segmentation masks. At both stages 206 and 212, according to one embodiment, a pre-trained CNN 220 (e.g. VGG
[28] ) for facial image processing is used to extract high-level features as described further. In embodiment 200, a background of / y is not optimized. Therefore, to recover the background, at 216, in the embodiment, the background of / ; is smoothly blended with the foreground (hair and face) of the synthesized image ( / ç). Specifically, in the embodiment, GatedConv
[36] (not shown) is used to retouch the masked foreground region of / ,, after which blending is performed. Objective To perform hairstyle transfer, losses are used to supervise the relevant regions of the synthesized image. To keep the notation simple, let fn G( R+ M) be the synthesized image, and M, (204A) and M', (204B) be its corresponding face and hair regions. Identity Reconstruction, In order to reconstruct the identity of person 1, in one embodiment, the Learned Perceptual Image Patch Similarity (LPIPS) loss
[39] is used. LPIPS is a perceptual loss based on human similarity judgments and is therefore well-suited for facial reconstruction. To compute the loss, a pre-trained VGG
[28] 220 is used to extract high-level features
[17] for both 1yet!e. Features are extracted and summed, in one embodiment, from the 5 blocks of the VGG 220 to form a face reconstruction objective: L4= 42 LPIPS[V6G{1© (MI (IM))). Vec*(15© (M{ (1-h)))] 2 ù » desi hd to where to denotes a VGG block, and Mi) ( 1 M; ) represents the target mask, calculated as the overlap between Mi and the foreground region of the dilated mask MY . This formulation places a soft constraint on the target mask. Hair shape and structure reconstruction. To recover the hair information of person 2, supervision is applied via the LPIPS loss. However, the naive use of M! as the target hair mask may cause the generator 202 to synthesize hairs on unwanted regions of 7 ç. This is especially the case when the target face and hair regions are not well aligned. To solve this problem, the eroded mask, Me, is used because it places a soft constraint on the target placement of the synthesized hairs. M", combined with Ml, allows the generator to process misaligned pairs by retouching relevant information in non-overlapping regions. To calculate the loss, we extract features from blocks 4 and 5 of the VGG 220 corresponding to the hair regions of / 2, / ç to form a perceptual hair structure objective: = b he “nbf he) 1,5 LEpyus LPIPS[VGG*(LO M), V6GP(IO M°°)] 8 Hair appearance transfer. Hair appearance refers to the overall uniform color of hair that is independent of hair shape and structure. Therefore, it can be transferred from samples of different hair shapes. To transfer the target appearance, in one embodiment, 64 feature maps are extracted from the shallowest layer of the VGG ( relu\_ 1) as it best captures the color information. Then, average pooling is performed in the hair region of each feature map to eliminate spatial information and capture the overall appearance. An estimate of the average appearance Δ in R°**1 is obtained as Δ(xy)=EP , where #(x) represents the 64 VGG feature maps of image *, and Ÿ indicates the relevant hair mask. Finally, the squared L2 distance is calculated to give a hair appearance target: La= nu afr nah\ air nf \ n° (4) 1 A(Z, M3) - A(16 ME) 11, Finer hair style transfer. In addition to the overall color, hair also contains finer details such as strand styles, and shade variations between hair strands. Such details cannot be captured only by the appearance loss that estimates the global mean. Better approximations are therefore needed to compute the finer different styles between hair strands. The Gram matrix
[10] captures finer details of hair by computing the second-order associations between high-level feature maps. In one embodiment, the Gram matrix is computed after feature extraction from the layers: {relul_2; relu2_2; relu3_3, relu4_4} from VGG G'(y1) =yfy! 6) where,} represents feature maps in R'""* that are extracted from layer / , and G / is the Gram matrix at layer / . Here, C represents the number of channels, and H and W are the height and width. Finally, the squared distance La is calculated as follows ny1° © 55 IDE 1 6'(v6G(15O Mh))-0'(vac'(r© Mb)) 1° Noise map regularization. Explicitly optimizing n EN noise maps can cause the optimization to inject effective signal into them. To prevent this, in one embodiment, noise map regularization terms
[20] are introduced. For each noise map larger than 8x8, in one embodiment, a top-down pyramid network is used to reduce the resolution to 8x8. The pyramid network averages the 2x2 pixel neighborhoods at each step. Further, in one embodiment, the noise maps are normalized to be zero-mean and unit-variance, producing a noise objective: L,= nispe 11 1 0 179 (mn Is Enpuyls 3) -my(x-15)]" pi ES Etujls y) "m0 Y- D] where iorc represents the original noise map and #50 represents the downsampled versions. Similarly, ” / ÿ represents the resolution of the original or downsampled noise map. Combining all losses, the overall optimization objective is L= aro muin | A.L4+ IL +31. +)L+iLi (8 arg min[ à / L;+ AL, + daLa+44L5+AaLn] (WN} Optimization strategy Two-stage optimization. Considering the similar nature of the losses L,., Ly, and L,, It is assumed that by jointly optimizing all losses from the start, the hair information of person 2 will compete with that of person 3, resulting in undesirable synthesis. To mitigate this problem, the overall objective is optimized in two stages. In stage 1, only the target identity and the perceptual structure of the hair are reconstructed, i.e., Δa and Δ, in Equation 8 are set to zero. In stage 2, all losses except L,, are optimized; stage 1 will provide a better initialization for stage 2, thus driving the model to convergence. However, this technique has a drawback in itself. There is no supervision to maintain the perceptual structure of the reconstructed hairs after stage 1. This lack of supervision allows StyleGANv2 to call upon its prior distribution to retouch or remove hair pixels, thus canceling the initialization of the perceptual structure found in stage 1. It is therefore necessary to include L; in stage 2 of the optimization. Gradient Orthogonalization. L,, by design, captures all of Person 2's hair attributes: perceptual structure, appearance, and finer style. Therefore, the gradient of L, competes with gradients corresponding to Person 3's appearance and finer style. This problem is solved by manipulating the gradient of L, such that its information about appearance and finer style is suppressed. More specifically, gradients of L,'s perceptual structure are projected onto the vector subspace orthogonal to its appearance and finer style gradients. This allows the transfer of Person 3's hair appearance and finer style while preserving Person 2's hair structure and shape. Assuming WT latent space optimization, the computed gradients are 8R 7 Vw+L£, = Vw+Le8s = Vw*tLe (9) where L,, La, and L; are the LPIPS, aspect and finer style losses calculated between / 2, and / c.To apply orthogonality, we seek to minimize 8r!( 84 + #5.) . This is achieved by moving the component of $p, parallel to , away using (8a.+85,) the gradient orthogonalization of the aspect of the structure . Br, sets) p.124 (10) ER (Sa +65.) _8eP(sats) (s | > late, lE (PA after each iteration in stage 2 of optimization. Experiences and results Implementation details Datasets. In one embodiment, the Flickr-Faces-HQ (FFHQ) dataset
[19] which contains 70,000 high-quality images of human faces was used. Flickr-Faces-HQ exhibits significant variation in ethnicity, age, and hair style patterns. In one embodiment, image tuples (1, 2, 13) were selected based on the following constraints: (a) each image in the tuple must have at least 18% of pixels containing hair, and (b) the facial regions of 7; and / ” must align to a certain degree. To enforce these constraints, in one embodiment, hair and face masks were extracted using the Graphonomy segmentation network
[11] and 68 2D facial landmarks were estimated using 2D-FAN [4]. For each / ; and I”, the intersection over union (IoU) and pose distance (PD) were calculated using the corresponding face masks and facial landmarks.Finally, in one embodiment, selected tuples were divided into three categories, easy, medium, and hard, such that the following IoU and PD constraints were both met, as in Table 1. [Table 1] Criteria used to define head pose alignment between sample tuples. Category Easy Medium Hard IOU Range |(0:8;1:0] |(0:7;0:8] |(0:6;0:7] PD Range |[0:0;2:0) |[2:0;4:0) |[4:0; 5:0) Training parameters. In one embodiment, the Adam optimizer
[22] was used with an initial learning rate of 0.1 and was annealed using a cosine program
[20] . In one embodiment, the optimization is done in two stages, each stage consisting of 1000 iterations. Based on the ablation studies, in one embodiment, an aspect loss weight λ of 40, a finer style loss weight λ of 1.5 X 105, and a noise regularization weight n of 1 X 10° were selected. The remaining loss weights were set to 1. Effect of two-stage optimization [Fig. 3] is a four-column image table 300 showing the effect of two-stage optimization according to one embodiment. In the image table 300, column 1 (300A) shows reference images; column 2 (300B) shows the identity (e.g., person 1); column 3 (300C) shows images synthesized when the losses are jointly optimized; and column 4 (300D) shows images synthesized by two-stage optimization + gradient orthogonalization. Joint optimization of all losses in an objective function causes diverging the frame. While the identity is reconstructed, the hair transfer fails (Col. 3, 300C of [Fig. 3]). The structure and shape of the synthesized hair are not preserved, leading to undesirable results. On the other hand, performing the two-stage optimization significantly improves the synthesis process, allowing the generation of photorealistic images consistent with the provided references. Not only is the identity reconstructed, but the hair attributes are transferred according to the desired requirements. Effect of gradient orthogonalization Fig. 4 is an image array 400 showing an effect of gradient orthogonalization (GO) according to one embodiment. Row | (400A) shows four reference images (from left to right): Identity; Target hair appearance and finer style; Target hair structure; and shape (mask). Row 2 (400B) shows two pairs of images, e.g., i) (a) and (b); and ii) (c) and (d) comprising respective synthesized images and their corresponding hair masks for the no-GO and GO methods, respectively. Figs. 5A and 5B are graphs 500 and 502 showing an effect of GO according to one embodiment. Graphs 500 and 502 show, respectively, the LPIPS hair reconstruction loss (GO vs. no-GO) versus iterations and the trend of #z!( 84+ 8s,) (le-5) at stage 2 of the optimization. Two variations (embodiments) of the framework are compared: no-GO and GO. GO involves the manipulation of gradients of L, by gradient orthogonalization, while no-GO leaves L, intact. No-GO fails to preserve the target hair shape, resulting in an increase of L, at stage 2 of the optimization, i.e., after iteration 1000 (Figs. 4 and SA-S5B). The appearance and finer style losses, being position invariant, do not contribute to the shape. GO, on the other hand, uses the reconstruction loss at stage 2 and preserves the target hair shape. As a result, the calculated IoU between Mt and M* increases from 0:857 (for no-GO) to 0:932 (GO). Mass 0) In terms of gradient disentanglement, the similarity between &, and (8 +g DA 5.) decreases over time, indicating that the framework embodiment with GO is able to disentangle the shape of Person 2's hair from its finer appearance and style (Figs. SA-5B). This disentanglement allows for a seamless transfer of Person 3's finer appearance and style of hair to the synthesized image without causing any model divergence. From there, the GO version of the framework is used for comparisons and analysis. Comparison with SOTA Hair style transfer. The GO version of the framework was compared with the SOTA MichiGAN model. MichiGAN contains separate modules for estimating: (1) hair appearance, (2) hair shape and structure, and (3) background. The appearance module bootstraps the generator with its output feature map, replacing the randomly sampled latent code in traditional GANS
[12] . The shape and structure module produces hair masks and orientation masks, by denormalizing each SPADE ResBIk
[25] in the backbone generation network. Finally, the background module gradually blends the generator outputs with background information. In terms of training, MichiGAN follows the pseudo-supervised regime. Specifically, features (which are estimated by the modules) of the same image are fed into MichiGAN to reconstruct the original image.At test time, FID is calculated for 5000 images at uniform 512px resolution, randomly sampled from the FFHQ test distribution. To ensure comparability of results, the above procedure was followed and FID scores
[14] were calculated for LOHO. In addition to calculating FID on the whole image, in one embodiment, the score was calculated based only on the synthesized facial and hair regions, with the background masked. Obtaining a low FID score on masked images would mean that the LOHO model is in fact capable of synthesizing realistic hair and facial regions. This embodiment is called LOHO-HF. Since the background retouching module of MichiGAN is not publicly available, GatedConv
[36] is used in one embodiment to retouch relevant features in the masked hair regions. Quantitatively, LOHO outperforms MichiGAN and achieves an FID score of 8.419, while MichiGAN achieves 10.697 (Table 2). This improvement indicates that the LOHO optimization framework is capable of synthesizing high-quality images. LOHO-HF achieves an even lower score of 4.847, which attests to the superior quality of the synthesized hair and face regions. 5000 uniformly and randomly sampled images from the FFHQ test set were used. Note that the “|” symbol indicates that a lower value represents a better result. [Table 2] Fréchet Distance (FID) for different processes MichiGAN Process |LOHO-HF |LOHO FID (1) 10,697 4,847 8,419 [Fig.6] is an array of images 600 showing a qualitative comparison of MichiGAN and LOHO according to one embodiment. In each of the 6 rows showing 6 respective examples, column 1 (narrow) (600A) shows images of reference; column 2 (600B) shows an identity person; column 3 (600C) shows the output of MichiGAN; and column 4 shows the output of LOHO (zoomed for better visual comparison). In rows 1 and 2, the examples show that MichiGAN “copy-pastes” the target hair attributes, while LOHO shuffles the attributes, thus synthesizing more realistic images. In rows 3 and 4, the examples show that LOHO handles misaligned examples better than MichiGAN. In rows 5-6, the examples show that LOHO transfers the correct style information. Qualitatively, LOHO is able to synthesize better results for tough examples. LOHO naturally blends the target hair attributes with the target face, as shown in image array 600. MichiGAN naively copies the target hair onto the target face, resulting in illumination inconsistencies between the two regions. LOHO handles pairs with varying degrees of misalignment, while MichiGAN is unable to do so due to its reliance on blending background and foreground information in pixel space rather than latent space. Finally, LOHO transfers relevant style information on par with MichiGAN.In fact, due to an addition of the style objective to optimize second-order statistics by matching Gram matrices, LOHO synthesizes hair of variable color even when the source person of the hair shape has uniform hair color, as in the bottom two rows (rows 5-6) [Fig.6]. Identity reconstruction quality. LOHO was also compared with two recent image embedding methods: I2S [1] and I2S++ [2]. I2S presents the framework capable of reconstructing high-quality images by optimizing the latent space W*. I2S also shows how the latent distance, calculated between the optimized style latent code W" and ® of the average face, is related to the quality of synthesized images. I2S++, in addition to I2S, optimizes the noise space N in order to reconstruct images with high PSNR and SSIM values. Therefore, to evaluate the ability of LOHO to reconstruct target identity with high quality, similar metrics are calculated on the facial region of synthesized images. Since retouching in the latent space is an integral part of LOHO, the results are compared with the performance of I2S++ on retouching images at a resolution of 512 px. The model (LOHO), despite the challenging task of hairstyle transfer, is able to achieve comparable results (Table 3). I2S shows that the acceptable latent distance for a valid human face is in the range [30:6; 40:5] and LOHO is within this range. Moreover, the PSNR and SSIM scores for LOHO are better than those of I2S++, proving that LOHO reconstructs identities that satisfy the local structure information. [Table 3]: PSNR, SSIM and acceptable latent distance range || w*-% || for different processes Ur method [PSNR (dB) (1)_|- SSIM (1) |- Iw-&1|f Editing attributes The LOHO framework and associated method, according to embodiments, are capable of editing attributes of portrait images in the wild. In this configuration, an image is selected, and then an attribute is edited individually by providing reference images. For example, the structure and shape of hair can be modified while keeping the appearance and background of the hair unedited. The LOHO framework and associated method, according to embodiments, calculate the non-overlapping hair regions and fill the space with relevant background details. At the end of the optimization process, the synthesized image is blended with the retouched background image. The same is true for modifying the finer appearance and style of the hair. LOHO disentangles the hair attributes and allows them to be edited individually and jointly, leading to desirable results. Thus, [Fig.7] shows an image array 700 of examples representing the editing of individual attributes and [Fig. 8] shows an image array 800 of examples representing the editing of multiple attributes. The image array 700 includes examples of appearance and finer style in a first sub-array 700A (examples on the left side) and examples of shape in a second sub-array 700B (examples on the right side). The results show in [Fig. 7] that the model is capable of editing individual hair attributes without them interfering with each other. In [Fig. 8], the image array 800 represents results that show that the LOHO framework and the associated method, according to embodiments, are capable of jointly editing hair attributes without interfering with each other. Limitations Figs. 9A and 9B are image arrays 900 and 902 showing examples of misalignment according to one embodiment. The LOHO framework and associated method, according to embodiments, may be sensitive to extreme cases of misalignment (Fig. 9). In the study, such cases are classified as difficult. They may cause the framework and associated method to synthesize a shape and structure of unnatural hair. GAN-based alignment networks [38, 5] can be used to transfer hair pose or alignment to difficult samples. Figs. 10A and 10B are arrays of images 1000 and 1002 showing examples of hair detail deferral according to one embodiment. This may be due to the imperfect hair segmentation by Graphonomy
[11] . More sophisticated segmentation networks [37, 31] can be used to mitigate this problem. Real-world applications [Fig. 11] is a drawing of a computer network 1100 showing a development computing device 1102, a website computing device 1104, a cloud computing device 1105, an application distribution computing device 1106, and respective peripheral computing devices, namely a smartphone 1108 and a tablet 1110, according to one embodiment. The computing devices are coupled via a communications network 1112. The computer network 1100 is simplified. For example, the website computing device 1104, the cloud computing device 1105, and the application distribution computing device 1106 are examples of devices of respective website, cloud, and application distribution systems. The communications network 1112 may include a plurality of wired and / or wireless networks, which may include private and public networks. In the embodiment, the development computing device 1102 is coupled to a data store 1114 (which may include a database) storing one or more data sets such as for configuring (which may include training) and testing, etc. a network framework 1116. According to one embodiment, the network framework 1116 includes a GAN generator and is configured for two-stage optimization to perform style transfer, particularly hairstyle transfer. The data store 1114 may store software, other components, tools, etc. to support development and implementation. In another embodiment, not shown, the data sets are stored on the storage device of the development computing device 1102. The development computing device 1102 is configured to define the network framework 1116 according to one embodiment as described herein. For example, the development computing device 1102 is configured to configure the network framework of [Fig. 2]. In one embodiment, the development computing device 1102 is configured to incorporate a pre-trained GAN configured for style transfer, such as Style GANv2 or a variant thereof, as shown [Fig.2]. In one embodiment, the development computing device 1102 defines the network framework 1116 to run on a server computing device such as the website computing device 1104 or a device accessible via the website computing device 1104. In one embodiment, the development computing device 1102 defines the network framework 1116 to run on the cloud computing device 1105. The development computing device 1102 (or another, not shown) incorporates an interface to the network framework into an application 1120A, such as for a website and / or an application 1120B for the application distribution computing device (e.g., 1106) for distribution to respective peripheral devices such as the smartphone 1108 and a tablet 1110. The present embodiment of [Fig. 11] does not show the storage and execution of a network framework per se on edge devices, such as a tablet, a smartphone, etc. because an optimization process in such a framework requires significant processing resources. Execution on an edge device with resources typical for such devices would take a (relatively) long time (in the order of 10 to 20 minutes) for a single style transfer. Execution of the framework on a personal computer, a game console, or another device generally intended for individuals would also be possible with a similar execution time. But, since the execution time is not sufficient at present to be perceived as interactive (not yet), [Fig. 11] shows a more practical use case where the network framework 1116 is provided by a remote server (e.g., a website or a cloud device).In this paradigm, images of identity and style attributes are submitted to the server and a user waits for a response (e.g., a synthesized image incorporating the transferred identity and style). In one embodiment, the application distribution computing device 1106 provides application store services (an example of e-commerce services) for distributing applications to run on target devices running supported operating systems (OS). An example of an application distribution service provided by computing devices is Apple's App StoreTM for iPhoneTM or iPADTM devices running iOSTM or iPADOSTM (trademarks of Apple Inc. Cupertino, CA). Another example of a service via applicable computing devices is Google PlayTM (trademark of Google LLC, Mountain View, CA) for smartphones and tablets from various sources that run AndroidTM OS (trademark of Google LLC, Mountain View, CA). In the embodiment, the phone in- telligent 1108 receives application 1120A from website computing device 1104 and tablet 1110 receives application 1120B from application distribution computing device 1106. In the present paradigm of both website and application distribution examples, the network framework 1116 is not communicated to the edge devices. The edge devices are given access (via respective application interfaces) to the network framework 1116 that is executed on behalf of the edge devices. For example, a website computing device executes the network framework 1116 for application 1120A and a cloud computing device executes it for application 1120B. The applications 1120A and 1120B, in respective embodiments, are configured for hair styling (effect simulation applications), providing a virtual and / or augmented reality experience. Operations are further described below. [Fig. 12] is a block diagram of a representative computing device 1200. The computing devices of [Fig. 11] are configured similarly and according to their respective needs and functions. The computing device 1200 includes a processing unit 1202 (e.g., a central processing unit, and / or a graphics processor, etc.), a storage device 1204 coupled thereto and storing instructions (and data), which instructions, when executed by the processing unit, configure operations of the computing device, e.g., to perform a method. Additional components include: communication units 1206 for coupling the device by wired or wireless means to a communications network; an input device 1208; an output device 1210, which may include a display device 1212.In some examples, the display device is a touchscreen device providing an input / output device. Components of the computing device 1200 are coupled via an internal communications system 1214, which may have external ports for coupling to additional devices. In some examples, an output device includes a speaker, a buzzer, a light, an audio output jack, a fingerprint reader, etc. In some examples, the input device includes a keyboard, a button, a microphone, a camera, a mouse or pointing device, etc. Other devices (not shown) may include a location determining device (e.g., a GPS). The storage device, in one example, stores an operating system 1216, user applications 1218 (application 1120A or 1120B may be one of them), a browser 1220 (one type of user application) for browsing websites and running executables such as application 1120A for accessing the GAN generator 1116 received from a website; and data 1222, e.g., images and / or video frames from a camera or otherwise received. In [Fig. 11], the communicated elements (data) (as will be apparent) are shown next to respective communication connections between computing devices and the communication network. An element placed next to a particular computing device is received by that device and an element placed closer to the communication network is communicated from the respective computing device to another device, as described below. Still referring to [Fig. 11], in one example, a user of the smartphone 1108 uses a browser and visits a website provided by the website computing device 1104. The smartphone 1108 receives the application 1120A (e.g., a web page and associated code and / or data) providing access to the network framework 1116. In the example, the application is an effects simulation application, such as a hair try-on application providing a virtual and / or augmented reality experience. The user uses a camera and obtains a still or video image (e.g., a selfie), which source image is communicated by the application for processing by the network framework 1116 as an image / , 1122. (If provided as a video, only one image (e.g., a still image) may be extracted therefrom.) Via an interface (or respective interfaces) such as via a graphical user interface facilitated by the application 1120A, the user selects reference images (e.g., images / > and / ;) from a store 1124 of reference images representing i) the shape and structure of the hair (image / >), ii) the appearance of the hair (image / ), and iii) a finer style of hair (image / :) to try. Each of i), ii), and iii) includes a respective hairstyle attribute. The effects of the hairstyle trial (attribute features) are generated and / or transferred to a resulting image (Zç) 1226 using the network framework 1116 while preserving the identity represented in the image / , 1122. The resulting image 1226 (Iç) is communicated back to the smartphone 1108 and displayed via its display device. In one embodiment, / ç is displayed in a graphical user interface to be compared to / ,. In one embodiment, / ç is displayed in a graphical user interface to be compared to the set of / ,, Z; and I. In one embodiment, the resulting image 1126 is stored in a storage device. In one embodiment, the resulting image 1226 is shared (communicated) via any of social media, text message, email, etc. In one embodiment, the website computing device 1104 is enabled for services (e.g., e-commerce services) and facilitates purchasing hair products such as one or more products associated with the reference images virtually tried on via the application 1120A. In one embodiment, the website computing device 1104 provides a recommendation service for recommending products. In one embodiment, the website computing device 1104 provides a recommendation service for recommending services (e.g., hair services). In one embodiment, the application 1120A provides an interface for engaging the user in a conversation to solicit hair, lifestyle, and / or user data, which may include the image / , 1122. In one embodiment, the data is analyzed and a recommendation is generated. A recommendation may include a selection of reference images from the store 1124.Pairs of reference images may be presented (e.g., a particular recommended image / , with a particular recommended image / ;) for a complete recommended hairstyle. In some cases, the recommended images / and I; are the same image, for example when a single image shows both the hair style and structure, and the hair appearance and the finer style that is recommended. In one embodiment, the application 1120A provides an interface for receiving the reference images I, and / ; provided by the user. For example, the user may locate (or generate, e.g., via a camera) and store on the smartphone 1108 examples of hairstyles. The user may upload the reference images (collectively 1128) to the website 1104 for use in generating the hairstyle trial as depicted in the resulting image 1126. Still referring to [Fig. 11], in one example, a user of the tablet 1110 uses a browser and visits a website offered by the application distribution computing device 1106. The tablet 1110 receives the application 1120B providing access to the network framework 1116. The application 1120B, in one example, is configured similarly to the application 1120A. The user uses a camera and obtains a still or video image (1130) (e.g., a selfie), which image is used as image 7; and is communicated for processing by the GAN generator at the cloud computing device 1105. The user of the tablet 1110, in this example, also uploads the images / , and / ; (collectively 1132). The images 1132 may be recommended by the application 1120B or located by the user.The resulting image 1134 is communicated and displayed via the tablet display device 1110 and may be stored on a storage device and shared (communicated) via social media, text message, email, etc. The application 1120B, in one embodiment, is configured to provide the tablet 1110 with one or more interfaces to a recommendation and / or facilitation of the purchase of products and / or services, which may be associated with a hairstyle. In one example, an application 1120B is a photo gallery application. Hairstyling effects are applied, for example, to a user image (an instance of image / ,) from a participant's camera, using the frame 1116. The application 1120B may facilitate the user's selection of images / , and / ,. For example, from a data store associated with the photo gallery application (e.g., the storage device of the tablet 1110) or from the Internet or other data store (e.g., via a recommendation service). Thus, in one embodiment, the network framework 1116 is configured to perform hairstyle transfer to generate a synthesized image comprising an identifier from a first image, a first hairstyle attribute from a second image, and at least one second hairstyle attribute from a third image. The network framework 1116 is configured to provide editable hairstyle transfer, disentangling the particularities of a) hair shape and structure; and b) hair appearance and finer style, thereby allowing a choice of hair attribute to transfer. In one embodiment, the network framework uses two-stage optimization to perform the transfer to disentangle the style attributes from each other.In one embodiment, the network framework generates a synthesized image (I) and, at a first optimization stage, reconstructs an identity from a face of a first image (Z;) in a face region of IG; and a hair shape and structure attribute from a hair region of a second image ( / ») to a hair region of / ç. Further, at a second stage, the network framework transfers each of the hair appearance and finer style attributes from a hair region of a third image ( / ;) to the hair region of 7 c as reconstructed at the first stage. In one embodiment, the retouching fills background regions, such as those in a background of Il. . In one embodiment, the network framework is configured to perform gradient orthogonalization in the two-stage optimization to disentangle the at least one style attribute represented by / and the at least one style attribute represented by / ;. In one embodiment, where the style to be transferred is a hairstyle, the at least one style attribute represented by / ; is a hair shape and structure attribute; and the at least one style attribute represented by / ; is i) an appearance attribute and ii) a finer style attribute. In one embodiment, the two-stage optimization optimizes losses including: an identity reconstruction loss (L;); a hair shape and structure reconstruction loss (L,); an appearance loss (La); and a finer style loss (L,). In one embodiment, L; and L, are optimized in the first stage without optimize L, and Ls; and L, L,, La and L, are optimized at the second stage where L, is optimized by gradient orthogonalization to avoid competition between the finer aspect and style attributes of / ; with those of / . Although the embodiments herein are primarily described with reference to hairstyle transfer, other style transfers may be performed, for multiple style attributes. According to one embodiment, there is provided a method for performing style transfer using artificial intelligence (AI), the style comprising a plurality of style attributes. The method comprises: processing a plurality of images comprising a first image ( / ,), a second image (I) and a third image ( / ;) using an AI network framework comprising a generative adversarial network (GAN) generator and two-stage optimization to produce a synthesized image (Iç) comprising an identity represented by the first image ( / ;) and a style determined from at least one style attribute represented by the second image (I) and at least one style attribute represented by the third image (Z:).In the method, the network framework is configured to optimize a latent space of the GAN to perform the style transfer while disentangling the at least one style attribute represented by / ; and the at least one style attribute represented by / ;. In one embodiment, Iç comprises an identity region, a style region and a background region and, at a first stage according to an objective function for optimizing the latent space, the network framework is configured to: reconstruct the identity represented by / , in the identity region of / ç; and reconstruct the at least one style attribute represented by / , in the style region of / ç. In one embodiment, at a second stage according to the objective function, the network framework is configured to respectively transfer each of the at least one style attribute represented by / ; to the style region of 7. . In an embodiment such as for hairstyle transfer, when the identity of 1, is unique between / ,, I and I, a complete hairstyle transfer is activated. In an embodiment such as hairstyle transfer, when the shape and structure of the hair of / ; are unique between / ,, I and I,, at least one hairstyle transfer related to the shape and structure is activated. In an embodiment such as hairstyle transfer, when the appearance of the hair of 7; is unique between / ,, I; and / ;, at least one hairstyle transfer related to the appearance is activated. In an embodiment such as hairstyle transfer, when the finer style of hair of / ; is unique between / ,, I, and 7 3 at least one hairstyle transfer related to the finer details of the hair is activated. In one embodiment, the method comprises processing Zc, / ,, I, and I; respectively using a segmentation network to define respective hair masks (style) and face masks (identity) for each image and using a selected one of these masks to define respective target masks to transfer the style. In one embodiment, the GAN generator initially generates / ç as the average image to receive the style transfer. In one embodiment, the identity is reconstructed using high-level features extracted by processing / , using a pre-trained neural network encoder. In one embodiment, in a hairstyle transfer, the shape and structure of the hair are reconstructed using features from later blocks generated by processing / , using the pre-trained neural network encoder. In one embodiment in a hairstyle transfer, a hair region of I, is an eroded hair region that places a soft constraint on a target placement of synthesized hair.In one embodiment in a hairstyle transfer, the appearance of the hair is transferred using a global appearance determined from features extracted at a first block by processing / ; using the pre-trained neural network encoder, the global appearance being determined without considering spatial information. In one embodiment in a hairstyle transfer, the finer style of the hair is transferred according to high-level feature maps extracted by processing / ; using the pre-trained neural network encoder. In one embodiment in a hairstyle transfer, the appearance of the hair includes color, and the finer style of the hair includes finer details including any of the strand styles and shade variations between the strands of hair. In one embodiment, the method comprises providing an interface to an (e-commerce) service with which to purchase a product and / or service associated with the style transfer. In one embodiment, / ç is provided for display in a graphical user interface for comparison with / ,. In one embodiment, the method includes providing an interface to a service configured to recommend a product and / or service associated with the style transfer. In one embodiment in a hairstyle transfer, the method comprises: providing an interface for receiving / ,; providing a store of reference images showing respective styling attributes, such as in a hairstyle, including the shape and structure of the hair; and the appearance and finer styling of the hair; providing a selection interface for receiving an input to set / ; from one of the reference images; and providing a selection interface for receiving an input to set / ; from one of the reference images. In one embodiment (e.g. in a hairstyle transfer), including providing an interface for receiving one or both of Z; and I: other than from the reference image store. In one embodiment, there is provided a computing device comprising circuitry configured to: provide a network framework for performing a virtual hairstyle try-on with respect to an identity image (e.g., / ,) and a plurality of reference images (e.g., / , and / ;) representing different hairstyle attributes for simulating a hairstyle on an identity, the network framework being configured to perform an optimization that disentangles the different hairstyle attributes to provide realistic synthesized hair upon embedding the identity and the hairstyle in a synthesized image (e.g., / ç) representing the virtual hairstyle try-on; and provide the synthesized image for presentation. Conclusion In accordance with embodiments, the introduction of LOHO, an optimization framework that performs hairstyle transfer on portrait images, takes a step in the direction of manipulating space-dependent attributes with pre-trained GANs. It is shown that developing algorithms that address specific synthesis tasks, such as hairstyle transfer, by manipulating the latent space of expressive models trained on more general tasks, such as face synthesis, is effective in achieving many downstream tasks without collecting large training datasets. The GAN inversion approach is able to solve problems such as filling realistic holes more efficiently, even than feedforward GAN pipelines that have access to large training datasets. The practical implementation may include all or part of the features described herein. These and other aspects, features, and various combinations may be expressed as methods, apparatus, systems, means for performing functions, program products, and other ways, by combining the features described herein. A number of embodiments have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the processes and techniques described herein. In addition, other steps may be provided, or steps may be eliminated, from the described process, and other components may be added to or removed from the described systems. Accordingly, other embodiments fall within the scope of the following claims. Throughout the description and claims of this specification, the words "include" and "contain" and variations thereof mean "including but not limited to" and are not intended to (and do not exclude) other components, integers, or steps. Throughout this specification, the singular includes the plural, unless the context otherwise requires. In particular, when the indefinite article is used, the specification should be understood as contemplating plurality as well as singularity, unless the context otherwise requires. Features, integers, characteristics or groups described in connection with a particular aspect, embodiment or example of the invention are to be understood as being applicable to any other aspect, embodiment or example, unless inconsistent therewith. Any features disclosed herein (including the claims, the accompanying abstract and drawings), and / or any steps of any method or process so disclosed, may be combined in any combination, except for combinations where at least some of these features and / or steps are mutually exclusive. The invention is not limited to the details of any preceding example or embodiment.The invention extends to any new feature, or any new combination, of the features disclosed herein (including the claims, abstract and accompanying drawings) or to any new feature, or any new combination, of the steps of any disclosed method or process. References [1] Rameen Abdal, Yipeng Qin, and Peter Wonka. Image2stylegan:How to embed images into the stylegan latent space? In 2019 IEEE / CVF International Conference on Computer Vision (ICCV), 2019. [2] R. Abdal, Y. Qin, and P. Wonka. Image2stylegan++: How to edit the embedded images? In 2020 IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8293-8302, 2020. [3] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In International Conference on Learning Representations, 2019, [4] Adrian Bulat and Georgios Tzimiropoulos, How far are we from solving the 2d & 3d face alignment problem” (and a dataset of 230,000 3d facial landmarks). In Inter- national Conference on Computer Vision, 2017. [5] Egor Burkov, Igor Pasechnik, Artur Grigorev, and Victor Lempitsky. Neural head reenactment with latent pose descriptors. In IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. [6] Menglei Chai, Linjie Luo, Kalyan Sunkavalli, Nathan Carr, Sunil Hadap, and Kun Zhou. High-quality hair modeling from a single portrait photo. ACM Transactions on Graphics, 34:1—10, 10 2015. [7] Menglei Chai, Lvdi Wang, Yanlin Weng, Xiaogang Jin, and Kun Zhou. Dynamic hair manipulation in images and videos. ACM Transactions on Graphics (TOG), 32, 07 2013. [8] Menglei Chai, Lvdi Wang, Yanlin Weng, Yizhou Yu, Baining Guo, and Kun Zhou. Single-view hair modeling for portrait manipulation. ACM Transactions on Graphics, 31, 07 2012. [9] Caroline Chan, Shiry Ginosar, Tinghui Zhou, and Alexei À Efros. Everybody dance now. In EEE International Conference on Computer Vision (ICCV), 2019.
[10] L. À. Gatys, À. S. Ecker, and M. Bethge. Image style transfer using convo- lutional neural networks. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2414-2423, 2016.
[11] Ke Gong, Yiming Gao, Xiaodan Liang, Xiaohui Shen, Meng Wang, and Liang Lin. Graphonomy: Universal human parsing via graph transfer learning. In CVPR, 2019.
[12] lan J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde- Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Proceedings of the 27th International Conference on Neural Information Processing Systems - Volume 2, NIPS’14, page 2672-2680, 2014.
[13] Shanyan Guan, Ying Tai, Bingbing NI, Feida Zhu, Feiyue Huang, and Xiaokang Yang. Collaborative learning for faster stylegan embedding, 2020.
[14] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vish- wanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems , volume 30, pages 6626-6637, Curran Associates, Inc, 2017.
[15] P. Isola, J. Zhu, T. Zhou, and À. À. Efros. Image-to-image translation with conditional adversarial networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5967-5976, 2017.
[16] Youngjoo Jo and Jongyoul Park. Sc-fegan: Face editing generative adversarial network with user’s sketch and color. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
[17] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In European Conference on Computer Vision, 2016.
[18] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. In International Conference on Learning Representations, 2017.
[19] T. Karras, S. Laine, and T. Aila. À style-based generator architecture for ge- nerative adversarial networks. In 2079 IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
[20] Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of StyleGAN. In Proc. CVPR, 2020.
[21] Vladimir Kim, Ersin Yumer, and Hao Li. Real-time hair rendering using se- quential adversarial networks. In European Conference on Computer Vision, 2018.
[22] Diederik P. Kingma and Jimmy Ba. Adam: À method for stochastic opti- mization. In International Conference on Learning Representations, 2015.
[23] Cheng-Han Lee, Ziwei Liu, Lingyun Wu, and Ping Luo. Maskgan: Towards diverse and interactive facial image manipulation. In EEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
[24] J. Li, X. Liang, Y. Wei, T. Xu, J. Feng, and S. Yan. Perceptual generative ad- versarial networks for small object detection. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1951-1959, 2017.
[25] T. Park, M. Liu, T. Wang, and J. Zhu. Semantic image synthesis with spatially- adaptive normalization. In 2019 IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2332-2341, 2019.
[26] Stanislav Pidhorskyi, Donald À Adjeroh, and Gianfranco Doretto. Adversarial latent autoencoders. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), 2020. [to appear]
[27] Elad Richardson, Yuval Alaluf, Or Patashnik, Yotam Nitzan, Yaniv Azar, Stav Shapiro, and Daniel Cohen-Or. Encoding in style: a stylegan encoder for image- to-image translation. arXiv preprint arXiv:2008.00951, 2020.
[28] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Repre- sentations, 2015.
[29] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. In 2076 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2818-2826, 2016.
[30] Zhentao Tan, Menglei Chai, Dongdong Chen, Jing Liao, Qi Chu, Lu Yuan, Sergey Tulyakov, and Nenghai Yu. Michigan: Multi-input-conditioned hair image ge- neration for portrait editing. ACM Transactions on Graphics (TOG), 39(4):1-13, 2020.
[31] À. Tao, K. Sapra, and Bryan Catanzaro. Hierarchical multi-scale attention for semantic segmentation. ArXiv, abs / 2005.10821, 2020.
[32] T. Wang, M. Liu, J. Zhu, À. Tao, J. Kautz, and B. Catanzaro. High-resolution image synthesis and semantic manipulation with conditional gans. In 2078 IEEE / CVF Conference on Computer Vision and Pattern Recognition, pages 8798-8807, 2018.
[33] Ting-Chun Wang, Ming-Yu Liu, Andrew Tao, Guilin Liu, Jan Kautz, and Bryan Catanzaro. Few-shot video-to-video synthesis. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
[34] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-video synthesis. In Conference on Neural In- formation Processing Systems (NeurIPS), 2018.
[35] Yanlin Weng, Lvdi Wang, Xiao Li, Menglei Chai, and Kun Zhou. Hair inter- polation for portrait morphing. Computer Graphics Forum, 32, 10 2013.
[36] J. Yu, Z. Lin, J. Yang, X. Shen, X. Lu, and T. Huang. Freeform image in- painting with gated convolution. In 2019 IEEE / CVF International Conference on Computer Vision (ICCV), pages 4470-4479, 2019.
[37] Yuhui Yuan, Xilin Chen, and Jingdong Wang. Object-contextual representations for semantic segmentation. In Computer Vision — ECCV 2020, pages 173-190, 2020.
[38] E. Zakharov, À. Shysheya, E. Burkov, and V. Lempitsky. Few-shot adversarial learning of realistic neural talking head models. In 20 / 9 IEEF / CVF International Conference on Computer Vision (ICCV), pages 9458-9467, 2019.
[39] Richard Zhang, Phillip Isola, Alexei À Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018.
[40] J. Zhu, T. Park, P. Isola, and À. À. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In 20 / 7 IEEE International Conference on Computer Vision (ICCV), pages 2242-2251, 2017.
[41] Jiapeng Zhu, Yujun Shen, Deli Zhao, and Bolei Zhou. In-domain gan inversion for real image editing. In Proceedings of European Conference on Computer Vision (ECCV), 2020.
Claims
Claims
1. Method for performing style transfer using ar- intelligence artificial (AI), the style comprising a plurality of style attributes, the method comprising: processing a plurality of images including a first image ( 1,), a second image { / ;) and a third image ( / ;) using a artificial intelligence (AI) network framework including a generator generative adversarial network (GAN) and two-stage optimization to produce a synthesized image ( / ç) including a re- identity presented by the first image (7;) and a style determined from at least least one style attribute represented by the second image (Z:) and at minus one style attribute represented by the third image ( / ;); in which the network frame is configured to optimize a space latent of the GAN model to perform style transfer while de- overlapping the at least one style attribute represented by / . and the at least a style attribute represented by / ;. the style being a hairstyle, the at least one style attribute represented by I - being an attribute of hair shape and structure; the at least one style attribute represented by / ; being 1) an aspect attribute and ii) a finer style attribute, in which two-stage optimization optimizes losses including: a loss of identity reconstruction (L,); a loss of reconstruction of hair shape and structure (L,); a loss of appearance (L,); and a loss of finer style (L,).
2. A method according to claim !, wherein Is comprises a region identity region, a style region and a background region and in which, at a first stage according to an objective function to optimize the latent space, the network framework is configured to: reconstruct the identity represented by I, in the identity region of Iç; And reconstruct the at least one style attribute represented by I, in the Zç style region.
3. A method according to claim 2, wherein, at a second stage according to the objective function, the network framework is configured to: respectively transfer each of the at least one style attribute re- presented by I; to the style region of / c.
4. The method of claim 3, wherein the network frame is configured to retouch the background region after transfer style.
5. A method according to any one of claims 1 to 4, wherein the network frame is configured to perform orthogonalization of gradient in two-stage optimization to disentangle the au least one style attribute represented by / , and the at least one attribute of style represented by / :.
6. A method according to claim 5, wherein the GAN generator is defined from a pre-trained GAN configured for a transfer of style.
7. A method according to claim 1 to 6, wherein: Let L, are optimized at the first stage without optimizing L, and L, ; and L, L,, La and L, are optimized at the second stage where L, is optimized by or- gradient thogonalization to avoid competition between the finer appearance and style attributes of I, with those of I.
