Voice-driven whole body action generation method

By using hybrid point representation and contrastive motion learning methods in voice-driven whole-body action generation technology, combined with SMPL-X representation, the problems of continuity, authenticity and diversity of action generation in the existing technology are solved, and a more natural and diverse human motion generation.

CN118570344APending Publication Date: 2024-08-30TIANJIN UNIV
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410677435.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing voice-driven full-body action generation technology lacks continuity, authenticity and diversity, especially when generating coordinated and unified actions for the face, upper body and lower body. Moreover, the existing representation cannot effectively limit the global shape, resulting in virtual character network The grid fitting results are stiff and lack realism.

Method used

A hybrid point representation is used as the representation of motion sequences, defined in Euclidean space, combining the global constraints of surface points and the local details of joint points, and introducing a contrastive motion learning method to increase the diversity of generated results while constructing The motion representation conversion network converts the hybrid point representation into a universal SMPL-X-axis angle representation.

Benefits of technology

It achieves more realistic, continuous and diverse motion sequence generation, improves the accuracy and diversity of motion reconstruction, provides efficient universal output representation, and improves the overall performance of voice-driven whole-body motion generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570344A
    Figure CN118570344A
Patent Text Reader

Abstract

The invention discloses a voice-driven whole body action generation method, and relates to the technical field of three-dimensional human body action generation. In view of close correlation between face actions and audio and relatively small correlation between body postures and the audio, the face actions and the body actions are respectively generated, in the aspect of face action generation, an end-to-end network based on a coder-decoder is designed, and in the aspect of body action generation, the end-to-end network based on the coder-decoder is designed. A two-stage network based on a vector quantization variational automatic encoder (VQ-VAE) and a reservation network (RetNet) is designed, independent motion generation networks are designed for different parts of the whole body, and the requirement for overall motion generation is met to the maximum extent; in order to solve the problem that body actions generated by an existing method are discontinuous and unreal, a mixed point representation method combining SMPL-X human body grid surface curved surface points and internal articulation points is provided, global constraints and local details are fused, and a generated result is more reasonable; a motion representation conversion network is designed, and mixed point representation can be converted into SMPL-X axis angle representation so as to provide more universal motion representation; in order to improve diversity of generated results, a comparative motion learning method is introduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of three-dimensional human body motion generation, and in particular relates to a voice-driven whole-body motion generation method. Background Art

[0002] At present, with the rapid development of the metaverse industry, its technical system has gradually matured and its application scenarios have become increasingly rich. Among them, applications centered on digital humans are particularly popular and are widely used in the fields of elderly assistants, video teaching, children's emotional regulation, e-commerce, robots, and virtual therapy. In the metaverse, the way users interact with the Internet has evolved from a simple two-dimensional interface to a more immersive three-dimensional experience, and immersive communication has become its important feature. However, voice-driven full-body motion generation technology, which is one of the ways to achieve immersive communication, still faces challenges and limitations.

[0003] First, current research mainly focuses on partial movements of the whole body in speech generation, rather than covering the overall movement of the face, upper body, and lower body together. Fan et al. (Fan Y, Lin Z, Saito J, et al. Faceformer: Speech-driven 3d facial animation with transformers [C]. Proceedings of the IEEE / CVFConference on Computer Vision and Pattern Recognition (CVPR), 2022) used a four-dimensional face scanning dataset to train an improved Transformer structure to output the facial vertex position information corresponding to each frame, thereby realizing the generation of facial movements corresponding to speech. Habibie et al. (Habibie I, Elgharib M, Sarkar K, et al. Amotion matching-based framework for controllable gesture synthesis from speech [C]. ACM SIGGRAPH 2022 Conference Proceedings (SIGGRAPH), 2022) considered the similarity between audio and gestures, and based on the audio input, used the k-nearest neighbor algorithm to search the most credible upper body motion sequence from the database. Li et al. (Li J, Kang D, Pei W, et al. Audio2gestures: Generating diverse gestures from s peech audio with conditional variational autoencoders [C]. Proceedings of the IEEE / CVF International Conference on Computer Vision (ICCV), 2021) decomposed the motion representation into audio motion shared and motion-specific features to reflect the mapping relationship between audio and body motion, thereby better regressing the training data and generating different body movements. However, in daily conversations, people will have various facial expressions and hand movements, and even when they are emotional, they may have large body movements, such as pacing, bending or squatting. Therefore, speech-driven action generation needs to comprehensively consider the coordination and unity of the face, upper body and lower body.

[0004] Second, in most speech-driven action generation methods, the representation of actions can generally be divided into two categories: key point-based and rotation-based. Chen et al. (Chen J, Liu Y, Wang J, et al. Diffsheg: A diffusion-based approach for real-time s speech-driven holistic 3D expression and gesture generation [C]. Proce edings of the IEEE / CVF Conference on Computer Vision and Patter n Recognition (CVPR), 2024) use the three-dimensional coordinate positions of skeleton joints in the world coordinate system as the representation of motion sequences. Although this representation can provide local details, it cannot restrict the global shape, which may cause the fitting results of the skeleton and the virtual character mesh to be too rigid and lack of realism during later visualization. Liu et al. (Liu H, Zhu Z, Becher ini G, et al. EMAGE: Towards Unified Holistic Co-Speech Gesture Generation via Masked Audio Gesture Modeling [C]. Proceedings of the IEEE / CVFConference on Computer Vision and Pattern Recogni tion (CVPR), 2024) used a 6D representation during training. This representation defines parameters in the axis-angle space. However, the introduction of a kinematic tree may increase complexity and lead to slippage and discontinuity.

[0005] Third, in early methods, deterministic models are often used. However, such models often lead to average results and lack of diversity, that is, a piece of audio can only generate a fixed sequence of body movements, which is inconsistent with traditional cognition. In order to solve the one-to-many relationship between audio and action, Yi et al. (Yi H, Liang H, Liu Y, et al. Generating holistic 3d human motion from speech [C]. Proceedings of the IEEE / CVF Confer ence on Computer Vision and Pattern Recognition (CVPR), 2023) proposed the use of two combined vector quantized variational autoencoders (VQ-VAE) and cross-conditional autoregressive models to increase the diversity of generated results. Alexanderson et al. (Alexanderson S, Henter GE, Kucherenko T, et al. Style-controllable speech-driven gesture synthesis using normalising flows [C]. Computer Graphics Forum (CGF), 2020) proposed a method based on autoregressive normalizing flows. Given a piece of speech, the model can repeatedly sample from the probability distribution to generate different actions. But their diversity is still limited.

[0006] In order to solve the above problems, the present invention proposes a voice-driven whole-body motion generation method.

[0007] In view of the above problems, the present invention proposes a model for generating three-dimensional human body movements under the condition of voice input. In order to produce more realistic and continuous results, a new hybrid point representation is designed as the representation of motion sequences. The representation is defined in Euclidean space, which is easy for network learning and contains both global constraints of surface points and local details of joint points. In order to increase the diversity of generated results, a new contrastive motion learning method is introduced. In order to efficiently provide a general SMPL-X axis-angle representation, a motion representation conversion network is constructed. Summary of the invention

[0008] (I) Technical problems to be solved by the present invention:

[0009] The purpose of the present invention is to propose a speech-driven whole-body motion generation method to solve the problem that the existing methods lack continuity, authenticity and diversity when generating motions; in terms of generating facial motions, the method is based on an encoder-decoder, and integrates the WavLM features of the audio and the unique hot coding features of the speaker, so as to achieve natural facial sequence generation; in terms of generating body motions, a two-stage architecture based on a vector quantized variational autoencoder (VQ-VAE) and a retention network (RetNet) is adopted. In the first stage, a hybrid point representation method is introduced to combine surface points containing global constraint information with joint points containing local details, which greatly improves the accuracy of motion reconstruction; in the second stage, a contrastive motion learning method is adopted, and the quantized features of the motion sequences generated by other audio corresponding to the early stage are used as negative samples, and the quantized features of the training motion true value are used as positive samples for contrast training, thereby increasing the diversity of motion generation; in order to efficiently provide a universal output representation, a motion representation conversion network is provided, which can convert the hybrid point representation into the corresponding SMPL-X axis angle representation. In each method of speech-driven whole-body motion generation, the various indicators of the present invention are improved over the best existing methods.

[0010] (II) In order to achieve the above-mentioned purpose, the present invention adopts the following technical solutions:

[0011] A voice-driven whole-body motion generation method comprises the following steps:

[0012] S1. Preprocess the public data set, use the SMPL-X model to model the action sequence, extract the corresponding joint points and the three-dimensional positions of the downsampled surface points; extract features from the original audio, including low-level features (MFCC features) and high-level features (WavLM features); store the speech features and the corresponding motion sequence representation in pairs;

[0013] S2. For the speech-driven facial action generation task, an encoder-decoder architecture is used to fuse the WavLM features of the audio and the one-hot encoding information of the speaker as input. The encoder encodes the fused features into a latent space representation, and then the decoder decodes the representation into the corresponding facial movement sequence, thereby ensuring that the generated facial actions are consistent with the speech content and speaker characteristics, making the generated facial actions more natural and credible;

[0014] S3. For the task of speech-driven body motion generation, the downsampled surface points representing the global constraints of the body's degrees of freedom and the joint points representing the fine-grained details of the body are combined as the representation of the motion sequence; the vector quantized variational autoencoder is used to realize the reconstruction of the motion sequence. First, the motion sequence represented by the mixed points is mapped to a discrete low-dimensional latent space through the encoder to realize the encoding of the motion sequence; then the quantizer is used to map the encoded latent features to the nearest codebook vector; finally, the quantized features are decoded back to the original motion sequence through the decoder; in order to achieve more accurate motion reconstruction, three vector quantized variational autoencoders are used here to reconstruct the whole body, left hand and right hand respectively;

[0015] S4, after randomly masking the codebook index of the low-dimensional space encoding of the original motion sequence in S3, it is fused with the MFCC features of the audio and the identification coding information of the speaker, and input into the retention network to autoregressively generate the index of the motion sequence; the index is then input into the quantizer in S3 to obtain the quantized features, which are decoded by the decoder to obtain the motion sequence represented by the mixed point; at the same time, based on the quantized features corresponding to the index, the contrastive motion learning method is introduced to improve the diversity of the generated results;

[0016] S5. In order to efficiently provide a universal output representation, a motion representation conversion network is designed, which inputs the mixed point representation of the motion sequence and outputs the corresponding SMPL-X axis angle representation.

[0017] Preferably, the data set preprocessing described in S1 mainly includes the following steps:

[0018] S101. According to the built-in function of SMPLX, the three-dimensional positions of the first 55 joint points inside the human body mesh and 10,475 points on the surface under the corresponding posture are calculated; the surface points are downsampled to retain important features and reduce redundant points, reducing their number to 431;

[0019] S102. Use the torchaudio library of PyTorch to extract the MFCC features of the audio, including pitch, sound intensity, and spectral features, as low-level features; use the speech pre-training model WavLM to extract the linguistic features of the audio, including speech content and prosodic features, as high-level features.

[0020] Preferably, the voice-driven facial action generation described in S2 mainly includes the following steps:

[0021] S201, convolutionally fuse the WavLM features of the audio with the speaker's one-hot encoded feature information, and then refine and adaptively aggregate the features through an encoder consisting of three residual blocks and one self-attention block. The addition of the self-attention mechanism enables the encoder to more flexibly select and adjust important information during the feature aggregation process, thereby improving the adaptability and effectiveness of feature representation;

[0022] S202. The intermediate representation extracted by the encoder is used as input and decoded by a decoder with the same architecture as the encoder to generate a corresponding face motion sequence. During the training process, the reconstruction loss of the L1 distance is used to measure the difference between the sequence generated by the encoder-decoder and the real sequence.

[0023] Preferably, the quantized motion reconstruction task described in S3 mainly includes the following steps:

[0024] S301, given a set of mixed points that dynamically change over time to represent a motion sequence Using vector quantized variational autoencoders to learn low-dimensional latent motion space, we first use the encoder to obtain motion features from the input motion sequence. The number of channels of the quantized features is n z , the time window size is w m ,The encoder consists of multiple layers, and residual blocks and attention mechanisms are used in each layer, which can effectively extract features in action sequences. At the same time, the resolution of action data is gradually reduced through downsampling operations, which improves the ability to abstract data;

[0025] S302, the learned motion codebook is expressed as Where N is the length of the codebook; for each feature z t ∈Z, the quantizer calculates the distance between it and each vector in the codebook, and selects the codebook vector with the closest distance as the quantized feature representation:

[0026] c t =argmin||z t -c i || 2

[0027] The quantitative features are expressed as This hard-coding method has the advantages of saving storage space, fast calculation speed and high stability;

[0028] S303: The decoder receives the quantized feature representation and gradually expands the low-dimensional feature representation to a dimension matching the original motion sequence through a series of intermediate layers and upsampling operations to generate a reconstructed motion sequence.

[0029] During training, the reconstruction loss and vector quantization loss are used to optimize the vector quantization variational autoencoder; the reconstruction loss is used to accurately restore the position, velocity, and acceleration of the motion sequence:

[0030]

[0031] Among them, V' and V" are the first-order and second-order partial derivatives of the motion sequence V, respectively, α 1 and α 2 are the weights of the corresponding items respectively.

[0032] The vector quantization loss is used to align the vector space of the codebook and the output of the encoder, which includes two parts: the codebook loss and the commitment loss. The codebook loss aims to make the quantization characteristics of the codebook close to the output of the encoder, while the commitment loss aims to make the output of the encoder close to the vector in the codebook:

[0033] L vq =||sg[Z]-Z q || 2 +β||Z-sg[Z q ]|| 2

[0034] where sg[·] is the stopping gradient function, the first term is the codebook loss, and the second term is the commitment loss with weight β.

[0035] Preferably, the specific implementation process of the voice-driven body movement generation described in S4 is as follows:

[0036] S401, in order to improve the performance and generalization ability of the model, the codebook index in S302 corresponding to the original motion sequence is first randomly masked, and then the codebook index is fused with the MFCC features of the audio and the encoded speaker information through a stacked MLP network, and the fused features are input into the retention network, which uses a multi-scale retention (MSR) module and a feed-forward network (FFN) module to capture the long-distance dependencies in the sequence, and finally generates the codebook index of the action in an autoregressive manner; during the training process, the cross entropy loss is used to measure the difference between the model output and the true index;

[0037] S402, using the codebook index to search for corresponding quantized features in the codebook of S302, and then inputting these quantized features into the decoder of S303, and finally obtaining a motion sequence represented by the mixed point;

[0038] S403, introduce contrastive motion learning method, represent the quantized features of the motion sequence generated by the audio in the current training round in S402 as p, and use the quantized features of the motion sequences generated by L other early audios as negative samples The quantized features of the true value of the training action are taken as positive samples p+, and the contrast loss can be expressed as:

[0039]

[0040] The diversity of action generation is enhanced by making the generated features as distinguishable as possible from negative samples while being similar to positive samples.

[0041] Preferably, the motion representation conversion network implementation process described in S5 comprises the following steps:

[0042] The structure of the motion representation conversion network is similar to that of the decoder in S202. The mixed point representation of the motion sequence obtained in S402 is input into the motion representation conversion network to generate the corresponding 3D axis-angle representation parameters of the SMPL-X model. This conversion provides a more general representation form for subsequent applications. During the training process, the reconstruction loss of the L1 distance is used to measure the difference between the sequence generated by the motion representation conversion network and the real sequence.

[0043] (III) The beneficial effects of the present invention include the following:

[0044] (1) The present invention proposes a voice-driven whole-body motion generation method. By inputting a voice, the above method can generate more realistic, continuous and diverse motion sequences. The present invention proposes a face generation framework based on an encoder-decoder architecture and a two-stage body motion generation framework based on a vector quantized variational autoencoder (VQ-VAE) and a retention network (RetNet). The present invention proposes a hybrid point representation method that combines surface points containing global constraint information and joint points containing local details. The present invention introduces a contrastive motion learning method to improve the diversity of motion generation. The present invention proposes a motion representation conversion network that can efficiently provide a general SMPL-X representation.

[0045] (2) The present invention proposes a voice-driven whole-body motion generation method, which solves the problem in the prior art that the generated motion sequences are unrealistic, discontinuous, lack diversity and have weak generalization ability.

[0046] (3) The present invention proposes a hybrid point representation method to solve the problem of unreasonable and discontinuous motion generation in existing methods. The downsampled surface points representing the global constraints of the body's degrees of freedom are combined with the joint points representing the fine-grained details of the body as motion representation, thereby improving the accuracy of the vector quantized variational autoencoder in the motion reconstruction stage; at the same time, a motion representation conversion network is provided, which can convert the hybrid point representation into the corresponding SMPL-X axis angle representation for subsequent applications.

[0047] (4) The present invention introduces a new contrastive motion learning method, which uses the quantitative features of the motion sequences generated by other early audio correspondences as negative samples and the quantitative features of the true motion sequences as positive samples for contrast training, thereby increasing the diversity of motion generation.

[0048] (5) A voice-driven full-body motion generation method proposed in this invention achieved the best results on the public dataset BEAT2. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 This is a network overall framework diagram in a voice-driven whole-body motion generation method proposed by the present invention;

[0050] Figure 2 A schematic diagram of a mixed point representation in a voice-driven whole-body motion generation method proposed by the present invention;

[0051] Figure 3 A schematic diagram of a contrastive motor learning method in a voice-driven whole-body motion generation method proposed by the present invention;

[0052] Figure 4 A comparison diagram of qualitative results of the first-stage motion reconstruction using mixed point representation and motion reconstruction using other motion representation forms in a voice-driven full-body motion generation method proposed in the present invention;

[0053] Figure 5 The full-body motion generation results on the BEAT2 dataset in a voice-driven full-body motion generation method proposed in the present invention, as well as the generation results generalized to other languages ​​and music.

[0054] Figure 6 This is a comparison chart of the qualitative results of a speech-driven whole-body motion generation method proposed in the present invention and a mainstream whole-body motion generation method in the prior art on a generation task. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] The present invention proposes a voice-driven whole-body motion generation method and designs a model for generating three-dimensional human whole-body motion under voice input conditions. In order to produce more realistic and continuous results, a new hybrid point representation is designed as the representation of motion sequences. The representation is defined in Euclidean space and is easy for network learning. It contains global constraints of surface points and retains local details of joint points. In order to increase the diversity of generated results, a new contrastive motion learning method is introduced. At the same time, a motion representation conversion network is constructed to efficiently provide a general SMPL-X representation. Specifically, in terms of generating facial movements, the method proposed in the present invention integrates the WavLM features of audio and the one-hot encoding features of the speaker based on an improved encoder-decoder to achieve natural facial sequence generation; in terms of generating body movements, a two-stage architecture based on a vector quantized variational autoencoder (VQ-VAE) and a retention network (RetNet) is adopted. In the first stage, a hybrid point representation method is introduced to combine surface points containing global constraint information and joint points containing local details, which greatly improves the accuracy of movement reconstruction; in the second stage, a contrastive motion learning method is adopted, and the quantized features of the motion sequences generated by other audio corresponding to the early stage are used as negative samples, and the quantized features of the training action true value are used as positive samples for contrast training, which increases the diversity of action generation; at the same time, in order to efficiently provide a universal output representation, a motion representation conversion network is provided, which can convert the hybrid point representation into the corresponding SMPL-X axis angle representation. Among the various methods of speech-driven whole-body movement generation, the various indicators of the present invention are improved over the best existing methods.

[0057] The following is an explanation of a voice-driven whole-body motion generation method proposed in the present invention in conjunction with relevant drawings and specific examples. The specific contents are as follows.

[0058] Embodiment 1:

[0059] See also Figure 1 The present invention proposes a voice-driven whole-body motion generation method, comprising the following steps:

[0060] S1. Preprocess the public data set to extract the joint points corresponding to the motion sequence under the SMPL-X model and the three-dimensional positions of the downsampled surface points; extract features from the original audio, including low-level features (MFCC features) and high-level features (WavLM features); represent the speech features and the corresponding motion sequence in pairs to store the data;

[0061] The dataset preprocessing described in S1 mainly includes the following steps:

[0062] S101. According to the built-in function of SMPLX, the three-dimensional positions of 55 joint points inside the human body mesh and 10,475 points on the surface are calculated in the corresponding posture; the points on the mesh surface are downsampled to retain important features and reduce redundant points, reducing their number to 431;

[0063] S102. Use the torchaudio library of PyTorch to extract the MFCC features of the audio, including pitch, sound intensity, and spectral features, as low-level features; use the speech pre-training model WavLM to extract the linguistic features of the audio, including speech content and prosodic features, as high-level features.

[0064] S2. For the speech-driven facial action generation task, an encoder-decoder architecture is used to fuse the WavLM features of the audio and the one-hot encoding information of the speaker as input. The encoder encodes the fused features into a representation of the latent space, and then the decoder decodes the representation into the corresponding facial movement sequence to ensure that the generated facial actions are consistent with the speech content and speaker characteristics, making the generated facial actions more natural and credible;

[0065] The speech-driven facial action generation described in S2 mainly includes the following steps:

[0066] S201, convolutionally fuse the WavLM features of the audio with the speaker's one-hot encoded feature information, and then refine and adaptively aggregate the features through an encoder consisting of three residual blocks and one self-attention block. The introduction of the self-attention mechanism enables the encoder to more flexibly select and adjust important information during the feature aggregation process, thereby improving the adaptability and effectiveness of feature representation;

[0067] S202. The intermediate representation extracted by the encoder is used as input and decoded by a decoder with the same architecture as the encoder to generate a corresponding face motion sequence. During the training process, the reconstruction loss of the L1 distance is used to measure the difference between the sequence generated by the encoder-decoder and the real sequence.

[0068] S3. For the task of speech-driven body motion generation, the downsampled surface points representing the global constraints of the body's degrees of freedom and the joint points representing the fine-grained details of the body are combined as the representation of the motion sequence; the vector quantized variational autoencoder is used to realize the encoding and reconstruction of the motion sequence. First, the motion sequence represented by the mixed points is mapped to a discrete low-dimensional latent space through the encoder to realize the encoding of the motion sequence; then the quantizer is used to map the encoded latent features to the nearest codebook vector; finally, the quantized features are decoded back to the original motion sequence through the decoder; in order to achieve more accurate motion reconstruction, three vector quantized variational autoencoders are used here to reconstruct the whole body, left hand and right hand respectively;

[0069] The quantized motion reconstruction task described in S3 mainly includes the following steps:

[0070] S301, given a set of mixed points that dynamically change over time to represent a motion sequence Using vector quantized variational autoencoders to learn low-dimensional latent motion space, we first use the encoder to obtain motion features from the input motion sequence. The number of channels of the quantized features is n z , the time window size is w m ,The encoder consists of multiple layers, and residual blocks and attention mechanisms are used in each layer, which can effectively extract features in action sequences. At the same time, the resolution of action data is gradually reduced through downsampling operations, which improves the ability to abstract data;

[0071] S302, the learned motion codebook is expressed as Where N is the length of the codebook; for each feature z t ∈Z, the quantizer calculates the distance between it and each vector in the codebook, and selects the codebook vector with the closest distance as the quantized feature representation:

[0072] c t =argmin||z t -c i || 2

[0073] The quantitative features are expressed as This hard-coding method has the advantages of saving storage space, fast calculation speed and high stability;

[0074] S303: The decoder receives the quantized feature representation and gradually expands the low-dimensional feature representation to a dimension matching the original motion sequence through a series of intermediate layers and upsampling operations to generate a reconstructed motion sequence.

[0075] During training, the reconstruction loss and vector quantization loss are used to optimize the vector quantization variational autoencoder; the reconstruction loss is used to accurately restore the position, velocity, and acceleration of the motion sequence:

[0076]

[0077] Among them, V' and V" are the first-order and second-order partial derivatives of the motion sequence V, respectively, α 1 and α 2 are the weights of the corresponding items respectively.

[0078] The vector quantization loss is used to align the vector space of the codebook and the output of the encoder, which includes two parts: the codebook loss and the commitment loss. The codebook loss aims to make the quantization characteristics of the codebook close to the output of the encoder, while the commitment loss aims to make the output of the encoder close to the vector in the codebook:

[0079] L vq =||sg[Z]-Z q || 2 +β||Z-sg[Z q ]|| 2

[0080] where sg[·] is the stopping gradient function, the first term is the codebook loss, and the second term is the commitment loss with weight β.

[0081] S4, after randomly masking the codebook index of the low-dimensional space encoding of the original motion sequence in S3, it is fused with the low-level features of the audio and the identification encoding information of the speaker, and input into the retention network to autoregressively generate the index of the motion sequence; the index is then input into the quantizer in S3 to obtain the quantized feature, which is decoded by the decoder to obtain the motion sequence represented by the mixed point; at the same time, based on the quantized feature corresponding to the index, the contrastive motion learning method is introduced to improve the diversity of the generated results;

[0082] The specific implementation process of voice-driven body movement generation described in S4 is as follows:

[0083] S401, in order to improve the performance and generalization ability of the model, the codebook index of the low-dimensional space encoding in S302 corresponding to the original motion sequence is first randomly masked, and then the codebook index is combined with the low-level features of the audio and the encoded speaker information through a stacked MLP network for feature information fusion, and the fused features are input into the retention network. Finally, the network generates the codebook index of the action in an autoregressive manner. The retention network has a similar layout to the Transformer, but it introduces a retention mechanism, combining the characteristics of parallelism and loops. Each layer contains two modules: a multi-scale retention (MSR) module and a feedforward network (FFN) module. The model can be trained in parallel and reasoning can be performed cyclically, which effectively improves the training efficiency and simplifies the reasoning process. During the training process, the cross entropy loss is used to measure the difference between the model output and the true index.

[0084] S402, using the codebook index to search for corresponding quantized features in the codebook of S302, and then inputting these quantized features into the decoder of S303, and finally obtaining a motion sequence represented by the mixed point;

[0085] S403, introduce contrastive motion learning method, represent the quantized features of the motion sequence generated by the audio in the current training round in S402 as p, and use the quantized features of the motion sequences generated by L other early audios as negative samples The quantized features of the true value of the training action are used as positive samples p + , the contrast loss can be expressed as:

[0086]

[0087] The diversity of action generation is enhanced by making the generated features as distinguishable as possible from negative samples while being similar to positive samples.

[0088] S5. In order to efficiently provide a universal output representation, a motion representation conversion network is designed, which takes the mixed point representation of the motion sequence as input and outputs the corresponding SMPL-X representation parameters.

[0089] The motion representation conversion network implementation process described in S5 includes the following steps:

[0090] The structure of the motion representation conversion network is similar to that of the decoder in S202. The mixed point representation of the motion sequence obtained in S402 is input into the motion representation conversion network to generate the corresponding 3D axis-angle representation of the SMPL-X model. This conversion provides a more general representation form for subsequent applications. During the training process, the reconstruction loss of the L1 distance is used to measure the difference between the sequence generated by the motion representation conversion network and the real sequence.

[0091] Embodiment 2:

[0092] See also Figure 1-5 , based on Example 1 but different in that, the specific implementation process of the voice-driven whole-body motion generation method proposed in the present invention is as follows:

[0093] (I) Data preprocessing:

[0094] The present invention uses the public BEAT2 dataset, which contains 51 hours of English audio of 25 people and motion capture files at 30 frames per second. The joint points corresponding to the motion sequence under the SMPL-X model and the three-dimensional positions of the downsampled surface points are extracted from the motion capture files as mixed point representations of the motion; the original audio is subjected to feature extraction, including low-level features (MFCC features) and high-level features (WavLM features); the speech features and the corresponding motion representations are stored in pairs;

[0095] (II) Facial action generation:

[0096] For the facial action generation task, the WavLM features in step (a) and the speaker's one-hot encoding information are fused as the input of the encoder-decoder. The encoder encodes the fused features into a representation of the latent space, and the decoder decodes the representation into the corresponding facial movement sequence, ensuring that the generated facial actions are consistent with the speech content and speaker characteristics. At the same time, a self-attention mechanism is added to the encoder and decoder to improve the adaptability and effectiveness of the feature representation;

[0097] (III) Quantitative motion reconstruction:

[0098] The motion sequence represented by the mixed point in step (a) is encoded using the VQ-VAE encoder. The encoder can effectively extract the motion sequence features through a multi-level structure, residual blocks and attention mechanism, and reduce the data resolution through a step-by-step downsampling operation, thereby enhancing the abstraction ability. The encoded latent features are mapped to the nearest codebook vector using a quantizer. Finally, the decoder gradually expands the quantized latent feature representation to dimensions and features that match the original motion sequence through a series of intermediate layers and upsampling operations, thereby achieving more realistic and accurate motion reconstruction.

[0099] (IV) Body movement generation:

[0100] On the basis of the above steps, for the body movement generation task, the codebook index in step (iii) corresponding to the original motion sequence is randomly masked and fused with the MFCC features of the audio and the identification coding information of the speaker, and input into the retention network (RetNet), which uses a multi-scale retention module and a feedforward network module to capture the long-distance dependency in the sequence, and finally generates the index of the motion sequence autoregressively; the index is input into the quantizer in step (iii) to obtain the quantized feature, and decoded by the decoder to obtain the motion sequence represented by the mixed point;

[0101] Based on the quantitative features corresponding to the index, the contrastive motion learning method is introduced. The quantitative features of the motion sequences generated by other audio correspondences in the early stage are used as negative samples, and the quantitative features of the training action true value are used as positive samples for training. By making the generated features as different from the negative samples as possible and similar to the positive samples, the diversity of motion generation is enhanced.

[0102] In order to efficiently provide a universal output representation, a motion representation conversion network is designed, which takes the mixed point representation of the motion sequence as input and outputs the SMPL-X axis angle representation parameters.

[0103] like Figure 1As shown in the figure, the overall framework of the encoder-decoder-based facial motion generation model and the two-stage body motion generation model based on vector quantized variational autoencoder (VQ-VAE) and reserved network (RetNet) proposed in the present invention is shown. For facial motion generation, the WavLM features of the audio and the one-hot encoding information of the speaker are fused and input into the encoder-decoder to generate the corresponding facial motion. For body motion generation, the vector quantized variational autoencoder is first used to reduce the dimension of the action to a low-dimensional latent motion space, and then the audio and speaker identification information are converted into corresponding motion sequences by autoregression through the reserved network.

[0104] like Figure 2 As shown, the hybrid point representation proposed in the present invention is shown, which consists of two parts: 431 surface points containing global constraint information and 55 joint points containing local details;

[0105] like Figure 3 As shown, the contrastive motion learning method proposed by the present invention is demonstrated. This method uses the quantitative features of the motion sequence generated by other audio correspondences in the early stage as negative samples, and uses the quantitative features of the true value of the trained motion sequence as positive samples for contrast training, so as to ensure that the generated features are as different from the negative samples as possible and close to the positive samples, thereby enhancing the diversity of motion generation;

[0106] like Figure 4 As shown, the qualitative results of the hybrid point representation method proposed in the present invention and other commonly used representation forms on the first stage action reconstruction task are compared. It can be seen that the action reconstructed by this method is more accurate;

[0107] like Figure 5 As shown in the figure, the results of the whole body motion generation of the present invention are shown. It can be seen that the method of the present invention can generate natural and diverse human body motion sequences, and can generate multiple different motion sequence results for the same audio segment, which shows that the method proposed by the present invention can meet the one-to-many requirements of audio motion. In addition, the method of the present invention is not only applicable to English audio input, but can also be generalized to the whole body motion generation of other languages ​​and music;

[0108] like Figure 6 As shown in the figure, the qualitative results of the present invention and the current mainstream speech-driven action generation method in the action generation task are compared. The left sub-figure shows the continuity and authenticity of the generated motion, and the right sub-figure shows the diversity of the generated results. It can be seen that the results generated by the present method are superior to the latest methods in terms of continuity, authenticity and diversity.

[0109] Please refer to Table 1, which lists the quantitative results of the hybrid point representation of the present invention and other action representations (including 3D representation, 6D representation, joint point representation only and downsampled surface point representation only) on the BEAT2 full dataset for the first stage action reconstruction task; the evaluation indicators of the quantitative results include LVD and LD for the 127 joint points and 10475 vertices of the SMPL-X model, which respectively represent the L2 distance and speed difference between the true value and the predicted value. It can be seen from Table 1 that the present invention has achieved the best results in the first stage action reconstruction task.

[0110] Table 1

[0111]

[0112] Please refer to Table 2, which lists the quantitative results of the motion generation task of speaker 2 on the BEAT2 dataset for the present invention and the current mainstream whole-body motion generation method; TalkShow was proposed by Yi et al. (Yi H, Liang H, Liu Y, et al. Generating holistic 3d human motion from speech [C]. Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023) in 2023, and EMAGE was proposed by Liu et al. (Liu H, Zhu Z, Becherini G, et al. EMAGE: Towards Unified Holistic Co-Speech Gesture Generation via Masked Audio Gesture Modeling [C]. Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023) in 2023. PatternRecognition (CVPR, 2024) was proposed in 2024; the evaluation indicators of quantitative results are divided into two parts. The facial indicators are LVD and LD of the facial key points of the SMPL-X model, which respectively represent the L2 distance and speed difference between the true value and the predicted value. The body part indicators are FID-k, FID-g, BeatAlign, Div-in, and Div-out of the first 55 joints of the SMPL-X model, where FID-k represents the dynamic characteristics of the action, FID-g represents the geometric characteristics of the action, BeatAlign represents the rhythm consistency of the action and audio, Div-in represents the action diversity within a motion sequence, and Div-out represents the diversity between two motion sequences generated by an audio. As can be seen from Table 2, the present invention has achieved the best results in the action generation task.

[0113] Table 2

[0114]

[0115] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and improved concepts of the present invention within the technical scope disclosed by the present invention, and they should be covered by the protection scope of the present invention.

Claims

1. A speech-driven whole-body motion generation method, characterized in that: The steps include: S1. Preprocess the public data set, use the SMPL-X model to model the action sequence, extract the corresponding joint points and the three-dimensional positions of the downsampled surface points; extract features from the original audio, including MFCC features and WavLM features; The speech feature and the corresponding motion representation constitute a data pair for storage; S2. For the speech-driven facial action generation task, an encoder-decoder architecture is used to fuse the WavLM features of the audio with the one-hot encoded information of the speaker as input. The encoder encodes the fused features into a representation in the latent space, and then the decoder decodes the representation into the corresponding facial movement sequence. S3. For the speech-driven body motion generation task, the downsampled surface points representing the global constraints of the body's degrees of freedom are combined with the three-dimensional positions of the joints representing the fine-grained details of the body as the representation of the motion sequence; the vector quantized variational autoencoder is used to reconstruct the motion sequence, which specifically includes the following contents: First, the motion sequence represented by the mixed point is mapped to a discrete low-dimensional latent space through an encoder to achieve the encoding of the motion sequence; then the encoded latent features are mapped to the nearest codebook vector using a quantizer; finally, the quantized features are decoded back to the original motion sequence through a decoder; S4, after randomly masking the codebook index of the original motion sequence encoded in the low-dimensional space in S3, it is fused with the low-level features of the audio and the identification coding information of the speaker, and input into the retention network to autoregressively generate the index of the motion sequence; the index is then input into the quantizer in S3 to obtain the quantized feature, which is decoded by the decoder to obtain the motion sequence represented by the mixed point; at the same time, based on the quantized feature corresponding to the index, the contrastive motion learning method is introduced to improve the diversity of the generated results; S5. Design a motion representation conversion network to efficiently provide a universal output representation, taking the mixed point representation of the motion sequence as input and outputting the corresponding SMPL-X axis angle representation.

2. A method for generating whole-body movements driven by speech according to claim 1, characterized in that: The public dataset preprocessing process described in S1 specifically includes the following steps: S101, according to the built-in function of SMPL-X, calculate the three-dimensional positions of the joint points inside the human body mesh and the surface vertices under the corresponding posture, and downsample the surface points to retain important features and reduce redundant points; S102. Use the built-in audio library of PyTorch to extract the MFCC features of the audio, including pitch, sound intensity, and spectral features, as low-level features; use the speech pre-training model to extract the WavLM features of the audio, including speech content and rhythmic features, as high-level features.

3. A method for generating whole-body movements driven by speech according to claim 2, characterized in that: The specific implementation process of the speech-driven facial action generation described in S2 is as follows: S201, convolutionally fuse the WavLM features of the audio with the one-hot encoded feature information of the speaker, and then refine and adaptively aggregate the features through an encoder composed of a residual block and a self-attention block; S202: Taking the intermediate representation generated by the encoder as input, decoding it through a decoder with the same architecture as the encoder to generate a corresponding face motion sequence.

4. The method for generating whole-body movements driven by speech according to claim 3, characterized in that: The motion sequence reconstruction task in S3 further comprises the following steps: S301. Given a set of motion sequences represented by mixed points, a vector quantized variational autoencoder is used to learn a low-dimensional latent motion space; a motion feature is generated from the input motion sequence through an encoder, wherein the encoder comprises multiple layers, and residual blocks and self-attention blocks are used in each layer, so that key information in the motion sequence can be effectively captured, and the resolution of the motion data is gradually reduced through downsampling operations; S302, for each motion feature, the quantizer calculates the distance between it and each vector in the codebook, and selects the codebook vector with the closest distance as the quantized feature representation; S303, the decoder receives the quantized feature representation, and gradually expands the low-dimensional feature representation to a dimension matching the original motion sequence through a series of intermediate layers and upsampling operations to generate a reconstructed motion sequence.

5. A method for generating whole-body movements driven by speech according to claim 4, characterized in that: The S4 specifically includes the following contents: S401, firstly, randomly mask the codebook index in S302 corresponding to the original motion sequence, and then fuse the index with the MFCC feature of the audio and the encoded speaker information through a stacked MLP network, and input the fused feature into a retention network, wherein the retention network uses a multi-scale retention module and a feedforward network module to capture the long-distance dependency in the sequence, and finally the network generates the codebook index of the action in an autoregressive manner; S402, using the codebook index to search for corresponding quantized features in the codebook of S302, and then inputting these quantized features into the decoder of S303, and finally obtaining a motion sequence represented by the mixed point; S403. Introduce contrastive motion learning method, take the quantized features of the motion sequence generated by the audio in the current training round in S402 as the current sample, the quantized features of the true value of the motion sequence as the positive sample, and the quantized features of the motion sequence generated by other audio in the early stage as the negative sample. By making the generated features as different from the negative samples as possible and similar to the positive samples, the diversity of action generation is enhanced.

6. A method for generating whole-body movements driven by voice according to claim 5, characterized in that: The motion representation conversion network implementation process described in S5 is as follows: The structure of the motion representation conversion network is similar to the decoder in S202. The mixed point representation of the motion sequence obtained in S402 is input into the network to generate the corresponding 3D axis-angle representation of the SMPL-X model.

Citation Information

Cited By

  • Text-driven action generation method and device, equipment, storage medium and program product

    CN119313785A

  • Text-driven action generation method, device, equipment, storage medium and program product

    CN119313785B

  • Image processing method and device, equipment and storage medium

    CN119478434A

  • Image processing method, device, apparatus and storage medium

    CN119478434B

  • Diversity-enhanced collaborative voice action generation system based on visual style characteristics

    CN119540034A