Virtual character animation generation method and device, equipment, medium and product
By introducing target style description information in virtual character animation generation, predicting and generating transitional motion poses with specific styles, the problem of insufficient expression of animation styles in the prior art is solved, and high-quality stylized animation generation is achieved.
Patent Information
- Application Number
- CN202310544723.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-15
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, when generating virtual character animations, it is difficult to accurately express the movement style of the virtual character, resulting in the generated transition animation lacking specific style characteristics.
By introducing the description information of the target style, obtain the initial motion pose of the virtual character, the target motion pose and the number of transition frames, use the prediction module to predict the transition motion pose, and generate a transition animation with a given style.
While ensuring the quality of the movement, the generated transition animation can accurately reflect the target style and improve the style expressiveness of the animation.
Smart Images

Figure CN118967888A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device, equipment, medium and product for generating animation of a virtual character. Background Art
[0002] With the rapid development of internet technology, the demand for high-quality virtual character animation is growing in industries like film and gaming. For example, in the production of animated films, it is necessary to generate a transition animation, also known as interpolation animation, from the initial motion pose to the target motion pose based on the character's initial motion pose, target motion pose, and transition time.
[0003] Related technologies use machine learning to generate interpolated animations. When animating a virtual character, the transition between the initial and target motion poses is predicted, generating a transition animation with a specified number of transition frames. The number of transition frames and the transition time are converted accordingly, for example, 30 transition frames correspond to 1 second of transition time.
[0004] However, in the transition animation generated based on the above method, the prediction of the virtual character's movement posture is mostly based on the most common actions, which cannot accurately express the virtual character's movement style. For example, during the prediction process, the virtual character's high leg lift action is predicted as a common running action. Summary of the Invention
[0005] This application provides a method, apparatus, device, medium, and product for generating animations of virtual characters. By introducing description information of the target style, high-quality animations with a given target style can be generated. The technical solution is as follows:
[0006] According to one aspect of the present application, a method for generating animation of a virtual character is provided, the method comprising:
[0007] Obtaining descriptive information of an initial motion posture, a target motion posture, a transition frame number, and a target style given to the virtual character;
[0008] Predicting a transition motion posture of the avatar from the initial motion posture to the target motion posture according to the target style based on the initial motion posture, the target motion posture, the transition frame number, and the description information of the target style;
[0009] A transition animation is generated from the initial motion posture to the target motion posture based on the transition motion posture of the virtual character.
[0010] According to another aspect of the present application, a device for generating animation of a virtual character is provided, the device comprising:
[0011] An acquisition module, configured to acquire descriptive information of an initial motion posture, a target motion posture, a number of transition frames, and a target style given to the virtual character;
[0012] a prediction module, configured to predict a transition motion posture of the avatar moving from the initial motion posture to the target motion posture according to the target style based on the initial motion posture, the target motion posture, the transition frame number, and the description information of the target style;
[0013] A generating module is configured to generate a transition animation from the initial motion posture to the target motion posture based on the transition motion posture of the virtual character.
[0014] According to another aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the virtual character animation generation method as described above.
[0015] According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the method for generating animation of a virtual character as described above.
[0016] According to another aspect of the present application, a computer program product is provided, which includes at least one program segment, and the at least one program segment is stored in a computer-readable storage medium; a processor of a computer device reads the at least one program segment from the computer-readable storage medium, and the processor executes the at least one program segment, so that the computer device executes the virtual character animation generation method as described above.
[0017] The beneficial effects of the technical solution provided by this application include at least:
[0018] By giving the virtual character the descriptive information of the initial motion posture, target motion posture, transition frame number and target style, the transition motion posture of the virtual character from the initial motion posture to the target motion posture according to the target style is predicted, so that the generated transition animation has the given target style while ensuring the motion quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0020] Figure 1 is a schematic diagram of a method for generating animation of a virtual character provided in an embodiment of the present application;
[0021] Figure 2 Schematic diagram of an implementation environment of a method for generating animation of a virtual character provided in an embodiment of the present application;
[0022] Figure 3 This is a flowchart of a method for generating animation of a virtual character provided in an embodiment of the present application;
[0023] Figure 4 It is a structural diagram of the animation generation model provided in the embodiment of the present application;
[0024] Figure 5 This is a flowchart of a method for generating animation of a virtual character provided in an embodiment of the present application;
[0025] Figure 6 is a schematic diagram of the first sub-model provided in an embodiment of the present application;
[0026] Figure 7 is a schematic diagram of the first sub-model provided in an embodiment of the present application;
[0027] Figure 8 is a schematic diagram of an animation generation model provided in an embodiment of the present application;
[0028] Figure 9 This is a flowchart of a method for generating animation of a virtual character provided by an embodiment of the present application;
[0029] Figure 10 is a schematic diagram of the first sub-model provided in an embodiment of the present application;
[0030] Figure 11 This is a flowchart of a method for generating animation of a virtual character provided by an embodiment of the present application;
[0031] Figure 12 This is a flowchart of a method for generating animation of a virtual character provided in an embodiment of the present application;
[0032] Figure 13 is a schematic diagram of the first sub-model provided in an embodiment of the present application;
[0033] Figure 14 This is a flowchart of a method for generating animation of a virtual character provided by an embodiment of the present application;
[0034] Figure 15 is a schematic diagram of the second sub-model provided in an embodiment of the present application;
[0035] Figure 16 This is a flowchart of a method for generating animation of a virtual character provided by an embodiment of the present application;
[0036] Figure 17 is a schematic diagram of the first sub-model provided in an embodiment of the present application;
[0037] Figure 18 Schematic diagram of the structure of the decoder provided in the embodiment of the present application;
[0038] Figure 19 This is a flowchart of a method for generating animation of a virtual character provided by an embodiment of the present application;
[0039] Figure 20 is a schematic diagram of the second sub-model provided in an embodiment of the present application;
[0040] Figure 21 Schematic diagram of the structure of the animation generation device of the virtual character provided in the embodiment of the present application;
[0041] Figure 22 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0042] Figure 23 This is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0044] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0045] In this application, the terms "first," "second," and the like are used to distinguish identical or similar items having substantially the same role and function. It should be understood that "first," "second," and "nth" do not have a logical or temporal dependency, nor do they limit quantity or execution order; these terms are simply used to distinguish one element from another. It should also be understood that although the following description uses the terms "first," "second," and the like to describe various elements, these elements should not be limited by these terms.
[0046] Here, at least one refers to one or more than one. For example, at least one action can be one action, two actions, three actions, or any other action that is an integer greater than or equal to one. And multiple refers to two or more than two. For example, multiple actions can be two actions, three actions, or any other action that is an integer greater than or equal to two.
[0047] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, storage, display, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the descriptive information involved in this application was obtained with full authorization.
[0048] The following introduces the technologies that may be used in the animation generation method of the virtual character provided in the embodiment of the present application.
[0049] Artificial Intelligence (AI) refers to the theories, methods, techniques, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, to perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that seeks to understand the essence of intelligence and produce new intelligent machines that can respond in a manner similar to human intelligence. AI also studies the design principles and implementation methods of various intelligent machines, enabling them to possess the capabilities of perception, reasoning, and decision-making.
[0050] Artificial intelligence (AI) technology is a comprehensive discipline encompassing a wide range of fields, encompassing both hardware and software technologies. Foundational AI technologies generally include sensors, specialized AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, speech processing, natural language processing, and machine learning / deep learning.
[0051] Machine learning (ML) is a multidisciplinary field that encompasses probability theory, statistics, approximation theory, convex analysis, and algorithmic complexity theory. It specifically studies how computers can simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is at the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications span all areas of AI. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and learning through demonstration.
[0052] The following introduces key terms or abbreviations that may be used in the virtual character animation generation method provided in the embodiments of the present application.
[0053] Movement style: refers to a representative action, including at least one of walking, running, high leg raises, arm swings, and body rotations. Each frame of an animation includes at least one movement style. Optionally, the movement styles in different animation frames are the same, or different. For example, the first and second animation frames include movement style 1, and the third animation frame includes movement style 2.
[0054] Frame: A unit of time used to represent a specific moment. For example, 30 frames correspond to 1 second.
[0055] Variational Auto-Encoder (VAE): is an unsupervised / semi-supervised neural network architecture that compresses input information into a compact multivariate latent distribution through an encoder, and the decoder recovers the input information from the distribution as accurately as possible.
[0056] Conditional Variational Auto-Encoder (CVAE): A VAE that introduces conditions and can generate different results under different given conditions.
[0057] Manifold Learning: A machine learning method that assumes that the distribution of data in a high-dimensional space is similar to a low-dimensional manifold. The goal of manifold learning is to reduce the dimensionality of the data by finding this low-dimensional manifold.
[0058] Mixture of Experts (MOE): A machine learning model that trains multiple neural networks (that is, multiple experts), each of which is suitable for different features of the data.
[0059] Before introducing the animation generation method of the virtual character provided in the embodiment of the present application, for ease of understanding, the application scenario of the embodiment of the present application is first introduced below.
[0060] For example, in the embodiments of the present application, the method for generating an animation of a virtual character is used in an animation production scenario for illustration, but those skilled in the art will appreciate that the method for generating an animation of a virtual character can also be applied to other application scenarios requiring virtual character animation, such as artificial intelligence, smart transportation, image processing, and the like.
[0061] For example, Figure 1 As shown, in the animation production scene, the transition animation with a specified transition time is divided into T animation frames, the value of T is a positive integer greater than 0, and there is the same interval time between two adjacent animation frames. Each animation frame is used to correspond to the motion posture of the virtual character at a moment, such as the 0th animation frame corresponds to the initial motion posture, and the Tth animation frame corresponds to the target motion posture.
[0062] In some embodiments, the animation generation process of the virtual character includes: given an initial motion posture and a target motion posture of the virtual character, the initial motion posture corresponds to the action of the virtual character at the start of the animation (such as the motion posture corresponding to the 0th animation frame), and the target motion posture corresponds to the action of the virtual character at the end of the animation (such as the motion posture corresponding to the Tth animation frame). The transition motion posture of the virtual character from the initial motion posture to the target motion posture according to the transition time is predicted, such as given the initial motion posture corresponding to the 0th animation frame and the target motion posture corresponding to the Tth animation frame, predicting the motion posture corresponding to the second animation frame; then taking the motion posture corresponding to the second animation frame as the new current motion posture, predicting the motion posture corresponding to the third animation frame; continuing the loop operation in sequence, taking the motion posture corresponding to the tth animation frame as the new current motion posture, predicting the motion posture corresponding to the t+1th animation frame, until the motion posture corresponding to the T-1th animation frame is predicted.
[0063] It should be understood that the above animation production scenario is only for illustrative purposes. In other scenarios such as film production and video processing, the animation generation process of virtual characters is similar to the above process and will not be repeated here.
[0064] The following introduces the implementation environment of the virtual character animation generation method provided in the embodiment of the present application.
[0065] Figure 2 1 is a schematic diagram of an implementation environment for a method for generating animations of virtual characters according to an embodiment of the present application. The implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 can be connected directly or indirectly via a wired network or a wireless network, which is not limited in this application.
[0066] Terminal 101 includes, but is not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, in-vehicle terminals, aircraft, etc. Illustratively, terminal 101 can install and run an application that provides virtual character animation generation functionality, such as an animation production application, but this is not limited to this. In some embodiments, during the virtual character animation generation process, an animation generation model is used to predict the virtual character's movements. Terminal 101 can provide server 102 with information required for the animation generation model's training method, such as training parameters, sample data sets, and an initial AI model.
[0067] In some embodiments, terminal 101 generally refers to one of multiple terminals. The embodiments of this application only use terminal 101 as an example. Those skilled in the art will appreciate that the number of terminals 101 can be greater. For example, if there are dozens, hundreds, or even more terminals 101, the implementation environment of the virtual character animation generation method may also include other terminals. The embodiments of this application do not limit the number of terminals or device types.
[0068] Server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The number of the above-mentioned servers 102 can be more or less, and the embodiments of the present application are not limited to this. Of course, server 102 can also include other functional servers to provide more comprehensive and diversified services. In some embodiments, server 102 is used to execute the training method of the animation generation model provided in the embodiments of the present application.
[0069] In some embodiments, during the animation generation process of the virtual character, the server 102 undertakes the main computing work and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work and the terminal 101 undertakes the main computing work; or, the server 102 or the terminal 101 can each undertake the computing work independently.
[0070] It should be noted that both the terminal 101 and the server 102 can utilize the method provided in the embodiments of the present application to generate animations of virtual characters. In some embodiments, the terminal 101 sends the initial motion posture, target motion posture and transition frame number of the virtual character to the server 102, and the server 102 predicts the transition motion posture based on the animation generation model to generate a transition animation in which the virtual character moves from the initial motion posture to the target motion posture, and sends the transition animation to the terminal 101. Of course, the terminal 101 can also directly utilize the animation generation model to predict the transition motion posture to generate the transition animation. It should be noted that the above-mentioned animation generation model can be obtained by training through the terminal 101 or by training through the server 102, and the embodiments of the present application do not limit this.
[0071] In some embodiments, the wired or wireless network described above uses standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network, or any combination of virtual private networks. In some embodiments, technologies and / or formats including Hypertext Markup Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), and Internet Protocol Security (IPsec) can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can be used to replace or supplement the above-mentioned data communication technologies.
[0072] The following describes several method embodiments of the virtual character animation generation method provided in the embodiments of the present application and the training process of the animation generation model involved in the virtual character animation generation method.
[0073] Figure 3 This is a flowchart of a method for generating animation of a virtual character according to an embodiment of the present application. The method is executed by a computer device, which can provide the above-mentioned Figure 2In the terminal or server shown, the method includes steps 220 to 260 described below.
[0074] Step 220: Obtaining the initial motion posture, target motion posture, transition frame number, and target style description information given for the virtual character;
[0075] In some embodiments, the virtual character is an element in motion within an animation. In the embodiments of this application, the virtual character is represented as a virtual person, but those skilled in the art will appreciate that the virtual character may be represented in a variety of forms, including but not limited to this. Alternatively, the virtual character may be represented as a virtual animal character. Alternatively, the virtual character may be represented as a robot.
[0076] In some embodiments, the motion posture is used to represent the motion state of the virtual character at the beginning of the animation, such as the position height of each joint of the virtual character, the rotation angle of each joint of the virtual character, the motion speed of each joint of the virtual character, etc. The initial motion posture refers to the motion posture of the virtual character at the beginning of the animation. The target motion posture refers to the motion posture of the virtual character at the end of the animation.
[0077] For example, the motion state of the virtual character is represented as:
[0078]
[0079] in, represents the vector space, N represents the number of joints, D is the degree of freedom of each joint, t represents the tth animation frame, t∈[0,T]. Then the initial motion posture of the virtual character can be expressed as s 0 , the target motion posture of the virtual character can be expressed as s T .
[0080] In some embodiments, the number of transition frames refers to the total number of animation frames included from the start time of the animation to the end time of the animation. The number of transition frames corresponds to the transition time of the animation. For example, 30 animation frames correspond to 1 second of animation duration. Each animation frame corresponds to the movement posture of the virtual character. Generally, the animation duration corresponding to each animation frame is consistent. For example, if a total of T animation frames are included, and each animation frame corresponds to a second of animation duration, then the total animation duration is T a seconds. In the embodiments of the present application, an example is given in which the animation duration corresponding to each animation frame is consistent.
[0081] In some embodiments, the description information of the target style is used to indicate the motion style of the virtual character in the animation to be generated. In some embodiments, the description information of the target style is at least one of an animation clip, a text clip, and a feature vector. Exemplarily, an animation clip is used as an example in the embodiments of the present application. Optionally, the length of the animation clip corresponds to the number of transition frames. Optionally, the initial posture of the animation clip is the same as or similar to a given initial posture. Optionally, the target posture of the animation clip is the same as or similar to a given target posture. In the animation clip, the motion styles at different times can be different. For example, 1-2 seconds is running, 2-3 seconds is walking, 4-5 seconds is fighting, and so on. That is, there can be more than two motion styles in one animation clip.
[0082] Step 240: predicting a transition motion posture of the avatar from the initial motion posture to the target motion posture according to the target style based on the description information of the initial motion posture, the target motion posture, the transition frame number, and the target style;
[0083] It should be understood that the description information of the initial motion posture, target motion posture, transition frame number, and target style is restriction information for restricting the movement of the virtual character. For example, the initial motion posture is used to restrict the virtual character to start movement with the initial motion posture. The target motion posture is used to restrict the virtual character to end movement with a motion posture close to the target motion posture. The transition frame number is used to restrict the virtual character to move within a specified transition time. The description information of the target style is used to restrict the virtual character to move with a given motion style. At different transition moments, the corresponding motion styles may be different. The motion style at each transition moment is constrained or restricted by the motion style at the corresponding moment in the description information of the target style.
[0084] In some embodiments, the transition motion posture of the virtual character is predicted based on the initial motion posture, the target motion posture, the number of transition frames, and the description information of the target style. For example, if the initial motion posture is the motion posture corresponding to the 0th animation frame, the target motion posture is the motion posture corresponding to the 5th animation frame, the number of transition frames is 4 animation frames, and the description information of the target style is the high-leg action information of the virtual character, then the motion posture corresponding to the 1st animation frame is predicted, followed by the motion posture corresponding to the 2nd animation frame, followed by the motion posture corresponding to the 3rd animation frame, and finally the motion posture corresponding to the 4th animation frame.
[0085] Step 260: Based on the transitional motion posture of the virtual character, generate a transition animation from the initial motion posture to the target motion posture.
[0086] The transitional motion pose of the avatar is a motion pose between the initial motion pose and the target motion pose, or can be understood as an animation frame between the animation frame corresponding to the initial motion pose and the animation frame corresponding to the target motion pose. For example, if the motion from the initial motion pose to the target motion pose includes m transitional motion poses, then there are m corresponding animation frames.
[0087] For example, assuming the given initial motion pose is the motion pose corresponding to the 0th animation frame, the target motion pose is the motion pose corresponding to the 5th animation frame, the number of transition frames is 4 animation frames, the target style description information is the high-leg action information of the virtual character, and the motion poses corresponding to the 1st animation frame, the 2nd animation frame, the 3rd animation frame, and the 4th animation frame are predicted. Then, based on the given motion pose corresponding to the 0th animation frame, the motion pose corresponding to the 5th animation frame, and the predicted motion poses corresponding to the other animation frames, a transition animation is generated.
[0088] To summarize, the method provided in the embodiments of the present application predicts the transition motion posture of the virtual character from the initial motion posture to the target motion posture according to the target style by giving the virtual character the initial motion posture, target motion posture, transition frame number and description information of the target style, so that the generated transition animation has a motion style while ensuring the motion quality.
[0089] In some embodiments, the above-mentioned method for generating animation for a virtual character is implemented based on an animation generation model, which is used to generate a transition animation of the virtual character moving from an initial motion pose to a target motion pose. In some embodiments, the initial motion pose is the motion pose corresponding to the 0th animation frame, or the motion pose of the virtual character in the initial state. In some embodiments, the target motion pose is the motion pose corresponding to the Tth animation frame, or the motion pose of the virtual character in the target state.
[0090] In some embodiments, the animation generation model includes a first sub-model and a second sub-model. In some embodiments, the first sub-model is used to predict the posture parameters of the next motion posture based on the current motion posture, the target motion posture, the remaining number of frames and the description information of the target style, so as to sample the next motion posture in the motion manifold space based on the posture parameters of the next motion posture. The motion manifold space is represented by the second sub-model. The first sub-model can also be called a sampler or a sampler model. In some embodiments, the first sub-model is a sampler based on a recurrent neural network. In some embodiments, the second sub-model is used to sample the next motion posture in the motion manifold space based on the posture parameters of the next motion posture. In some embodiments, the second sub-model includes an encoding network and a decoding network, and the encoding network and the decoding network are used simultaneously in the training phase, and only the decoding network is used in the prediction phase. The decoding network is a mathematical representation of the motion manifold space. In some embodiments, the second sub-model is a conditional variational encoder.
[0091] For example, Figure 4 As shown, the animation generation model includes a sampler model 10 and a motion manifold model 20. The sampler model 10 includes an encoder 11, a decoder 12, a long short-term memory network 13, and a splicing network 14. The encoder 11 is used to encode input information into a feature vector, then input the feature vector output by the encoder 11 into the splicing network 14 for splicing, then input the output result of the splicing network 14 into the long short-term memory network 13 for prediction, and then input the output result of the long short-term memory network 13 into the decoder 12 for decoding. The motion manifold model 20 includes a decoding network 21, which includes a gating network 211 and an expert network 212.
[0092] In some embodiments, as Figure 5 As shown, the above step 240 also includes the following sub-steps:
[0093] Step 241: Initializing the initial motion posture to the current motion posture of the virtual character, and initializing the transition frame number to the remaining frame number;
[0094] In some embodiments, during the animation generation process of a virtual character, the initial motion posture of the virtual character should be understood as a reference motion posture for predicting the next motion posture of the virtual character. The current motion posture of the virtual character refers to the motion posture of the virtual character at the current time. For example, at the current moment, the current motion posture of the virtual character is the motion posture corresponding to the 4th animation frame, then the motion posture corresponding to the 4th animation frame should be understood as the initial motion posture of the virtual character at this time. The initial motion posture is initialized to the motion posture corresponding to the 4th animation frame, so that the animation generation model uses the motion posture corresponding to the 4th animation frame as the current motion posture at this time, and continues to predict the motion posture corresponding to the 5th animation frame. In some embodiments, the current motion posture is the motion posture corresponding to the tth animation frame, and the value range of t is a positive integer greater than 0 and less than T.
[0095] Similarly, in the animation generation process of the virtual character, the transition frame number should be understood as reference information provided to the animation generation model. The remaining frame number refers to the number of animation frames remaining at the current time that still needs to be predicted.
[0096] Step 242: Obtain a fused coding vector by encoding the description information based on the current motion posture, the target motion posture, the number of remaining frames, and the target style through the first sub-model;
[0097] In some embodiments, description information of the current motion posture, target motion posture, remaining number of frames and target style is input into the encoder of the first sub-model, and a fused coding vector is obtained through the encoder. The fused coding vector includes the motion style features and motion posture features to be generated by the virtual character.
[0098] For example, Figure 6 As shown, assuming that the current motion posture is the motion posture s corresponding to the tth animation frame t , the target motion posture is the motion posture s corresponding to the Tth animation frame T , the remaining number of frames is Tt-1, then s t 、s T , Tt-1 and the description information of the target style are input into the encoder 11 in the sampler model 10, and the encoder 11 outputs a fused coding vector.
[0099] Step 243: Decoding the fused code vector to obtain posture parameters of the next motion posture;
[0100] In some embodiments, the fused code vector is input into the decoder of the first sub-model, and the decoder decodes the fused code vector to obtain the posture parameters of the next motion posture. The posture parameters of the next motion posture are used to describe the motion state of the next motion posture. Based on the posture parameters of the next motion posture, the next motion posture s can be obtained by further sampling in the manifold space. t+1In some embodiments, the next motion gesture is the motion gesture corresponding to the t+1th animation frame, and the value range of t is a positive integer greater than 0 and less than T.
[0101] For example, Figure 7 As shown, the fused coding vector is input into the decoder 12, and the posture parameters of the next motion posture are obtained after being decoded by the decoder 12.
[0102] Step 244: predicting the next motion posture based on the posture parameters of the current motion posture and the next motion posture using the second sub-model;
[0103] In some embodiments, the current motion posture s t And the posture parameters of the next motion posture are input into the second sub-model to obtain the current motion posture s t And the posture change of the next motion posture. Based on the current motion posture s t And the posture change, get the predicted next motion posture s t+1 .
[0104] For example, Figure 8 As shown, assuming that the current motion posture is the motion posture s corresponding to the tth animation frame t , the current motion posture s t The posture parameters of the next motion posture are input into the motion manifold model 20, and the next motion posture s is predicted by the motion manifold model 20. t+1 .
[0105] Step 245: Subtract one from the remaining number of frames to obtain an updated remaining number of frames;
[0106] Based on the current motion posture s t Predict the next motion posture s t+1 , subtract one from the remaining number of frames to obtain the updated remaining number of frames. For example, assuming the current motion posture is the motion posture corresponding to the second animation frame and the target motion posture is the motion posture corresponding to the fifth animation frame, the current remaining number of frames is 2 animation frames. If the motion posture corresponding to the third animation frame is predicted, the remaining number of frames should be 2-1 = 1 animation frame.
[0107] Step 246: If the remaining number of frames after the update is not zero, update the next motion posture to the current motion posture, and repeat the above four steps.
[0108] If the remaining number of frames after the update is not zero, the next motion posture is updated to the current motion posture, and the above steps 242, 243, 244, and 245 are repeatedly executed. For example, assuming that the next motion posture is predicted to be the motion posture corresponding to the third animation frame, and the target motion posture is the motion posture corresponding to the fifth animation frame, and the remaining number of frames is 1 animation frame, the motion posture corresponding to the third animation frame is updated to the current motion posture, and the above steps 242, 243, 244, and 245 are continued to predict the motion posture corresponding to the fourth animation frame.
[0109] When the updated remaining number of frames is 0, that is, when the motion posture corresponding to the last animation frame is obtained, the above step 260 is continued to be executed.
[0110] In summary, the method provided in the embodiment of the present application, by inputting the target style in advance into the animation generation model, enables the first sub-model to sample the next motion posture corresponding to the target style in the manifold space based on the target style, so that the further generated transition animation also has the given target style while ensuring the motion quality.
[0111] In some embodiments, as Figure 9 As shown, the above step 243 also includes the following sub-steps:
[0112] Step 2431: predicting the hidden feature vector of the next motion posture based on the fused coding vector;
[0113] In some embodiments, the first sub-model includes a long short-term memory network, which is used to calculate the current motion posture s t The next movement posture s t+1 The hidden feature vector of is used for prediction.
[0114] For example, Figure 10 As shown, the fusion coding vector is input into the long short-term memory network 13, and the long short-term memory network 13 predicts the next motion posture s t+1 In the embodiment of the present application, the long short-term memory network 13 is implemented by a long short-term memory neural network (Long Short Term Memory, LSTM). However, those skilled in the art will appreciate that any neural network capable of implementing the above-mentioned functions falls within the scope of protection of this application.
[0115] In some embodiments,
[0116]
[0117] in, Indicates the next motion posture st+1 The hidden feature vector of LSTM represents the long short-term memory network, c t represents the fused encoding vector, Indicates the current motion posture s t The hidden feature vector of .
[0118] Step 2432: Decode the hidden layer feature vector of the next motion posture to obtain the posture parameters of the next motion posture.
[0119] In some embodiments, the next motion gesture s t+1 The hidden layer feature vector is input into the decoder of the first sub-model, and the decoder decodes the pose parameters of the next motion pose to obtain the pose parameters of the next motion pose. The pose parameters of the next motion pose are used to describe the motion state of the next motion pose. Based on the pose parameters of the next motion pose, the next motion pose can be further sampled in the manifold space.
[0120] For example, Figure 10 As shown, the hidden layer feature vector is input into the decoder 12, and the posture parameters of the next motion posture are obtained after being decoded by the decoder 12.
[0121] To summarize, the method provided in the embodiment of the present application predicts the hidden feature vector of the next motion posture based on the fused coding vector, so that more information in the fused coding vector is learned by the long short-term memory network. The long short-term memory network continuously memorizes and learns the motion posture of the virtual character, thereby making the transition motion posture generated in the animation generation model continuous.
[0122] In some embodiments, as Figure 11 As shown, the above step 2432 also includes:
[0123] Step 24321: Use the current phase feature vector as the first reference information to decode the hidden feature vector of the next motion posture to obtain the posture parameters of the next motion state.
[0124] The current phase feature vector is determined based on the current motion posture, and is used to characterize the motion style of the virtual character at the current frame, that is, the motion style of the current motion posture. In some embodiments, the current phase feature vector represents the continuous change of the virtual character's action, including style information. For example, assuming that the current motion posture is the motion posture s corresponding to the tth animation frame t , then based on s t Determine the current phase eigenvector as p t .
[0125] In some embodiments, the current phase eigenvector p tAs the first reference information, the first reference information is used to supplement the style information in the hidden layer feature vector of the next motion posture, further decode the hidden layer feature vector of the next motion posture, and obtain the posture parameters of the next motion state.
[0126] In some embodiments, based on the first reference information p t The second reference information is used to decode the hidden feature vector of the next motion posture to obtain the posture parameters of the next motion state. The second reference information is based on the current motion posture s t and target motion posture s T Determined, the second reference information is used to determine the next motion posture s t+1 The hidden layer feature vector is supplemented.
[0127] In some embodiments, the posture parameters of the next motion posture include the motion distribution z of the next motion posture and the root joint velocity vector v of the next motion posture. t+1 .
[0128] In some embodiments, the posture parameters of the next motion posture include the phase characteristic vector p of the next motion posture t +1 , the motion distribution z of the next motion posture and the root joint velocity vector v of the next motion posture t+1 .
[0129] In summary, the method provided in the embodiment of the present application adds the current phase feature vector as supplementary information of the hidden feature vector of the next motion posture, so that when decoding the hidden feature vector of the next motion posture, more attention can be paid to the movement changes of the virtual character, thereby obtaining more style information.
[0130] In some embodiments, as Figure 12 As shown, the above step 242 also includes the following sub-steps:
[0131] Step 2421: Using the first sub-model, encode the current motion posture into a current state vector, encode the target motion posture into a target state vector, encode the offset between the target motion posture and the current motion posture into an offset state vector, encode the description of the target style into a style encoding vector, and encode the number of remaining frames into a time control variable.
[0132] In some embodiments, the first sub-model includes a state encoder, a target encoder, an offset encoder, and a style encoder. The state encoder is used to convert the current motion posture s t Encoded into the current state vector, the target encoder is used to convert the target motion posture s T Encoded into the target state vector, the offset encoder is used to convert the target motion posture sT and current motion posture s t The offset value s between T -s t The style encoder is used to encode the target style description information into a style encoding vector.
[0133] In some embodiments, the remaining frame number Tt-1 is input to the encoder 11, and the time control variable z is output. dt .
[0134]
[0135]
[0136] Among them, z dt represents the time control variable, dt represents the number of remaining frames, D represents the dimension, and i represents the dimension index.
[0137] For example, Figure 4 As shown, the description information of the target style is input into the style encoder 114, and the style encoding vector k is obtained by encoding; the current motion posture s t Input state encoder 111, output current state vector; target motion posture s T Input target encoder 112, output target state vector; the offset value s between target motion posture and current motion posture is converted into T -s t The offset encoder 113 is input and the offset value state vector is output.
[0138] Step 2422: Perform style embedding on the current state vector based on the style encoding vector to obtain the current state vector after style embedding;
[0139] In some embodiments, the current state vector after style embedding is expressed as:
[0140] E sty (k,E stat (s t ))
[0141] Among them, E sty represents the style embedding encoder, k represents the style encoding vector, E stat represents the state encoder, s t Indicates the current motion posture, E stat (s t ) represents the current state vector.
[0142] Step 2423: Concatenate the current state vector, target state vector, offset state vector, and time control variable after style embedding to obtain a fused coding vector.
[0143] For example, Figure 13 As shown, the current state vector after style embedding and the time control variable are fused to obtain the first fused vector.
[0144] In some embodiments, the first fused vector is represented as:
[0145] E sty (k,E stat (s t ))+z dt
[0146] Among them, E sty represents style embedding, k represents style encoding vector, E stat represents the state encoder, s t Indicates the current motion posture, E stat (s t ) represents the current state vector, z dt represents the time control variable.
[0147] For example, Figure 13 As shown, the target state vector, the offset state vector and the time control variable are fused to obtain a second fused vector.
[0148] In some embodiments, the second fused vector is represented as:
[0149] (E tar (s T ),E off (s T -s t ))+z dt
[0150] Among them, E tar represents the target encoder, s T Indicates the target motion posture, E tar (s T ) represents the target state vector, E off Indicates the offset encoder, s T -s t Indicates the offset value between the target motion posture and the current motion posture, E off (s T -s t ) represents the offset value state vector, z dt represents the time control variable.
[0151] In some embodiments, the first fusion vector and the second fusion vector are concatenated to obtain a fusion coding vector. The fusion coding vector is represented as:
[0152] c t =Esty (k,E stat (s t ))+z dt ,E tar (s T ),E off (s T -s t ))+z dt )
[0153] Among them, c t represents the fusion encoding vector, E sty represents style embedding, k represents style encoding vector, E stat represents the state encoder, s t Indicates the current motion posture, E stat (s t ) represents the current state vector, z dt represents the time control variable, E tar represents the target encoder, s T Indicates the target motion posture, E tar (s T ) represents the target state vector, E off Indicates the offset encoder, s T -s t Indicates the offset value between the target motion posture and the current motion posture, E off (s T -s t ) represents the offset value state vector.
[0154] In some embodiments, the target state vector, the offset state vector, the time control variable, and the noise variable are fused to obtain a second fused vector. The noise variable is determined based on the number of remaining frames, and the amplitude of the noise variable is proportional to the number of remaining frames. Exemplarily, the variance of the noise variable is equal to 0.5. The amplitude of the noise variable is:
[0155]
[0156] Among them, λ represents the amplitude of the noise variable, dt represents the number of remaining frames, and t zero In the case of being close to the target frame, the number of frames without noise, t period Indicates the number of frames at which the noise decreases linearly. For example, t zero Set it to 5 frames, and set t period It is set to 30 frames, which can be set according to needs in actual applications, and is not limited in this embodiment of the present application.
[0157] In summary, the method provided in the embodiment of the present application uses time control variables to enable the first sub-model to obtain the number of remaining frames in a timely manner during the prediction process, thereby avoiding timing confusion in the final generated transition animation due to inaccurate numbers.
[0158] The method provided in the embodiment of the present application also adds noise variables to the fusion process, so that the first sub-model focuses on the target motion posture only when it is close to the target motion posture, which can effectively improve the robustness of the first sub-model.
[0159] In some embodiments, the second sub-model includes a decoding network. Figure 14 As shown, the above step 244 also includes the following sub-steps:
[0160] Step 2441: Inputting the posture parameters of the current motion posture and the next motion posture into the decoding network to obtain the posture change between the current motion posture and the next motion posture;
[0161] For example, Figure 15 As shown, the motion manifold model 20 includes a decoding network 21, which inputs the posture parameters of the current motion posture and the next motion posture into the decoding network 21 to obtain the posture change Δs between the current motion posture and the next motion posture. t+1 .
[0162] In some embodiments, the posture parameters of the next motion posture include a next phase feature vector, a motion distribution vector, and a next joint velocity vector. The next phase feature vector is used to represent the motion style of the virtual character at the next frame moment, that is, the motion style of the next motion posture.
[0163] In some embodiments, the next phase eigenvector is predicted based on the current phase eigenvector. The predicted intermediate phase vector is calculated by predicting the next intermediate phase vector, amplitude, and frequency respectively:
[0164]
[0165]
[0166] in, represents the predicted intermediate phase vector, represents the amplitude, R is the two-dimensional rotation matrix, θ represents the angle, p t represents the current phase eigenvector, Δt is the time step of each animation frame, Indicates frequency.
[0167] In some embodiments, the next phase feature vector is calculated based on the predicted intermediate phase vector and the next intermediate phase vector. and the next intermediate phase vector Optionally, predict the intermediate phase vector The angle and the next intermediate phase vector The weights of the angles are 0.5 respectively, which may be different in different embodiments. and The amplitude is also linearly interpolated, optionally to predict the intermediate phase vector The amplitude and the next intermediate phase vector The weights of the amplitudes are 0.5 respectively, which may be different in different embodiments. Based on the interpolation results of the angle and the amplitude, the next phase eigenvector p is obtained. t+1 .
[0168] In some embodiments, the avatar's motion is controlled via a root joint. A root joint velocity vector indicates the velocity and angular velocity of each joint of the avatar, such as the velocity and angular velocity of the avatar's hip joint. This root joint velocity vector can effectively limit the avatar's motion possibilities, particularly the lower body, which has less versatility than the upper body.
[0169] In some embodiments, the current motion posture, the next phase feature vector, the motion distribution vector and the next joint velocity vector are input into the decoding network to obtain the posture change between the current motion posture and the next motion posture. In some embodiments, the decoding network is implemented by an expert gating network. Since the motion transition distribution of the virtual character itself is multimodal, and this multimodal feature will be further amplified by the style, a single network will tend to predict the average of the data. Therefore, the present application learns multiple modes through the expert gating network to capture the multimodality of the motion action, and the weights of the multiple modes are calculated based on the motion distribution vector and the next phase feature vector. The motion distribution vector is used to control the random state transition of the linear dynamic system, and the next phase feature vector can effectively encode the motion style.
[0170] Step 2442: Based on the posture change between the current motion posture and the next motion posture, obtain the next motion posture.
[0171] In some embodiments, the current motion posture s t The posture change Δs between the next motion posture t+1 Add together to get the next motion posture s t+1 =Δs t+1 +s t .
[0172] In summary, the method provided in the embodiment of the present application adds the current phase feature vector as supplementary information of the hidden feature vector of the next motion posture, so that when decoding the hidden feature vector of the next motion posture, more attention can be paid to the movement changes of the virtual character, thereby obtaining more style information.
[0173] In some embodiments, the first sub-model and the second sub-model of the animation generation model are trained separately. In some embodiments, the first sample data set used to train the first sub-model and the second sample data set used to train the second sub-model are consistent. In some embodiments, the first sample data set used to train the first sub-model and the second sample data set used to train the second sub-model are inconsistent.
[0174] Training for the first sub-model:
[0175] For example, Figure 16 As shown, the method includes the following steps:
[0176] Step 320: Obtain a first prediction result based on the first sample data set and the second sub-model;
[0177] In some embodiments, the first sample data set includes at least description information of the sample's current motion posture, the sample's target motion posture, the sample's remaining frames, and the sample's target style.
[0178] The sample data in the first sample data set is input into the first sub-model to obtain an output result of the first sub-model, where the output result of the first sub-model is predicted based on the first sample data set. The output result of the first sub-model is input into the second sub-model to obtain a first prediction result, where the first prediction result is used to indicate a prediction result predicted by the second sub-model based on the output result of the first sub-model.
[0179] For example, Figure 17 As shown, the sampler model 10 includes an encoder 11, a decoder 12, a long short-term memory network 13 and a splicing network 14. The description information of the current motion posture of the sample, the sample target motion posture, the remaining number of frames of the sample and the sample target style in the first sample data set is input into the sampler network 10, and passes through the encoder 10, the splicing network 14, the long short-term memory network 13 and the decoder 12 in sequence to predict the posture parameters of the next motion posture.
[0180] In some embodiments, the encoder 11, decoder 12, long short-term memory network 13 and concatenation network 14 are respectively composed of a connection layer, an activation layer, a feature linear modulation layer and an attention network layer. Figure 18As shown, the decoder 12 is composed of 3 connection layers 31, 4 activation layers 33, 1 feature linear modulation layer 32 and 1 attention network layer 34.
[0181] Step 340: Based on the first prediction result, calculate a first loss value using a first loss function:
[0182] In some embodiments, based on the first prediction result and the sample true value in the first sample data set, a first loss value between the first prediction result and the sample true value in the first sample data set is calculated by a first loss function, and the first loss value is used to indicate the motion loss of the virtual character.
[0183] In some embodiments, the first sample data set includes a sample motion sequence and a sample motion speed, and the motion sequence and the motion speed are used to indicate the motion of the virtual character. The sample motion sequence refers to the motion sequence of the virtual character indicated by the sample data in the first sample data set, such as s t 、s t+1 、s t+2 The sample motion speed refers to the motion speed of the virtual character indicated by the sample data in the first sample data set, especially the motion speed of the foot joints, such as v t 、v t+1 、v t+2 .
[0184] In some embodiments, the first prediction result includes a predicted motion sequence and a predicted motion speed, and the motion sequence and the motion speed are used to indicate the motion of the virtual character. The predicted motion sequence refers to the motion sequence of the virtual character predicted based on the sample data in the first sample data set, such as (s t )′、(s t+1 )′、(s t+2 )′; The predicted movement speed refers to the movement speed of the virtual character predicted based on the sample data in the first sample data set, especially the movement speed of the foot joints, such as (v t )′、(v t+1 )′、(v t+2 )′.
[0185] In some embodiments, a first sub-loss value is calculated based on the sample motion sequence and the predicted motion sequence. The first sub-loss value is used to indicate the loss between the sample motion sequence and the predicted motion sequence. The first sub-loss value is expressed as:
[0186]
[0187] Among them, L rec represents the first sub-loss value, I represents the number of samples, T represents the length of the sample animation frame, N represents the number of joints of the virtual character, D represents the degree of freedom of each joint, M iRepresents the sample motion sequence, M′ i represents the predicted motion sequence, ‖‖ represents the norm, ‖‖2 represents the 2-norm, ‖‖ 2 Represents the square of the norm.
[0188] In some embodiments, a second sub-loss value is calculated based on the sample motion speed and the predicted motion speed. The second sub-loss value is used to indicate the loss between the sample motion speed and the predicted motion speed. The second sub-loss value is expressed as:
[0189]
[0190] Among them, L foot Represents the second sub-loss value, I represents the number of samples, T represents the sample animation frame length, N f Indicates the number of foot joints of the virtual character in contact with the ground, f v represents the sample movement speed (foot speed), f′ v represents the predicted movement speed (foot speed), δ(f v ) represents the probability that the virtual character's foot joint contacts the ground, ‖‖ represents the norm, ‖‖2 represents the 2-norm, ‖‖ 2 Represents the square of the norm.
[0191] In some embodiments, δ(f v ) ranges from [0,1], δ(f v ) is:
[0192]
[0193] Where t = 2(f v -0.5), f v ∈(0.5,1.0).
[0194] In some embodiments, a first loss value is calculated based on the first sub-loss value and the second sub-loss value using a first loss function. The first loss value is expressed as:
[0195] L1=L rec +L foot
[0196] Among them, L1 represents the first loss value, L rec Represents the first sub-loss value, L foot Represents the second sub-loss value.
[0197] In some embodiments, the first sample data set further includes a sample phase feature, and the first prediction result further includes a predicted phase feature, where the phase feature is used to characterize the movement style of the virtual character. Based on the sample phase feature and the predicted phase feature, a third sub-loss value is calculated, and the third sub-loss value is expressed as:
[0198]
[0199] Among them, L phase represents the third sub-loss value, I represents the number of samples, T represents the sample animation frame length, N p Indicates the number of phase channels, A t represents the sample amplitude, represents the predicted amplitude, F t represents the sample frequency, represents the predicted frequency, p t represents the sample phase characteristics, represents the predicted phase feature, represents the intermediate phase feature, ‖‖ represents the norm, ‖‖2 represents the 2-norm, ‖‖ 2 Represents the square of the norm.
[0200] In some embodiments, a first loss value is calculated based on the first sub-loss value, the second sub-loss value, and the third sub-loss value using a first loss function. In this case, the first loss value is expressed as:
[0201] L1=L rec +L foot +L phase
[0202] Among them, L1 represents the first loss value, L rec Represents the first sub-loss value, L foot Represents the second sub-loss value, L phase Represents the third child loss value.
[0203] In some embodiments, the first sample data set further includes a sample target motion posture, and the first prediction result further includes a predicted target motion posture. Based on the sample target motion posture and the predicted target motion posture, a fourth sub-loss value is calculated:
[0204]
[0205] Among them, L last represents the fourth sub-loss value, I represents the number of samples, N represents the number of joints of the virtual character, D represents the degree of freedom of each joint, s T represents the motion posture of the sample target, (s T ) ′ represents the predicted target motion posture, ‖‖ represents the norm, and ‖‖1 represents the 1-norm.
[0206] In some embodiments, a first loss value is calculated based on the first sub-loss value, the second sub-loss value, the third sub-loss value, and the fourth sub-loss value using a first loss function. In this case, the first loss value is expressed as:
[0207] L1=Lrec +L foot +L phase +L last
[0208] Among them, L1 represents the first loss value, L rec Represents the first sub-loss value, L foot Represents the second sub-loss value, L phase represents the third sub-loss value, L last Represents the fourth sub-loss value.
[0209] Step 360: Based on the first loss value, train the first sub-model.
[0210] In some embodiments, the model parameters of the first sub-model are trained using an error back-propagation algorithm based on the first loss value. After multiple training sessions, for example, after 10,000 training samples, or when the model converges, a first sub-model is obtained that can predict the posture parameters of the next motion posture based on the current motion posture, the target motion posture, the number of remaining frames, and the description of the target style.
[0211] Training for the second sub-model:
[0212] Figure 19 Flowchart of a method for generating animation of a virtual character according to an embodiment of the present application. In some embodiments, the second sub-model further includes an encoding network, and the method includes the following steps:
[0213] Step 410: Input the current motion posture of the sample and the next motion posture of the sample in the second sample data set into the encoding network to obtain the predicted motion distribution;
[0214] In some embodiments, the second sample data set includes at least a sample current motion gesture and a sample next motion gesture.
[0215] The sample data in the second sample data set is input into the encoding network in the second sub-model to obtain the predicted motion distribution. For example, Figure 20 As shown, the current motion posture s of the sample in the second sample data set is t and the next motion pose of the sample s t+1 The encoding network 22 in the motion manifold model 20 is input to obtain a predicted motion distribution z, which is a Gaussian distribution determined by a first parameter μ and a second parameter σ.
[0216] Step 420: Calculate a fifth sub-loss value based on the predicted motion distribution;
[0217] In some embodiments, a fifth sub-loss value is calculated based on the first parameter and the second parameter in the predicted motion distribution. The fifth sub-loss value is expressed as:
[0218] L k1 =-0.5·(1+σ-μ 2 -e σ )
[0219] Among them, L k1 represents the fifth sub-loss value, μ represents the first parameter, and σ represents the second parameter.
[0220] Step 430: Input the predicted motion distribution and the sample motion sequence and sample motion speed in the second sample data set into the decoding network to obtain the predicted motion sequence and predicted motion speed;
[0221] In some embodiments, the second sample data set includes a sample motion sequence and a sample motion speed, and the motion sequence and the motion speed are used to indicate the motion of the virtual character. The sample motion sequence refers to the motion sequence of the virtual character indicated by the sample data in the second sample data set, such as s t 、s t+1 、s t+2 The sample motion speed refers to the motion speed of the virtual character indicated by the sample data in the second sample data set, especially the motion speed of the foot joints, such as v t 、v t+1 、v t+2 .
[0222] In some embodiments, the predicted motion sequence refers to the motion sequence of the virtual character predicted based on the sample data in the second sample data set, such as (s t ) ′ 、(s t+1 ) ′ 、(s t+2 ) ′ The predicted movement speed refers to the movement speed of the virtual character predicted based on the sample data in the second sample data set, especially the movement speed of the foot joints, such as (v t ) ′ 、(v t +1 ) ′ 、(v t+2 ) ′ .
[0223] In some embodiments, the second sample data set further includes a sample next phase feature vector, and the sample next phase feature vector is used to characterize the movement style of the virtual character. Figure 20 As shown, the next phase eigenvector p of the sample t+1 It is extracted through a periodic self-encoder, and the next phase feature vector of the sample is expressed as:
[0224] p 2i=A i ·cos(2π·S i )
[0225] p 2i-1 =A i ·sin(2π·S i )
[0226] Where A represents the amplitude, that is, the size of the phase eigenvector, S represents the phase offset, multiplied by 2π·S represents the angle of the phase eigenvector, and i is the vector dimension index.
[0227] The predicted motion distribution and the sample motion sequence, sample motion speed and sample next phase feature vector in the second sample data set are input into the decoding network to obtain the predicted motion sequence and predicted motion speed.
[0228] Step 440: Calculate a sixth sub-loss value based on the sample motion sequence and the predicted motion sequence;
[0229] In some embodiments, a sixth sub-loss value is calculated based on the sample motion sequence and the predicted motion sequence. The sixth sub-loss value is used to indicate the loss between the sample motion sequence and the predicted motion sequence. The sixth sub-loss value is expressed as:
[0230]
[0231] Among them, L rec represents the sixth sub-loss value, I represents the number of samples, T represents the length of the sample animation frame, N represents the number of joints of the virtual character, D represents the degree of freedom of each joint, M i Represents the sample motion sequence, M i ′ represents the predicted motion sequence, ‖‖ represents the norm, ‖‖2 represents the 2-norm, ‖‖ 2 Represents the square of the norm.
[0232] Step 450: Calculate the seventh sub-loss value based on the sample motion speed and the predicted motion speed;
[0233] In some embodiments, a seventh sub-loss value is calculated based on the sample motion speed and the predicted motion speed. The seventh sub-loss value is used to indicate the loss between the sample motion speed and the predicted motion speed. The seventh sub-loss value is expressed as:
[0234]
[0235] Among them, L foot represents the seventh sub-loss value, I represents the number of samples, T represents the sample animation frame length, N f Indicates the number of foot joints of the virtual character in contact with the ground, f vrepresents the sample movement speed (foot speed), f v ′ represents the predicted movement speed (foot speed), δ(f v ) represents the probability that the virtual character's foot joint contacts the ground, ‖‖ represents the norm, ‖‖2 represents the 2-norm, ‖‖ 2 Represents the square of the norm.
[0236] In some embodiments, δ(f v ) ranges from [0,1], δ(f v ) is:
[0237]
[0238] Where t = 2(f v -0.5), f v ∈(0.5,1.0).
[0239] Step 460: Calculate a second loss value using a second loss function based on the fifth sub-loss value, the sixth sub-loss value, and the seventh sub-loss value;
[0240] In some embodiments, based on the fifth sub-loss value, the sixth sub-loss value, and the seventh sub-loss value, a second loss value is calculated using a second loss function. The second loss value is used to indicate the motion loss of the virtual character. The second loss value is expressed as:
[0241] L2=βL kl +L rec +L foot
[0242] Among them, L2 represents the second loss value, β represents the hyperparameter that balances animation quality and generalization, and L kl represents the fifth child loss value, L rec Indicates the loss value of the sixth child, L foot Indicates the loss value of the seventh child.
[0243] Step 470: Based on the second loss value, train the second sub-model.
[0244] In some embodiments, the model parameters of the second sub-model are trained using an error back-propagation algorithm based on the second loss value. After multiple training sessions, for example, after 10,000 training samples, or when the model converges, a second sub-model is obtained that can predict the posture change between the current motion posture and the next motion posture based on the posture parameters of the next motion posture.
[0245] In some embodiments, the embodiments of the present application generate a transition animation by giving the initial motion pose, target motion pose, and the time required to move from the initial motion pose to the target motion pose of a given action sequence, as well as an animation clip of a target style, so that the virtual character can move from the initial motion pose to the target motion pose in a given style. The method uses a conditional variational encoder to encode the motion pose and motion phase of the virtual character in two consecutive frames into a manifold space, and then uses a recurrent neural network-based sampler to sample from the manifold space according to control conditions (including the initial motion pose, target motion pose, and the time required to move from the initial motion pose to the target motion pose), thereby generating natural stylized human character animation in real time.
[0246] The embodiment of the present application proposes a new animation generation method that can generate stylized high-quality intermediate motion in real time given a target style and control conditions. The present application consists of two parts: a phase-controlled motion manifold space and a controlled style animation sampler. The motion manifold adopts an autoencoder architecture to encode the conditional distribution of transitions between frames into a latent space that conforms to a Gaussian distribution, which together with the extracted phase information constitutes a manifold space. The sampler uses a model architecture based on a recursive neural network to sample in the manifold space given the target motion posture, time and target style, avoiding reaching the target motion posture with the most common action. The manifold space and sampler in the embodiment of the present application can be trained under different data sets, such as the manifold space can be trained on a large motion capture data set, while the sampler is trained on a dedicated stylized data set. The training data set of the sampler may not overlap with the training data set of the manifold space.
[0247] In this embodiment of the application, the motion M∈{s 0~T} is represented as a series of motion gestures Where N is the number of joints, D is the degree of freedom of each joint, and t∈[0,T].
[0248] Optionally, human motion can be represented by a linear dynamical system:
[0249] s t+1 =s t +f1(h t+1 ,s t ),h t+1 =f2(h t ,s t )
[0250] Where h is the hidden variable that controls the dynamics of the motion. When f1 and f2 are both random, the motion M and H∈{h 0~T The joint probability distribution of} is modeled as:
[0251] P(M,H)=P(s1~T-1 ,h 1~T |s T ,s 0 ,h 0 ,k)P(s 0 )P(h 0 )P(s T )P(k)=P(s 0 )P(h 0 )P(s T )P(k)∏P(s t+1 |s T ,s 0 ,h 0 ,h t+1 ,s t )P(h t+1 |s T ,s 0 ,h 0 ,k,h t ,s t )
[0252] where s 0 , h 0 and s T is the intermediate variable generated by interpolated animation, and k is the style code.
[0253] In some embodiments, let where z t It controls h and v h Transform the latent variable of randomness, is the velocity and rotation orientation of the root joint, p t is the phase eigenvector.
[0254] The method provided in the embodiment of the present application aims to maximize the joint probability distribution of M and H, which includes two main parts: the motion manifold P(s t+1 |s T ,h t+1 ,s t ) and sampler P(h t+1 |s T ,k,h t ,s t ), modeling both through a deep neural network. The sampler samples stylized transition motion from the manifold space by predicting phase, root joint, and latent variables in an autoregressive manner.
[0255] For the motion manifold model:
[0256] The motion manifold model needs to learn P(s t+1 |s T ,h t+1 ,s tThe method provided in the embodiment of the present application does not directly predict the next motion posture s t+1 , but learn the posture change Δs between the current motion posture and the next motion posture t+1 =s t+1 -s t , better capture the dynamics of motion within a given fixed time interval. The method provided in the embodiment of the present application hopes that the manifold space will focus on learning the local posture transition of any style, so Since only Δs t+1 、 and s t It can be directly obtained, p t+1 and z t+1 It is a latent variable and the probability distribution cannot be learned directly, so an autoencoder is used to learn it.
[0257] The autoencoder inputs two adjacent motion postures and outputs the change of motion postures. The encoder encodes the input into a standard normal distribution z~N(0,1) to capture the randomness of motion transitions. The decoder uses the hidden variable z and the style-related next phase feature vector p t+1 , current motion posture s t And the next joint velocity vector v t+1 Predict the next motion posture. t+1 It can effectively limit the possibility of the next movement posture, especially the movement of the lower body, because the movement diversity of the lower body is smaller than that of the upper body. t+1 It is impossible to reflect the style-related information, so another phase-related phase feature vector p is used t+1 .
[0258] In the model provided in the embodiment of the present application, the phase feature vector in the latent space contains motion pattern information, as v t+1 It describes the continuous changes in motion patterns and can contain style information. The method provided in the embodiment of the present application extracts a multidimensional phase manifold through a trained periodic autoencoder.
[0259] The decoder maximizes Restore the movement speed, where z t+1 is drawn from the Gaussian distribution of N(μ,σ), p t+1 Sampling from the phase manifold, both are input to the gating network of the conditional mixture expert and are combined with the current motion posture s t , the next joint velocity vector and z t+1 In the gating network of conditional mixture experts, each expert learns a mode and their combination can capture multimodality, with weights according to z t+1 and pt+1 In some embodiments, z t+1 Controlling random state transitions of linear dynamical systems, p t+1 Coding movement style.
[0260] For the sampler model:
[0261] After the manifold space is trained, the method provided in the embodiment of the present application uses a sampler to sample and decode on the manifold space. To predict movement.
[0262] Input the current motion posture s into the sampler t , target motion posture s T , current phase vector p t and sporty M with a targeted style s , output hidden layer variables The hidden layer variables are then input into the motion manifold model to predict the next motion posture.
[0263] Specifically, we first use a convolutional neural network-based style encoder to extract the style from M s Extract the style code k from , where k includes the time dimension. t Input state encoder and use k to s t The encoding result is style embedded, and the target motion posture s T and the offset s between the current motion posture and the target motion posture T -s t Input the encoders separately and concatenate the encoding results together to obtain an encoding vector.
[0264] In some embodiments, time-varying Gaussian noise is added to the code vector, optionally with a variance of 0.5, and its amplitude decreases as it approaches the target motion pose, so that the sampler's attention is focused on the target motion pose only when it is close to the target motion pose.
[0265] In some embodiments, the encoded vector is input into a recurrent neural network, and the output value of the recurrent neural network is parsed by a decoder.
[0266] The following describes the beneficial effects of the embodiments of the present application based on the experimental results of the embodiments of the present application and related solutions.
[0267] The embodiment of this application was trained and tested on a sample dataset of 100 styles using quantitative indicators and compared with other methods. Since the second sub-model and the first sub-model in the embodiment of this application can be trained and tested on different datasets, the last 10 styles in the sample dataset were used as non-overlapping style test data, and 10% of each style in the first 90 styles in the sample dataset was used as overlapping style test data, with the remaining data used as training data.
[0268] The embodiment of the present application uses three sets of indicators to evaluate the motion quality, motion controllability and diversity under various control signals. First, the test model reconstructs the missing frames under different time lengths (10 frames, 20 frames and 40 frames) and measures the reconstruction accuracy. Then, the duration and position of the target frame are changed (space / time control) to allow the virtual character to reach the target motion posture through different actions. The position and duration of the target frame are changed in the following ways:
[0269] (x T ) ′ =x 0 +d·(x T -x 0 ),t ′ durations =dt·t durations
[0270] Among them, x T is the position of the target frame projected on the ground, t durations is the duration of the missing frame. d and dt are ratio parameters. Setting d = 2 and d = -1 places the target frame before and after the start frame, respectively, and setting dt = 2 and dt = 0.5 slows down and speeds up the motion.
[0271] The present embodiment measures motion controllability using three different metrics. When evaluating animation quality, the L2 norm of joint positions and Normalized Power Spectrum Similarity (NPSS) are used to calculate reconstruction accuracy. When changing spatial / temporal control, controllability is measured by determining whether the predicted last frame matches the target. When the foot height h is within the threshold H = 2.5, the average foot velocity v is used. f Measuring footsteps:
[0272] To evaluate diversity, ten samples are generated for each combination of motion and style sequences, and the L2 distance between the global joint positions of any two samples is calculated. Quantitatively evaluating style representation is difficult, but a feasible solution is to compare the distribution of the generated sequences with the original dataset using the Fréchet Motion Distance (FMD) path similarity description. Since changing the spatial / temporal control also significantly changes the animation data distribution, FMD is only used when the duration and target position remain unchanged.
[0273] The model of the embodiment of the present application tested the reconstruction accuracy of missing frames at different time lengths, and compared them with the Real-time Network (RTN) and CVAE. In order to make the comparison fair, the manifold space of CVAE was replaced with the manifold space provided by the embodiment of the present application to input style control. Specifically, four different indicators were tested, namely the L2 norm of the global position of all joints (see Table 1), the NPSS indicator (see Table 2), the footstep sliding indicator (see Table 3) and the diversity (see Table 4):
[0274] Table 1
[0275] Frame length 10 20 40 RTN 0.663 0.847 1.365 CVAE 0.506 0.692 1.224 Phase 0.562 0.730 1.230 This application 0.525 0.680 1.148
[0276] Table 2
[0277] Frame length 10 20 40 RTN 0.387 1.539 8.794 CVAE 0.321 1.353 8.108 Phase 0.361 1.434 8.756 This application 0.384 1.507 9.659
[0278] Table 3
[0279] Frame length 10 20 40 RTN 0.343 0.339 0.474 CVAE 0.217 0.210 0.284 Phase 0.217 0.215 0.290 This application 0.174 0.194 0.272
[0280] Table 4
[0281] Frame length 10 20 40 RTN 0.678 1.956 6.172 CVAE 0.867 1.791 5.560 Phase 1.116 2.148 7.257 This application 0.910 2.017 6.683
[0282] From the NPSS perspective, CVAE performs slightly better than this application overall, while both are better than RTN. Since CVAE's motion sampling is strictly restricted to the latent Gaussian distribution, NPSS is slightly better than this application, while this application achieves better reconstruction overall. When it comes to foot sliding and motion diversity, this application has a clear advantage. Without explicitly imposing a style, RTN and CVAE simply learn the most likely motion given past animations and target frames in the dataset. Sometimes they can generate motion with style, but only if there is a style that is distinct from the others and there is no ambiguity in the data. When there are several similar styles, RTN and CVAE tend to mix them incorrectly. In addition, when the motion differs from the distribution of the training set due to changes in duration or position, RTN and CVAE cannot maintain the original style.
[0283] This application also tests the performance of different models under changing spatiotemporal control conditions, including the L2 norm of the joint position of the last frame (see Table 5) and the sliding loss (see Table 6):
[0284] Table 5
[0285]
[0286]
[0287] Table 6
[0288] condition dt=2,d=1 dt=0.5,d=1 dt=1,d=2 dt=1,d=-1 RTN 0.498 1.294 1.181 0.795 CVAE 0.208 0.995 0.875 0.664 Phase 0.238 0.794 0.689 0.563 This application 0.307 1.018 0.592 0.557
[0289] When accelerating, the avatar needs to take faster steps or longer strides to reach the target. In this case, CVAE and this application use the same phase as the original sequence but at a higher speed, while RTN slides to the target frame. During deceleration, CVAE generates the avatar to wait in the middle without maintaining stylized motion, while this application also slows down but still maintains stylized motion. In this application, longer durations result in more cycles in the phase manifold, avoiding simple stasis in the middle.
[0290] When the target is farther away, CVAE fills the distance gap with more small footsteps or fewer large footsteps. This application uses larger steps to fill the distance gap while maintaining the same phase as the original sequence. RTN typically moves at the same speed as the original sequence but fills the distance gap by sliding. When the target position is behind the character, which is significantly different from the data, the virtual character must change its speed during movement, causing RTN to slide. However, this application and CVAE maintain contact with the ground.
[0291] One advantage of the animation generation model provided by this application is that the second sub-model and the first sub-model do not have to be trained on the same dataset, which allows this application to train the second sub-model on a general dataset with more data samples and train the first sub-model on a dedicated style dataset. To verify this, this application further divides the training dataset into two subsets, named A (containing the first 46 styles) and B (containing the last 44 styles) to ensure that there is no style overlap, and the test dataset is named C (the last 10 styles). The following table shows the performance of the model under different data subsets, including the L2 norm of the joint position (see Table 7), NPSS index (see Table 8), sliding loss (see Table 9), diversity (see Table 10) and FDM (see Table 11):
[0292] Table 7
[0293] Frame length 10 20 40 AA on A(BA on A) 0.59(0.64) 0.76(0.80) 1.31(1.38) BB on A(AB on A) 0.78(0.80) 1.15(1.19) 1.85(1.92) AA on B(BA on B) 0.63(0.62) 0.94(0.89) 1.63(1.53) BB on B(AB on B) 0.53(0.58) 0.68(0.74) 1.11(1.23) AA on C(BA on C) 0.80(0.82) 1.21(1.18) 1.95(1.97) BB on C (AB on C) 0.97(0.98) 1.56(1.51) 2.53(2.44)
[0294] Table 8
[0295]
[0296]
[0297] Table 9
[0298] Frame length 10 20 40 AA on A(BA on A) 0.171(0.202) 0.197(0.222) 0.297(0.321) BB on A(AB on A) 0.217(0.199) 0.250(0.230) 0.250(0.230) AA on B(BA on B) 0.211(0.256) 0.218(0.232) 0.324(0.346) BB on B(AB on B) 0.213(0.221) 0.231(0.249) 0.309(0.343) AA on C(BA on C) 0.196(0.210) 0.264(0.241) 0.336(0.302) BB on C (AB on C) 0.235(0.218) 0.276(0.279) 0.345(0.358)
[0299] Table 10
[0300] Frame length 10 20 40 AA on A(BA on A) 0.869(0.908) 2.172(2.210) 7.194(7.432) BB on A(AB on A) 0.899(0.938) 2.283(2.303) 7.446(7.587) AA on B(BA on B) 0.856(0.892) 2.189(2.191) 7.471(7.612) BB on B(AB on B) 0.834(0.875) 2.049(2.096) 6.738(6.989)
[0301] Table 11
[0302] BA AA AB BB Test set A 16.303 10.359 50.448 58.154 Test set B 45.898 62.092 14.964 11.431 Test set C 70.655 74.404 105.360 102.639
[0303] In the table, "BA on C" represents the full model trained on B, trained on A, and tested on C. When the first sub-model is trained and tested on the same dataset, both reconstruction and NPSS are better. Footstep sliding results are similar, except that AA on B is better than AB on B. Overall, the dataset used for training the second sub-model does not significantly impact these metrics, validating that high-quality manifold spaces can be trained as style-independent motion models. This provides significant training flexibility and reduces the need for capturing large amounts of data for a specific style. Regarding diversity, the generated animations are more diverse when the second and first sub-models are trained on different data. Sampling from a different manifold space makes it difficult to reproduce the original motion, forcing the first sub-model to approximate it through random sampling, essentially increasing diversity. Furthermore, the first sub-model has a greater impact on diversity than the second sub-model, especially when trained and tested on different data. This diversity comes from forcing the character to explore more poses to reach the goal.
[0304] The FMD metric quantifies the distributional similarity between the model-generated animations and the original animations. Again, the first sub-model has a greater impact on this metric; for example, both AA and BA outperform AB on test set A. Furthermore, while BA performs slightly worse than AA on test set A, the visually observed stylistic differences are not significant.
[0305] This application also tested the performance of different models on the dataset under different spatiotemporal control conditions. The results are shown in Table 12 below:
[0306] Table 12
[0307] condition dt=2,d=1 dt=0.5,d=1 dt=1,d=2 dt=1,d=-1 AA on A(BA on A) 0.38(0.37) 0.42(0.42) 0.39(0.40) 0.39(0.37) BB on A(AB on A) 0.43(0.45) 0.48(0.48) 0.46(0.43) 0.45(0.44) AA on B(BA on B) 0.40(0.37) 0.43(0.40) 0.39(0.37) 0.39(0.36) BB on B(AB on B) 0.33(0.35) 0.36(0.38) 0.33(0.33) 0.32(0.34)
[0308] The method provided by this application can generate reasonable and natural results when the input conditions change or even become unreasonable (for example, very long or very short time intervals, the target is in the opposite direction of the initial position or is very far away from the initial position). In terms of controllability, the indicators of the last frame are mainly affected by the manifold space.
[0309] In some embodiments, for styles that are not in the training set, the present application can generate animations in new styles by fine-tuning. Existing data may not provide enough samples in the style space. If the model only needs a small number of sequences in a new style to generate diverse movements in that style, then it is very convenient and efficient for style expression. In order to verify the generalization of the style, the present application fine-tuned the style encoder and the linear layers of the feature-wise linear modulation (FiLM) and attention network (ATN) blocks in the first sub-model, while keeping all other parameters fixed. The "Two Foot Jump" style was selected in the test dataset, and one sequence of each motion type was sampled, and the sequence was expanded by mirroring and random cropping in time. After fine-tuning, the character can reach the target by jumping instead of walking before fine-tuning, and the model can be perfectly generalized to the new style space.
[0310] The beneficial results brought about by the method provided in the embodiments of the present application include at least:
[0311] It is generally superior to other real-time or non-real-time methods in terms of various quantitative indicators.
[0312] For the style types in the training set, the corresponding style animation can be accurately generated; for styles not in the training set, generalization can be achieved through fine-tuning training.
[0313] It can adapt to input conditions of different time lengths and different target positions, and can still generate high-quality natural action sequences when the input conditions are quite different from the data conditions in the database.
[0314] Compared with other methods, the generated action sequences have almost no errors such as foot sliding.
[0315] Figure 21 1 is a schematic diagram of a virtual character animation generation device according to an embodiment of the present application. The device includes:
[0316] The acquisition module 2110 is used to acquire the description information of the initial motion posture, target motion posture, transition frame number, and target style given to the virtual character.
[0317] The prediction module 2120 is configured to predict a transition motion posture of the avatar from the initial motion posture to the target motion posture according to the target style based on the description information of the initial motion posture, the target motion posture, the transition frame number and the target style.
[0318] The generation module 2130 is configured to generate a transition animation from an initial motion posture to a target motion posture based on the transition motion posture of the virtual character.
[0319] In some embodiments, the transition animation is generated by an animation generation model, which includes a first sub-model and a second sub-model.
[0320] The prediction module 2120 is further configured to initialize the initial motion posture as the current motion posture of the virtual character, and initialize the number of transition frames as the number of remaining frames.
[0321] The prediction module 2120 is also used to encode the description information of the current motion posture, target motion posture, remaining number of frames and target style through the first sub-model to obtain a fused coding vector; and decode the fused coding vector to obtain the posture parameters of the next motion posture.
[0322] The prediction module 2120 is further configured to predict the next motion posture based on the current motion posture and the posture parameters of the next motion posture using the second sub-model.
[0323] The prediction module 2120 is further configured to subtract one from the number of remaining frames to obtain an updated number of remaining frames.
[0324] The prediction module 2120 is further configured to update the next motion posture to the current motion posture when the remaining number of frames after the update is not zero, and to repeat the above four steps.
[0325] The prediction module 2120 is further configured to predict the hidden feature vector of the next motion posture based on the fused coding vector.
[0326] The prediction module 2120 is further configured to decode the hidden feature vector of the next motion posture to obtain the posture parameters of the next motion posture.
[0327] The prediction module 2120 is further configured to determine a current phase feature vector based on the current motion posture, where the current phase feature vector is used to characterize the motion style of the virtual character at the current frame moment.
[0328] The prediction module 2120 is further configured to use the current phase feature vector as first reference information to decode the hidden feature vector of the next motion posture to obtain the posture parameters of the next motion state.
[0329] The prediction module 2120 is also used to encode the current motion posture into a current state vector, encode the target motion posture into a target state vector, encode the offset value between the target motion posture and the current motion posture into an offset value state vector, encode the description information of the target style into a style encoding vector, and encode the remaining number of frames as a time control variable through the first sub-model.
[0330] The prediction module 2120 is further configured to perform style embedding on the current state vector based on the style coding vector to obtain the current state vector after style embedding.
[0331] The prediction module 2120 is further configured to concatenate the current state vector, the target state vector, the offset state vector, and the time control variable after the style embedding to obtain a fused coding vector.
[0332] The prediction module 2120 is further configured to fuse the current state vector after style embedding with the time control variable to obtain a first fused vector.
[0333] The prediction module 2120 is further configured to fuse the target state vector, the offset state vector, and the time control variable to obtain a second fused vector.
[0334] The prediction module 2120 is further configured to concatenate the first fused vector and the second fused vector to obtain a fused coding vector.
[0335] The prediction module 2120 is further configured to fuse the target state vector, the offset value state vector, the time control variable, and the noise variable to obtain a second fused vector.
[0336] The noise variable is determined based on the number of remaining frames, and the amplitude of the noise variable is proportional to the number of remaining frames.
[0337] The prediction module 2120 is further configured to decode the hidden feature vector of the next motion posture based on the first reference information and the second reference information to obtain the posture parameters of the next motion state.
[0338] The first reference information is the current phase eigenvector, and the second reference information is determined based on the current motion posture and the target motion posture.
[0339] The second sub-model includes the decoding network.
[0340] The prediction module 2120 is further configured to input the posture parameters of the current motion posture and the next motion posture into the decoding network to obtain the posture change between the current motion posture and the next motion posture.
[0341] The prediction module 2120 is further configured to obtain a next motion posture based on a posture change between the current motion posture and the next motion posture.
[0342] The prediction module 2120 is also used for posture parameters of the next motion posture, including the next phase feature vector, the motion distribution vector and the next joint velocity vector.
[0343] The prediction module 2120 is further configured to input the current motion posture, the next phase feature vector, the motion distribution vector and the next joint velocity vector into the decoding network to obtain the posture change between the current motion posture and the next motion posture.
[0344] The next phase eigenvector is used to characterize the motion style of the virtual character at the next frame moment.
[0345] The device also includes:
[0346] Training module 2140 is used to obtain a first prediction result based on a first sample data set and a second sub-model. The first prediction result is used to indicate a prediction result predicted by the second sub-model based on the output result of the first sub-model. The output result of the first sub-model is obtained based on the prediction of the first sample data set.
[0347] The training module 2140 is further configured to calculate a first loss value based on the first prediction result by using a first loss function, where the first loss value is used to indicate the motion loss of the virtual character.
[0348] The training module 2140 is further used to train the first sub-model based on the first loss value.
[0349] The first sample data set includes a sample motion sequence and a sample motion speed, and the first prediction result includes a predicted motion sequence and a predicted motion speed, where the motion sequence and the motion speed are used to indicate the motion of the virtual character.
[0350] The training module 2140 is further configured to calculate a first sub-loss value based on the sample motion sequence and the predicted motion sequence, where the first sub-loss value is used to indicate the loss between the sample motion sequence and the predicted motion sequence.
[0351] The training module 2140 is further configured to calculate a second sub-loss value based on the sample motion speed and the predicted motion speed, where the second sub-loss value is used to indicate the loss between the sample motion speed and the predicted motion speed.
[0352] The training module 2140 is further configured to calculate a first loss value using a first loss function based on the first sub-loss value and the second sub-loss value.
[0353] The first sample data set also includes a sample phase feature, and the first prediction result also includes a predicted phase feature, where the phase feature is used to characterize the movement style of the virtual character.
[0354] The training module 2140 is further configured to calculate a third sub-loss value based on the sample phase feature and the predicted phase feature.
[0355] The training module 2140 is further configured to calculate a first loss value using a first loss function based on the first sub-loss value, the second sub-loss value, and the third sub-loss value.
[0356] The first sample data set also includes a sample target motion posture, and the first prediction result also includes a predicted target motion posture.
[0357] The training module 2140 is further configured to calculate a fourth sub-loss value based on the sample target motion posture and the predicted target motion posture.
[0358] The training module 2140 is further configured to calculate a first loss value using a first loss function based on the first sub-loss value, the second sub-loss value, the third sub-loss value, and the fourth sub-loss value.
[0359] The second sub-model also includes an encoding network.
[0360] The training module 2140 is further configured to input the current motion posture of the sample and the next motion posture of the sample in the second sample data set into the encoding network to obtain a predicted motion distribution; and calculate a fifth sub-loss value based on the predicted motion distribution.
[0361] The training module 2140 is further configured to input the predicted motion distribution and the sample motion sequence and sample motion speed in the second sample data set into the decoding network to obtain the predicted motion sequence and predicted motion speed, where the motion sequence and motion speed are used to indicate the motion of the virtual character.
[0362] The training module 2140 is further configured to calculate a sixth sub-loss value based on the sample motion sequence and the predicted motion sequence.
[0363] The training module 2140 is further configured to calculate a seventh sub-loss value based on the sample motion speed and the predicted motion speed.
[0364] The training module 2140 is further configured to calculate a second loss value using a second loss function based on the fifth sub-loss value, the sixth sub-loss value, and the seventh sub-loss value.
[0365] The training module 2140 is further configured to train the second sub-model based on the second loss value.
[0366] The second sample data set also includes a sample next phase feature vector, and the sample next phase feature vector is used to characterize the movement style of the virtual character.
[0367] The training module 2140 is further configured to input the predicted motion distribution and the sample motion sequence, sample motion speed, and sample next phase feature vector in the second sample data set into the decoding network to obtain the predicted motion sequence and predicted motion speed.
[0368] In an exemplary embodiment, a computer device is also provided, which includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the transition frame generation method in the embodiment of the present application.
[0369] Taking computer equipment as the terminal as an example, Figure 22 The figure is a schematic diagram of the structure of a terminal provided according to an embodiment of the present application. Terminal 2200 may be a smartphone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) or Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer, or a desktop computer. Terminal 2200 may also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other similar names.
[0370] Typically, the terminal 2200 includes a processor 2201 and a memory 2202 .
[0371] The processor 2201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2201 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 2201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 2201 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2201 may also include an AI processor, which is used to process computing operations related to machine learning.
[0372] Memory 2202 may include one or more computer-readable storage media, which may be non-transitory. Memory 2202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 2202 is used to store at least one program code, which is executed by processor 2201 to implement the transition frame generation method provided in the method embodiment of the present application.
[0373] In some embodiments, terminal 2200 may optionally include a peripheral device interface 2203 and at least one peripheral device. The processor 2201, memory 2202, and peripheral device interface 2203 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 2203 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 2204, a display screen 2205, a camera assembly 2206, an audio circuit 2207, a positioning assembly 2208, and a power supply 2209.
[0374] The peripheral device interface 2203 can be used to connect at least one peripheral device related to input / output (I / O) devices to the processor 2201 and the memory 2202. In some embodiments, the processor 2201, the memory 2202, and the peripheral device interface 2203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2201, the memory 2202, and the peripheral device interface 2203 can be implemented on separate chips or circuit boards, which is not limited in this embodiment of the present application.
[0375] The radio frequency circuit 2204 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 2204 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 2204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 2204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 2204 can communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or wireless fidelity (Wi-Fi) networks. In some embodiments, the radio frequency circuit 2204 may also include circuits related to near field communication (NFC), which is not limited in this application.
[0376] The display screen 2205 is used to display a user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 2205 is a touch screen display, the display screen 2205 also has the ability to collect touch signals on the surface or above the surface of the display screen 2205. The touch signal can be input as a control signal to the processor 2201 for processing. In this case, the display screen 2205 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 2205, which is set on the front panel of the terminal 2200; in other embodiments, there can be at least two display screens 2205, which are respectively set on different surfaces of the terminal 2200 or in a folding design; in other embodiments, the display screen 2205 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal 2200. Even more, the display screen 2205 can be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 2205 can be made of materials such as liquid crystal display (LCD) and organic light-emitting diode (OLED).
[0377] The camera assembly 2206 is used to capture images or videos. Optionally, the camera assembly 2206 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and virtual reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 2206 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0378] The audio circuit 2207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 2201 for processing, or input into the radio frequency circuit 2204 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal 2200. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 2201 or the radio frequency circuit 2204 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 2207 may also include a headphone jack.
[0379] The positioning component 2208 is used to locate the current geographical location of the terminal 2200 to implement navigation or location-based service (LBS).
[0380] Power supply 2209 is used to power various components in terminal 2200. Power supply 2209 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 2209 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0381] In some embodiments, the terminal 2200 further includes one or more sensors 2210 , including but not limited to: an acceleration sensor 2211 , a gyroscope sensor 2212 , a pressure sensor 2213 , an optical sensor 2214 , and a proximity sensor 2215 .
[0382] The accelerometer 2211 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal 2200. For example, the accelerometer 2211 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 2201 can control the display screen 2205 to display the user interface in either a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 2211. The accelerometer 2211 can also be used to collect game or user motion data.
[0383] The gyroscope sensor 2212 can detect the orientation and rotation angle of the terminal 2200. It can work in conjunction with the accelerometer 2211 to collect the user's 3D movements on the terminal 2200. Based on the data collected by the gyroscope sensor 2212, the processor 2201 can implement the following functions: motion sensing (for example, changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0384] The pressure sensor 2213 can be set on the side frame of the terminal 2200 and / or the lower layer of the display screen 2205. When the pressure sensor 2213 is set on the side frame of the terminal 2200, it can detect the user's grip signal of the terminal 2200, and the processor 2201 performs left and right hand recognition or shortcut operations based on the grip signal collected by the pressure sensor 2213. When the pressure sensor 2213 is set on the lower layer of the display screen 2205, the processor 2201 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 2205. Operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0385] Optical sensor 2214 is used to detect ambient light intensity. In one embodiment, processor 2201 can control the display brightness of display screen 2205 based on the ambient light intensity detected by optical sensor 2214. Specifically, when the ambient light intensity is high, the display brightness of display screen 2205 is increased; when the ambient light intensity is low, the display brightness of display screen 2205 is decreased. In another embodiment, processor 2201 can also dynamically adjust the shooting parameters of camera assembly 2206 based on the ambient light intensity detected by optical sensor 2214.
[0386] Proximity sensor 2215, also known as a distance sensor, is typically located on the front panel of terminal 2200. Proximity sensor 2215 is used to detect the distance between the user and the front of terminal 2200. In one embodiment, when proximity sensor 2215 detects that the distance between the user and the front of terminal 2200 is gradually decreasing, processor 2201 controls display screen 2205 to switch from the screen-on state to the screen-off state. When proximity sensor 2215 detects that the distance between the user and the front of terminal 2200 is gradually increasing, processor 2201 controls display screen 2205 to switch from the screen-off state to the screen-on state.
[0387] Those skilled in the art will understand that Figure 22 The structure shown in the figure does not constitute a limitation on the terminal 2200, and the terminal 2200 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0388] Taking the computer device as a server as an example, Figure 23 2 is a schematic diagram of the structure of a server provided according to an embodiment of the present application. The server 2300 may vary significantly due to different configurations or performance, and may include one or more processors (Central Processing Units, CPUs) 2301 and one or more memories 2302, wherein the memories 2302 store at least one computer program, which is loaded and executed by the processor 2301 to implement the transition frame generation method provided by each of the above method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be described in detail here.
[0389] An embodiment of the present application also provides a computer storage medium, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the virtual character animation generation method provided by the above-mentioned method embodiments.
[0390] An embodiment of the present application also provides a computer program product, which includes at least one program, and the at least one program is stored in a computer-readable storage medium; the processor of the communication device reads at least one program from the computer-readable storage medium, and the processor executes at least one program, so that the communication device executes the virtual character animation generation method provided by the above-mentioned method embodiments.
[0391] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0392] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for generating an animation of a virtual character, characterized in that: The method comprises: Obtaining description information of an initial motion posture, a target motion posture, a transition frame number, and a target style given to the virtual character; Based on the initial motion posture, the target motion posture, the transition frame number and the description information of the target style, predicting a transition motion posture of the virtual character moving from the initial motion posture to the target motion posture according to the target style; Based on the transitional motion posture of the virtual character, a transitional animation from the initial motion posture to the target motion posture is generated.
2. The method according to claim 1, characterized in that The method is performed based on an animation generation model, wherein the animation generation model includes a first sub-model and a second sub-model; The predicting, based on the initial motion posture, the target motion posture, the transition frame number and the description information of the target style, of the transition motion posture of the virtual character from the initial motion posture to the target motion posture according to the target style comprises: Initializing the initial motion posture as the current motion posture of the virtual character, and initializing the transition frame number as the remaining frame number; Encoding the current motion posture, the target motion posture, the remaining number of frames and the description information of the target style through the first sub-model to obtain a fused coding vector; and decoding the fused coding vector to obtain a posture parameter of the next motion posture; Predicting the next motion posture based on the current motion posture and the posture parameters of the next motion posture by the second sub-model; Subtract one from the remaining number of frames to obtain an updated remaining number of frames; When the remaining number of frames after updating is not zero, the next motion posture is updated to the current motion posture, and the above four steps are repeated.
3. The method according to claim 2, characterized in that The decoding based on the fused coding vector to obtain the posture parameter of the next motion posture includes: Predicting a hidden feature vector of the next motion posture based on the fused coding vector; The hidden layer feature vector of the next motion posture is decoded to obtain the posture parameter of the next motion posture.
4. The method according to claim 3, characterized in that The method further comprises: Determine a current phase feature vector based on the current motion posture, wherein the current phase feature vector is used to characterize the motion style of the virtual character at the current frame moment; The decoding of the hidden layer feature vector of the next motion posture to obtain the posture parameter of the next motion posture includes: The current phase feature vector is used as the first reference information to decode the hidden layer feature vector of the next motion posture to obtain the posture parameter of the next motion state.
5. The method according to any one of claims 2 to 4, characterized in that: The encoding of the fused coding vector based on the current motion posture, the target motion posture, the remaining number of frames and the description information of the target style by the first sub-model includes: By means of the first sub-model, the current motion posture is encoded into a current state vector, the target motion posture is encoded into a target state vector, the offset value between the target motion posture and the current motion posture is encoded into an offset value state vector, the description information of the target style is encoded into a style encoding vector, and the remaining number of frames is encoded as a time control variable; Performing style embedding on the current state vector based on the style encoding vector to obtain a current state vector after style embedding; The current state vector after the style embedding, the target state vector, the offset value state vector and the time control variable are concatenated to obtain the fused coding vector.
6. The method according to claim 5, characterized in that The step of concatenating the current state vector after the style embedding, the target state vector, the offset value state vector and the time control variable to obtain the fused coding vector includes: Fusing the current state vector after the style embedding and the time control variable to obtain a first fused vector; Fusing the target state vector, the offset value state vector and the time control variable to obtain a second fused vector; The first fusion vector and the second fusion vector are concatenated to obtain the fusion coding vector.
7. The method according to claim 6, characterized in that The method further comprises: Fusing the target state vector, the offset value state vector, the time control variable and the noise variable to obtain the second fused vector; The noise variable is determined based on the remaining number of frames, and the amplitude of the noise variable is proportional to the number of the remaining frames.
8. The method according to claim 4, characterized in that The method of using the current phase feature vector as the first reference information to decode the hidden feature vector of the next motion posture to obtain the posture parameter of the next motion state includes: Based on the first reference information and the second reference information, decoding the hidden layer feature vector of the next motion posture to obtain the posture parameter of the next motion state; The first reference information is the current phase feature vector, and the second reference information is determined based on the current motion posture and the target motion posture.
9. The method according to claim 2, characterized in that: The second sub-model includes a decoding network; The predicting the next motion posture based on the current motion posture and the posture parameters of the next motion posture by the second sub-model includes: Inputting posture parameters of the current motion posture and the next motion posture into the decoding network to obtain a posture change between the current motion posture and the next motion posture; Based on a posture change between the current motion posture and the next motion posture, the next motion posture is obtained.
10. The method according to claim 9, characterized in that The posture parameters of the next motion posture include a next phase characteristic vector, a motion distribution vector and a next joint velocity vector; The step of inputting the posture parameters of the current motion posture and the next motion posture into the decoding network to obtain the posture change between the current motion posture and the next motion posture comprises: Inputting the current motion posture, the next phase feature vector, the motion distribution vector and the next joint velocity vector into the decoding network to obtain a posture change between the current motion posture and the next motion posture; The next phase feature vector is used to characterize the movement style of the virtual character at the next frame moment.
11. The method according to any one of claims 2 to 8, characterized in that: The method further comprises: Based on the first sample data set and the second sub-model, a first prediction result is obtained, where the first prediction result is used to indicate a prediction result predicted by the second sub-model based on an output result of the first sub-model, where the output result of the first sub-model is predicted based on the first sample data set; Based on the first prediction result, calculating a first loss value by using a first loss function, where the first loss value is used to indicate a motion loss of the virtual character; The first sub-model is trained based on the first loss value.
12. The method according to claim 11, characterized in that The first sample data set includes a sample motion sequence and a sample motion speed, the first prediction result includes a predicted motion sequence and a predicted motion speed, and the motion sequence and the motion speed are used to indicate the motion of the virtual character; The calculating a first loss value by using a first loss function based on the first prediction result includes: Based on the sample motion sequence and the predicted motion sequence, calculating a first sub-loss value, wherein the first sub-loss value is used to indicate a loss between the sample motion sequence and the predicted motion sequence; Calculating a second sub-loss value based on the sample motion speed and the predicted motion speed, wherein the second sub-loss value is used to indicate a loss between the sample motion speed and the predicted motion speed; Based on the first sub-loss value and the second sub-loss value, the first loss value is calculated by the first loss function.
13. The method according to claim 12, characterized in that The first sample data set further includes a sample phase feature, and the first prediction result further includes a predicted phase feature, where the phase feature is used to characterize the movement style of the virtual character; The method further comprises: Calculating a third sub-loss value based on the sample phase feature and the predicted phase feature; The calculating the first loss value by using the first loss function based on the first sub-loss value and the second sub-loss value includes: The first loss value is calculated by the first loss function based on the first sub-loss value, the second sub-loss value and the third sub-loss value.
14. The method according to claim 13, characterized in that The first sample data set also includes a sample target motion posture, and the first prediction result also includes a predicted target motion posture; The method further comprises: Calculating a fourth sub-loss value based on the sample target motion posture and the predicted target motion posture; The calculating the first loss value by using the first loss function based on the first sub-loss value, the second sub-loss value, and the third sub-loss value includes: The first loss value is calculated by the first loss function based on the first sub-loss value, the second sub-loss value, the third sub-loss value and the fourth sub-loss value.
15. The method according to claim 9, characterized in that The second sub-model also includes an encoding network, and the method further includes: Inputting the current motion posture of the sample and the next motion posture of the sample in the second sample data set into the encoding network to obtain a predicted motion distribution; and calculating a fifth sub-loss value based on the predicted motion distribution; Inputting the predicted motion distribution and the sample motion sequence and the sample motion speed in the second sample data set into the decoding network to obtain the predicted motion sequence and the predicted motion speed, wherein the motion sequence and the motion speed are used to indicate the motion of the virtual character; Calculating a sixth sub-loss value based on the sample motion sequence and the predicted motion sequence; Calculating a seventh sub-loss value based on the sample motion speed and the predicted motion speed; Calculating a second loss value by a second loss function based on the fifth sub-loss value, the sixth sub-loss value, and the seventh sub-loss value; The second sub-model is trained based on the second loss value.
16. The method according to claim 15, characterized in that The second sample data set also includes a sample next phase feature vector, and the sample next phase feature vector is used to characterize the movement style of the virtual character; The step of inputting the predicted motion distribution and the sample motion sequence and the sample motion speed in the second sample data set into the decoding network to obtain the predicted motion sequence and the predicted motion speed comprises: The predicted motion distribution and the sample motion sequence, the sample motion speed and the sample next phase feature vector in the second sample data set are input into the decoding network to obtain the predicted motion sequence and the predicted motion speed.
17. A virtual character animation generation device, characterized in that: The device comprises: An acquisition module, used to acquire the description information of the initial motion posture, target motion posture, transition frame number, and target style given to the virtual character; A prediction module, configured to predict a transition motion posture of the virtual character moving from the initial motion posture to the target motion posture according to the target style based on the initial motion posture, the target motion posture, the transition frame number and the description information of the target style; A generating module is used to generate a transition animation from the initial motion posture to the target motion posture based on the transition motion posture of the virtual character.
18. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein the memory is used to store at least one program, and the at least one program is loaded by the processor and executes the method for generating animation of a virtual character according to any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program, and the at least one program is loaded and executed by a processor to implement the method for generating animation of a virtual character according to any one of claims 1 to 16.
20. A computer program product, characterized in that The computer program product includes at least one program, which is stored in a computer-readable storage medium; the processor of the communication device reads the at least one program from the computer-readable storage medium, and the processor executes the at least one program, so that the communication device executes the virtual character animation generation method as described in any one of claims 1 to 16.
Citation Information
Cited By
Virtual character behavior action simulation system and method based on artificial intelligence
CN119850802A
Action generation method and system of virtual character
CN120599106A
Method and system for generating motion of virtual character
CN120599106B
