Pose determination method and apparatus, electronic device, and storage medium

By acquiring information about the target object and elements, and using a neural network model to determine the pose, the problem of low computational efficiency in dynamic element simulation is solved, achieving efficient pose information determination and improved smoothness in multi-person simultaneous screen scenarios.

CN117853580BActive Publication Date: 2026-11-24BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410039685.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2026-11-24
Estimated Expiration
2044-01-10

AI Technical Summary

Technical Problem

Existing pose determination methods are computationally inefficient in dynamic element simulations, making it difficult to meet real-time requirements, especially in scenarios with multiple users on the same screen, where the load is too heavy.

Method used

By acquiring the current object information of the target object and the historical state information of the target element, and using a preset pose determination model, including an encoding module, a timing module, and a decoding module, combined with neural network technologies such as GRU, LSTM, and Transformer, the pose information is quickly determined.

Benefits of technology

It effectively improves the efficiency of determining the pose information of dynamic elements, reduces CPU load, supports different levels of detail calculation, and improves the smoothness of multi-person screen scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117853580B_ABST
    Figure CN117853580B_ABST
Patent Text Reader

Abstract

This disclosure provides a pose determination method, apparatus, electronic device, and storage medium. The method includes: acquiring current object information of a target object and historical state information of a target element, wherein the current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in historical frames, and the target element is associated with the target object; and determining the current pose information of the target element based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame. This method effectively improves the efficiency of element pose information determination and solves the problem of dynamic element simulation by determining the current pose information of the target element based on the acquired current object information and historical state information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more particularly to a pose determination method, apparatus, electronic device, and storage medium. Background Technology

[0002] In real-time interactive scenarios, it is necessary to accurately simulate objects or elements in the frame to improve the overall effect of the image. For example, in fields such as games or virtual try-on, fabric is prone to bending and deformation, resulting in wrinkles of varying degrees. Therefore, accurately determining the pose information of elements in the current frame is a problem that urgently needs to be solved.

[0003] Existing pose determination methods typically involve pre-binding a skeleton to an element model and then calculating the skeleton's properties to achieve a realistic simulation effect. However, these methods still suffer from problems such as low computational efficiency. Summary of the Invention

[0004] This disclosure provides a pose determination method, apparatus, electronic device, and storage medium to effectively improve the efficiency of pose determination and solve the problem of dynamic element simulation.

[0005] In a first aspect, embodiments of this disclosure provide a pose determination method, including:

[0006] Obtain the current object information of the target object and the historical state information of the target element. The current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in the historical frames. The target element is associated with the target object.

[0007] The current pose information of the target element is determined based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame.

[0008] Secondly, embodiments of this disclosure also provide a pose determination device, including:

[0009] The acquisition module is used to acquire the current object information of the target object and the historical state information of the target element. The current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in the historical frames. The target element is associated with the target object.

[0010] The determination module is used to determine the current pose information of the target element based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame.

[0011] Thirdly, embodiments of this disclosure also provide an electronic device, including:

[0012] One or more processors;

[0013] Memory, used to store one or more programs.

[0014] When the one or more programs are executed by the one or more processors, the one or more processors implement the pose determination method as described in the embodiments of this disclosure.

[0015] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the pose determination method as described in embodiments of this disclosure.

[0016] This disclosure provides a pose determination method, apparatus, electronic device, and storage medium. The method includes: acquiring current object information of a target object and historical state information of a target element, wherein the current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in historical frames, and the target element is associated with the target object; and determining the current pose information of the target element based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame. By utilizing the above technical solution, and determining the current pose information of the target element based on the acquired current object information and historical state information, the efficiency of element pose information determination is effectively improved, and the problem of dynamic element simulation is solved. Attached Figure Description

[0017] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0018] Figure 1 A schematic flowchart illustrating a pose determination method provided in an embodiment of this disclosure;

[0019] Figure 2 A flowchart illustrating another pose determination method provided in this embodiment of the present disclosure;

[0020] Figure 3 A flowchart illustrating another pose determination method provided in this embodiment of the present disclosure;

[0021] Figure 4 This is a schematic diagram of the structure of a pose determination device provided in an embodiment of the present disclosure;

[0022] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0023] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0024] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0025] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0026] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0027] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0028] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0029] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0030] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0031] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0032] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0033] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0034] Figure 1 This is a flowchart illustrating a pose determination method provided in an embodiment of the present disclosure. The method is applicable to situations where pose needs to be determined. The method can be executed by a pose determination device, which can be implemented by software and / or hardware and is generally integrated into an electronic device. In this embodiment, the electronic device includes, but is not limited to, devices such as computers, mobile phones, or tablet computers.

[0035] It can be argued that dynamic elements, due to their complex dynamic characteristics, have always been a challenging topic in the simulation field. Based on simulation quality, pose determination methods can be divided into two categories. One category is based on complex physical modeling to achieve high-fidelity element simulation. Because it requires solving complex differential equations, this type of method usually cannot meet real-time requirements and is often used in industries such as film and design where simulation efficiency is not a primary concern. The other category is based on simplified physical models. This typically involves pre-binding a skeleton to the element model and then solving the skeleton's properties to achieve a realistic element simulation effect. This is often used for real-time calculations in games, but it still suffers from low computational efficiency and difficulty in supporting simultaneous multi-user calculations.

[0036] Furthermore, while there are some mature solutions for applying neural networks in element simulation, there is still no high-performance solution for dynamic element simulation.

[0037] Based on this, the pose determination method provided in this disclosure can effectively improve the efficiency of pose determination and solve the problem of dynamic element simulation; at the same time, it can support different levels of detail (LOD) calculations without significant loss of effect, effectively reducing the load when multiple users are on the same screen. Furthermore, since current generation mobile phone chips typically integrate neural network chips, this disclosure embodiment can also perform neural network operations on such chips, thereby further reducing CPU load. Figure 1 As shown in the embodiments of this disclosure, a pose determination method includes the following steps:

[0038] S110. Obtain the current object information of the target object and the historical state information of the target element. The current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in the historical frames. The target element is associated with the target object.

[0039] The target object can refer to a specific object in the current frame, such as any object in the current frame, or an object with certain specified characteristics, such as an object containing a target element. The target element can be an element with flexible characteristics, or an element with other characteristics, such as cloth or long hair. The scene of the target object is not limited. In this embodiment, it can be a game scene with a single player or a game scene with multiple players on the same screen, or other film or design scenes, etc.

[0040] Current object information can be considered as the object information of the target object in the current frame. Object information can refer to information related to the target object, such as current speed information, or other information besides current speed information. Historical state information can be understood as the state information of the target element in historical frame data. Historical frame data can include the previous frame adjacent to the current frame, or other historical frame data not adjacent to the current frame. State information can be used to characterize the feature state of the target element. The target element can be associated with the target object, such as the target element being specifically determined by elements in the target object or elements worn by the target object.

[0041] In this embodiment, the current object information and historical state information of the target element can be obtained first, so as to determine the current pose information in the future based on the obtained information. The specific method of obtaining the current object information and historical state information is not limited. For example, different information can correspond to different acquisition methods.

[0042] S120. Determine the current pose information of the target element based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame.

[0043] The current pose information can be the pose information of the target element in the current frame, such as the skeleton parameters of hair or cloth (such as clothing) in the current frame.

[0044] After obtaining the current object information and historical state information in the above steps, this embodiment can determine the current pose information of the target element based on the obtained current object information and historical state information. For example, the obtained information can be directly input into the preset pose determination model to output the corresponding current pose information, or the current pose information of the target element can be determined by performing certain calculations on the obtained current object information and historical state information. The specific content of the preset pose determination model will not be elaborated here.

[0045] This disclosure provides a pose determination method that acquires current object information of a target object and historical state information of a target element. The current object information refers to the object information of the target object in the current frame, and the historical state information refers to the state information of the target element in historical frames. The target element is associated with the target object. The method determines the current pose information of the target element based on the current object information and the historical state information. The current pose information is the pose information of the target element in the current frame. This method effectively improves the efficiency of element pose determination by using the acquired current object information and historical state information to solve the problem of dynamic element simulation.

[0046] In some embodiments, after determining the current pose information of the target element based on the current object information and the historical state information, the method further includes:

[0047] The current frame is generated based on the current object information and the current pose information. The current frame displays the object image of the target object and / or the element image of the target element.

[0048] In some implementations, after determining the current pose information of the target element, a corresponding current frame can be generated based on the current object information and the determined current pose information, so that the current frame displays the object image of the target object and / or the element image of the target element. Based on this, the simulation of the target element in the current frame is achieved.

[0049] In some embodiments, determining the current pose information of the target element based on the current object information and the historical state information includes:

[0050] The current object information and the historical state information are input into the preset pose determination model, and the pose information output by the preset pose determination model is obtained as the current pose information of the target element.

[0051] The specific architecture of the model determined by the preset pose is not limited, and it can be composed of one or more modules.

[0052] In some embodiments, the preset pose determination model includes an encoding module, a timing module, and at least one decoding module. The encoding module is used to encode the current pose information in the current object information. The timing module is used to determine the current state information of the target element. The decoding module is used to decode the current state information.

[0053] The encoding module can be used to encode the current pose information in the current object information, the timing module can be used to determine the current state information of the target element, and the decoding module can be used to decode the current state information. In this embodiment, the specific structure and number of the encoding module, timing module and decoding module are not limited.

[0054] For example, the preset pose determination model can contain multiple decoding modules. The types of decoding modules can be the same or different. For instance, different decoding modules correspond to different target elements and are used to decode the current pose information of the corresponding target element. Different decoding modules can generate the current pose information of different parts, and these different parts can correspond to different target elements.

[0055] In some implementations, the current pose information can be determined by a preset pose determination model. That is, the current object information and historical state information can be directly input into the preset pose determination model, and the corresponding current pose information can be output. Thus, the output pose information can be obtained and used as the current pose information of the target element.

[0056] In some embodiments, the timing module may be a gated loop unit, a recurrent neural network module, a long short-term memory neural network module, or a converter module.

[0057] Among them, the Gated Recurrent Unit (GRU) introduces a gating mechanism, enabling the network to better capture long-term dependencies while reducing the gradient vanishing problem and requiring less computation. Recurrent Neural Networks (RNNs) are a type of recurrent neural network that takes sequential data as input, recursively moves along the sequence's evolution direction, and connects all nodes (recurrent units) in a chain-like manner. They can handle variable-length sequential data and capture temporal dependencies within the sequence. Furthermore, RNNs can learn contextual information within the sequence, demonstrating excellent performance in tasks such as natural language processing and speech recognition. Long Short-Term Memory (LSTM) modules, through their unique gating mechanism, can handle long-term dependencies in long sequences, thus exhibiting excellent performance in capturing the intrinsic structure of sequential data. The Transformer model uses a self-attention mechanism to capture dependencies between different positions, enabling it to handle long text sequences and avoid the long-range dependency problem in traditional models, thereby improving model performance.

[0058] In some embodiments, the encoding module and the decoding module are multilayer perceptron structures, the multilayer perceptron structure including multiple linear layers, and at least some of the linear layers have a normalization layer and / or a Gaussian error linear unit disposed on the output side.

[0059] Specifically, the encoding and decoding modules can be multilayer perceptual base structures, that is, including multiple linear layers. Furthermore, other layers can be added after at least some of the linear layers. For example, normalization layers and / or Gaussian error linear units can be set on the output side of one or more linear layers. On this basis, the network accuracy of the preset pose determination model is improved.

[0060] In some embodiments, the loss function of the preset pose determination model includes a forward dynamics loss function, which is based on wavelet transform for frequency decomposition.

[0061] The loss function for the pose determination model is not limited, and can include a forward kinematics (FK) loss function. The FK loss function can be obtained based on the transformation of bone parameters from the local coordinate system to the global coordinate system, used to constrain the model output to be as equal as possible to the ground truth in terms of bone position parameters. Furthermore, wavelet transform can be further introduced when calculating the FK loss function; that is, the forward kinematics loss function can be obtained based on frequency decomposition using wavelet transform. For example, wavelet transform can be used to further decompose the bone point positions according to frequency, thereby improving the prediction effect of the high-frequency components of the neural network. Additionally, an L1 loss function can also be included to constrain the model output to be as equal as possible to the ground truth in terms of bone rotation parameters.

[0062] In some embodiments, the process of training the preset pose determination model is not limited. For example, in terms of training data acquisition, since the simulation target of the neural network is a cloth simulation plugin, the physical simulation results of various action states can be collected in advance using the game environment as training data. In actual training, the training data can be preprocessed first, such as dividing the previously collected training data into action segments of fixed length for subsequent training (currently 120 frames, batch size = 64). Then, the Adam optimizer is used for optimization. The neural network is fully converged after 500 epochs. The learning rate is set to 1e-3 and gradually decreases with the number of iterations. The training cycle is about 1 day.

[0063] To further improve the prediction performance of the neural network at low LOD levels (e.g., allowing for some performance loss), embodiments of this disclosure can achieve this by scaling the size of the neural network, such as training five LOD models simultaneously. As can be seen from the performance improvement in the table below, LOD0 is the state with the highest accuracy.

[0064] LOD Model bandwidth Reasoning speed Basic Plugins / 0.6ms 0 256 0.27ms 1 192 0.18ms 2 128 0.12ms 3 96 0.09ms 4 64 0.07ms

[0065] Figure 2 This is a flowchart illustrating another pose determination method provided in this embodiment. The solution in this embodiment can be combined with one or more optional solutions in the above embodiments. Optionally, the current object information includes current pose information and current velocity information; and / or, the historical state information includes the previous state information of the target element in the previous frame.

[0066] Furthermore, determining the current pose information of the target element based on the current object information and the historical state information includes: encoding the current pose information; determining the current state information of the target element based on the encoded current pose information, the current velocity information, and the previous state information, wherein the current state information is the state information of the target element in the current frame; and decoding the current state information to obtain the current pose information of the target element.

[0067] For details not covered in this embodiment, please refer to the embodiments described above.

[0068] like Figure 2 As shown, the method includes:

[0069] S210. Obtain the current object information of the target object and the historical state information of the target element, wherein the current object information includes the current pose information and the current velocity information; and / or, the historical state information includes the previous state information of the target element in the previous frame, wherein the target element is associated with the target object.

[0070] S220. Encode the current pose information.

[0071] In this embodiment, the current object information may include the current pose information and the current velocity information. The current pose information may refer to the pose information of the target object in the current frame, such as body skeleton parameters, etc. The current velocity information may refer to the velocity information of the target object in the current frame, such as velocity parameters, etc. The historical state information may include the previous state information of the target element in the previous frame.

[0072] After obtaining the above information, the current pose information can be encoded into feature parameter form to obtain the encoded current pose information. For example, the current pose information can be input into the encoding module to output the encoded current pose information.

[0073] S230. Determine the current state information of the target element based on the encoded current pose information, the current velocity information, and the previous state information, wherein the current state information is the state information of the target element in the current frame.

[0074] The current state information can be the state information of the target element in the current frame.

[0075] Specifically, this step can determine the current state information of the target element based on the encoded current pose information, current velocity information, and previous state information. For example, the current state information can be determined by inputting it into the timing module, or the current state information of the target element can be obtained by calculating the encoded current pose information, current velocity information, and previous state information.

[0076] S240. Decode the current state information to obtain the current pose information of the target element, wherein the current pose information is the pose information of the target element in the current frame.

[0077] After obtaining the current state information, the current pose information of the target element can be obtained by decoding the current state information. The specific process of decoding is not limited. For example, the state information of all nodes in the target object can be directly decoded and used as the current pose information of the target element.

[0078] In some embodiments, decoding the current state information to obtain the current pose information of the target element includes:

[0079] The current state information is decoded using a chain-based decoding method to obtain the current pose information corresponding to the target element.

[0080] In some implementations, a chain-based decoding method can be used to decode the current state information to obtain the current pose information corresponding to the target element. For example, the chain-based decoding method can be used to determine the state information of the element nodes contained in the target object in turn to obtain the current pose information of the target element. This embodiment will not elaborate further on this, as long as the current pose information of the target element can be obtained.

[0081] This disclosure provides a pose determination method that acquires current object information of a target object and historical state information of a target element. The current object information includes current pose information and current velocity information; and / or, the historical state information includes the previous state information of the target element in the previous frame, wherein the target element is associated with the target object. The current pose information is encoded; the current state information of the target element is determined based on the encoded current pose information, the current velocity information, and the previous state information, wherein the current state information is the state information of the target element in the current frame; and the current state information is decoded to obtain the current pose information of the target element, wherein the current pose information is the pose information of the target element in the current frame. Using this method, by determining the current state information of the target element based on the encoded current pose information, current velocity information, and previous state information, and by decoding the obtained current state information, the current pose information of the target element can be obtained quickly, further improving the efficiency of element pose determination.

[0082] In some embodiments, the decoding process of the current state information using a chain-based decoding method includes:

[0083] Based on the positional relationship of the element nodes in the target element, each element node in the target element is sequentially taken as the current element node;

[0084] Obtain the preset feature vector and parent node information of the current element node, wherein the parent node information is the node state information of the parent node, and the parent node information of the first element node in the target element is the current state information;

[0085] The node state information of the current element node is determined based on the preset feature vector and the parent node information.

[0086] An element node can be understood as multiple nodes that segment the target element, such as skeletal nodes. Preset feature vectors are used to represent the feature information of each element node; for example, the preset feature vectors for each element node can be configured in advance. Parent node information refers to the node state information of the parent node, such as the node state information of the previous element segment of the current element node. The parent node information of the first element node in the target element can be its current state information; the first element node can be, for example, the first element segment in the target element. The current element node refers to the element node whose node state information needs to be determined.

[0087] Specifically, each element node in the target element can be taken as the current element node according to its positional relationship within the target element. For example, the first element node in the target element can be taken as the current element node. At this time, the preset feature vector of the current element node can be obtained, and the determined current state information can be obtained as the parent node state information of the first element node. Then, the node state information of the first element node can be determined according to the preset feature vector of the first element node and the parent node state information. Next, the next element node can be determined as the current element node. The node state information of the next element node can be determined by obtaining the preset feature vector of the next element node and the node state information of the first element node. And so on. Following the above method, the node state information of all element nodes can be obtained and used as the current pose information of the target element.

[0088] For example, the decoding module in this embodiment can be further modified to improve inference accuracy at the expense of some inference performance. For instance, the decoder can be equipped with a gated recurrent unit nn.Gru of a neural network, which can then generate the features of each bone step by step according to the parent-child node relationship, and then decode them into the corresponding bone parameters (i.e., node state information).

[0089] In some embodiments, the current pose information is a preset rotation parameter of the target object, and the preset rotation parameter includes Euler angles, quaternions, 6D rotation parameters, or rotation matrix.

[0090] In some implementations, the preset rotation parameters may include Euler angles, quaternions, 6D rotation parameters, or rotation matrices. Optionally, the current pose information in this embodiment may be the 6D rotation parameters of the target object. That is, the current pose information may be determined in the form of rot6d during specific operations to facilitate subsequent calculations and improve the determination effect of the current pose information.

[0091] Figure 3 A flowchart illustrating another pose determination method provided in this disclosure embodiment is shown below. Figure 3 As shown, taking the target elements including clothes and hair as an example, since the result of each frame of dynamic physics simulation depends on the state of the previous K frames (such as velocity, acceleration, etc.), and considering factors such as inference speed, the embodiments of this disclosure can be based on a temporal neural network (such as a preset pose determination model) for network design, that is, storing historical information in a unified state vector for predicting the dynamic effect of the current frame.

[0092] The input to the temporal neural network can include body skeleton parameters, velocity parameters, and the hidden state of the previous frame (i.e., obtaining the current object information and the historical state information of the target element; the current object information includes the current pose information and the current velocity information; and / or, the historical state information includes the previous state information of the target element in the previous frame). The data form of the body skeleton parameters can be, for example, batchsize(1)*bone_num(N1)*bone_dim(6), where 1 represents 1 character, N1 is the number of bones in the character's body skeleton, and 6 can refer to a 6-dimensional rotation matrix; the data form of the velocity parameters can be, for example, batchsize(1)*speed_dim(3); the data form of the hidden state of the previous frame can be, for example, batchsize(1)*hidden_state_dim(256). The output of the temporal neural network can include the skeleton parameters of hair and clothing, and the data form can be, for example, batchsize(1)*bone_num(N2+N3)*dim(6), where N2 and N3 are the number of bones in the clothing and hair skeletons, respectively.

[0093] Specifically, the body skeleton parameters of the current frame can be encoded into feature parameters by an encoder (i.e., encoding module), and then combined with the current frame velocity parameters and the hidden state of the previous frame and input into the temporal module of the temporal neural network to obtain the hidden state of the current frame. The hidden state of the current frame can then be input into different decoders (i.e. decoding modules) to generate skeleton parameters for different parts.

[0094] The encoder and decoder can use the same MLP-based structure. In addition, nn.LayerNorm and nn.GELU layers can be added after each linear layer to improve network accuracy. The temporal module can use nn.GRUcell to process temporal information. This module can balance performance and computational efficiency.

[0095] Compared to existing simulation plugins, the embodiments disclosed herein can replace traditional simulation plugins to simulate target elements, thereby achieving acceleration.

[0096] Furthermore, this embodiment is based on a temporal neural network design, which solves the problem that Machine Learning Deformer (MLD) technology cannot support dynamic physical simulation. Specifically, MLD aims to solve problems such as muscle simulation and cloth wrinkle simulation (static simulation). The input is the current frame skeleton parameters, and the output is the cloth vertex parameters. The model is mainly a multi-layer MLP. In contrast, this embodiment aims to solve the problem of dynamic element simulation. The input parameters are the current frame skeleton parameters and historical state parameters. The output is the element skeleton parameters and current state parameters. The model is MLP (+layernorm&gelu)+GRU, where the encoder and decoder act as MLPs, and the GRU is used to process historical state variables between the two MLPs.

[0097] Therefore, when dealing with games with a large number of users, especially user-generated content (UGC) games, the solution provided by the embodiments of this disclosure can effectively improve the smoothness of such games while ensuring the simulation effect of elements.

[0098] Figure 4 This is a schematic diagram of a pose determination device provided in an embodiment of the present disclosure. The device is applicable to situations where pose determination is required. The device can be implemented by software and / or hardware and is generally integrated into an electronic device.

[0099] like Figure 4 As shown, the device includes:

[0100] The acquisition module 310 is used to acquire the current object information of the target object and the historical state information of the target element. The current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in the historical frames. The target element is associated with the target object.

[0101] The determining module 320 is used to determine the current pose information of the target element based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame.

[0102] This disclosure provides a pose determination device that acquires current object information of a target object and historical state information of a target element through an acquisition module. The current object information refers to the object information of the target object in the current frame, and the historical state information refers to the state information of the target element in historical frames. The target element is associated with the target object. A determination module determines the current pose information of the target element based on the current object information and the historical state information. The current pose information is the pose information of the target element in the current frame. Using this device, the current pose information of the target element is determined based on the acquired current object information and historical state information, effectively improving the efficiency of element pose information determination and solving the problem of dynamic element simulation.

[0103] Optionally, the current object information includes current pose information and current velocity information; and / or, the historical state information includes the previous state information of the target element in the previous frame.

[0104] Optionally, the determining module includes:

[0105] An encoding processing unit is used to encode the current pose information;

[0106] The determining unit is used to determine the current state information of the target element based on the encoded current pose information, the current velocity information and the previous state information, wherein the current state information is the state information of the target element in the current frame.

[0107] The decoding processing unit is used to decode the current state information to obtain the current pose information of the target element.

[0108] Optionally, the decoding processing unit includes:

[0109] The decoding sub-processing unit is used to decode the current state information using a chain-style decoding method to obtain the current pose information corresponding to the target element.

[0110] Optionally, the decoding sub-processing unit is specifically used for:

[0111] Based on the positional relationship of the element nodes in the target element, each element node in the target element is sequentially taken as the current element node;

[0112] Obtain the preset feature vector and parent node information of the current element node, wherein the parent node information is the node state information of the parent node, and the parent node information of the first element node in the target element is the current state information;

[0113] The node state information of the current element node is determined based on the preset feature vector and the parent node information.

[0114] Optionally, the current pose information is a preset rotation parameter of the target object, which includes Euler angles, quaternions, 6D rotation parameters, or rotation matrices.

[0115] Optionally, the pose determination device provided in this embodiment of the present disclosure further includes:

[0116] The generation module is used to generate the current frame based on the current object information and the current pose information after determining the current pose information of the target element based on the current object information and the historical state information. The current frame presents the object image of the target object and / or the element image of the target element.

[0117] Optionally, the determining module is specifically used for:

[0118] The current object information and the historical state information are input into the preset pose determination model, and the pose information output by the preset pose determination model is obtained as the current pose information of the target element.

[0119] Optionally, the preset pose determination model includes an encoding module, a timing module, and at least one decoding module. The encoding module is used to encode the current pose information in the current object information. The timing module is used to determine the current state information of the target element. The decoding module is used to decode the current state information.

[0120] Optionally, different decoding modules correspond to different target elements and are used to decode the current pose information of the corresponding target element.

[0121] Optionally, the encoding module and the decoding module are multilayer perceptron structures, which include multiple linear layers, and at least some of the linear layers have a normalization layer and / or a Gaussian error linear unit on their output side.

[0122] Optionally, the loss function of the preset pose determination model includes a forward dynamics loss function, which is based on wavelet transform for frequency decomposition.

[0123] The above-described pose determination device can execute the pose determination method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.

[0124] The following is for reference. Figure 5This diagram illustrates a structural schematic of an electronic device 400 suitable for implementing embodiments of the present disclosure. The terminal devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0125] like Figure 5 As shown, electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 401, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 402 or a program loaded from storage device 408 into random access memory (RAM) 403. RAM 403 also stores various programs and data required for the operation of electronic device 400. Processing device 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.

[0126] Typically, the following devices can be connected to I / O interface 405: input devices 406 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 408 including, for example, magnetic tapes, hard disks, etc.; and communication devices 409. Communication device 409 allows electronic device 400 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 400 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0127] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 409, or installed from storage device 408, or installed from ROM 402. When the computer program is executed by processing device 401, it performs the functions defined in the methods of embodiments of this disclosure.

[0128] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0129] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0130] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0131] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire current object information of a target object and historical state information of a target element, wherein the current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in historical frames, and the target element is associated with the target object; and determine the current pose information of the target element based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame.

[0132] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0133] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0134] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of modules do not necessarily limit the specific unit itself.

[0135] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0136] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0137] According to one or more embodiments of this disclosure, Example 1 provides a pose determination method, including:

[0138] Obtain the current object information of the target object and the historical state information of the target element. The current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in the historical frames. The target element is associated with the target object.

[0139] The current pose information of the target element is determined based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame.

[0140] According to one or more embodiments of this disclosure, Example 2 describes the method described in Example 1, wherein the current object information includes current pose information and current velocity information; and / or, the historical state information includes the previous state information of the target element in the previous frame.

[0141] According to one or more embodiments of this disclosure, Example 3 describes the method described in Example 2, wherein determining the current pose information of the target element based on the current object information and the historical state information includes:

[0142] The current pose information is encoded.

[0143] The current state information of the target element is determined based on the encoded current pose information, the current velocity information, and the previous state information. The current state information is the state information of the target element in the current frame.

[0144] The current state information is decoded to obtain the current pose information of the target element.

[0145] According to one or more embodiments of this disclosure, Example 4 describes the method described in Example 3, wherein decoding the current state information to obtain the current pose information of the target element includes:

[0146] The current state information is decoded using a chain-based decoding method to obtain the current pose information corresponding to the target element.

[0147] According to one or more embodiments of this disclosure, Example 5 describes the method described in Example 4, wherein the decoding of the current state information using a chain-based decoding method includes:

[0148] Based on the positional relationship of the element nodes in the target element, each element node in the target element is sequentially taken as the current element node;

[0149] Obtain the preset feature vector and parent node information of the current element node, wherein the parent node information is the node state information of the parent node, and the parent node information of the first element node in the target element is the current state information;

[0150] The node state information of the current element node is determined based on the preset feature vector and the parent node information.

[0151] According to one or more embodiments of this disclosure, Example 6 describes the method according to Example 2, wherein the current pose information is a preset rotation parameter of the target object, and the preset rotation parameter includes Euler angles, quaternions, 6D rotation parameters, or a rotation matrix.

[0152] According to one or more embodiments of this disclosure, Example 7, based on the method of Example 1, further includes, after determining the current pose information of the target element based on the current object information and the historical state information:

[0153] The current frame is generated based on the current object information and the current pose information. The current frame displays the object image of the target object and / or the element image of the target element.

[0154] According to one or more embodiments of this disclosure, Example 8 describes the method according to any one of Examples 1-7, wherein determining the current pose information of the target element based on the current object information and the historical state information includes:

[0155] The current object information and the historical state information are input into the preset pose determination model, and the pose information output by the preset pose determination model is obtained as the current pose information of the target element.

[0156] According to one or more embodiments of this disclosure, Example 9 describes the method described in Example 8, wherein the preset pose determination model includes an encoding module, a timing module, and at least one decoding module. The encoding module is used to encode the current pose information in the current object information, the timing module is used to determine the current state information of the target element, and the decoding module is used to decode the current state information.

[0157] According to one or more embodiments of this disclosure, Example 10 describes the method described in Example 9, in which different decoding modules correspond to different target elements and are used to decode to obtain the current pose information of the corresponding target element.

[0158] According to one or more embodiments of this disclosure, Example 11 describes the method according to Example 9, wherein the encoding module and the decoding module are multilayer perceptron structures, the multilayer perceptron structure including multiple linear layers, and at least some of the linear layers have a normalization layer and / or a Gaussian error linear unit disposed on the output side.

[0159] According to one or more embodiments of this disclosure, Example 12 describes the method according to Example 9, wherein the loss function of the preset pose determination model includes a forward dynamics loss function, the forward dynamics loss function being frequency decomposition based on wavelet transform.

[0160] According to one or more embodiments of this disclosure, Example 13 provides a pose determination apparatus, including:

[0161] The acquisition module is used to acquire the current object information of the target object and the historical state information of the target element. The current object information is the object information of the target object in the current frame, and the historical state information is the state information of the target element in the historical frames. The target element is associated with the target object.

[0162] The determination module is used to determine the current pose information of the target element based on the current object information and the historical state information, wherein the current pose information is the pose information of the target element in the current frame.

[0163] According to one or more embodiments of this disclosure, Example 14 provides an electronic device, including:

[0164] One or more processors;

[0165] Memory, used to store one or more programs.

[0166] When the one or more programs are executed by the one or more processors, the one or more processors implement the pose determination method as described in any of Examples 1-12.

[0167] According to one or more embodiments of the present disclosure, Example 15 provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the pose determination method as described in any of Examples 1-12.

[0168] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0169] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0170] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A pose determination method, characterized in that, include: Obtain the current object information of the target object and the historical state information of the target element. The current object information includes the current pose information and the current velocity information. The historical state information includes the previous state information of the target element in the previous frame. The target element is associated with the target object. The current pose information is encoded, and the current state information of the target element is determined based on the encoded current pose information, the current velocity information, and the previous state information. According to the positional relationship of the element nodes in the target element, the preset feature vector and parent node information of the element nodes are obtained sequentially. The parent node information is the node state information of the parent node, and the parent node information of the first element node in the target element is the current state information. The node state information of the element node is determined based on the preset feature vector and the parent node information, and is used as the current pose information of the target element.

2. The method according to claim 1, characterized in that, The current state information refers to the state information of the target element in the current frame.

3. The method according to claim 1, characterized in that, The current pose information is the preset rotation parameters of the target object, which include Euler angles, quaternions, 6D rotation parameters, or rotation matrices.

4. The method according to claim 1, characterized in that, After determining the current pose information of the target element, the method further includes: A current frame is generated based on the current object information and the current pose information. The current frame displays the object image of the target object and / or the element image of the target element.

5. The method according to any one of claims 1-4, characterized in that, Determining the current pose information of the target element includes: The current object information and the historical state information are input into the preset pose determination model, and the pose information output by the preset pose determination model is obtained as the current pose information of the target element.

6. The method according to claim 5, characterized in that, The preset pose determination model includes an encoding module, a timing module, and at least one decoding module. The encoding module is used to encode the current pose information in the current object information. The timing module is used to determine the current state information of the target element. The decoding module is used to decode the current state information.

7. The method according to claim 6, characterized in that, Different decoding modules correspond to different target elements and are used to decode the current pose information of the corresponding target element.

8. The method according to claim 6, characterized in that, The encoding module and the decoding module are multilayer perceptron structures, which include multiple linear layers, and at least some of the linear layers have a normalization layer and / or a Gaussian error linear unit on their output side.

9. The method according to claim 6, characterized in that, The loss function of the preset pose determination model includes a forward dynamics loss function, which is based on wavelet transform for frequency decomposition.

10. A pose determination device, characterized in that, include: The acquisition module is used to acquire the current object information of the target object and the historical state information of the target element. The current object information includes the current pose information and the current velocity information. The historical state information includes the previous state information of the target element in the previous frame. The target element is associated with the target object. The determination module is used to encode the current pose information and determine the current state information of the target element based on the encoded current pose information, the current velocity information and the previous state information. According to the positional relationship of the element nodes in the target element, the preset feature vector and parent node information of the element node are obtained sequentially. The parent node information is the node state information of the parent node, and the parent node information of the first element node in the target element is the current state information. The node state information of the element node is determined according to the preset feature vector and parent node information, and is used as the current pose information of the target element.

11. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the pose determination method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the pose determination method according to any one of claims 1-9.

Citation Information

Patent Citations

  • 3D human motion prediction method based on depth state space model

    CN112581499A