Robust Facial Animation from Video Using Neural Networks
Patent Information
- Application Number
- JP2023550284
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-02-23
- Filing Date
- 2022-02-22
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-02-22
Smart Images

Figure 0007564378000001 
Figure 0007564378000002 
Figure 0007564378000003
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of priority to U.S. Provisional Patent Application No. 63 / 152,327, entitled "Real Time Robust Facial Animation From Video," filed February 22, 2021, and U.S. Provisional Patent Application No. 63 / 152,819, entitled "Real Time Robust Facial Animation From Video," filed February 23, 2021, the entire contents of each of which are incorporated herein by reference.
[0002] FIELD OF THE DISCLOSURE
[0002] Embodiments relate generally to computer-based virtual experiences, and more particularly to methods, systems, and computer-readable media for robust facial animation from real-time video. [Background technology]
[0003] Some online platforms (e.g., gaming platforms, media exchange platforms, etc.) allow users to connect with each other, interact with each other (e.g., in-game), create games, and share information with each other over the Internet. Users of online platforms may participate in multiplayer gaming or virtual environments (e.g., three-dimensional environments), design custom gaming environments, design characters and avatars, decorate avatars, exchange virtual items / objects with other users, communicate with other users using voice or text messaging, etc. Such environments, such as metaverse or multiverse environments, may also allow participating users to share, sell, or trade objects they create with other users. Summary of the Invention [Problem to be solved by the invention]
[0004] Users who interact with one another may use an interactive interface that involves the presentation of an avatar of the user. Animating the avatar may traditionally involve having the user input the desired gestures, movements, and other similar pre-configured animation details, and presenting the animation based on the user's input. Such traditional approaches have drawbacks, and in light of this, several implementations have been devised.
[0005] The background description provided herein is intended to provide a context for the present disclosure. None of the work of the inventors named herein that falls within the scope of what is described in this background section, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing, are admitted, expressly or implicitly, as prior art to the present disclosure. [Means for solving the problem]
[0006] Implementations of the present application relate to automatically creating robust facial animation in real time from video. According to one aspect, a computer-implemented method includes: identifying a set of bounding box candidates from a first frame of a video using a fully convolutional network, each bounding box candidate including a face; refining the set of bounding box candidates into a bounding box using a convolutional neural network; obtaining a first set of one or more predefined facial expression weights, head poses, and facial landmarks based on the bounding boxes and the first frame using an overloaded output convolutional neural network; and generating a first set of one or more predefined facial expression weights, head poses, and facial landmarks for a three-dimensional (3D) avatar animation based on the first set of one or more predefined facial expression weights, head poses, and facial landmarks. the head pose of the avatar matches a head pose in the first set and the facial landmarks of the avatar match facial landmarks in the first set; for each additional frame of the video after the first frame, detecting whether a bounding box applied to the additional frame contains a face; if the bounding box is detected to contain a face, using an overloaded output convolutional neural network to obtain an additional set of one or more pre-defined facial weights, head poses, and facial landmarks based on the bounding box and the additional frame; and generating the additional animation frame of the 3D avatar animation using the additional set.
[0007] Various implementations and variations of the computer-implemented method are disclosed.
[0008] In some implementations, if it is detected that the bounding box for the additional frame does not contain a face, the additional frame is set as the first frame.
[0009] In some implementations, the computer-implemented method further comprises identifying a tongue out condition by an overloaded output convolutional neural network, where the tongue is detected in the face.
[0010] In some implementations, identifying the tongue-out condition is based on sub-models of an overloaded output convolutional neural network.
[0011] In some implementations, the overloaded output convolutional network is a first neural network, and the method further comprises refining a first set of one or more of predefined facial expression weights, head poses, and facial landmarks based on the bounding boxes and the first frame using an additional overloaded output convolutional neural network.
[0012] In some implementations, the additional overloaded output convolutional neural network provides a higher level of detail compared to the first neural network.
[0013] In some implementations, the computer-implemented method further comprises identifying the tongue out condition by an additional overloaded output convolutional neural network, where the tongue is detected in the face.
[0014] In some implementations, the input frame resolution of the first neural network is lower than the input frame resolution of the additional overloaded output convolutional neural network.
[0015] In some implementations, the overloaded output convolutional neural network is trained on a set of artificially generated input frames of an artificial video.
[0016] In some implementations, the overloaded output convolutional neural network is further trained with a set of manually labeled real-world images.
[0017] According to another aspect, a system is provided comprising: a memory having instructions stored thereon; and a processing device coupled to the memory, the processing device configured to access the memory and execute the instructions, the instructions causing the processing device to: identify, using a fully convolutional network, a set of bounding box candidates from a first frame of a video, each bounding box candidate including a face; refine, using a convolutional neural network, the set of bounding box candidates into a bounding box; obtain, using an overloaded output convolutional neural network, a first set of one or more of predefined facial expression weights, head poses, and facial landmarks based on the bounding boxes and the first frame; and refine, using a fully convolutional neural network, a first set of one or more of predefined facial expression weights, head poses, and facial landmarks based on the bounding boxes and the first frame. and generating a first animation frame of a three-dimensional (3D) avatar animation based on the first set, where the head pose of the avatar matches the head poses in the first set and the facial landmarks of the avatar match the facial landmarks in the first set; for each additional frame of the video after the first frame, detecting whether a bounding box applied to the additional frame contains a face; if the bounding box is detected to contain a face, using an overloaded output convolutional neural network to obtain an additional set of one or more pre-defined facial weights, head poses, and facial landmarks based on the bounding box and the additional frame; and generating the additional animation frame of the 3D avatar animation using the additional set.
[0018] Various implementations and variations of the system are disclosed.
[0019] In some implementations, if it is detected that the bounding box for the additional frame does not contain a face, the additional frame is set as the first frame.
[0020] In some implementations, the operations further comprise identifying a tongue out condition by an overloaded output convolutional neural network, where the tongue is detected in the face.
[0021] In some implementations, the overloaded output convolutional network is a first neural network, and the operations further comprise additionally refining the first set of one or more of pre-defined facial expression weights, head poses, and facial landmarks based on the bounding boxes and the first frame using an additional overloaded output convolutional neural network.
[0022] In some implementations, the additional overloaded output convolutional neural network provides a higher level of detail compared to the first neural network.
[0023] According to another aspect, a non-transitory computer-readable medium is provided that, in response to execution by a processing device, includes a program for causing the processing device to: identify, using a fully convolutional network, a set of bounding box candidates from a first frame of a video, where each bounding box candidate includes a face; refine, using a convolutional neural network, the set of bounding box candidates into a bounding box; obtain, using an overloaded output convolutional neural network, a first set of one or more of predefined facial expression weights, head poses, and facial landmarks based on the bounding boxes and the first frame; and generate, based on the first set of one or more of the predefined facial expression weights, head poses, and facial landmarks, a first sequence of an animation of a three-dimensional (3D) avatar. The instructions stored in the video execute operations comprising: generating an animation frame of a 3D avatar's animation, where a head pose of the avatar matches the head poses in the first set and facial landmarks of the avatar match the facial landmarks in the first set; for each additional frame of the video after the first frame, detecting whether a bounding box applied to the additional frame contains a face; if the bounding box is detected to contain a face, using an overloaded output convolutional neural network to obtain an additional set of one or more predefined facial weights, head poses, and facial landmarks based on the bounding box and the additional frame; and generating the additional animation frame of the 3D avatar's animation using the additional set.
[0024] Various implementations and variations of non-transitory computer readable media are disclosed.
[0025] In some implementations, if it is detected that the bounding box for the additional frame does not contain a face, the additional frame is set as the first frame.
[0026] In some implementations, the operations further comprise identifying a tongue out condition by an overloaded output convolutional neural network, where the tongue is detected in the face.
[0027] In some implementations, the overloaded output convolutional network is a first neural network, and the operations further comprise additionally refining the first set of one or more of pre-defined facial expression weights, head poses, and facial landmarks based on the bounding boxes and the first frame using an additional overloaded output convolutional neural network.
[0028] In some implementations, the additional overloaded output convolutional neural network provides a higher level of detail compared to the first neural network. [Brief description of the drawings]
[0029] [Figure 1] FIG. 1 illustrates an exemplary network environment, according to some implementations. [Diagram 2] FIG. 1 is a diagram of a training environment for a regression model, according to some implementations. [Diagram 3] FIG. 1 is a diagram of a face tracking system, according to some implementations. [Figure 4] FIG. 1 is a process flow diagram of regression and face detection models configured to create robust animations, according to some implementations. [Figure 5A] 1 is a schematic diagram of an example output network for a face detection model, according to some implementations. [Figure 5B] 1 is a schematic diagram of an example output network for a face detection model, according to some implementations. [Figure 6] FIG. 1 illustrates a simplified process flow diagram of regression and face detection models configured to create robust animations, according to some implementations. [Figure 7]1 is a flowchart of an example method for real-time robust facial animation from video, according to some implementations. [Figure 8] A block diagram illustrating an example computing device that may be used to implement one or more features described herein, according to some implementations. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0030] One or more implementations described herein relate to real-time, robust animation from video. Features may include automatically creating animations of three-dimensional (3D) avatars based on input video received from a client device.
[0031] The features described herein provide for automatic detection of faces in a video, regression of parameters used to animate a 3D avatar from the detected face, and creation of animation of the 3D avatar based on the parameters. A face detection model is trained to accurately identify a bounding box and provide predicted parameters. Similarly, a regression model is trained to accurately produce parameters representing a user's face based on the predicted parameters. The trained model can then be used to identify faces in an input video and create a robust animation of a 3D avatar based on the video.
[0032] The trained models can be deployed in client devices for use by users who want automatically created animations for avatars associated with them. The client devices may further be configured to operatively communicate with online platforms, such as virtual experience platforms, so that their associated avatars can be richly animated for presentation in a communication interface (e.g., video chat), richly animated within a virtual experience (e.g., a richly animated face of a surrogate virtual body), richly animated within animated videos sent to other users (e.g., by sending a recording of the animated avatar through a chat or other feature), and richly animated in other parts of the online platform.
[0033] An online virtual experience platform (also called a "user-generated content platform" or "user-generated content system") provides a variety of ways for users to interact with each other. For example, users of an online virtual experience platform may create experiences, games, or other content or resources (e.g., characters, graphics, items, etc. for game play within a virtual world) within the platform.
[0034] Users of an online virtual experience platform may collaborate toward a common goal in a game or game creation, share various virtual items, send electronic messages to one another, etc. Users of an online virtual experience platform may, for example, interact with the environment and play a game, including characters (avatars) or other game objects and mechanics. An online virtual experience platform may also enable users of the platform to communicate with one another. For example, users of an online virtual experience platform may communicate with one another using voice messages (e.g., via voice chat), text messaging, video messaging, or a combination of the above. Some online virtual experience platforms may provide a virtual three-dimensional environment in which users can represent themselves using avatars or virtual representations of themselves.
[0035] To help enhance the entertainment value of the online virtual experience platform, the platform can provide an animation engine to facilitate automatically animating avatars. The animation engine can allow users to request or select options for animation, including, for example, animation of the avatar's face or body based on a live video feed transmitted from the client device.
[0036] For example, a user may enable camera access by an application on a user device associated with an online virtual experience platform. Video produced by the camera may be interpreted to extract gestures or other information that facilitates animation of an avatar based on the extracted gestures. Similarly, a user may enhance facial animation through directed control input to move other body parts or exaggerate facial gestures.
[0037] However, conventional approaches are limited in video processing by the lack of sufficient computing resources in many mobile client devices. For example, many users may use portable computing devices (e.g., ultraportables, tablets, mobile phones, etc.) that do not have enough computing power to quickly interpret gestures to accurately create animations. In these environments, many automatic animations may result in undesirable artifacts, such as facial jitter, lack of responsiveness, poor interpretation of visual cues, and other shortcomings. In these scenarios, users may not be able to have automatic animations created for them, and may instead require that their avatar's facial features are relatively fixed, or that they input control gestures through other means to create animations.
[0038] Thus, while some users may have mobile or computing devices with sufficient processing power to handle robust animation through traditional means, and others may directly input animation gestures, many users may not have these experiences due to having devices that do not have sufficient computational resources for complex computer vision processing or that are suitable for other uses.
[0039] Figure 1: System architecture 1 illustrates an exemplary network environment 100 according to some implementations of the present disclosure. The network environment 100 (also referred to herein as a "system") includes an online virtual experience platform 102, a first client device 110, and a second client device 116 (collectively referred to herein as "client devices 110 / 116"), all connected via a network 122. The online virtual experience platform 102 may include, among other things, a virtual experience (VE) engine 104, one or more virtual experiences 105, a communication engine 106, a facial animation engine 107, and a data store 108. The client device 110 may include a virtual experience application 112. The client device 116 may include a virtual experience application 118. Users 114 and 120 may use the client devices 110 and 116, respectively, to interact with the online virtual experience platform 102.
[0040] For illustrative purposes, a network environment 100 is provided. In some implementations, the network environment 100 may include the same, fewer, more, or different elements configured in the same or different manner as shown in FIG.
[0041] In some implementations, the network 122 may include a public network (e.g., the Internet), a private network (e.g., a local area network (LAN) or a wide area network (WAN)), a wired network (e.g., an Ethernet network), a wireless network (e.g., an 802.11 network, a Wi-Fi network, or a wireless LAN (WLAN)), a cellular network (e.g., a Long Term Evolution (LTE) network), a router, a hub, a switch, a server computer, or a combination thereof.
[0042] In some implementations, the data store 108 may be a non-transitory computer-readable memory (e.g., random access memory), a cache, a drive (e.g., a hard drive), a flash drive, a database system, or another type of component or device capable of storing data. The data store 108 may also include multiple storage components (e.g., multiple drives or multiple databases), which may span multiple computing devices (e.g., multiple server computers).
[0043] In some implementations, the online virtual experience platform 102 may include a server (e.g., a cloud computing system, a rack-mounted server, a server computer, a cluster of physical servers, a virtual server, etc.) having one or more computing devices. In some implementations, the server may be included in the online virtual experience platform 102, may be a separate system, or may be part of another system or platform.
[0044] In some implementations, the online virtual experience platform 102 may include one or more computing devices (such as rack-mounted servers, router computers, server computers, personal computers, mainframe computers, laptop computers, tablet computers, desktop computers, etc.), data stores (e.g., hard disks, memory, databases), networks, software components, and / or hardware components that may be used to execute operations on the online virtual experience platform 102 and provide users with access to the online virtual experience platform 102. The online virtual experience platform 102 may also include websites (e.g., one or more web pages) or application backend software that may be used to provide users with access to content provided by the online virtual experience platform 102. For example, users may access the online virtual experience platform 102 using virtual experience applications 112 / 118 on client devices 110 / 116, respectively.
[0045] In some implementations, the online virtual experience platform 102 may include some type of social network that provides connections between users, or some type of user-generated content system that allows users (e.g., end users or consumers) to communicate with other users via the online virtual experience platform 102, where the communication may include voice chat (e.g., synchronous and / or asynchronous voice communication), video chat (e.g., synchronous and / or asynchronous video communication), or text chat (e.g., synchronous and / or asynchronous text-based communication). In some implementations of the present disclosure, a "user" may be represented as a single individual. However, other implementations of the present disclosure encompass a "user" (e.g., a creating user) being a set of users or an entity controlled by an automated source. For example, a set of individual users that federate as a community or group in a user-generated content system may be considered to be a "user."
[0046] In some implementations, the online virtual experience platform 102 may be a virtual gaming platform. For example, the gaming platform may provide single-player or multiplayer games to a community of users who may access or interact with games (e.g., user-generated or other games) using client devices 110 / 116 over the network 122. In some implementations, the games (also referred to herein as "video games," "online games," or "virtual games") may be, for example, two-dimensional (2D) games, three-dimensional (3D) games (e.g., 3D user-generated games), virtual reality (VR) games, or augmented reality (AR) games. In some implementations, users may find games and game items and participate in gameplay with other users in one or more games. In some implementations, games may be played in real time with other users of the games.
[0047] In some implementations, other collaboration platforms may be used with the robust animation functionality described herein instead of or in addition to the online virtual experience platform 102. For example, social networking platforms, video chat platforms, messaging platforms, user content creation platforms, virtual meeting platforms, etc. may be used with the robust animation functionality described herein to facilitate fast, robust, and accurate representation of a user's facial movements to a virtual avatar.
[0048] In some implementations, "gameplay" may refer to the interaction of one or more players using a client device (e.g., 110 and / or 116) within a game or experience (e.g., VE 105), or the presentation of interactions on a display or other output device of client device 110 or 116.
[0049] One or more virtual experiences 105 are provided by an online virtual experience platform. In some implementations, the virtual experiences 105 may include electronic files that may be executed or loaded using software, firmware, or hardware configured to present virtual content (e.g., digital media items) to an entity. In some implementations, a virtual experience application 112 / 118 may be executed and the virtual experience 105 is rendered with respect to a virtual experience engine 104. In some implementations, the virtual experiences 105 may have a common set of rules or a common goal, and the environments of the virtual experiences 105 share that common set of rules or common goal. In some implementations, different virtual experiences may have different rules or goals from one another. Similarly, or alternatively, some virtual experiences may be completely devoid of goals, with the purpose being for users to socially interact.
[0050] In some implementations, a virtual experience may have one or more environments (also referred to herein as "gaming environments" or "virtual environments"), and the environments may be connected. An example of an environment may be a three-dimensional (3D) environment. One or more environments of a virtual experience 105 may be collectively referred to herein as a "world" or a "virtual world" or a "virtual universe" or a "metaverse." An example of a world may be the 3D world of the virtual experience 105. For example, a user may build a virtual environment that is connected to another virtual environment created by another user. A character of the virtual experience may cross a virtual boundary into an adjacent virtual environment.
[0051] It may be noted that a 3D environment or world uses graphics that use three-dimensional representations of geometric data that represent the virtual content (or at least presents the content to appear as 3D content, regardless of whether a 3D representation of the geometric data is used), whereas a 2D environment or world uses graphics that use two-dimensional representations of geometric data that represent the virtual content.
[0052] In some implementations, the online virtual experience platform 102 can host one or more virtual experiences 105 and enable users to interact with the virtual experiences 105 (e.g., explore games, VE-related content, or other content) using virtual experience applications 112 / 118 on client devices 110 / 116. Users (e.g., 114 and / or 120) of the online virtual experience platform 102 can play, create, interact with, or build the virtual experiences 105, explore the virtual experiences 105, communicate with other users, create and build objects (e.g., also referred to herein as "items" or "game objects" or "virtual game items") of the virtual experiences 105, and / or explore objects. For example, in generating a user-generated virtual item, the user can, among other things, create a character, decorations for the character, one or more virtual environments for an interactive experience, or build a structure to be used in the virtual experience 105.
[0053] In some implementations, users may buy, sell, or trade virtual objects, such as in-platform currency (e.g., virtual currency), with other users of the online virtual experience platform 102. In some implementations, the online virtual experience platform 102 may transmit virtual content to a virtual experience application (e.g., 112, 118). In some implementations, virtual content (also referred to herein as "content") may refer to any data or software instructions (e.g., virtual objects, experiences, user information, videos, images, commands, media items, etc.) related to the online virtual experience platform 102 or a virtual experience application.
[0054] In some implementations, a virtual object (also referred to herein as an "item" or "object" or "virtual game item") may refer to an object used, created, shared, or otherwise depicted in a virtual experience application 105 of the online virtual experience platform 102 or a virtual experience application 112 or 118 of a client device 110 / 116. For example, virtual objects may include parts, models, characters, tools, weapons, clothing, buildings, vehicles, currency, plants, animals, components of the foregoing (e.g., a window on a building), and the like.
[0055] It may be noted that the online virtual experience platform 102 hosting the virtual experience 105 is provided for purposes of illustration and not limitation. In some implementations, the online virtual experience platform 102 may host one or more media items, which may include communication messages from one user to one or more other users. Media items may include, but are not limited to, digital videos, digital movies, digital photos, digital music, audio content, melodies, website content, social media updates, e-books, e-magazines, e-newspapers, digital audiobooks, e-journals, web blogs, real simple syndication (RSS) feeds, e-comics, software applications, and the like. In some implementations, the media items may be electronic files that may be executed or loaded using software, firmware, or hardware configured to present the digital media items to an entity.
[0056] In some implementations, a virtual experience 105 may be associated with a particular user or a particular group of users (e.g., a private experience) or may be made generally available to users of the online virtual experience platform 102 (e.g., a public experience). In some implementations where the online virtual experience platform 102 associates one or more virtual experiences 105 with a particular user or group of users, the online virtual experience platform 102 may associate the virtual experience 105 with a particular user using user account information (e.g., a user account identifier such as a username and password). Similarly, in some implementations, the online virtual experience platform 102 may associate a particular developer or group of developers with a virtual experience 105 using developer account information (e.g., a developer account identifier such as a username and password).
[0057] In some implementations, the online virtual experience platform 102 or the client device 110 / 116 may include a virtual experience engine 104 or a virtual experience application 112 / 118. The virtual experience engine 104 may include a virtual experience application similar to the virtual experience application 112 / 118. In some implementations, the virtual experience engine 104 may be used for the development or execution of the virtual experience 105. For example, the virtual experience engine 104 may include, among other things, a rendering engine ("renderer") for 2D, 3D, VR, or AR graphics, a physics engine, a collision detection engine (and collision response), an audio engine, scripting functions, an animation engine, an artificial intelligence engine, networking functions, streaming functions, memory management functions, threading functions, scene graph functions, or video support for cinematics. Components of the virtual experience engine 104 may generate commands (e.g., rendering commands, collision commands, physics commands, etc.) that help calculate and render the virtual experience. In some implementations, the virtual experience applications 112 / 118 of the client devices 110 / 116 may each operate independently, in coordination with the virtual experience engine 104 of the online virtual experience platform 102, or a combination of both.
[0058] In some implementations, both the online virtual experience platform 102 and the client devices 110 / 116 run a virtual experience engine (104, 112, and 118, respectively). The online virtual experience platform 102 using the virtual experience engine 104 may perform some or all of the virtual experience engine functions (e.g., generate physics commands, rendering commands, etc.) or offload some or all of the virtual experience engine functions to the virtual experience engine 104 of the client device 110. In some implementations, each virtual experience 105 may have a different ratio between the virtual experience engine functions running on the online virtual experience platform 102 and the virtual experience engine functions running on the client devices 110 and 116.
[0059] For example, the virtual experience engine 104 of the online virtual experience platform 102 may be used to generate physics commands when there is a collision between at least two game objects, while additional virtual experience engine functions (e.g., rendering generation commands) may be offloaded to the client device 110. In some implementations, the ratio of virtual experience engine functions performed by the online virtual experience platform 102 and the client device 110 may be changed (e.g., dynamically) based on interactivity conditions. For example, if the number of users participating in the virtual experience 105 exceeds a threshold number, the online virtual experience platform 102 may execute one or more virtual experience engine functions that were previously executed by the client device 110 or 116.
[0060] For example, a user may be interacting with the virtual experience 105 on the client devices 110 and 116 and may send control instructions (e.g., user input such as right, left, up, down, user selection, or character position and velocity information) to the online virtual experience platform 102. After receiving the control instructions from the client devices 110 and 116, the online virtual experience platform 102 may send interaction instructions (e.g., position and velocity information of a character participating in the virtual experience, or commands such as rendering commands, collision commands, etc.) to the client devices 110 and 116 based on the control instructions. For example, the online virtual experience platform 102 may perform one or more logical operations on the control instructions (e.g., using the virtual experience engine 104) to generate interaction instructions for the client devices 110 and 116. In other cases, the online virtual experience platform 102 may pass one or more of the control instructions from one client device 110 to other client devices (e.g., 116) participating in the virtual experience 105. Client devices 110 and 116 may use the instructions to render the experience for presentation on the displays of client devices 110 and 116 .
[0061] In some implementations, the control instructions may refer to instructions indicating in-experience actions of a user's character or avatar. For example, the control instructions may include user inputs for controlling in-experience actions, such as right, left, up, down, user selection, gyroscope position and orientation data, force sensor data, etc. The control instructions may include character position and velocity information. In some implementations, the control instructions are sent directly to the online virtual experience platform 102. In other implementations, the control instructions may be sent from the client device 110 to another client device (e.g., 116), which generates play instructions using a local virtual experience engine 104. The control instructions may include instructions for playing voice communication messages or other sounds from another user on an audio device (e.g., speaker, headphones, etc.), instructions for moving a character or avatar, and other instructions.
[0062] In some implementations, interaction or playback instructions may refer to instructions that enable the client device 110 (or 116) to render the movement of elements of a virtual experience, such as a multiplayer game. The instructions may include one or more of user input (e.g., control instructions), character position and velocity information, or commands (e.g., physics commands, rendering commands, collision commands, etc.). As described more fully herein, other instructions may include facial animation instructions extracted through analysis of an input video of a user's face to direct in real time the virtual facial animation of a virtual avatar representing the user. Thus, while interaction instructions may include user input to directly control some body movement of a character, interaction instructions may also include gestures extracted from a video of the user.
[0063] In some implementations, a character (or a virtual object in general) is constructed from components that are automatically combined to aid the user in editing, one or more of which may be selected by the user. One or more characters (also referred to herein as "avatars" or "models") may be associated with a user, who may control the character to facilitate the user's interaction with the virtual experience 105. In some implementations, a character may include components such as body parts (e.g., hair, arms, legs, etc.) and accessories (e.g., T-shirts, glasses, decorative images, tools, etc.). In some implementations, customizable character body parts include head type, body part type (arms, legs, torso, and hands), face type, hair type, and skin type, among others. In some implementations, customizable accessories include clothing (e.g., shirts, pants, hats, shoes, glasses, etc.), weapons, or other tools.
[0064] In some implementations, the user may also adjust the character's dimensions (e.g., height, width, or depth) or dimensions of the character's components. In some implementations, the user may adjust the character's proportions (e.g., stocky, anatomical, etc.). It may be noted that in some implementations, the character may not include a character object (e.g., a body part, etc.), although the user may adjust the character (without the character object) to facilitate the user's interaction with the game (e.g., a puzzle game where there is no rendered character game object, but the user still controls the character to control in-game actions).
[0065] In some implementations, components such as body parts may be basic geometric shapes such as blocks, cylinders, spheres, or some other basic shapes such as a wedge, torus, tube, groove, etc. In some implementations, the creator module may publish the user's character for viewing or use by other users of the online virtual experience platform 102. In some implementations, creating, modifying, or customizing a character, other virtual object, virtual experience 105, or virtual environment may be performed by a user using a user interface (e.g., a developer interface), with or without scripting (or with or without an application programming interface (API)). It may be noted that for purposes of illustration and not limitation, the characters are described as having a humanoid form. It may be further noted that the characters may have any form, such as a vehicle, an animal, an inanimate object, or other creative form.
[0066] In some implementations, the online virtual experience platform 102 may store characters created by the user in the data store 108. In some implementations, the online virtual experience platform 102 maintains a character catalog and an experience catalog that may be presented to the user via the virtual experience engine 104, the virtual experience 105, and / or the client device 110 / 116. In some implementations, the experience catalog includes images of various experiences stored in the online virtual experience platform 102. In addition, the user may select a character (e.g., a character created by the user or another user) from the character catalog to participate in the selected experience. The character catalog includes images of characters stored in the online virtual experience platform 102. In some implementations, one or more of the characters in the character catalog may be created or customized by the user. In some implementations, the selected character may have a character setting that defines one or more of the character's components.
[0067] In some implementations, a user's character can include a configuration of components, and the configuration and appearance of the components, as well as the character's appearance more generally, may be defined by a character setting. In some implementations, a user's character's character setting may be selected at least in part by the user. In other implementations, a user may select a character with a default character setting or a character setting selected by another user. For example, a user may select a default character from a character catalog with a predefined character setting, and the user may further customize the default character by modifying parts of the character setting (e.g., adding a customized logo to a shirt). A character setting may be associated with a particular character by the online virtual experience platform 102.
[0068] In some implementations, the client devices 110 or 116 may each include a computing device such as a personal computer (PC), a mobile device (e.g., a laptop, a mobile phone, a smartphone, a tablet computer, or a netbook computer), a network-connected television, a game console, etc. In some implementations, the client devices 110 or 116 may also be referred to as "user devices." In some implementations, one or more client devices 110 or 116 may connect to the online virtual experience platform 102 at any given moment. It may be noted that the number of client devices 110 or 116 is given by way of example and not limitation. In some implementations, any number of client devices 110 or 116 may be used.
[0069] In some implementations, each client device 110 or 116 may include an instance of a virtual experience application 112 or 118, respectively. In one implementation, the virtual experience application 112 or 118 may enable a user to use and interact with the online virtual experience platform 102, such as to search for a particular experience or other content, to control a virtual character in a virtual game hosted by the online virtual experience platform 102, or to view or upload content such as the virtual experience 105, images, video items, web pages, documents, etc. In one example, the virtual experience application may be a web application (e.g., an application that works in conjunction with a web browser) that can access, retrieve, present, or manipulate content (e.g., virtual characters in a virtual environment, etc.) served by a web server. In another example, the virtual experience application may be a native application (e.g., a mobile application, app, or program) that is installed and runs locally on the client device 110 or 116 and enables a user to interact with the online virtual experience platform 102. The virtual experience application may render, display, or present content (e.g., a web page, a user interface, a media viewer) to a user. In some implementations, the virtual experience application may also include an embedded media player (e.g., a Flash player) that is embedded in a web page.
[0070] According to aspects of the disclosure, the virtual experience application 112 / 118 may be an online virtual experience platform application through which a user builds, creates, edits, and uploads content to the online virtual experience platform 102, as well as interacts with the online virtual experience platform 102 (e.g., plays and interacts with a virtual experience 105 hosted by the online virtual experience platform 102). Thus, the virtual experience application 112 / 118 may be provided to the client device 110 or 116 by the online virtual experience platform 102. In another example, the virtual experience application 112 / 118 may be an application that is downloaded from a server.
[0071] In some implementations, a user may log into the online virtual experience platform 102 via a virtual experience application. A user may access a user account by providing user account information (e.g., a username and password), and the user account is associated with one or more characters available to participate in one or more virtual experiences 105 of the online virtual experience platform 102.
[0072] In general, functions described as being performed by the online virtual experience platform 102 may also be performed by the client device 110 or 116, or a server, as appropriate in other implementations. In addition, functions attributed to a particular component may be performed by different or multiple components operating together. The online virtual experience platform 102 is not limited to use in a website, as it may also be accessed as a service offered to other systems or devices through an appropriate application programming interface (API).
[0073] In some implementations, the online virtual experience platform 102 may include a communications engine 106. In some implementations, the communications engine 106 may be a system, application, or module that enables the online virtual experience platform 102 to provide video communications capabilities to users, allowing users to experience virtual chats or virtual video conferences using the online virtual experience platform 102 and associated virtual representatives of themselves. For example, a user may design and build a virtual avatar and use the virtual avatar through a chat function.
[0074] In some implementations, the online virtual experience platform 102 may include a facial animation engine 107. In some implementations, the facial animation engine 107 may be a system, application, or module that implements face detection and regression models to create robust real-time animation of a user's avatar or character's face. The animation may be based on the user's actual face and may include smiles, blinks, winks, frowns, head poses, and other gestures extracted from an input video of the user's face. Although shown as running directly on the online virtual experience platform 102, it should be understood that the face detection and regression models may be implemented on each client device 110, 116, for example.
[0075] The components and training of the regression model of facial animation engine 107 are described more fully hereinafter with respect to FIG.
[0076] Figure 2: Regression model 2 is a diagram of a training environment for a regression model, according to some implementations. As shown, a regression model 204 may take as input a labeled hybrid dataset 202 and may output a set of facial animation coding system (FACS) weights, head poses, and facial landmarks. In this example, the output may be used to train the regression model 204. However, it should be understood that the output may also be used to animate an avatar after initial training.
[0077] In general, the regression architecture 200 uses a multi-task setup that uses a shared backbone (e.g., encoder 241) as a facial feature extractor to jointly train facial landmarks and FACS weights. This arrangement augments the FACS weights learned from synthetic animation sequences with real images that capture subtle facial expressions. The FACS regression sub-network 242 is trained together with the landmark regression model 208. The FACS regression sub-network 242 implements causal convolutions 243, which operate on features over time, in contrast to convolutions that operate only on spatial features as found in the encoder 241.
[0078] As shown, the input portion of diagram 200 utilizes a training set comprising hybrid input video frames that are part of a labeled training dataset. The hybrid input video frames include both real video frames captured from a live example person and synthetic frames (e.g., an example avatar face created using pre-configured FACS weights, poses, etc.) that are created using known FACS weights and known head poses. The training set 202 may be replaced with real video after training. The training set 202 may be input to a regression model 204 for training purposes.
[0079] The regression model 204 includes an encoder 241 and a FACS regression sub-network 242. The encoder 241 may generally include one or more sub-networks configured as a convolutional neural network. The one or more sub-networks may include at least a two-dimensional (2D) convolutional sub-network (or layer) and a fully connected (FC) convolutional sub-network (or layer). Other configurations of the encoder 241 may also be applicable.
[0080] The FACS regression sub-network may include causal convolutions 243, fully connected (FC) convolution sub-networks 244, and recurrent neural sub-networks (RNNs) 245. The causal convolutions 243 may operate on high-level features that accumulate over time. Note that since this architecture is suitable for real-time applications, the output predictions are calculated in the same time period as the inputs arrive (i.e., for each input frame, the output needs to be predicted before or approximately the time the next frame arrives). This means that information from future time steps may not be useful (i.e., ordinary symmetric convolutions do not work). Therefore, each convolution of the causal convolutions 243 operates with an asymmetric kernel 250 (with an exemplary kernel size of 2x1), which only considers past information and can work in real-time scenarios. The causal convolution layers may be stacked like ordinary convolution layers. The field of view can be increased by either increasing the kernel size or by stacking more layers. The number of layers shown is three, but this may be increased to any number of layers.
[0081] As shown in addition, during training, FACS loss and landmark regression analysis can be used to enhance the accuracy of the output 206. For example, the regression model 204 can be initially trained using both real and synthetic images. After a number of steps, the synthetic sequences can be used to learn weights for the temporal FACS regression sub-network 242. Synthetic animation training sequences can be created using a standardized rig that is used for different identities (face meshes) and automatically rendered using animation files containing predefined FACS weights. These animation files can be generated using sequences that are either captured by classical marker-based techniques or created directly by an artist to fill in any facial expressions missing in the marker-based data. Furthermore, the loss is combined to perform regression on the landmarks and FACS weights, as shown in blocks 208 and 209.
[0082] For example, several different loss terms may be linearly combined to perform regression on the facial landmarks and FACS weights. For facial landmarks, the root mean square error (RMSE) of the positions where regression is performed may be used by the landmark regression model 208 to enhance training. Additionally, for the FACS weights, the mean square error (MSE) is utilized by the FACS loss regression model 209. As shown, L pos The FACS loss, denoted as Lv, utilizes a velocity loss (Lv) defined as the MSE between the target and predicted velocities, which helps to globally smooth out facial expressions in motion. In addition, an acceleration regularization term (Lacc) is added to reduce FACS weight jitter (and the weights are kept relatively low to maintain responsiveness). An unsupervised consistency loss (Lc) can also be utilized to help the landmark predictions be equivariant under different transformations without requiring landmark labels for a subset of training images.
[0083] Once trained, the regression model 204 may be used to extract FACS weights, head poses, and facial landmarks from an input video (e.g., a live video of a user) for use in animating an avatar. For example, a facial animation engine 107 associated with a client device 110, 116 may take the output FACS weights, head poses, and facial landmarks and generate individual animation frames based thereon. The individual animation frames may be sequenced (e.g., in real time) to present an avatar with a face that is animated based on the input video.
[0084] As described above, the regression model 204 may be implemented in the client devices 110, 116 to create animation from an input video. As described below, a face detection model may be used for bounding box based FACS weights, head pose, and facial landmark identification for the regression model 204.
[0085] Figure 3: Face detection model 3 is a diagram of an example face tracking system 300 in which a face detection model 302 is deployed, according to some implementations. The face tracking system 300 includes four networks, P-Net 308, R-Net 310, A-Net 312, and B-Net 316, and is configured to produce an output 340 that comprises predicted FACS weights, head pose, and facial landmarks for regression.
[0086] In general, the P-Net 308 receives the entire input frame 304 and generates face proposals and / or bounding box candidates at different resolutions. The P-Net 308 may also be referred to as a fully convolutional network.
[0087] R-Net310 takes as input the proposal / bounding box candidates from P-Net308. R-Net310 outputs improved bounding boxes. R-Net310 may also be called a convolutional neural network.
[0088] The A-Net312 receives the improved proposals and returns face probability as well as bounding boxes, FACS weights, head poses, and facial landmarks for regression. In one implementation, the regression may be performed by the regression model 204. The B-Net316 may be similar to the A-Net312, but may provide improved level of detail (LOD). In this way, the A-Net312 may operate with input frames that have a different resolution, lower than the B-Net316.
[0089] As shown in FIG. 3, after the first input frame, a high degree of interference determination 306 may be performed, which allows the face detection model 302 to avoid and / or bypass the P-Net 308 and the R-Net 310 if the face probability and / or bounding box output by the A-Net 312 indicates that a face is detected within the original bounding box. In this manner, some computational steps may be omitted, which provides technical benefits including reduced computational time, reduced lag, reduced power usage (which may help save batteries in battery-powered devices), and improved computational efficiency. Thus, the face detection model 302 may provide computational efficiency, which makes the face detection model 302 suitable for use in devices with relatively low computational power, such as smartphones, tablets, or wearable devices. The face detection model comprising the P-Net 308, the R-Net 310, and the A-Net 312 may be more usable in mobile devices with relatively low computational power.
[0090] Additionally, during operation, a high level of detail (LOD) determination 314 may be made after the output from the A-Net 312 to determine whether a higher level of detail is appropriate for a particular client device 110, 116. For example, if a client device indicates that there are no available computing resources, that the battery power is insufficient, or that the environment is not suitable for implementing the LOD improvements provided by the B-Net 316, the entire processing of the B-Net 316 may be omitted on the fly. In this manner, the additional computational steps required by the B-Net 316 may be omitted, thereby providing technical advantages including reduced computational time, reduced latency, and improved efficiency. Thus, the face detection model 302 may provide computational efficiencies that overcome the shortcomings of heavy computer vision analysis, and the face detection model comprising the P-Net 308, R-Net 310, and A-Net 312 may be executed by mobile devices with relatively low computational power or by devices under operating conditions requiring improved efficiency.
[0091] The B-Net 316 may be bypassed when one or more conditions are met. For example, such conditions may include low battery conservation, low available power, high temperature conditions, network bandwidth, or memory constraints. An appropriate threshold may be used for each condition. Additionally, a user-selectable option may be provided that allows the user to instruct the face detection model 302 to operate at a lower LOD, for example to provide avatar animation in a virtual environment, while reducing or eliminating impact on the operation of the device.
[0092] Both A-Net312 and B-Net316 are overloaded output convolutional neural networks. In this regard, each neural network provides a larger number of predicted FACS weights and facial landmarks compared to a typical output neural network. For example, a typical output network of MTCNN (e.g., O-Net) may provide a small set of about 5 facial landmarks and FACS weights as output. In comparison, both A-Net312 and B-Net316 may provide significantly more, e.g., up to 175 or more facial landmarks and some FACS weights. During operation, the predicted FACS weights, head poses, and facial landmarks are provided to the regression model 204 (from either A-Net or B-Net) for regression and avatar (facial) animation. Note that the regression model 204 may be included in each of the A-Net312 and B-Net316, so that the regression of FACS weights, head poses, and facial landmarks may be performed within either implemented output network. Additional description and details regarding each of the A-Net 312 and B-Net 316 are provided with respect to Figures 5A and 5B, respectively.
[0093] Below, additional details regarding the operation of the face detection model 302, regression model 204 are provided with respect to FIG.
[0094] Figure 4: Generating animations using the trained model FIG. 4 is an example process flow diagram of the regression model 204 and the face detection model 302 configured to create an animation of a 3D avatar, according to some implementations. As shown in the process flow 400, an initial input frame 402a (at timestamp t=0) is provided as an input to the face detection model 302. In this example, the A-Net 312 and optionally the B-Net 316 are dynamically selected by the active decision 314 and / or the alignment patch 406 when determining the output LOD. Thus, it should be easily understood that this output network can be a combination of the A-Net and B-Net architectures and the decision 314. In some implementations, the regression model may implement only one of the A-Net or the B-Net, depending on, for example, available computational power, user settings of the quality of the facial animation, etc. In some implementations, the decision 314 may be made at runtime, optionally utilizing the B-Net.
[0095] Upon obtaining the refined bounding box or facial landmarks, the input frames are aligned and reduced to outline the identified face. The regression model 204 (part of A-Net 312 and B-Net 316) then takes the aligned input frames at t=0 as input and outputs the actual FACS weights, head pose, and facial landmarks for animation 410.
[0096] For subsequent frames 402b (e.g., at timestamp t=+1 and subsequent timestamps), the aligned patch 406 is input directly to the A-Net (e.g., based on the advanced detouring decision 306), which determines whether the face is still within the initial bounding box. If the face is still within the initial bounding box, the regression model 204 takes the aligned input frame as input and outputs the actual FACS weights, head pose, and facial landmarks for an animation 410 of each subsequent frame such that the face is detected within the original bounding box.
[0097] In situations where a face is not detected within the bounding box, the face detection model 302 may utilize the P-Net 308 and R-Net 310 to provide a new bounding box that contains the face.
[0098] Overloaded convolutional neural networks are used for both A-Net 312 and B-Net 316. Below, a brief description of A-Net 312 is given with respect to FIG. 5A, and a brief description of B-Net 316 is given with respect to FIG. 5B.
[0099] Figure 5: Overloaded output network 5A and 5B are schematic diagrams of example output networks 312 and 316 for the face detection model 302 according to some implementations.
[0100] As shown in Fig. 5A, the A-Net 312 is an overloaded convolutional neural network configured to perform regression on head angle and / or head pose. The A-Net comprises a tongue sub-model configured to detect a tongue outside the mouth of a face, a FACS sub-model for predicting FACS weights, a pose sub-model for predicting head pose or head angle, and a face probability layer (or face probability layers) for detecting a face within a provided bounding box. The A-Net is also configured to detect landmarks and occlusion information for those landmarks (e.g., physical occlusions present in the input video).
[0101] A-Net312 offers several advantages over typical output networks. First, it allows for direct end-to-end head pose regression. To do so, the alignment used to input the image does not apply any rotations (both when the input is computed from the bounding box predicted by R-Net and when it is computed from the A-Net landmarks). In addition, it predicts the FACS weights and tongue signal. In addition, it allows for the prediction of any number of facial landmarks, in this case more than 175 individual contours or landmarks.
[0102] The A-Net 312 may be trained in multiple stages. First, the A-Net 312 may be co-trained with the Encoder 241, which performs landmark and occlusion regressions along with a branch that performs face probability regressions. For this training, images of faces with annotated landmarks (both real and synthetic) are used, as well as negative examples (images where no face is present, or, if present, where the face is present at an unusual size, e.g., an image with a face in an extremely large or small percentage of the image, where only a portion of the face is present, etc.). This part of the network and data does not have temporal information.
[0103] Subsequent stages train sub-models that perform regressions on FACS control and head pose angles and perform tongue detection. Because the encoder 241 is not modified during these training stages, the training of the sub-models can be performed in any order. The FACS weights and head pose sub-models can be trained using synthetic sequences with varying facial expressions and poses, using a temporal architecture that provides temporal filtering and temporal consistency, and using losses that enforce it. The tongue sub-model can be a simple classifier trained on real images to detect tongue conditions.
[0104] 5B, B-Net may be implemented to provide a higher LOD, enabling higher quality facial animation. In general, B-Net316 performs regression on FACS weights and tongue predictions of higher quality than A-Net-312. The input images are aligned using landmarks provided in the same frame by A-Net312. For example, alignment may be performed using Procrustes analysis and / or other suitable shape alignment and / or contour alignment methods.
[0105] In this example, the B-Net316 follows a similar structure to the A-Net312, but does not provide face probabilities and head poses and has a larger capacity. It is trained in the same way as the A-Net, i.e., first training on landmarks and occlusion information, followed by training on FACS weights and tongue out. The B-Net316 is also configured to detect landmarks and occlusion information for those landmarks (e.g., physical occlusions present in the input video).
[0106] With regard to level of detail (LOD) and the implementation of B-Net processing, several factors may affect whether B-Net is selected in decision 314 of Figure 3. The management of LOD is based on the type of device it is running on, the current condition of the device, and the current performance of the face detection model.
[0107] A device with sufficient computational power can run at the highest LOD level, for example by running both A-Net and B-Net. The performance of the face detection model can be monitored, and if the frames per second (FPS) deteriorates beyond a certain level, B-Net may be bypassed. To conserve energy, the LOD can also be lowered if the device's battery power falls below a certain threshold. Furthermore, signals that are measures of secondary effects on hardware utilization, such as CPU temperature, can be considered to determine the LOD level, and correspondingly, whether B-Net is utilized.
[0108] There may be some devices for which computational power considerations constrain us to implement A-Net alone. This may be done through one or more of a predefined list of devices and / or online estimation of face tracker performance.
[0109] When running with only the A-Net, if the quality of the prediction falls below a certain value, having already bypassed the B-Net, it may be determined that the quality of the FACS control on which the regression was performed is not sufficient, and only the head pose may be provided instead, with fixed or predetermined FACS weights.
[0110] Using the A-Net 312 and / or B-Net 316 (which also includes the regression model 204), a sequence of output frames for animation of the avatar is generated based on the input video frames provided to the model. FIG. 6 is an example of a simplified process flow diagram of a regression model and a face detection model configured to create robust animation, according to some implementations. As shown, an input frame 601 may be analyzed to extract facial landmarks such that an output frame 603 is generated through a transposition module 602 based on facial movements, gestures, and other features present in the input frame 601. The transposition module may be associated with the facial animation engine 107 and / or the VE application 112 / 118. It should be noted that any avatar that can be manipulated based on FACS weights and facial landmarks may be animated using these techniques. Thus, while a humanoid output frame is shown, any output variation is possible and within the scope of the exemplary embodiments of the present disclosure.
[0111] Below, a more detailed discussion of generating animations using the models described above is presented.
[0112] Figure 7: Animating an avatar using the trained model. FIG. 7 is a flowchart of an example method 700 of real-time robust facial animation from video, according to some implementations. In some implementations, the method 700 may be implemented, for example, in a server system, for example, in the online virtual experience platform 102 as shown in FIG. 1. In some implementations, some or all of the method 700 may be implemented in a system, such as one or more client devices 110 and 116 as shown in FIG. 1, and / or in both the server system and one or more client systems. In the illustrated example, implementing the system includes one or more processors or processing circuits, and one or more storage devices, such as a database or other accessible storage. In some implementations, different components of one or more servers and / or clients may perform different blocks or other portions of the method 700.
[0113] To provide avatar animation, faces may be detected from the input video, and facial landmarks, head poses, tongue states, etc. may be determined and utilized to animate the corresponding avatar face. Before performing face detection or analysis, the user is given an indication that such techniques will be utilized for avatar animation. If the user denies permission, video-based facial animation is turned off (e.g., default animations may be used, or animations may be based on other user-authorized inputs, such as user-provided audio and / or text inputs). User-provided video is utilized specifically for avatar animation and is not stored. The user may turn off video analysis and animation generation at any time. Additionally, face detection is performed to detect the location of faces in the video; i.e., face recognition is not performed. If the user permits the use of video analysis for avatar animation, method 700 begins at block 702.
[0114] In block 702, a fully convolutional network is used to identify a set of bounding box candidates from a first frame of the video. Each bounding box candidate includes a face from the first frame of the video. For example, the video may be captured by a user device (e.g., 110, 116) in operative communication with the online virtual experience platform 102. A user associated with a client device may present their face for capture via a camera component and allow access to the video by a virtual experience application (or other facial animation application) of their device. The virtual experience application (or other facial animation application) may implement both the face detection model 302 and the regression model 204 (which may be implemented as an A-Net 312 or B-Net 316) as described above. Following block 702 is block 704.
[0115] In block 704, the set of bounding box candidates is refined into a bounding box using a convolutional neural network. For example, as described above with respect to FIG. 3, the P-Net 308 may provide the bounding box candidates to the R-Net 310, which refines the candidates into a bounding box for use by the face detection model 302. Following block 704 is block 706.
[0116] In block 706, a first set of one or more of predefined facial expression weights, head poses, and facial landmarks based on the bounding box and the first frame is obtained using an overloaded output convolutional neural network. For example, in some implementations, the overloaded output convolutional network may include only A-Net312. In other implementations, the overloaded output convolutional network may include both A-Net312 and B-Net316. The decision to use B-Net in combination with A-Net may be based on multiple factors, including, but not limited to, user preferences, system administrator preferences, available computing resources, available memory, expected or realized frame rates, network conditions, and other factors. Following block 706 is block 708.
[0117] In block 708, a first animation frame of a three-dimensional (3D) avatar animation based on a first set of one or more of predefined facial weights, head poses, and facial landmarks is generated. Generally, the head poses of the avatar match the head poses in the first set, and the facial landmarks of the avatar match the facial landmarks in the first set. Furthermore, the animation frame is created based on the trained regression model receiving and processing the predicted values output by the overloaded output convolutional network. Thus, in some implementations, the regression model 204 may provide the final weights for the avatar animation. Block 708 is followed by block 710.
[0118] At block 710, a determination is made whether a face is detected for each additional frame of the video after the first frame. If the bounding box is detected to contain a face, block 712 comprises obtaining an additional set of one or more predefined facial expression weights, head poses, and facial landmarks based on the bounding box and the additional frames using an overloaded output convolutional neural network. Further, block 714 comprises generating an additional animation frame of the 3D avatar animation using the additional set.
[0119] However, in block 710, if it is detected that the bounding box does not contain a face in each additional frame of the video after the first frame, the method 700 includes repeating the identifying (702), refining (704), and obtaining (706) based on a new bounding box that contains a face. In this regard, if a face is not detected, the P-Net 308 and the R-Net 310 are used again. Thus, the method 700 includes setting the additional frame as the first frame if it is detected that the bounding box for the additional frame does not contain a face, and repeating the steps as described above.
[0120] Blocks 702-714 may be performed (or repeated) in a different order than described above, and / or one or more blocks may be omitted. Method 700 may be performed on a server (e.g., 102) and / or on a client device (e.g., 110 or 116). Additionally, portions of method 700 may be combined and performed in sequence or in parallel, according to any desired implementation.
[0121] As described above, techniques for robust facial animation include implementation of a trained face detection model and a trained regression model in a client device. The face detection model may include two or more intelligent decision components that automatically reduce computational resources used by bypassing creation of bounding boxes for frames after the first frame in which a face is detected and bypassing higher level of detail output networks (e.g., bypassing B-Net) depending on user preferences and / or device conditions.
[0122] A more detailed description of various computing devices that may be used to implement the various devices and components shown in FIGS. 1-6 is provided below with respect to FIG.
[0123] FIG. 8 is a block diagram of an exemplary computing device 800 that may be used to implement one or more features described herein, according to some implementations. In one example, the device 800 may be used to implement a computer device (e.g., 102, 110, and / or 116 of FIG. 1) and to perform implementations of suitable methods described herein. The computing device 800 may be any suitable computer system, server, or other electronic or hardware device. For example, the computing device 800 may be a mainframe computer, a desktop computer, a workstation, a portable computer, or an electronic device (portable device, mobile device, mobile phone, smartphone, tablet computer, television, TV set-top box, personal digital assistant (PDA), media player, gaming device, wearable device, etc.). In some implementations, the device 800 includes a processor 802, a memory 804, an input / output (I / O) interface 806, and an audio / video input / output device 814 (e.g., a display screen, a touch screen, display goggles or glasses, an audio speaker, a microphone, etc.).
[0124] Processor 802 may be one or more processors and / or processing circuits for executing program code and controlling the basic operations of device 800. A "processor" includes any suitable hardware and / or software system, mechanism, or component that processes data, signals, or other information. A processor may include a general-purpose central processing unit (CPU), multiple processing units, a system with dedicated circuitry to accomplish a function, or other system. Processing need not be limited to a particular geographic location or have time constraints. For example, a processor may perform its functions in "real-time," "offline," "batch mode," etc. Portions of processing may be performed at different times and in different locations by different (or the same) processing systems. A computer may be any processor in communication with a memory.
[0125] The memory 804 is typically provided in the device 800 for access by the processor 802 and may be any suitable processor-readable storage medium suitable for storing instructions for execution by the processor, located remotely from and / or integrated with the processor 802, such as a random access memory (RAM), a read-only memory (ROM), an electronically erasable read-only memory (EEPROM), a flash memory, etc. The memory 804 may store software operated by the processor 802 on the server device 800, including an operating system 808, applications 810, and associated data 812. In some implementations, the applications 810 may include instructions that enable the processor 802 to perform some or all of the functions described herein, such as the method of FIG. 7. In some implementations, the applications 810 may also include one or more trained models for generating robust real-time animation based on an input video, as described herein.
[0126] For example, memory 804 may include software instructions for an application 810 that can provide an animated avatar based on a user's facial movements captured by a camera within an online virtual experience platform (e.g., 102). Alternatively, any of the software in memory 804 may be stored in any other suitable storage location or computer-readable medium. In addition, memory 804 (and / or other connected storage devices) may store instructions and data used in the features described herein. Memory 804 and any other type of storage (such as magnetic disks, optical disks, magnetic tapes, or other tangible media) may be considered to be "storage" or "storage devices."
[0127] The I / O interface 806 can provide functionality to allow the server device 800 to interface to other systems and devices. For example, network communication devices, storage devices (e.g., memory and / or data store 108), and input / output devices can communicate through the interface 806. In some implementations, the I / O interface can be connected to interface devices including input devices (keyboards, pointing devices, touch screens, microphones, cameras, scanners, etc.) and / or output devices (display devices, speaker devices, printers, motors, etc.).
[0128] For ease of illustration, FIG. 8 shows one block for each of the processor 802, memory 804, I / O interface 806, software blocks 808 and 810, and database 812. These blocks may represent one or more processors or processing circuits, operating systems, memories, I / O interfaces, applications, and / or software modules. In other implementations, the device 800 may not have all of the components shown and / or may have other elements, including other types of elements, instead of or in addition to those shown herein. Although the online virtual experience platform 102 is described as performing operations as described in some implementations herein, any suitable component or combination of components of the online virtual experience platform 102 or a similar system, or any suitable processor or processors associated with such a system, may perform the operations described.
[0129] User devices may also implement and / or be used with the features described herein. An exemplary user device may be a computing device including several components similar to device 800, such as processor 802, memory 804, and I / O interface 806. Operating systems, software, and applications suitable for the client device may be provided in the memory and used by the processor. The I / O interface for the client device may be connected to a network communication device, as well as to input and output devices, such as a microphone for capturing sound, a camera for capturing images or video, an audio speaker device for outputting sound, a display device for outputting images or video, or other output devices. A display device within audio / video input / output device 814 may be connected to (or included in) device 800, for example, to display pre- and post-processing of images as described herein, and such a display device may include any suitable display device, such as an LCD, LED, or plasma display screen, a CRT, a television, a monitor, a touch screen, a 3D display screen, a projector, or other visual display device. Some implementations can provide an audio output device, for example text-to-speech output or synthesis.
[0130] Methods, blocks, and / or operations described herein may, where appropriate, be performed in a different order than shown or described, and / or performed contemporaneously (partially or fully) with other blocks or operations. Some blocks or operations may be performed for one portion of data and then performed again at a later time, e.g., for another portion of data. In various implementations, not all of the blocks and operations described need to be performed. In some implementations, blocks and operations may be performed multiple times, in different orders, and / or at different times in a method.
[0131] In some implementations, some or all of the methods may be implemented in a system, such as one or more client devices. In some implementations, one or more methods described herein may be implemented, for example, in a server system and / or in both a server system and a client system. In some implementations, different components of one or more servers and / or clients may perform different blocks, operations, or other portions of the methods.
[0132] One or more of the methods described herein (e.g., methods 600 and / or 700) may be implemented by computer program instructions or code that may be executed on a computer. For example, the code may be implemented by one or more digital processors (e.g., microprocessors or other processing circuits) and may be stored in a computer program product including a non-transitory computer-readable medium (e.g., storage medium), e.g., a magnetic storage medium, an optical storage medium, an electromagnetic storage medium, or a semiconductor storage medium, including a semiconductor or solid-state memory, a magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a flash memory, a rigid magnetic disk, an optical disk, a solid-state memory drive, and the like. The program instructions may also be included in or provided as an electronic signal, e.g., in the form of software as a service (SaaS) delivered from a server (e.g., a distributed system and / or a cloud computing system). Alternatively, one or more of the methods may be implemented in hardware (e.g., logic gates) or a combination of hardware and software. Exemplary hardware may be a programmable processor (e.g., a field programmable gate array (FPGA), complex programmable logic device), a general purpose processor, a graphics processor, an application specific integrated circuit (ASIC), etc. One or more methods may be implemented as part of or a component of an application running on the system, or as an application or software running in conjunction with other applications and the operating system.
[0133] One or more methods described herein may be implemented in a standalone program that may run on any type of computing device, a program running on a web browser, a mobile application ("app") running on a mobile computing device (e.g., a mobile phone, a smartphone, a tablet computer, a wearable device (watch, armband, jewelry, headwear, goggles, glasses, etc.), a laptop computer, etc.). In one example, a client / server architecture may be used, e.g., a mobile computing device (as a client device) sends user input data to a server device and receives final output data from the server for output (e.g., for display). In another example, all computations may be performed within a mobile app (and / or other apps) on the mobile computing device. In another example, computations may be split between the mobile computing device and one or more server devices.
[0134] Although described with respect to specific implementations, these specific implementations are exemplary only and not limiting, and concepts illustrated in the examples may be applied to other examples and implementations.
[0135] In situations where some implementations discussed herein may obtain or use user data (e.g., a user's image, a user's attributes, a user's behavioral data on the platform, a user's search history, items purchased and / or viewed, a user's friends on the platform, etc.), the user is given the option to control whether or how such information is collected, stored, or used. That is, the implementations discussed herein collect, store, and / or use user information only after receiving explicit user approval and in accordance with applicable regulations.
[0136] The user is given control over whether the program or feature collects user information about that particular user or other users associated with that program or feature. Each user about whom information is to be collected is presented with options (e.g., via a user interface) to enable the user to exercise control over the collection of information associated with that user and provide permission or approval as to whether and what portions of the information are to be collected. In addition, some data may be modified in one or more ways before storage or use so that personally identifiable information is removed. As one example, a user's identity may be modified (e.g., by substitution with a pseudonym, numeric value, etc.) so that personally identifiable information cannot be determined. In another example, a user's geographic location may be generalized to a larger area (e.g., city, zip code, state, country, etc.).
[0137] It should be noted that the functional blocks, operations, features, methods, devices, and systems described in this disclosure may be integrated or divided into different combinations of systems, devices, and functional blocks that would be known to one of ordinary skill in the art. Any suitable programming language and programming techniques may be used to implement the routines of a particular implementation. A variety of programming techniques, such as procedural or object-oriented programming techniques, may be utilized. The routines may be executed on a single processing device or on multiple processors. Although steps, operations, or computations may be presented in a particular order, the order may be changed in different particular implementations. In some implementations, multiple steps or operations shown as sequential in this specification may be executed simultaneously. [Explanation of symbols]
[0138] 102 Online Virtual Experience Platform 104 VE engine 105 VE 106 Common Engine 107 Facial Animation Engine 108 Datastore 110 Client device A 112 VE Applications 114 User A 116 Client Devices 118 VE Applications 120 User n 204 Regression Model 208 Landmark Regression Model 241 Encoder 242 FACS Regression Subnetwork 243 Causal Convolution 244 FC convolutional subnetwork 245 Recurrent Neural Subnetworks 250 Asymmetric Kernel 300 Face Tracking System 302 Face Detection Model 304 input frames 308 P-NET 310 R-NET 312 A-NET 316 B-NET 402 input frames 406 Alignment Patch 601 input frames 602 Transposition Module 603 Output Frames 800 computing devices 802 Processor 804 Memory 806 I / O Interface 808 Operating Systems 810 Application 812 Database 814 I / O Devices
Claims
1. identifying a set of bounding box candidates from a first frame of the video using a fully convolutional network, each bounding box candidate containing a face; refining the set of bounding box candidates into a bounding box using a convolutional neural network; obtaining a first set of one or more of predefined facial expression weights, head poses, and facial landmarks based on the bounding box and the first frame using an overloaded output convolutional neural network; generating a first animation frame of an animation of a three-dimensional (3D) avatar based on the first set of the one or more of the predefined facial weights, the head pose, and the facial landmarks, wherein a head pose of the avatar matches the head poses in the first set and facial landmarks of the avatar matches the facial landmarks in the first set; for each additional frame of the video after the first frame, detecting whether the bounding box applied to the additional frame contains the face; if the bounding box is detected to contain the face, obtaining an additional set of the one or more predefined expression weights, head poses, and facial landmarks based on the bounding box and the additional frames using the overloaded output convolutional neural network; generating additional animation frames of the animation of the 3D avatar using the additional set; A computer-implemented method comprising:
2. 2. The computer-implemented method of claim 1, comprising setting the additional frame as the first frame if the bounding box for the additional frame is detected to not contain the face.
3. 10. The computer-implemented method of claim 1, further comprising identifying a tongue-out condition by the overloaded output convolutional neural network, wherein a tongue is detected in the face.
4. 4. The computer-implemented method of claim 3, wherein identifying the tongue-out condition is based on a sub-model of the overloaded output convolutional neural network.
5. 2. The computer-implemented method of claim 1, wherein the overloaded output convolutional network is a first neural network, the method further comprising: refining the first set of one or more of the predefined expression weights, the head pose, and the facial landmarks based on the bounding box and the first frame using an additional overloaded output convolutional neural network.
6. 6. The computer-implemented method of claim 5, wherein the additional overloaded output convolutional neural network provides a higher level of detail compared to the first neural network.
7. 6. The computer-implemented method of claim 5, further comprising identifying a tongue out condition by the additional overloaded output convolutional neural network, wherein a tongue is detected in the face.
8. 6. The computer-implemented method of claim 5, wherein an input frame resolution of the first neural network is lower than an input frame resolution of the additional overloaded output convolutional neural network.
9. 2. The computer-implemented method of claim 1, wherein the overloaded output convolutional neural network is trained with a set of artificially generated input frames of an artificial video.
10. 10. The computer-implemented method of claim 9, wherein the overloaded output convolutional neural network is further trained with a set of manually labeled real images.
11. A memory having instructions stored therein; a processing device coupled to the memory, the processing device configured to access the memory and execute the instructions, the instructions configuring the processing device to: identifying a set of bounding box candidates from a first frame of the video using a fully convolutional network, each bounding box candidate containing a face; refining the set of bounding box candidates into a bounding box using a convolutional neural network; obtaining a first set of one or more of predefined facial expression weights, head poses, and facial landmarks based on the bounding box and the first frame using an overloaded output convolutional neural network; generating a first animation frame of an animation of a three-dimensional (3D) avatar based on the first set of the one or more of the predefined facial weights, the head pose, and the facial landmarks, wherein a head pose of the avatar matches the head poses in the first set and facial landmarks of the avatar match the facial landmarks in the first set; for each additional frame of the video after the first frame, Detecting whether the bounding box applied to the additional frame contains the face; and if the bounding box is detected to contain the face, obtaining an additional set of the one or more predefined expression weights, head poses, and facial landmarks based on the bounding box and the additional frames using the overloaded output convolutional neural network; generating additional animation frames of the animation of the 3D avatar using the additional sets; A system that performs the operations comprising:
12. 12. The system of claim 11, wherein if it is detected that the bounding box for the additional frame does not contain the face, the action comprises setting the additional frame as the first frame.
13. 12. The system of claim 11, wherein the operations further comprise identifying a tongue out condition by the overloaded output convolutional neural network, wherein a tongue is detected in the face.
14. 12. The system of claim 11, wherein the overloaded output convolutional network is a first neural network, and the operations further comprise additionally refining the first set of one or more of the predefined facial expression weights, the head pose, and facial landmarks based on the bounding box and the first frame using an additional overloaded output convolutional neural network.
15. 15. The system of claim 14, wherein the additional overloaded output convolutional neural network provides a higher level of detail compared to the first neural network.
16. A non-transitory computer-readable medium having instructions stored thereon, the instructions, in response to execution by a processing device, causing the processing device to: identifying a set of bounding box candidates from a first frame of the video using a fully convolutional network, each bounding box candidate containing a face; refining the set of bounding box candidates into a bounding box using a convolutional neural network; obtaining a first set of one or more of predefined facial expression weights, head poses, and facial landmarks based on the bounding box and the first frame using an overloaded output convolutional neural network; generating a first animation frame of an animation of a three-dimensional (3D) avatar based on the first set of the one or more of the predefined facial weights, the head pose, and the facial landmarks, wherein a head pose of the avatar matches the head poses in the first set and facial landmarks of the avatar match the facial landmarks in the first set; for each additional frame of the video after the first frame, Detecting whether the bounding box applied to the additional frame contains the face; and if the bounding box is detected to contain the face, obtaining an additional set of the one or more predefined expression weights, head poses, and facial landmarks based on the bounding box and the additional frames using the overloaded output convolutional neural network; generating additional animation frames of the animation of the 3D avatar using the additional sets; A non-transitory computer-readable medium for causing a computer to perform operations comprising:
17. 17. The non-transitory computer-readable medium of claim 16, wherein if it is detected that the bounding box for the additional frame does not contain the face, the operation comprises setting the additional frame as the first frame.
18. 17. The non-transitory computer-readable medium of claim 16, wherein the operations further comprise identifying a tongue out condition by the overloaded output convolutional neural network, wherein a tongue is detected in the face.
19. 17. The non-transitory computer-readable medium of claim 16, wherein the overloaded output convolutional network is a first neural network, and the operations further comprise additionally refining the first set of one or more of the predefined facial expression weights, the head pose, and facial landmarks based on the bounding box and the first frame using an additional overloaded output convolutional neural network.
20. 20. The non-transitory computer-readable medium of claim 19, wherein the additional overloaded output convolutional neural network provides a higher level of detail compared to the first neural network.
Citation Information
Patent Citations
Continuous face recognition using online learning
JP2007520010A
Animating avatars from the headset camera
JP2022536441A
Systems and methods for end-to-end object detection
US20170147905A1
Real-Time Tracking of Facial Features in Unconstrained Video
US20200272806A1
Animating avatars from headset cameras
US20200402284A1
