Image generation using surface-based neural synthesis

By using continuous surface-level parameterized representation of human shapes in neural image synthesis, combining parameter generation model and descriptive model, the problem of insufficient accuracy and controllability of image synthesis in the prior art is solved, and higher image synthesis quality is achieved.

CN114930399BActive Publication Date: 2025-05-09SNAP INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202080078647.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-11-15
Filing Date
2020-11-13
Publication Date
2025-05-09
Estimated Expiration
2040-11-13

AI Technical Summary

Technical Problem

The prior art is difficult to achieve high accuracy and controllability in neural image synthesis, especially when dealing with human shapes and appearances.

Method used

By leveraging continuous surface-level parameterization of object class shapes, especially using human mapping based representations of UV coordinates, combining parameter generation models and descriptive models, the accuracy and controllability of neural synthesis models are improved.

Benefits of technology

Higher image synthesis accuracy and controllability are achieved, making the generated images more realistic and in line with the expected shape and appearance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114930399B_ABST
    Figure CN114930399B_ABST
Patent Text Reader

Abstract

Aspects of the present disclosure relate to systems and methods for performing operations, the operations comprising: receiving a two-dimensional continuous surface representation of a three-dimensional object, the continuous surface comprising a plurality of landmark locations; determining a first set of soft membership functions based on the landmark locations and the relative locations of points in the two-dimensional continuous surface representation; receiving a two-dimensional input image, the input image comprising an image of the object; extracting a plurality of features from the input image using a feature recognition model; generating an encoded feature representation of the extracted features using the first set of soft membership functions; generating a dense feature representation of the extracted features based on the encoded representation using a second set of soft membership functions; and processing the second set of soft membership functions and the dense feature representation using a neural image decoder model to generate an output image.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority claim

[0002] This application claims the benefit of priority to U.S. Provisional Application No. 62 / 936,328, filed on November 15, 2019, which is incorporated herein by reference in its entirety. Technical Field

[0003] The present disclosure relates to synthesizing images using continuous surface-level parameterization of objects. Background Art

[0004] Modern user devices provide messaging applications that allow users to exchange messages with each other. Such messaging applications have recently begun to incorporate graphics in such communications. Graphics may include avatars or cartoons that mimic the actions of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In the drawings, which are not necessarily drawn to scale, like numbers may describe similar parts in different views. To easily identify the discussion of any particular element or action, the highest digit or digits in the reference numeral refer to the figure number in which the element is first introduced. Some non-limiting examples are shown in the figures of the accompanying drawings, in which:

[0006] Figure 1 is a diagrammatic representation of a networked environment in which the present disclosure may be deployed, according to some examples.

[0007] Figure 2 is a diagrammatic representation of a messaging system having both client-side and server-side functionality according to some examples.

[0008] Figure 3 is a diagrammatic representation of data structures maintained in a database according to some examples.

[0009] Figure 4 is a graphical representation of messages according to some examples.

[0010] Figure 5 and Figure 6 is a diagrammatic representation of operations performed by a gesture generation system according to some examples.

[0011] Figure 7 is a graphical representation of diffusion and attention layers based on some examples.

[0012] Figure 8 is a graphical representation of the statistical modeling based on the locations and features of some examples.

[0013] Fig. 9 Diagrammatic representations of graphical user interfaces according to some examples are presented.

[0014] Fig. 10A and Fig. 10B is a flow diagram illustrating example operation of a messaging application server according to an example.

[0015] Fig.11 is a diagrammatic representation of a machine in the form of a computer system according to some examples, within which a set of instructions may be executed, for causing the machine to perform any one or more of the methodologies discussed herein.

[0016] Fig.12 is a block diagram illustrating a software architecture in which examples may be implemented. DETAILED DESCRIPTION

[0017] The following description includes systems, methods, techniques, instruction sequences and computing machine program products that implement the illustrative examples of the present disclosure. In the following description, for the purpose of illustration, many specific details are set forth to provide an understanding of various examples. However, it will be apparent to those skilled in the art that examples can be put into practice without these specific details. Generally, known instruction instances, protocols, structures and techniques do not need to be shown in detail.

[0018] Neural image synthesis can be controlled by conditioning the network's operation on a given signal, which can be a classification label, text, or layout constraint indicated by another image. Typical systems learn fully disentangled image synthesis by combining a 3D dataset with a 2D dataset or an unstructured 2D image set, allowing explicit control of camera, shape, and lighting parameters. When focusing on humans, the conditioning signal can include human keypoints, semantic parts, or DensePose level information. Typically, this is done by encoding this information as an additional input channel that is concatenated with the RGB image and fed to a CNN, or by using pose information in conjunction with a spatial transformer that densely distorts the RGB values ​​or neuron activations.

[0019] The disclosed examples improve the accuracy of neural synthesis models by exploiting continuous, surface-level parameterization of object category shapes, with a particular focus on humans, and make such models more controllable. Specifically, according to the disclosed examples, a charted, UV coordinate-based representation of humans is used to improve image synthesis in terms of both controllability and realism. The charting is integrated into two complementary approaches to image synthesis: parametric generative models, such as principal component analysis (PCA) or autoencoders, in which explicit image encoding determines image synthesis; and descriptive models, in which images are synthesized by moment matching to be statistically indistinguishable from target signals. As a parametric model, the disclosed examples use semantically conditioned signals to modulate the behavior of the decoder through adaptive instance normalization. As a descriptive model, a general transfer method is used, which applies a coloring and whitening (CWT) transform to match the style signal and the Gram Matrice of the content.

[0020] Specifically, a 2D input image is received and features of the input image are obtained. These features are pooled and assigned to different channels based on region-specific appearance information (e.g., hair color and style around the face or display type around the feet). The information is compressed, and each channel applies a membership weighted estimate of the mean and variance. As an example, each row of the matrix corresponds to a human joint. In order to construct the matrix, features defined for the image and each joint are obtained, and the disclosed example emphasizes those features that may include the joint in the corresponding matrix row. A target image is received, such as an image depicting different postures. The target image is processed by obtaining pixel values ​​of different regions of the image based on a dense posture function. As an example, an area of ​​the target image corresponding to a shoulder landmark is analyzed to obtain a set of pixel values ​​associated with the area of ​​the target image. These pixel values ​​are designated as target soft intrinsic distances. These soft intrinsic distances are cascaded with the pooled features of the input image and decoded to generate a decoded image, in which the input image appears together with the features of the target image. For example, an input image depicting a person in one pose is decoded to generate an output image in which the person is depicted in another pose.

[0021] According to a first aspect, the present disclosure describes a computer-implemented neural image synthesis method, the method comprising: receiving a two-dimensional continuous surface representation of a three-dimensional object, the continuous surface comprising a plurality of landmark locations; determining a first set of soft membership functions based on the landmark locations and the relative locations of points in the two-dimensional continuous surface representation; receiving a two-dimensional input image, the input image comprising an object of the same type as the three-dimensional object; extracting a plurality of features from the input image using a feature recognition model; using the first set of soft membership functions to generate an encoded feature representation of the extracted features; using a second set of soft membership functions to generate a dense feature representation of the extracted features based on the encoded representation; and using a neural image decoder model to process the second set of soft membership functions and the dense feature representation to generate an output image.

[0022] The two-dimensional continuous surface representation of a three-dimensional object includes a mapping of the surface of the three-dimensional object onto a two-dimensional plane area. It can also be referred to as "charting". The representation is continuous in the sense that the two-dimensional representation of the object is not separated, that is, the different elements of the object are not divided into separate two-dimensional representations. In some examples, such a mapping is obtained by effectively "unfolding" and "flattening" the three-dimensional surface into two dimensions. The unfolding process may not completely fill the area used for the two-dimensional continuous surface representation - the remaining part of the area can be referred to as "background". The two-dimensional continuous surface representation itself can be in the form of an image. An example of such a two-dimensional continuous surface representation is a UV map that can be generated from a three-dimensional object using a UV unfolding technique. Alternatively, other equivalent representations can be used.

[0023] Determining the first set of soft membership functions may include determining a distance between the landmark location and a plurality of points in the two-dimensional continuous surface representation; and assigning each point in the plurality of points to the landmark based on the determined distance.

[0024] A set of soft membership functions is a function that associates a point (e.g., a pixel) in a two-dimensional continuous surface representation with one or more of the landmarks. In practice, the soft membership function corresponds to an area that roughly locates a position on an object. Background membership functions may also be included in a set that assigns points in a two-dimensional continuous surface representation that are determined to be not on an object to background labels. In some examples, the soft feature representation assigns each point to its nearest landmark. In other examples, the soft feature representation assigns a set of weights to each point, each weight being associated with a different landmark and based on the distance to the landmark, such as the greater the distance, the smaller the weight.

[0025] Determining landmark locations may include using a landmark recognition model.

[0026] Landmarks (also referred to as "object landmarks") may represent key points of an object. Landmarks may be specific to an object type. For example, in an example where the object is a human body, the landmarks may be key points of the human body, such as joints, facial features, etc. Object landmarks may be manually marked / located, or may be marked / located using a landmark recognition / location model (e.g., a neural network trained to locate landmarks in a two-dimensional continuous surface representation of a specific object type).

[0027] The neural image decoder model may include a convolutional neural network conditioned on a two-dimensional continuous surface representation.

[0028] Generating an encoded feature representation of the extracted features using the first set of soft membership functions includes performing a membership weighted estimate of the mean and variance of each channel of the extracted features. The encoded representation may include an estimate of the mean and variance of each channel of the extracted features, ie, feature statistics near the landmark.

[0029] Generating a dense feature representation of the extracted features from the encoded representation using a second set of soft membership functions may include applying a dual operation to membership weighted estimates of the mean and variance of each channel of the extracted features.

[0030] Dense feature representations can also be referred to as "feature fields" or "pixelated representations". Soft feature unpooling can be used to generate dense feature representations, i.e., the inverse / dual operation of soft feature pooling. Unpooling effectively distributes the features in the encoded feature representation over corresponding regions of the image. In other words, unpooling spreads the encoding back into the image domain.

[0031] In some examples, the first set of soft membership functions and the second set of soft membership functions are the same. The method may also include: generating a three-dimensional model / representation of the three-dimensional object based on the input image; and generating a two-dimensional continuous surface representation based on the three-dimensional model / representation. The method may also include: modifying values ​​in the encoded representation before generating the dense feature representation.

[0032] The first set of soft membership functions is reused to generate a dense feature representation that allows shape and appearance information in the input image to be disentangled, thereby providing a means for independently controlling / changing shape and appearance during image generation.

[0033] A three-dimensional model / representation, such as a DensePose representation, can be determined from an input image and then used to generate a two-dimensional continuous surface representation, such as using UV unwrapping. The two-dimensional continuous surface representation then corresponds to the input image.

[0034] A two-dimensional continuous surface representation of a three-dimensional object may be generated from an input image. The method may also include: receiving another two-dimensional input image, the other input image including another object of the same type as the three-dimensional object; generating another two-dimensional continuous surface representation of the three-dimensional object from the other two-dimensional input image, the other continuous surface including a plurality of landmark locations; and determining a second set of soft membership functions based on the landmark locations and the relative locations of points in the other two-dimensional continuous surface representation.

[0035] Determining a first set of soft membership functions based on an input image and determining a second set of soft membership functions based on a different input image allows posture / style information to be transferred from one image to another. For example, a (first) input image may include an image of an object (e.g., a human) in a first posture and is used to determine a first set of soft membership functions. A second input image may include an image of an object (e.g., a human) in a second posture and is used to determine a second set of soft membership functions. Extracting features from the first image and generating an encoded representation of these features using the first set of soft membership functions can associate the features of the first image with object landmarks. Unpooling the encoded representation of the features of the first image using the second set of soft membership functions to generate a dense representation can actually transfer the features of the first image to an image with the posture of the second image.

[0036] Generating the further two-dimensional continuous surface representation from the further (ie second) image may be performed in the same way as generating the two-dimensional continuous surface representation from the input (ie first) image.

[0037] The input image may include an image of an object in a first pose, and the other input image may include an image of another object in a second pose. The second image may include a portion corresponding to an invisible portion of the first image. Generating a two-dimensional continuous surface representation from the input image may include: using a learned attention mechanism, generating a portion of the two-dimensional continuous surface representation corresponding to the invisible portion of the first image from the encoded representation. The learned attention mechanism may be based on a first set of soft membership functions.

[0038] When the input (i.e., first) image and the additional (i.e., second) image show objects in different poses, there may be areas of the second image that do not exist in the first image and therefore cannot be directly migrated from the first image. These areas can be interpolated into the first image using a learned attention mechanism. A learned model such as a neural network or matrix with learned weights, parameters, and / or components can be used to diffuse the observed features (i.e., extracted features) of the first image across landmarks to generate a set of diffuse features. An attention mechanism is used to generate a set of refined features by combining the set of diffuse features with a set of observed features to prevent the set of diffuse features from overwriting the observed features.

[0039] According to another aspect, the present disclosure describes a computer-implemented style transfer method, the method comprising: determining a set of content features based on a source image using an encoder neural network; determining a set of style features based on a style image using an encoder neural network; determining position-dependent content features using joint statistics of position and content features in a region of the source image; determining position-dependent style features using joint statistics of position and style features in a region of the style image; generating a set of transformed content features based on a set of position-dependent content features based on the joint statistics of position and content features; generating a set of transformed style features based on a set of transformed content features based on the joint statistics of position and style features; and generating an output image based on a set of transformed style features and a set of transformed content features using a decoder neural network.

[0040] The method can provide an enhancement to other descriptive methods such as whitening and colorization transformations by considering non-stationary patterns in the input image using position-dependent style features and position-dependent content features.

[0041] A feature recognition neural network may be used to determine content features and style features from the source image and style image, respectively. An example of such a network is a VGG network, but other feature recognition networks may alternatively be used. A decoder neural network may be a neural network trained to reproduce an image from a feature map produced by the feature recognition neural network. The feature recognition neural network and the decoder neural network may together form an autoencoder system.

[0042] As described above in relation to the first aspect, the style image and / or the source image comprises a continuous two-dimensional representation of a three-dimensional object.

[0043] The joint statistics of the position and content features include a content feature mean, a content position mean, and a covariance between the content feature and the content position, and wherein determining the position-dependent content feature includes: determining a conditional model of the content feature conditioned on the position. The conditional model of the content feature may include a position-dependent content mean and a conditional content covariance. Generating a set of transformed content features from a set of position-dependent content features may include: centering the position-dependent content features based on the position-dependent content mean; and applying a whitening transform based on the conditional content covariance.

[0044] The joint statistics of the position and style features may include a style feature mean, a style position mean, and a covariance between the style feature and the style position, and wherein determining the position-dependent style feature includes determining a conditional model of the style feature conditioned on the position. The conditional model of the style feature may include a position-dependent style mean and a conditional style covariance. Generating a set of transformed style features from a set of position-dependent content features may include adding the position-dependent content features to the position-dependent style mean; and applying a coloring transformation based on the conditional style covariance.

[0045] Models such as multivariate Gaussian models can be used to capture the dependency of the extracted content / style features on continuous position coordinates. This model can be used to replace static content / style features used in other descriptive synthesis models, such as whitening and coloring transformations. Whitening refers to reducing the style features present in the content features. Coloring refers to adding the style features from the style image to the (whitened) content features of the source image.

[0046] The method may also include: mapping the source / style image to an embedding using the trained model; and determining joint statistics of location and content / style features in a region of the source / style image based on the embedding.

[0047] Using embeddings of position coordinates rather than the position coordinates themselves can allow complex spatial dependencies to be captured. For example, in the human body, mirror symmetry is expected to exist about the vertical axis rather than the horizontal axis. Therefore, features will be more correlated in the horizontal direction than in the vertical direction. The model can be trained based on a loss function that penalizes distances in the vertical direction more than in the horizontal direction when generating a mapping.

[0048] Networked computing environment

[0049] Figure 1 1 is a block diagram illustrating an example messaging system 100 for exchanging data (e.g., messages and associated content) over a network. The messaging system 100 includes multiple instances of a client device 102, each of which hosts a number of applications including a messaging client 104 and other external applications 109 (e.g., third-party applications). Each messaging client 104 is communicatively coupled to other instances of the messaging client 104 (e.g., hosted on respective other client devices 102), a messaging server system 108, and an external application server 110 via a network 112 (e.g., the Internet). The messaging client 104 may also communicate with locally hosted third-party applications 109 using an application program interface (API).

[0050] The messaging clients 104 are able to communicate and exchange data with other messaging clients 104 and messaging server systems 108 via the network 112. The data exchanged between the messaging clients 104 and between the messaging clients 104 and messaging server systems 108 include functions (e.g., commands for invoking functions) and payload data (e.g., text, audio, video, or other multimedia data).

[0051] The messaging server system 108 provides server-side functionality to certain messaging clients 104 via the network 112. Although certain functionality of the messaging system 100 is described herein as being performed by the messaging client 104 or by the messaging server system 108, the location of certain functionality within the messaging client 104 or messaging server system 108 may be a design choice. For example, it may be technically preferable to initially deploy certain technologies and functionality within the messaging server system 108, but later migrate the technologies and functionality to the messaging client 104 if the client device 102 has sufficient processing power.

[0052] The messaging server system 108 supports various services and operations provided to the messaging clients 104. Such operations include sending data to the messaging clients 104, receiving data from the messaging clients 104, and processing data generated by the messaging clients 104. The data may include message content, client device information, geolocation information, media enhancements and overlays, message content persistence conditions, social network information, and live event information as examples. The data exchange within the messaging system 100 is initiated and controlled by functions available via a user interface (UI) of the messaging clients 104.

[0053] Turning now specifically to the messaging server system 108, an application program interface (API) server 116 is coupled to the application server 114 and provides a programming interface to the application server 114. The application server 114 is communicatively coupled to a database server 120, which facilitates access to a database 126 that stores data associated with messages processed by the application server 114. Similarly, a web server 128 is coupled to the application server 114 and provides a web-based interface to the application server 114. To this end, the web server 128 processes incoming network requests via the Hypertext Transfer Protocol (HTTP) and several other related protocols.

[0054] The application program interface (API) server 116 receives and sends message data (e.g., commands and message payloads) between the client device 102 and the application server 114. In particular, the application program interface (API) server 116 provides a set of interfaces (e.g., routines and protocols) that the messaging client 104 can call or query to invoke the functions of the application server 114. An application program interface (API) server 116 exposes various functions supported by application server 114, including: account registration; login functionality; sending messages from a particular messaging client 104 to another messaging client 104 via application server 114; sending media files (e.g., images or videos) from a messaging client 104 to a messaging server 118; and setting up collections of media data (e.g., stories) for access by another messaging client 104, retrieving a friend list of a user of client device 102, retrieving such collections, retrieving messages and content, adding and removing entities (e.g., friends) from an entity graph (e.g., a social graph), locating friends in a social graph, and opening application events (e.g., related to messaging client 104).

[0055] The application server 114 hosts several server applications and subsystems, including, for example, a messaging server 118, an image processing server 122, and a social network server 124. The messaging server 118 implements several message processing techniques and functions, which are particularly related to the aggregation and other processing of content (e.g., text and multimedia content) included in messages received from multiple instances of the messaging client 104. As will be described in further detail, text and media content from multiple sources can be aggregated into content collections (e.g., called stories or galleries). These collections are then made available to the messaging client 104. Given the hardware requirements for other processor and memory intensive processing of data, such processing can also be performed on the server side by the messaging server 118.

[0056] The application server 114 also includes an image processing server 122 that is dedicated to performing various image processing operations, typically with respect to images or videos within the payload of messages sent from or received at the messaging server 118. Figure 5 The detailed functions of the image processing server 122 are shown and described. The image processing server 122 is used to implement the 3D body model generation system 230 ( Figure 2 )’s 3D body model generation operation.

[0057] In one example, the image processing server 122 detects a person in an input 2D image. The image processing server 122 also receives a target image of the person or another person that presents a different pose than the person in the 2D image. The image processing server 122 uses the target image to generate an output image that depicts the person in the input 2D image presenting the pose of the person in the target image. In some cases, the image processing server 122 uses adaptive instance normalization (CHAIN) of mapping to perform the pose transfer. Specifically, adaptive instance normalization (AdaIN) modifies the statistics of each channel c in the feature map through a parameter function such as a multilayer perceptron:

[0058]

[0059] Among them, x i represents the activation at position i, μ, σ are calculated by standard instance normalization, and γ, β are multiplicative gain terms and additive gain terms predicted by side branches to appropriately modify the behavior of the network. AdaIN is applied to multiple levels of the decoder, and it is shown that the values ​​of γ, β at different network depths provide a natural disentanglement of the structural hierarchy. The image processing server 122 according to some examples determines the spatially varying instance normalization parameters γ, β modulated by the continuous surface representation. Specifically, CHAIN ​​uses both the input image and the surface-based interpretation to construct the adjustment signal:

[0060]

[0061] The conditioning signal is designed to disentangle shape and appearance. This allows the image processing server 122 to synthesize the pose of a person with another person's clothing in a second stage, or to easily perform appearance inpainting. The conditioning signal is constructed by first deriving local shape and appearance descriptors and then fusing them into a dense conditioning signal consisting of c for each channel. i , b i Perform CNN processing for regression. Figure 5 The training of the CHAIN ​​system implemented by the image processing server 122 is discussed.

[0062] The social network server 124 supports various social networking functions and services and makes them available to the messaging server 118. To this end, the social network server 124 maintains and accesses an entity graph 308 (e.g., Figure 3 ). Examples of functions and services supported by the social network server 124 include identifying other users in the messaging system 100 who have a relationship with or are "following" a particular user, and identifying interests and other entities of a particular user.

[0063] Returning to the messaging client 104, the features and functions of the external resource (e.g., a third-party application 109 or an applet) are available to the user via the interface of the messaging client 104. The messaging client 104 receives a user selection of an option to launch or access the features of an external resource (e.g., a third-party resource) (e.g., an external app 109). The external resource can be a third-party application (external app 109) installed on the client device 102 (e.g., a "local app"), or a small-scale version of a third-party application hosted on the client device 102 or away from the client device 102 (e.g., on a third-party server 110) (e.g., a "small application"). The small-scale version of the third-party application includes a subset of the features and functions of the third-party application (e.g., a full-scale local version of a third-party standalone application) and is implemented using a markup language document. In one example, the small-scale version of the third-party application (e.g., a "small application") is a web-based markup language version of the third-party application and is embedded in the messaging client 104. In addition to using markup language documents (eg, .*ml files), applets may also incorporate scripting languages ​​(eg, .*js files or .json files) and style sheets (eg, .*ss files).

[0064] In response to receiving a user selection of an option to launch or access a feature of an external resource (external app 109), the messaging client 104 determines whether the selected external resource is a web-based external resource or a locally installed external application. In some cases, the external application 109 installed locally on the client device 102 can be launched independently of the messaging client 104 and separately from the messaging client 104, for example, by selecting an icon corresponding to the external application 109 on the home screen of the client device 102. A small-scale version of such an external application can be launched or accessed via the messaging client 104, and in some examples, no part or limited parts of the small-scale external application can be accessed from outside the messaging client 104. The small-scale external application can be launched by the messaging client 104 receiving a markup language document associated with the small-scale external application from the external application server 110 and processing such a document.

[0065] In response to determining that the external resource is a locally installed external application 109, the messaging client 104 instructs the client device 102 to launch the external application 109 by executing the locally stored code corresponding to the external application 109. In response to determining that the external resource is a web-based resource, the messaging client 104 communicates with the external application server 110 to obtain a markup language document corresponding to the selected resource. The messaging client 104 then processes the obtained markup language document to present the web-based external resource within the user interface of the messaging client 104.

[0066] The messaging client 104 may notify the user of the client device 102 or other users (e.g., "friends") associated with such a user of activities occurring in one or more external resources. For example, the messaging client 104 may provide a notification to a participant in a conversation (e.g., a chat session) in the messaging client 104 about the current or recent use of an external resource by one or more members of a user group. One or more users may be invited to join an active external resource or to start an external resource that was recently used but is currently inactive (in a friend group). The external resource may provide the participants in the conversation (each participant using a corresponding messaging client 104) with the ability to share items, conditions, states, or locations in the external resource with one or more members of a user group entering a chat session. The shared item may be an interactive chat card that members of the chat may interact with, for example, to start a corresponding external resource, view specific information within an external resource, or bring members of the chat to a specific location or state within an external resource. Within a given external resource, a response message may be sent to the user on the messaging client 104. The external resource may selectively include different media items in the response based on the current context of the external resource.

[0067] The messaging client 104 can present a list of available external resources (e.g., third-party or external applications 109 or applets) to the user to launch or access a given external resource. The list can be presented in a context-sensitive menu. For example, icons representing different external applications in the external applications 109 (or applets) can vary based on how the user launches the menu (e.g., from a conversational interface or from a non-conversational interface).

[0068] System Architecture

[0069] Figure 21 is a block diagram showing further details about the messaging system 100 according to some examples. Specifically, the messaging system 100 is shown to include a messaging client 104 and an application server 114. The messaging system 100 contains several subsystems that are supported on the client side by the messaging client 104 and on the server side by the application server 114. These subsystems include, for example, a transient timer system 202, a collection management system 204, an enhancement system 208, a map system 210, a game system 212, and an external resource system 220.

[0070] The transient timer system 202 is responsible for implementing temporary or time-limited access to content by the messaging client 104 and the messaging server 118. The transient timer system 202 includes a number of timers that selectively enable access (e.g., for presentation and display) of messages and associated content via the messaging client 104 based on duration and display parameters associated with a message or a collection of messages (e.g., a story). Additional details regarding the operation of the transient timer system 202 are provided below.

[0071] The collection management system 204 is responsible for managing groups and collections of media (e.g., collections of text, image video, and audio data). Collections of content (e.g., messages including images, videos, text, and audio) can be organized into "event galleries" or "event stories." Such collections can be made available for a specified time period, such as the duration of an event related to the content. For example, content related to a concert can be made available as a "story" for the duration of the concert. The collection management system 204 can also be responsible for publishing an icon that provides notification that a particular collection exists to the user interface of the messaging client 104.

[0072] In addition, the collection management system 204 also includes a curation interface 206, which allows the collection manager to manage and curate specific content collections. For example, the curation interface 206 enables an event organizer to curate a content collection related to a specific event (e.g., to delete inappropriate content or redundant messages). In addition, the collection management system 204 uses machine vision (or image recognition technology) and content rules to automatically curate content collections. In some examples, compensation can be paid to users for including user-generated content in a collection. In such a case, the curation management system 204 operates to automatically pay such users for using their content.

[0073] The enhancement system 208 provides various functions that enable users to enhance (e.g., annotate or otherwise modify or edit) media content associated with a message. For example, the enhancement system 208 provides functions related to the generation and publication of media coverage of messages processed by the messaging system 100. The enhancement system 208 is operable to supply media coverage or enhancement (e.g., image filters) to the messaging client 104 based on the geographic location of the client device 102. In another example, the enhancement system 208 is operable to supply media coverage to the messaging client 104 based on other information such as social network information of the user of the client device 102. The media coverage can include audio and visual content and visual effects. Examples of audio and visual content include pictures, text, logos, animations, and sound effects. Examples of visual effects include color coverage. Audio and visual content or visual effects can be applied to media content items (e.g., photos) at the client device 102. For example, the media coverage can include text, graphic elements, or images that can be covered on photos taken by the client device 102. In another example, the media overlay includes a location identification overlay (e.g., Venice Beach), a live event name, or a business name overlay (e.g., Beach Cafe). In another example, the enhancement system 208 uses the geolocation of the client device 102 to identify a media overlay that includes the name of the business at the geolocation of the client device 102. The media overlay may include other tags associated with the business. The media overlay may be stored in the database 126 and accessed through the database server 120.

[0074] In some examples, the enhancement system 208 provides a user-based publishing platform that enables a user to select a geolocation on a map and upload content associated with the selected geolocation. The user can also specify an environment in which a particular media overlay should be provided to other users. The enhancement system 208 generates a media overlay including the uploaded content and associates the uploaded content with the selected geolocation.

[0075] In other examples, the enhancement system 208 provides a merchant-based publishing platform that enables merchants to select specific media coverage associated with geolocation via a bidding process. For example, the enhancement system 208 associates the media coverage of the highest bidding merchant with the corresponding geolocation for a predefined amount of time. The enhancement system 208 communicates with the image processing server 122 to automatically select and activate an augmented reality experience related to the image captured by the client device 102. Once the user selects the augmented reality experience when scanning the image using the camera in the user environment, one or more images, videos or augmented reality graphic elements are retrieved and presented as a cover on the scanned image. In some cases, the camera is switched to a front view (e.g., the front camera of the client device 102 is activated in response to the activation of a specific augmented reality experience), and the image from the front camera of the client device 102 instead of the rear camera of the client device 102 begins to be displayed on the client device 102. One or more images, videos or augmented reality graphic elements are retrieved and presented as a cover on the image captured and displayed by the front camera of the client device 102.

[0076] The mapping system 210 provides various geolocation functions and supports the presentation of map-based media content and messages by the messaging client 104. For example, the mapping system 210 enables the display of user icons or avatars (e.g., stored in the profile data 316) on a map to indicate the current or past locations of the user's "friends" in the context of the map, as well as media content (e.g., a collection of messages including photos and videos) generated by such friends. For example, a message posted by a user to the messaging system 100 from a particular geolocation can be displayed to the particular user's "friends" at the particular location in the context of the map on the mapping interface of the messaging client 104. The user can also share his or her location and status information with other users of the messaging system 100 (e.g., using an appropriate status avatar) via the messaging client 104, where the location and status information is similarly displayed to selected users in the context of the mapping interface of the messaging client 104.

[0077] The gaming system 212 provides various gaming functions in the context of the messaging client 104. The messaging client 104 provides a gaming interface that provides a list of available games (e.g., web-based games or web-based applications) that can be launched by a user in the context of the messaging client 104 and played with other users of the messaging system 100. The messaging system 100 also enables a particular user to invite other users to participate in playing a particular game by sending an invitation to such other users from the messaging client 104. The messaging client 104 also supports both voice messaging and text messaging (e.g., chatting) in the context of playing games, provides leaderboards for games, and also supports providing in-game rewards (e.g., coins and items).

[0078] The external resource system 220 provides an interface for the messaging client 104 to communicate with the external application server 110 to launch or access external resources. Each external resource (app) server 110 hosts, for example, a small-scale version of an application based on a markup language (e.g., HTML5) or an external application (e.g., a game, utility, payment, or ride-sharing application outside the messaging client 104). The messaging client 104 can launch a web-based resource (e.g., application) by accessing an HTML5 file from an external resource (app) server 110 associated with a web-based resource. In some examples, the application hosted by the external resource server 110 is programmed in JavaScript using a software development kit (SDK) provided by the messaging server 118. The SDK includes an application programming interface (API) having functions that can be called or activated by a web-based application. In some examples, the messaging server 118 includes a JavaScript library that provides a given third-party resource access right for certain user data of the messaging client 104. HTML5 is used as an example technology for programming games, but applications and resources programmed based on other technologies can be used.

[0079] To integrate the functionality of the SDK into the web-based resource, the SDK is downloaded from the messaging server 118 by the external resource (app) server 110 or received in other ways by the external resource (app) server 110. Once downloaded or received, the SDK is included as part of the application code of the web-based external resource. The code of the web-based resource can then call or activate certain functions of the SDK to integrate the features of the messaging client 104 into the web-based resource.

[0080] The SDK stored on the messaging server 118 effectively provides a bridge between external resources (e.g., a third party or external application 109 or a small application and a messaging client 104). This provides users with a seamless experience of communicating with other users on the messaging client 104, while also retaining the look and feel of the messaging client 104. In order to bridge the communication between the external resources and the messaging client 104, in some examples, the SDK facilitates the communication between the external resource server 110 and the messaging client 104. In some examples, the WebViewJavaScriptBridge running on the client device 102 establishes two one-way communication channels between the external resources and the messaging client 104. Messages are sent asynchronously via these communication channels between the external resources and the messaging client 104. Each SDK function call is sent as a message and a callback. Each SDK function is implemented by building a unique callback identifier and sending a message with the callback identifier.

[0081] By using the SDK, not all information from the messaging client 104 is shared with the external resource server 110. The SDK limits which information is shared based on the needs of the external resource. In some examples, each external resource server 110 provides an HTML5 file corresponding to a web-based external resource to the messaging server 118. The messaging server 118 can add a visual representation (e.g., box art or other graphics) of the web-based external resource in the messaging client 104. Once the user selects the visual representation through the GUI of the messaging client 104 or instructs the messaging client 104 to access a feature of a web-based external resource, the messaging client 104 obtains the HTML5 file and instantiates the resources required to access the features of the web-based external resource.

[0082] The messaging client 104 presents a graphical user interface (e.g., a login page or title screen) of an external resource. During, before, or after presenting the login page or title screen, the messaging client 104 determines whether the external resource launched has been previously authorized to access the user data of the messaging client 104. In response to determining that the external resource launched has been previously authorized to access the user data of the messaging client 104, the messaging client 104 presents another graphical user interface of the external resource including the functions and features of the external resource. In response to determining that the external resource launched has not been previously authorized to access the user data of the messaging client 104, after a threshold time period (e.g., 3 seconds) of displaying the login page or title screen of the external resource, the messaging client 104 slides up a menu for authorizing the external resource to access the user data (e.g., animating the menu to reveal from the bottom of the screen to the middle or other parts of the screen). The menu identifies the type of user data that the external resource will be authorized to use. In response to receiving the user selection of the accept option, the messaging client 104 adds the external resource to the list of authorized external resources and allows the external resource to access the user data from the messaging client 104. In some examples, the external resource is authorized by the messaging client 104 to access the user data according to the OAuth 2 framework.

[0083] The messaging client 104 controls the type of user data shared with the external resource based on the type of external resource that is authorized. For example, an external resource including a full-scale external application (e.g., a third party or external application 109) is provided with access rights to a first type of user data (e.g., only a two-dimensional avatar of a user with or without different avatar characteristics). As another example, an external resource including a small-scale version of an external application (e.g., a web-based version of a third-party application) is provided with access rights to a second type of user data (e.g., payment information, a two-dimensional avatar of a user, a three-dimensional avatar of a user, and an avatar with various avatar characteristics). Avatar characteristics include different ways to customize the look and feel of an avatar, such as different poses, facial features, clothing, etc.

[0084] The pose generation system 230 generates and implements the CHAIN ​​model to synthesize the pose of a person with another person's clothing and / or synthesize the pose of a person in an input image with a different pose depicted in a target image.

[0085] Data Architecture

[0086] Figure 3is a schematic diagram illustrating a data structure 300 that may be stored in a database 126 of a messaging server system 108 according to some examples. Although the contents of the database 126 are illustrated as including several tables, it should be understood that the data may be stored in other types of data structures (e.g., as an object-oriented database).

[0087] The database 126 includes message data stored in the message table 302. For any particular message, the message data includes at least message sender data, message recipient (or receiver) data, and payload. Figure 4 Additional details regarding information that may be included in a message and included in the message data stored in message table 302 are described.

[0088] The entity table 306 stores entity data and is linked (e.g., by reference) to the entity graph 308 and profile data 316. Entities for which records are maintained within the entity table 306 may include individuals, corporate entities, organizations, objects, places, events, etc. Regardless of the entity type, any entity about which the messaging server system 108 stores data may be an identified entity. Each entity is provided with a unique identifier as well as an entity type identifier (not shown).

[0089] The entity graph 308 stores information about relationships and associations between entities. Such relationships may be, for example, social, professional (e.g., working in a common company or organization), interest-based, or activity-based.

[0090] Profile data 316 stores multiple types of profile data about a particular entity. Based on the privacy settings specified by the particular entity, profile data 316 can be selectively used and presented to other users of the messaging system 100. In the case where the entity is a person, profile data 316 includes, for example, a user name, phone number, address, settings (e.g., notification and privacy settings), and an avatar representation (or a collection of such avatar representations) selected by the user. A particular user can then selectively include one or more of these avatar representations in the content of messages transmitted via the messaging system 100 and on a map interface displayed to other users by the messaging client 104. The collection of avatar representations can include a "status avatar" that presents a graphical representation of a status or activity that a user may choose to convey at a particular time.

[0091] Where the entity is a group, the profile data 316 for the group may similarly include one or more avatar representations associated with the group, in addition to the group name, members, and various settings related to the group (eg, notifications).

[0092] Database 126 also stores enhancement data, such as overlays or filters, in enhancement table 310. Enhancement data is associated with and applied to videos (video data is stored in video table 304) and images (image data is stored in image table 312).

[0093] In one example, a filter is an overlay displayed as an overlay on an image or video during presentation to a receiving user. Filters can be of various types, including filters selected by a user from a set of filters presented to a sending user by messaging client 104 when the sending user is composing a message. Other types of filters include geolocation filters (also referred to as geofilters), which can be presented to a sending user based on geolocation. For example, a geolocation filter specific to a nearby or special location can be presented by messaging client 104 within a user interface based on geolocation information determined by a global positioning system (GPS) unit of client device 102.

[0094] Another type of filter is a data filter, which can be selectively presented to the sending user by the messaging client 104 based on other input or information collected during the message creation process by the client device 102. Examples of data filters include the current temperature at a particular location, the current speed at which the sending user is traveling, the battery life of the client device 102, or the current time.

[0095] Other augmented data that can be stored in the image table 312 include augmented reality content items (e.g., corresponding to application lenses or augmented reality experiences). Augmented reality content items can be real-time special effects and sounds that can be added to images or videos. Each augmented reality experience can be associated with one or more tagged images. In some examples, when it is determined that a tagged image matches a query image received from a client device 102, the corresponding augmented reality experience (e.g., augmented data) of the tagged image is retrieved from the image table 312 and provided to the client device 102.

[0096] As described above, augmented data includes augmented reality content items, overlays, image transformations, AR images, and similar items that refer to modifications that can be applied to image data (e.g., videos or images). This includes real-time modifications that modify the image when it is captured using a device sensor (e.g., one or more cameras) of the client device 102 and then displayed on the screen of the client device 102 with the modification. This also includes modifications to stored content (e.g., video clips in a gallery that can be modified). For example, in a client device 102 with access rights to multiple augmented reality content items, a user can use a single video clip with multiple augmented reality content items to see how different augmented reality content items will modify the stored clips. For example, by selecting different augmented reality content items for the same content, multiple augmented reality content items that apply different pseudo-random motion models can be applied to the same content. Similarly, real-time video capture can be used with the modifications shown to show how the video image currently captured by the sensor of the client device 102 will modify the captured data. Such data may simply be displayed on the screen without being stored in memory, or content captured by the device sensors may be recorded and stored in memory with or without modification (or both). In some systems, a preview feature may show how different augmented reality content items will look in different windows in the display simultaneously. For example, this may enable viewing multiple windows with different pseudo-random animations on the display simultaneously.

[0097] Thus, data and various systems using augmented reality content items or other such transformation systems using such data to modify content may involve detection of objects (e.g., faces, hands, bodies, cats, dogs, surfaces, objects, etc.), tracking of such objects as they leave, enter, and move around the field of view in a video frame, and modification or transformation of such objects as they are tracked. In various examples, different methods for implementing such transformations may be used. Some examples may involve generating a three-dimensional mesh model of one or more objects and using transformations of the model and animated textures within a video to implement the transformations. In other examples, tracking of points on an object may be used to place an image or texture (which may be two-dimensional or three-dimensional) at the tracked location. In further examples, neural network analysis of video frames may be used to place an image, model, or texture in content (e.g., an image or frame of a video). Thus, augmented reality content items refer both to images, models, and textures used to create transformations in content, and to additional modeling and analysis information required to implement such transformations using object detection, tracking, and placement.

[0098] Real-time video processing can be performed using any kind of video data (e.g., video streams, video files, etc.) stored in the memory of any kind of computerized system. For example, a user can load a video file and save it in the memory of the device, or a video stream can be generated using the device's sensors. In addition, any object, such as human faces and parts of the human body, animals, or non-living things (e.g., chairs, cars, or other objects) can be processed using computer animation models.

[0099] In some examples, when a specific modification is selected together with the content to be transformed, the element to be transformed is identified by the computing device, and then if the element to be transformed is present in the frame of the video, the element to be transformed is detected and tracked. The elements of the object are modified according to the modification request, thereby transforming the frame of the video stream. For different kinds of transformations, the transformation of the frame of the video stream can be performed by different methods. For example, for a frame transformation that mainly refers to a variation of the elements of the object, the feature points of each element of the object are calculated (for example, using an active shape model (ASM) or other known methods). Then, a grid based on the feature points is generated for each of at least one element of the object. The grid is used for the subsequent stage of tracking the elements of the object in the video stream. During the tracking process, the mentioned grid of each element is aligned with the position of each element. Then, additional points are generated on the grid. A first group of first points is generated for each element based on the modification request, and a group of second points is generated for each element based on the group of first points and the modification request. Then, the frame of the video stream can be transformed by modifying the elements of the object based on the group of first points and the group of second points and the grid. In such a method, the background of the modified object can also be changed or distorted by tracking and modifying the background.

[0100] In some examples, a transformation that changes some areas of an object using the elements of an object can be performed by calculating feature points of each element of the object and generating a grid based on the calculated feature points. Points are generated on the grid, and then various areas based on these points are generated. Then, the elements of the object are tracked by aligning the area of ​​each element with the position of each of at least one element, and the properties of the area can be modified based on the modification request, thereby transforming the frame of the video stream. Depending on the specific modification request, the properties of the mentioned area can be transformed in different ways. Such modifications may involve: changing the color of the area; removing at least part of the area from the frame of the video stream; including one or more new objects in the area based on the modification request; and modifying or distorting the elements of the area or object. In various examples, any combination of such modifications or other similar modifications may be used. For certain models to be animated, some feature points can be selected as control points for determining the entire state space of options for model animation.

[0101] In some examples of computer animation models that use face detection to transform image data, faces are detected on an image using a specific face detection algorithm (e.g., Viola-Jones). An active shape model (ASM) algorithm is then applied to the face region of the image to detect facial feature reference points.

[0102] Other methods and algorithms suitable for face detection may be used. For example, in some examples, features are located using landmarks that represent distinguishable points that are present in most of the images considered. For example, for facial landmarks, the location of the left eye pupil may be used. If the initial landmarks are not recognizable (for example, if the person has an eye patch), secondary landmarks may be used. Such a landmark identification process may be used for any such object. In some examples, a set of landmarks forms a shape. The shape may be represented as a vector using the coordinates of the points in the shape. One shape is aligned with another shape using a similarity transformation (allowing translation, scaling, and rotation) that minimizes the average Euclidean distance between the shape points. The average shape is the average of the aligned training shapes.

[0103] In some examples, a landmark search begins with an average shape aligned with the location and size of a face determined by a global face detector. Such a search then repeats the steps of suggesting tentative shapes by adjusting the positioning of shape points through template matching of the image texture around each point, and then fitting the tentative shapes to a global shape model until convergence occurs. In some systems, individual template matches are unreliable, and the shape model pools the results of weak template matches to form a stronger overall classifier. The entire search is repeated at each level of the image pyramid, from coarse to fine resolution.

[0104] The transformation system can capture an image or video stream on a client device (e.g., client device 102) and perform complex image manipulations locally on the client device 102 while maintaining an appropriate user experience, computational time, and power consumption. Complex image manipulations can include size and shape changes, emotion transfer (e.g., changing a face from a frown to a smile), state transfer (e.g., aging a subject, reducing apparent age, changing gender), style transfer, application of graphical elements, and any other suitable image or video manipulations enabled by a convolutional neural network that has been configured to execute efficiently on the client device 102.

[0105] In some examples, a computer animation model for transforming image data can be used by a system in which a user can capture an image or video stream of the user (e.g., a selfie) using a client device 102 having a neural network operating as part of a messaging client 104 operating on the client device 102. A transformation system operating within the messaging client 104 determines the presence of a face within the image or video stream and provides a modification icon associated with the computer animation model to transform the image data, or the computer animation model can be presented as associated with an interface described herein. The modification icon includes the following changes, which can be the basis for modifying the face of the user within the image or video stream as part of the modification operation. Once the modification icon is selected, the transformation system initiates a process of transforming the image of the user to reflect the selected modification icon (e.g., generating a smiley face on the user). Once the image or video stream is captured and the specified modification is selected, the modified image or video stream can be presented in a graphical user interface displayed on the client device 102. The transformation system can implement a complex convolutional neural network on a portion of the image or video stream to generate and apply the selected modification. That is, once a modification icon is selected, the user can capture an image or video stream and be presented with the results of the modification in real time or near real time. Furthermore, while the video stream is being captured, the modification can be persistent and the selected modification icon remains toggled. Machine-taught neural networks can be used to implement such modifications.

[0106] The graphical user interface presenting the modifications performed by the transformation system can supply additional interactive options for the user. Such options can be based on an interface for initiating content capture and selection of a specific computer animation model (e.g., initiated from a content creator user interface). In various examples, the modification can be persistent after the initial selection of the modification icon. The user can turn on or off the modification by tapping or otherwise selecting the face modified by the transformation system, and store it for later viewing or browsing to other areas of the imaging application. In the case of multiple faces modified by the transformation system, the user can globally turn on or off the modification by tapping or selecting a single face modified and displayed in the graphical user interface. In some examples, each face in a group of multiple faces can be modified individually, or such modifications can be switched individually by tapping or selecting each face or a series of each face displayed in the graphical user interface.

[0107] The story table 314 stores data about a collection of messages and associated image, video or audio data that are compiled into a collection (e.g., a story or gallery). The creation of a particular collection can be initiated by a particular user (e.g., each user whose record is maintained in the entity table 306). A user can create a "personal story" in the form of a collection of content that has been created and sent / broadcasted by the user. To this end, the user interface of the messaging client 104 may include a user-selectable icon to enable the sending user to add specific content to his or her personal story.

[0108] A collection may also constitute a "live story" that is a collection of content from multiple users that is created manually, automatically, or using a combination of manual and automatic techniques. For example, a "live story" may constitute a curated stream of user-submitted content from various locations and events. Users whose client devices have location services enabled and who are at a public location event at a particular time may be presented with an option, for example, via a user interface of the messaging client 104, to contribute content to a particular live story. Live stories may be identified to a user by the messaging client 104 based on his or her location. The end result is a "live story" told from a community perspective.

[0109] Another type of content collection is called a "location story" that enables users whose client devices 102 are located within a specific geographic location (e.g., on a college or university campus) to contribute to a specific collection. In some embodiments, contributions to location stories may require a second degree of authentication to verify that the end user belongs to a specific organization or other entity (e.g., is a student on a university campus).

[0110] As mentioned above, the video table 304 stores video data, which in one example is associated with a message whose record is maintained within the message table 302. Similarly, the image table 312 stores image data associated with a message whose message data is stored in the entity table 306. The entity table 306 may associate various enhancements from the enhancement table 310 with the various images and videos stored in the image table 312 and the video table 304.

[0111] Data communication architecture

[0112] Figure 44 is a schematic diagram illustrating the structure of a message 400 according to some examples, the message 400 being generated by a messaging client 104 for transmission to another messaging client 104 or a messaging server 118. The content of a particular message 400 is used to populate a message table 302 stored in a database 126, which is accessible by a messaging server 118. Similarly, the content of the message 400 is stored in memory as "in-flight" or "in-flight" data of a client device 102 or an application server 114. The message 400 is shown to include the following example components:

[0113] Message identifier 402 : a unique identifier that identifies the message 400 .

[0114] Message text payload 404 : Text to be generated by a user via the user interface of the client device 102 and included in the message 400 .

[0115] Message image payload 406 : Image data captured by a camera component of the client device 102 or retrieved from a memory component of the client device 102 and included in the message 400 . The image data for a sent or received message 400 may be stored in the image table 312 .

[0116] Message video payload 408 : Video data captured by the camera component or retrieved from the memory component of the client device 102 and included in the message 400 . The video data for a message 400 sent or received may be stored in the video table 304 .

[0117] Message audio payload 410 : audio data captured by a microphone or retrieved from a memory component of the client device 102 and included in the message 400 .

[0118] Message enhancement data 412: Enhancement data (e.g., filters, stickers, or other annotations or enhancements) representing enhancements to be applied to the message image payload 406, message video payload 408, or message audio payload 410 of the message 400. The enhancement data for a sent or received message 400 may be stored in the enhancement table 310.

[0119] Message duration parameter 414: A parameter value indicating the amount of time in seconds that the content of a message (eg, message image payload 406, message video payload 408, message audio payload 410) is to be presented to or accessible by a user via messaging client 104.

[0120] Message geolocation parameters 416: Geolocation data (e.g., latitude and longitude coordinates) associated with the content payload of the message. Multiple message geolocation parameter 416 values ​​may be included in the payload, with each of these parameter values ​​being associated with a content item included in the content (e.g., a specific image in a message image payload 406, or a specific video in a message video payload 408).

[0121] Message story identifier 418: An identifier value that identifies one or more content collections (e.g., "stories" identified in story table 314) with which a particular content item in message image payload 406 of message 400 is associated. For example, multiple images within message image payload 406 may each be associated with multiple content collections using an identifier value.

[0122] Message tags 420: Each message 400 may be tagged with a plurality of tags, each of such plurality of tags indicating the subject of the content included in the message payload. For example, where a particular image included in the message image payload 406 depicts an animal (e.g., a lion), a tag value may be included within the message tags 420 indicating the relevant animal. The tag values ​​may be manually generated based on user input, or may be automatically generated using, for example, image recognition.

[0123] • Message sender identifier 422: An identifier (eg, a messaging system identifier, an email address, or a device identifier) ​​that indicates the user of the client device 102 on which the message 400 was generated and from which the message 400 was sent.

[0124] • Message recipient identifier 424: Indicates an identifier (eg, a messaging system identifier, an email address, or a device identifier) ​​of the user of the client device 102 to which the message 400 is addressed.

[0125] The content (e.g., value) of each component of message 400 may be a pointer to a location in a table where the content data value is stored. For example, the image value in message image payload 406 may be a pointer to a location within image table 312 (or the address of a location within image table 308). Similarly, the value within message video payload 408 may point to data stored within video table 304, the value stored within message enhancement data 412 may point to data stored in enhancement table 310, the value stored within message story identifier 418 may point to data stored in story table 314, and the values ​​stored within message sender identifier 422 and message recipient identifier 424 may point to user records stored within entity table 306.

[0126] Figure 55 is a diagrammatic representation of operations 500 performed by the pose generation system 230 according to some examples. Specifically, the operations 500 represent the manner in which the CHAIN ​​implementation of the pose generation system 230 is trained. To train the pose generation system 230, an input image 520 is received, which may be a 2D image of a person in a given pose. The target image 510 may include an image that is the same as or similar to the input image 520. A feature extractor 550 is applied to the input image 520 to generate a set of soft feature pools 552. The soft feature pools 552 may be a matrix of feature sets extracted from the input image 520 arranged based on the expected positioning of different joints.

[0127] As an example, the first row of the matrix may include a set of features corresponding to the shoulder joint. Features close to the expected location of the shoulder joint are assigned a greater weight than features far from the expected location of the shoulder joint. Surface coordinate representations 530 of different landmarks or joints are received and used to obtain features or pixel values ​​of the input image 520 and assign features or pixel values ​​on the basis of the landmarks or joints. The surface coordinate representation 530 may be received as a two-dimensional continuous surface representation of a three-dimensional object and include multiple landmark locations. As an example, an ellipse-like area on the upper right side of the estimated soft intrinsic distance representation 540 corresponds to the upper right joint in the surface coordinate representation 530 and the shoulder of the input image 520 in the image coordinate representation. The weighted average of the pixel values ​​in this particular area is calculated and assigned to one or more rows of the matrix to generate soft feature pooling 552. Therefore, the system calculates the average of the entire area instead of looking at a specific location and assigning that location as a joint.

[0128] The posture generation system 230 uses dense posture analysis to locate areas in the human body. In these areas, the posture generation system 230 averages the features of each area respectively, and the average is used as the appearance encoding of the image 520. Each tile in the estimated soft intrinsic distance 540 (the first set of soft membership functions) represents the possibility that the pixel value or feature of the input image 520 corresponds to a specific joint based on the surface coordinate representation 530. In some cases, the features of each joint or matrix row are unpooled by copying the average value of the features across the entire image domain to generate soft feature unpooling 554. This uses a second set of soft membership functions to create a dense feature representation of the extracted features. The average is guided by the amplitude determined by the figure of the estimated soft intrinsic distance 540. In fact, a given feature is copied and pasted anywhere, but scaled down in areas away from the joints. That is, for appearance adjustment, the posture generation system 230 uses the same P'soft membership function to collect image information into a compact, controllable appearance code, which is then broadcast back to the original image coordinates and cascaded to the soft membership function.

[0129] In one example, given an RGB image, the pose generation system 230 obtains its UV mapping using DensePose and softly assigns each object pixel to a control point based on the Euclidean distance between its respective UV values ​​(e.g., using a first set of soft membership functions to generate encoded features representing the extracted features). A channel for background pixels is introduced, thereby obtaining a tensor of P'=P+1 soft membership functions or regions that roughly locate each pixel on the human body. This information allows CHAIN ​​to modulate the behavior of the network in different ways based on the specific body region corresponding to pixel i.

[0130] In some examples, for the collection phase, the pose generation system 230 processes the RGB image using a fully convolutional encoder that produces K=32 feature values ​​at its top-most layer for each of the P' membership functions, for a total of K×P' channels. Each of these channels encodes different region-specific appearance information (e.g., hair color and style around the face, or shoe type around the foot). This information is compressed region by region by performing membership-weighted estimates of the mean and variance of each channel:

[0131]

[0132]

[0133] where i refers to the neuron location, Indicates the soft membership function for region p expectations, and C k,p is the response to the kth channel of region p. Both the feature mean and variance are encoded as they are commonly used to describe texture properties.

[0134] Gathering this information provides a compact, D=2K×P'-dimensional code of the appearance in terms of feature statistics around a sparse set of control points. These can be interchanged or attenuated between regions of different people, allowing controllable image synthesis, for example by gradually interpolating between different features or clothing. By relying again on soft membership functions, this sparse representation is spread into a densely defined signal. In particular, the sparse code is distributed over the regions for which it is most responsible:

[0135]

[0136] Note that π p The function is defined over the entire image domain, which effectively "smears" the kth channel of the pth region over the portion of the image it occupies, while smoothly blending it with channels from neighboring regions. These operations provide an appearance conditioning signal and can be understood as implementing surface-driven image encoding, such as encoding geometry and appearance 560.

[0137] The estimated soft intrinsic distance 540 is concatenated with the soft feature unpooled features 554 to provide an encoded geometry and appearance representation 560. The encoded geometry and appearance representation 560 is applied to an Adain network 570 to generate an output image.

[0138] In an example, the feature extractor 550 is implemented as a neural network (e.g., a convolutional neural network) to generate soft feature pooling 552. The feature extractor 550 can be trained on a set of training images. For example, a first training image can be received and processed by the feature extractor 550. The feature extractor 550 uses the surface coordinate representation 530 to generate soft feature pooling 552. The soft feature pooling 552 is processed to generate soft feature anti-pooling 554. The same first training image is also processed as a target image to obtain the estimated soft intrinsic distance 540. The encoded geometry and appearance 560 are generated and used by the Adain network 570 to generate an output image. The output image is compared with the first training image to calculate the loss. Based on the deviation and loss between the two images, the parameters of the feature extractor 550 are updated and used to process the second training image. Once the loss is within a threshold or the stopping criterion is met, the training ends. That is, during training, the same image is used to perform pooling and anti-pooling of features.

[0139] Figure 6 600 is a diagrammatic representation of operations 600 performed by the pose generation system 230 according to some examples. Operation 600 is performed after the feature extractor 550 is trained. That is, instead of inputting the same image as the input image and the target image, a first image depicting a person in a given pose is received as the input image. A target image depicting the same person or a different person in another pose is received. The trained feature extractor 550 processes the input image to obtain soft feature pooling. The target image is processed to generate a target soft intrinsic distance. The target soft intrinsic distance is concatenated with the unpooled features of the input image to provide an encoded target geometry and input appearance. This information is processed by a decoder (e.g., Adain network 570) to generate a decoded output image.

[0140] That is, the encoder uses two signals to drive the output. Figure 6 As shown, the input image is processed to encode the appearance of the input image. For pooling, the source image is used, and for unpooling, the target image is used. For example, the pose generation system 230 obtains a weighted average of the features in a given area. Then, the pose generation system 230 takes the average vector and places the features of the area on the target image. That is, the features of the input image are smeared according to the features of the target image.

[0141] In some cases, the feature extractor 550 is further trained based on paired images depicting people in different poses. For example, a first training image depicting a person in a first pose is received as an input image. A second training image depicting a person in a second pose is received as a target image. The first training image is processed by the feature extractor 550 to generate a soft feature pooling, which is then unpooled using the features of the second training image. The unpooled features are concatenated with the target soft intrinsic distance and processed by the decoder to generate an output image. A loss is calculated between the generated output image and the second training image, and the loss is used to update the parameters of the feature extractor 550 and / or the Adain network 570.

[0142] In some cases, not all parts of the target image are observed in the input image. For example, in one image, only the side of a person is observed by the pose generation system 230, while in another image, only the front of the person is observed by the pose generation system 230. In this case, the UV value of each pixel in the input image is mapped to distinguish those pixels that are observed from those that are not observed. Figure 7 The diffusion and attention layer 710 shown in is a trained network that can be included as part of the feature extractor 550 that diffuses visible information to unseen regions while using features from unobserved regions by the feature extractor 550 and / or the Adain network 570.

[0143] The goal of this task is to use separate appearance donors and pose donors and synthesize a person with the appearance of the appearance donor and the pose of the pose donor. The diffusion and attention layer or network 710 estimates the missing feature values ​​of the unobserved parts and then combines them with the observed feature values. In particular, the encoded features are updated by a residual branch modulated by an attention signal that allows the pose generation system 230 to make stronger changes to the unobserved features and keep the fully observed features unchanged:

[0144] Diffusion: F D =EF O

[0145] Note: F′=AF D +(1-A)F O

[0146] A p =σ( <w p , C>)

[0147] Among them, W, w p is the parameter of end-to-end learning, F O indicates the observed encoding, F Dis the result of diffusing information across control points, A is an attention signal indicating whether the encoding should be updated or retained, and C is a P-dimensional vector obtained from the normalized area across regions of the membership function,

[0148]

[0149] By w p , each region p can learn its own attention function, allowing, for example, a smaller head region to have a lower threshold to consider it occluded than a larger torso region. The diffusion and attention layer or network 710 is also trained based on paired training images to learn and update the diffusion and attention parameters (e.g., W, w) based on back-propagation. p ). The attention signal A measures whether a pixel is observed. The attention signal controls whether a diffuse feature or an observed feature should be used. When a feature is visible, the feature or expected feature is used in the feature extractor 550, and when the feature is not visible, the diffuse feature is used instead. In some cases, soft feature pooling marks a feature as a diffuse feature or a visible feature, and then the diffuse feature or the visible feature is used in the soft feature unpooling operation.

[0150] Figure 8 is a graphical representation 800 of location and feature statistical modeling according to some examples. In some cases, feature extractor 550 also implements location and feature statistical modeling.

[0151] Position and feature statistics modeling collects the first and second order moments of the filter bank for a reference dataset (or a single image), and then synthesizes a new signal that reproduces the same statistics. Depending on whether the new signal is randomly initialized or constrained to stay close to some content signal, texture synthesis or style transfer is provided respectively. Instead of influencing the decoder network based on the style signal, the statistics of the network features are adjusted so that their Gram matrices match. This operation is supplemented by a decoder that learns a mapping from arbitrary network features to the input image. Therefore, any feature-level operation has a direct image counterpart that can be computed efficiently.

[0152] The disclosed system introduces cartographic information in an efficient feed-forward system for style transfer that relies on Gaussian density modeling and subsequent matching ("coloring") of feature statistics. This allows the feature extractor 550 to condition the synthesis on continuous coordinates and facilitates texture modeling and inpainting that takes into account surface locations.

[0153] Whitening and color transformation can be implemented by the feature extractor 550 to match the statistics of the VGG network features of the content image with the style image. In particular, The empirical feature mean and covariance of the content signal c are represented by represents the empirical feature mean and covariance of the style signal, with the goal of matching the content feature statistics with those of the target signal. To this end, the feature extractor 550 first centers and rotates the content features using a whitening transformation:

[0154]

[0155] Among them, E c , D c Depend on In the second step, the feature extractor 550 again transforms the features using the shading transformation:

[0156]

[0157] Among them, now It can be easily verified has zero mean and unit covariance, and Mean with style signal and covariance This process is efficient because it only requires two matrix diagonalizations, rather than gradient descent.By taking into account the dependence of texture statistics on position, the feature extractor 550 can handle the non-stationarity of stylization.

[0158] A multivariate Gaussian model is used to capture the dependence of the feature activation vector f on continuous position coordinates x. These can be pixel locations, or in this example, chart coordinates associated with a given observation. Specifically, the feature extractor 550 considers:

[0159]

[0160] The Gaussian mean and covariance matrix of the source and style images are estimated by accumulating local second-order statistics in each region. Using this factorization, spatially correlated feature activations can be obtained through the conditional distribution Modeling, where

[0161]

[0162]

[0163] The position-corrected counterparts of the whitening transform and the shading transform can be obtained as follows:

[0164]

[0165]

[0166] in, and The conditional feature covariance matrix is ​​used, and the centering transformation depends on the specific feature location x.

[0167] In some cases, a 2D chart coordinate x is mapped by a learnable embedding x'=φ(x) implemented via a two-layer MLP with 256 hidden units and 16 output vectors. The feature extractor 550 uses a joint feature texture model when modeling the appearance in the intrinsic UV coordinates. There is mirror symmetry around the central vertical axis (capturing the left / right symmetry of the appearance), and features should be more correlated in the horizontal direction rather than the vertical direction (because the texture changes more dramatically from pants / skirt to top / shirt). Based on these observations, the embedding network minimizes the following objectives:

[0168]

[0169] in,

[0170]

[0171]

[0172] The penalized distance on the (vertical) u-axis is larger than the penalized distance on the (horizontal) v-axis and captures the symmetry around the center.

[0173] As an example, Figure 8 As shown, an input image 810 is received. Along the horizontal axis, as shown by 820, a first portion of the input image (e.g., the portion where the torso appears) is copied across the image domain. That is, the pixels of the first portion are mirrored along the entire image space of the horizontal axis portion. Along the horizontal axis, as shown by 822, a second portion of the input image (e.g., the portion where the legs appear) is copied across the image domain. That is, the pixels of the second portion are mirrored along the entire image space of the horizontal axis portion. In this way, if a given texture appears in the target image, the texture will be statistically modeled and appear in the same portion of the output image when applied to the input image. In this way, for example, a shirt pattern will be visible across different poses of the target and input images.

[0174] Fig. 9 is a diagrammatic representation of a graphical user interface 900 according to some examples. Fig. 9As shown, an input image 910 is received and a target image 920 is obtained. The pose generation system 230 processes the input image 910 to generate pooled features 552. The pose generation system 230 obtains the target soft intrinsic distance from the target image 920 and uses the target soft intrinsic distance from the target image 920 to unpool or generate soft features of the pooled features 552. This generates an encoded target geometry and input appearance, which is provided to the CHAIN ​​decoder to generate an output image 930. As an example, a person in a first pose facing away from the camera device is received as an input image, and the target image may depict the same person in a second pose (e.g., a side view) with different clothing (e.g., a shirt). The pose generation system 230 outputs an image 930 in which the person in the first pose depicted in the input image 910 is depicted as being in the pose of the target image 920 and having the clothing of the person in the target image 920.

[0175] Fig. 10A 1000 is a flowchart illustrating an example operation of the messaging client 104 in performing the process 1000 according to an example. The process 1000 can be implemented in computer-readable instructions for execution by one or more processors, so that the operations of the process 1000 can be performed in part or in whole by the functional components of the messaging server system 108; therefore, the process 1000 is described below by way of example with reference thereto. However, in other examples, at least some of the operations of the process 1000 can be deployed on various other hardware configurations. The operations in the process 1000 can be performed in parallel in any order, or can be skipped and omitted entirely.

[0176] At operation 1001, the image processing server 122 receives a two-dimensional continuous surface representation of a three-dimensional object, the continuous surface including a plurality of landmark locations. For example, the gesture generation system 230 receives the surface coordinate representation 530 ( Figure 5 ).

[0177] At operation 1002, the image processing server 122 determines a first set of soft membership functions based on landmark locations and relative locations of points in a two-dimensional continuous surface representation. For example, the pose generation system 230 calculates an estimated soft intrinsic distance 540 based on an input dense pose or target image.

[0178] At operation 1003 , image processing server 122 receives a two-dimensional input image, the input image including an image of an object. For example, gesture generation system 230 receives input image 520 .

[0179] At operation 1004 , the image processing server 122 extracts a plurality of features from the input image using a feature recognition model. For example, the pose generation system 230 applies the feature extractor 550 to generate the soft feature pooling 552 .

[0180] At operation 1005 , the image processing server 122 generates an encoded feature representation of the extracted features using a first set of soft membership functions. For example, the pose generation system 230 generates the soft feature pooling 552 using the surface coordinate representation 530 .

[0181] At operation 1006, the image processing server 122 generates a dense feature representation of the extracted features from the encoded representation using a second set of soft membership functions. For example, the pose generation system 230 performs soft feature unpooling 554 using the input dense pose or features of the target image (e.g., the estimated soft intrinsic distance 540).

[0182] At operation 1007, the image processing server 122 uses the neural image decoder model to process the second set of soft membership functions and the dense feature representation to generate an output image. For example, the pose generation system 230 uses the Adain decoder 570 to process the encoded geometry and appearance 560 information to generate an output image.

[0183] Fig. 10B 1000 is a flowchart illustrating an example operation of the messaging client 104 in performing the process 1000 according to an example. The process 1000 can be implemented in computer-readable instructions for execution by one or more processors, so that the operations of the process 1000 can be performed in part or in whole by the functional components of the messaging server system 108; therefore, the process 1000 is described below by way of example with reference thereto. However, in other examples, at least some of the operations of the process 1000 can be deployed on various other hardware configurations. The operations in the process 1000 can be performed in parallel in any order, or can be skipped and omitted entirely.

[0184] At operation 1011 , the image processing server 122 determines a set of content features from the source image using an encoder neural network. For example, the pose generation system 230 processes the input image to generate a set of features, such as soft feature pooling 552 .

[0185] At operation 1012, the image processing server 122 determines a set of style features from the style image using an encoder neural network. For example, the pose generation system 230 processes the target image to identify style features (eg, patterns on a shirt or pants of the image).

[0186] At operation 1013, the image processing server 122 uses the joint statistics of the position and content features in the region of the source image to determine the position-dependent content features. For example, the gesture generation system 230 identifies the region in the source image throughout which the style features should be replicated, such as the torso region should have the feature replicated horizontally but not vertically. As another example, the head region is a position-dependent content feature that should not have the style applied to it.

[0187] At operation 1014, the image processing server 122 uses the joint statistics of the position and style features in the region of the style image to determine the position-dependent style features. For example, the pose generation system 230 identifies the region in the source image throughout which the style features should be replicated, such as the torso region should have features replicated horizontally but not vertically. Specifically, each region 820 and 822 replicates the features of the style image 810 horizontally across its region.

[0188] At operation 1015 , the image processing server 122 generates a set of transformed content features from the set of location-related content features based on joint statistics of the location and content features.

[0189] At operation 1016, the image processing server 122 generates a set of transformed style features from the set of transformed content features based on the joint statistics of the position and style features. For example, the pose generation system 230 applies the style of the style image in one region (e.g., the shirt region) but not in another region (e.g., the head region) to the source image.

[0190] At operation 1017 , the image processing server 122 generates another output image based on the transformed set of style features and the transformed set of content features using the decoder neural network.

[0191] Machine Architecture

[0192] Fig.11It is a diagrammatic representation of a machine 1100 in which instructions 1108 (e.g., software, programs, applications, applet, app, or other executable code) for causing the machine 1100 to perform any one or more of the methods discussed herein may be executed. For example, the instructions 1108 may cause the machine 1100 to perform any one or more of the methods described herein. The instructions 1108 convert a general-purpose, non-programmed machine 1100 into a specific machine 1100 that is programmed to perform the functions described and shown in the manner described. The machine 1100 may operate as a standalone device or may be coupled (e.g., networked) to other machines. In a networked deployment, the machine 1100 may operate in the capacity of a server machine or a client machine in a server-client network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine 1100 may include, but is not limited to, a server computer, a client computer, a personal computer (PC), a tablet computer, a laptop computer, a netbook, a set-top box (STB), a personal digital assistant (PDA), an entertainment media system, a cellular phone, a smart phone, a mobile device, a wearable device (e.g., a smart watch), a smart home device (e.g., a smart appliance), other smart devices, a network device, a network router, a network switch, a network bridge, or any machine capable of sequentially or otherwise executing instructions 1108 specifying actions to be taken by the machine 1100. In addition, although only a single machine 1100 is shown, the term "machine" should also be taken to include a collection of machines that individually or jointly execute instructions 1108 to perform any one or more of the methods discussed herein. For example, the machine 1100 may include any of the client devices 102 or a number of server devices that form part of the messaging server system 108. In some examples, the machine 1100 may also include both a client system and a server system, wherein certain operations of a particular method or algorithm are performed on the server side, and wherein certain operations of a particular method or algorithm are performed on the client side.

[0193] The machine 1100 may include a processor 1102, a memory 1104, and an input / output (I / O) component 1138 that may be configured to communicate with each other via a bus 1140. In an example, the processor 1102 (e.g., a central processing unit (CPU), a reduced instruction set computing (RISC) processor, a complex instruction set computing (CISC) processor, a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a radio frequency integrated circuit (RFIC), another processor, or any suitable combination thereof) may include, for example, a processor 1106 that executes instructions 1108 and a processor 1110. The term "processor" is intended to include a multi-core processor that may include two or more independent processors (sometimes referred to as "cores") that may execute instructions simultaneously. Although Fig.11 Multiple processors 1102 are shown, but the machine 1100 may include a single processor with a single core, a single processor with multiple cores (e.g., a multi-core processor), multiple processors with a single core, multiple processors with multiple cores, or any combination thereof.

[0194] The memory 1104 includes a main memory 1112, a static memory 1114, and a storage unit 1116, which are all accessible by the processor 1102 via the bus 1140. The main memory 1104, the static memory 1114, and the storage unit 1116 store instructions 1108 that implement any one or more of the methods or functions described herein. The instructions 1108 may also reside, completely or partially, within the main memory 1112, within the static memory 1114, within the machine-readable medium 1118 within the storage unit 1116, within at least one of the processors 1102 (e.g., within a cache memory of the processor), or within any suitable combination thereof during execution thereof by the machine 1100.

[0195] I / O components 1138 may include various components for receiving input, providing output, generating output, transmitting information, exchanging information, capturing measurements, etc. The specific I / O components 1138 included in a particular machine will depend on the type of machine. For example, a portable machine such as a mobile phone may include a touch input device or other such input mechanism, while a headless server machine may not include such a touch input device. It should be appreciated that I / O components 1138 may include Fig.1111 and 12. In various examples, the I / O components 1138 may include a user output component 1124 and a user input component 1126. The user output component 1124 may include a visual component (e.g., a display such as a plasma display panel (PDP), a light emitting diode (LED) display, a liquid crystal display (LCD), a projector, or a cathode ray tube (CRT)), an acoustic component (e.g., a speaker), a tactile component (e.g., a vibration motor, a resistance mechanism), other signal generators, etc. The user input component 1126 may include an alphanumeric input component (e.g., a keyboard, a touch screen configured to receive alphanumeric input, an optical keyboard, or other alphanumeric input component), a point-based input component (e.g., a mouse, a touch pad, a trackball, a joystick, a motion sensor, or another pointing instrument), a tactile input component (e.g., a physical button, a touch screen or other tactile input component that provides positioning and / or force of a touch or touch gesture), an audio input component (e.g., a microphone), etc.

[0196] In another example, the I / O component 1138 may include: a biometric component 1128, a motion component 1130, an environment component 1132, or a position component 1134, as well as a variety of other components. For example, the biometric component 1128 includes components for detecting expressions (e.g., hand expressions, facial expressions, voice expressions, body gestures, or eye tracking), measuring biosignals (e.g., blood pressure, heart rate, body temperature, sweat, or brain waves), identifying people (e.g., voice recognition, retinal recognition, facial recognition, fingerprint recognition, or EEG-based recognition), etc. The motion component 1130 includes an acceleration sensor component (e.g., an accelerometer), a gravity sensor component, and a rotation sensor component (e.g., a gyroscope).

[0197] Environmental components 1132 include, for example, one or more cameras (with still image / photo and video capabilities), an illumination sensor component (e.g., a photometer), a temperature sensor component (e.g., one or more thermometers that detect ambient temperature), a humidity sensor component, a pressure sensor component (e.g., a barometer), an acoustic sensor component (e.g., one or more microphones that detect background noise), a proximity sensor component (e.g., an infrared sensor that detects nearby objects), a gas sensor (e.g., a gas detection sensor that detects concentrations of hazardous gases for safety or measures pollutants in the atmosphere), or other components that can provide indications, measurements, or signals corresponding to the surrounding physical environment.

[0198] With respect to cameras, client device 102 may have a camera system including, for example, a front-facing camera on a front surface of client device 102 and a rear-facing camera on a rear surface of client device 102. The front-facing camera may, for example, be used to capture still images and videos of a user of client device 102 (e.g., a "selfie"), which may then be enhanced with the enhancement data (e.g., filters) described above. For example, the rear-facing camera may be used to capture still images and videos in a more conventional camera mode, which images are similarly enhanced with the enhancement data. In addition to the front-facing camera and the rear-facing camera, client device 102 may also include a 360° camera for capturing 360° photos and videos.

[0199] Additionally, the camera system of the client device 102 may include dual rear cameras (e.g., a main camera and a depth sensing camera), or even triple, quad, or quintuple rear camera configurations on the front and back sides of the client device 102. For example, these multi-camera systems may include a wide-angle camera, an ultra-wide-angle camera, a telephoto camera, a macro camera, and a depth sensor.

[0200] The location component 1134 includes a positioning sensor component (e.g., a GPS receiver component), an altitude sensor component (e.g., an altimeter or barometer that detects air pressure, from which the altitude can be obtained), an orientation sensor component (e.g., a magnetometer), and the like.

[0201] Various technologies may be used to implement communications. The I / O components 1138 also include a communication component 1136 that is operable to couple the machine 1100 to the network 1120 or device 1122 via a corresponding coupling or connection. For example, the communication component 1136 may include a network interface component or other suitable device that interfaces with the network 1120. In other examples, the communication component 1136 may include a wired communication component, a wireless communication component, a cellular communication component, a near field communication (NFC) component, Parts (e.g. Low power consumption), Device 1122 may be another machine or any of a variety of peripheral devices (eg, a peripheral device coupled via USB).

[0202] In addition, the communication component 1136 can detect the identifier, or include a component operable to detect the identifier. For example, the communication component 1136 can include a radio frequency identification (RFID) tag reader component, an NFC smart tag detection component, an optical reader component (e.g., an optical sensor for detecting one-dimensional bar codes such as Universal Product Code (UPC) bar codes, multi-dimensional bar codes such as Quick Response (QR) codes, Aztec codes, Data Matrix, Dataglyph, MaxiCode, PDF417, Ultra Code, UCC RSS-2D bar codes, and other optical codes) or an acoustic detection component (e.g., a microphone for identifying tagged audio signals). In addition, various information can be obtained via the communication component 1136, such as positioning via Internet Protocol (IP) geolocation, location information ... Positioning by signal triangulation, positioning via detection of NFC beacon signals, etc., which may indicate a specific position.

[0203] Various memories (e.g., main memory 1112, static memory 1114, and memory of processor 1102) and storage unit 1116 may store one or more sets of instructions and data structures (e.g., software) implemented or used by any one or more of the methods or functions described herein. When executed by processor 1102, these instructions (e.g., instructions 1108) cause various operations to implement the disclosed examples.

[0204] The instructions 1108 may be sent or received over the network 1120 via a network interface device (e.g., a network interface component included in the communication component 1136) using a transmission medium and using any of a number of well-known transmission protocols (e.g., the Hypertext Transfer Protocol (HTTP)). Similarly, the instructions 1108 may be sent or received via a coupling (e.g., a peer-to-peer coupling) with the device 1122 using a transmission medium.

[0205] Software Architecture

[0206] Fig.121200 is a block diagram illustrating a software architecture 1204 that may be installed on any one or more of the devices described herein. The software architecture 1204 is supported by hardware such as a machine 1202 including a processor 1220, a memory 1226, and an I / O component 1238. In this example, the software architecture 1204 may be conceptualized as a stack of layers, where each layer provides specific functionality. The software architecture 1204 includes layers such as an operating system 1212, a library 1210, a framework 1208, and an application 1206. In operation, the application 1206 invokes an API call 1250 through the software stack and receives a message 1252 in response to the API call 1250.

[0207] The operating system 1212 manages hardware resources and provides public services. The operating system 1212 includes, for example, a kernel 1214, services 1216, and drivers 1222. The kernel 1214 acts as an abstraction layer between the hardware layer and other software layers. For example, the kernel 1214 provides memory management, processor management (e.g., scheduling), component management, networking and security settings, and other functions. Services 1216 can provide other public services to other software layers. Drivers 1222 are responsible for controlling or interfacing with the underlying hardware. For example, drivers 1222 may include display drivers, camera drivers, or Low-power drivers, Flash drivers, Serial communication drivers (e.g., USB drivers), Drivers, audio drivers, power management drivers, etc.

[0208] The libraries 1210 provide a common low-level infrastructure used by the applications 1206. The libraries 1210 may include system libraries 1218 (e.g., C standard libraries) that provide functions such as memory allocation functions, string manipulation functions, mathematical functions, etc. In addition, the libraries 1210 may include API libraries 1224, such as media libraries (e.g., libraries for supporting presentation and manipulation of various media formats, such as Moving Picture Experts Group 4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Experts Group Layer 3 (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR) audio codec, Joint Photographic Experts Group (JPEG or JPG), or Portable Network Graphics (PNG)), graphics libraries (e.g., OpenGL framework for presentation in two dimensions (2D) and three dimensions (3D) in graphics content on a display), database libraries (e.g., SQLite providing various relational database functions), web libraries (e.g., WebKit providing web browsing functions), etc. The library 1210 may also include various other libraries 1228 to provide many other APIs to the application 1206 .

[0209] The framework 1208 provides a common high-level infrastructure used by the applications 1206. For example, the framework 1208 provides various graphical user interface (GUI) functions, high-level resource management, and high-level positioning services. The framework 1208 can provide a wide range of other APIs that can be used by the applications 1206, some of which can be specific to a particular operating system or platform.

[0210] In an example, applications 1206 may include a home application 1236, a contact application 1230, a browser application 1232, a book reader application 1234, a positioning application 1242, a media application 1244, a messaging application 1246, a game application 1248, and a variety of other applications such as external applications 1240. Application 1206 is a program that executes the functions defined in the program. Various programming languages ​​can be used to create one or more of the applications 1206 constructed in various ways, such as object-oriented programming languages ​​(e.g., Objective-C, Java, or C++) or procedural programming languages ​​(e.g., C language or assembly language). In a specific example, external application 1240 (e.g., an application developed by an entity other than the vendor of a particular platform using an ANDROIDTM or IOSTM software development kit (SDK)) can be an application developed on a platform such as IOSTM, ANDROIDTM

[0211] , Mobile software running on the mobile operating system of the Phone or another mobile operating system. In this example, the external application 1240 can activate the API call 1250 provided by the operating system 1212 to facilitate the functions described herein.

[0212] Glossary

[0213] "Carrier signal" refers to any intangible medium that can store, encode or carry instructions for execution by the machine and includes digital or analog communications signals or other intangible media to facilitate communication of such instructions. Instructions may be sent or received over a network using a transmission medium via a network interface device.

[0214] "Client Device" refers to any machine that interfaces with a communications network to obtain resources from one or more server systems or other client devices. A client device may be, but is not limited to, a mobile phone, a desktop computer, a laptop computer, a portable digital assistant (PDA), a smart phone, a tablet computer, an ultrabook, a netbook, a laptop computer, a multiprocessor system, a microprocessor-based or programmable consumer electronics product, a game console, a set-top box, or any other communications device that a user may use to access a network.

[0215] "Communications network" means one or more parts of a network, which may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), the Internet, a part of the Internet, a part of the public switched telephone network (PSTN), a plain old telephone service (POTS) network, a cellular telephone network, a wireless network, The coupling may be a network, another type of network, or a combination of two or more such networks. For example, the network or a portion of the network may include a wireless network or a cellular network, and the coupling may be a code division multiple access (CDMA) connection, a global system for mobile communications (GSM) connection, or other type of cellular or wireless coupling. In this example, the coupling may implement any of various types of data transmission technologies, such as single carrier radio transmission technology (1xRTT), evolution data optimized (EVDO) technology, general packet radio service (GPRS) technology, enhanced data rates for GSM evolution (EDGE) technology, the third generation partnership project (3GPP) including 3G, fourth generation wireless (4G) network, universal mobile telecommunications system (UMTS), high speed packet access (HSPA), world wide interoperability for microwave access (WiMAX), long term evolution (LTE) standards, other data transmission technologies defined by various standard setting organizations, other long distance protocols, or other data transmission technologies.

[0216] "Component" means a device, physical entity, or logic having boundaries defined by function or subroutine calls, branch points, APIs, or other techniques provided for partitioning or modularizing specific processing or control functions. A component may be combined with other components via its interfaces to perform a machine process. A component may be a packaged functional hardware unit designed for use with other components and may be part of a program that typically performs a specific one of the related functions.

[0217] Components may constitute software components (e.g., code implemented on a machine-readable medium) or hardware components. A "hardware component" is a tangible unit that is capable of performing certain operations and may be configured or arranged in some physical manner. In various examples, one or more computer systems (e.g., stand-alone computer systems, client computer systems, or server computer systems) or one or more hardware components of a computer system (e.g., a processor or group of processors) may be configured by software (e.g., an application or application portion) as hardware components that operate to perform certain operations as described herein.

[0218] Hardware components can also be implemented mechanically, electronically or in any suitable combination thereof. For example, a hardware component may include a dedicated circuit or logic that is permanently configured to perform certain operations. A hardware component may be a dedicated processor, such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). A hardware component may also include a programmable logic or circuit that is temporarily configured to perform certain operations by software. For example, a hardware component may include software executed by a general-purpose processor or other programmable processor. Once configured by such software, the hardware component becomes a specific machine (or a specific component of a machine) that is uniquely customized to perform the configured function, and is no longer a general-purpose processor. It will be understood that the decision to implement a hardware component mechanically, in a dedicated and permanently configured circuit, or in a temporarily configured circuit (e.g., configured by software) can be driven by cost and time considerations. Accordingly, the phrase "hardware component" (or "hardware-implemented component") should be understood to include a tangible entity, i.e., an entity that is physically constructed, permanently configured (e.g., hardwired) or temporarily configured (e.g., programmed) to operate in some way or perform certain operations described herein.

[0219] Considering an example where hardware components are temporarily configured (e.g., programmed), each of the hardware components need not be configured or instantiated at any one time. For example, where the hardware components include a general-purpose processor that is configured by software to be a special-purpose processor, the general-purpose processor can be configured to be a different special-purpose processor (e.g., including different hardware components) at different times. Thus, the software configures one or more specific processors to, for example, constitute a specific hardware component at one time and to constitute different hardware components at different times.

[0220] Hardware components can provide information to other hardware components and receive information from other hardware components. Therefore, the described hardware components can be considered to be coupled in communication. In the case of multiple hardware components simultaneously, communication can be realized by (for example, by appropriate circuits and buses) signal transmission between or among two or more hardware components. In an example in which multiple hardware components are configured or instantiated at different times, communication between such hardware components can be realized, for example, by storing information in a memory structure accessible to multiple hardware components and retrieving information in the memory structure. For example, a hardware component can perform an operation and store the output of the operation in a memory device coupled in communication with it. Then, other hardware components can access the memory device at a subsequent time to retrieve the stored output and process it. The hardware component can also initiate communication with an input device or an output device, and can operate on resources (for example, the collection of information).

[0221] The various operations of the example methods described herein may be performed at least in part by one or more processors, one or more processors being temporarily configured (e.g., by software) or permanently configured to perform related operations. Whether temporarily or permanently configured, such a processor may constitute a processor-implemented component that operates to perform one or more operations or functions described herein. As used herein, "processor-implemented components" refer to hardware components implemented using one or more processors. Similarly, the methods described herein may be implemented at least in part by a processor, wherein a specific one or more processors are examples of hardware. For example, at least some operations of the method may be performed by one or more processors 1102 or processor-implemented components. In addition, one or more processors may also operate to support the execution of related operations in a "cloud computing" environment or as a "software as a service" (SaaS) operation. For example, at least some of the operations in the operation may be performed by a group of computers (as an example of a machine including a processor), wherein these operations may be accessed via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., API). The execution of certain operations may be distributed between processors, not only residing in a single machine, but also deployed on several machines. In some examples, the processor or processor-implemented components may be located in a single geographic location (e.g., in a home environment, an office environment, or a server farm). In other examples, the processor or processor-implemented components may be distributed across several geographic locations.

[0222] "Computer-readable storage media" refers to both machine storage media and transmission media. Thus, the term includes both storage devices / medium and carrier / modulated data signals. The terms "machine-readable medium," "computer-readable medium," and "device-readable medium" mean the same thing and may be used interchangeably in this disclosure.

[0223] "Ephemeral messages" are messages that are accessible for a limited duration. Ephemeral messages can be text, images, videos, etc. The access time for ephemeral messages can be set by the sender of the message. Alternatively, the access time can be a default setting or a setting specified by the recipient. Regardless of the setting technique, the message is ephemeral.

[0224] “Machine storage media” refers to a single or multiple storage devices and media (e.g., centralized or distributed databases, and associated caches and servers) that store executable instructions, routines, and data. Thus, the term should be considered to include, but is not limited to, solid-state memory and optical and magnetic media, including memory internal or external to the processor. Specific examples of machine storage media, computer storage media, and device storage media include: non-volatile memory, including, for example, semiconductor memory devices such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), FPGA, and flash memory devices; magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The terms “machine storage media,” “device storage media,” and “computer storage media” mean the same thing and are used interchangeably in this disclosure. The terms “machine storage media,” “computer storage media,” and “device storage media” expressly exclude carrier waves, modulated data signals, and other such media, at least some of which are encompassed by the term “signal media.”

[0225] “Non-transitory computer-readable storage medium” refers to tangible media capable of storing, encoding, or carrying instructions to be executed by a machine.

[0226] "Signal media" refers to any intangible medium that is capable of storing, encoding or carrying instructions to be executed by a machine, and "signal media" includes digital or analog communication signals or other intangible media to facilitate the transmission of software or data. The term "signal medium" should be deemed to include any form of modulated data signals, carrier waves, etc. The term "modulated data signal" refers to a signal whose one or more characteristics are set or changed in such a manner that information is encoded in the signal. The terms "transmission medium" and "signal medium" refer to the same thing and may be used interchangeably in this disclosure.

[0227] Changes and modifications may be made to the disclosed examples without departing from the scope of the present disclosure. These and other changes or modifications are intended to be included within the scope of the present disclosure as expressed in the appended claims.

Claims

1. A computer-implemented neural image synthesis method, the method comprising: receiving a two-dimensional continuous surface representation of a three-dimensional object, the continuous surface comprising a plurality of landmark locations; determining a first set of soft membership functions based on the landmark locations and the relative locations of points in the two-dimensional continuous surface representation; receiving a two-dimensional input image, the input image comprising an image of the object; extracting a plurality of features from the input image using a feature recognition model; generating encoded feature representations of the extracted features using the first set of soft membership functions; generating a dense feature representation of the extracted features from the encoded representation using a second set of soft membership functions; processing the second set of soft membership functions and the dense feature representation using a neural image decoder model to generate an output image; as well as The output image is caused to be presented on a client device.

2. The method according to claim 1, wherein: Determining the first set of soft membership functions includes: determining distances between the landmark locations and a plurality of points in the two-dimensional continuous surface representation; and Each point in the plurality of points is assigned to a landmark based on the determined distance.

3. The method according to claim 1, further comprising: The landmark locations are determined using a landmark recognition model.

4. The method according to claim 1, wherein: The neural image decoder model includes a convolutional neural network conditioned on the two-dimensional continuous surface representation.

5. The method according to claim 1, wherein: Generating encoded feature representations of the extracted features using the first set of soft membership functions includes performing membership weighted estimates of the mean and variance of each channel of the extracted features.

6. The method according to claim 5, wherein: Generating a dense feature representation of the extracted features from the encoded representation using a second set of soft membership functions includes applying a dual operation to the membership weighted estimates of the mean and variance of each channel of the extracted features.

7. The method according to claim 1, wherein: The object is a human body, and wherein the landmarks include joints of the human body.

8. The method according to claim 1, wherein: The first set of soft membership functions and the second set of soft membership functions are the same.

9. The method according to claim 8, further comprising: generating a three-dimensional model of the three-dimensional object according to the input image; as well as The two-dimensional continuous surface representation is generated based on the three-dimensional model.

10. The method according to claim 9, further comprising: Prior to generating the dense feature representation, values ​​in the encoded representation are modified.

11. The method according to claim 1, wherein: generating the two-dimensional continuous surface representation of the three-dimensional object from the input image, and wherein the method further comprises: receiving a further two-dimensional input image, the further input image comprising a further object of the same type as the three-dimensional object; generating a further two-dimensional continuous surface representation of the three-dimensional object from the further two-dimensional input image, the further continuous surface comprising the plurality of landmark locations; and The second set of soft membership functions is determined based on the landmark locations and the relative locations of points in the further two-dimensional continuous surface representation.

12. The method according to claim 11, wherein: The input image comprises an image of the object in a first pose, and the further input image comprises an image of the further object in a second pose, wherein the second image comprises a portion corresponding to an unseen portion of the first image; and Wherein, generating the two-dimensional continuous surface representation according to the input image includes: using the learned attention mechanism to generate a part of the two-dimensional continuous surface representation corresponding to the invisible part of the first image according to the encoded representation.

13. The method according to claim 12, wherein: The learned attention mechanism is based on the first set of soft membership functions.

14. The method according to claim 1, further comprising: Determine a set of content features from the source image using an encoder neural network; determining a set of style features from the style image using the encoder neural network; determining a position-dependent content feature using joint statistics of position and content features in a region of the source image; determining a position-dependent style feature using joint statistics of position and style features in a region of the style image; generating a set of transformed content features from a set of position-dependent content features based on joint statistics of the position and content features; generating a set of transformed style features from the set of transformed content features based on joint statistics of the position and style features; as well as Another output image is generated based on the set of transformed style features and the set of transformed content features using a decoder neural network.

15. The method according to claim 14, further comprising: The output image is combined with the further output image to generate a combined image.

16. The method according to claim 14, wherein: The joint statistics of the position and content features include a content feature mean, a content position mean, and a covariance between the content feature and the content position, and wherein determining the position-related content feature includes determining a conditional model of the content feature conditioned on the position.

17. The method according to claim 16, wherein: The conditional model of the content features includes a position-dependent content mean and a conditional content covariance.

18. The method according to claim 17, wherein: Generating the set of transformed content features from the set of position-dependent content features comprises: centering the location-related content features based on the location-related content means; and A whitening transform is applied based on the conditional content covariance.

19. A system for neural image analysis, comprising: A processor configured to perform operations comprising: receiving a two-dimensional continuous surface representation of a three-dimensional object, the continuous surface comprising a plurality of landmark locations; determining a first set of soft membership functions based on the landmark locations and the relative locations of points in the two-dimensional continuous surface representation; receiving a two-dimensional input image, the input image comprising an image of the object; extracting a plurality of features from the input image using a feature recognition model; generating encoded feature representations of the extracted features using the first set of soft membership functions; generating a dense feature representation of the extracted features from the encoded representation using a second set of soft membership functions; processing the second set of soft membership functions and the dense feature representation using a neural image decoder model to generate an output image; and The output image is caused to be presented on a client device.

20. A non-transitory machine-readable storage medium comprising instructions that, when executed by one or more processors of a machine, cause the machine to perform operations for neural image analysis, the operations comprising: receiving a two-dimensional continuous surface representation of a three-dimensional object, the continuous surface comprising a plurality of landmark locations; determining a first set of soft membership functions based on the landmark locations and the relative locations of points in the two-dimensional continuous surface representation; receiving a two-dimensional input image, the input image comprising an image of the object; extracting a plurality of features from the input image using a feature recognition model; generating encoded feature representations of the extracted features using the first set of soft membership functions; generating a dense feature representation of the extracted features from the encoded representation using a second set of soft membership functions; processing the second set of soft membership functions and the dense feature representation using a neural image decoder model to generate an output image; as well as The output image is caused to be presented on a client device.

Citation Information

Patent Citations

  • A angle-image multi-stage neural network based 3D reconstruction method

    CN109389671A

  • Method and apparatus for processing image interaction

    CN109951704A