Unified editing method and device for voice-driven generation actions based on reversible diffusion

By using the reversible diffusion model to reconstruct and edit noise in speech-driven generation technology, the problem of high cost of generating action editing in the existing technology is solved, flexible and efficient action editing is achieved, and resource waste and cost are reduced.

CN118737185APending Publication Date: 2024-10-01INST OF AUTOMATION CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410722280.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The voice-driven action generation method in the existing technology is difficult to provide flexible and efficient editing functions, resulting in high cost of modifying the details of the generated actions, requiring a lot of manpower and time.

Method used

A unified editing method for speech-driven action generation based on reversible diffusion is adopted. By obtaining the trained diffusion model, it is reversible into a reversible diffusion model, and the original speech data is used to reconstruct the original noise of the generated action data, and the noise is operated based on the editing task. , to achieve automated editing of target generation actions.

Benefits of technology

It provides flexible and automated editing functions for voice-driven generated actions, reducing the waste of human and material resources, lowering costs, and enabling fine-grained and coarse-grained editing operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737185A_ABST
    Figure CN118737185A_ABST
Patent Text Reader

Abstract

The invention provides a voice-driven generation action unified editing method and device based on reversible diffusion. The method comprises the following steps: acquiring a trained diffusion model, and reversifying the diffusion model to obtain a reversible diffusion model; the diffusion model is used for performing a voice-driven action generation task; on the condition of original speech data, the reversible diffusion model is utilized to reconstruct and generate original noise matched with the generation action data of the original speech data; and performing editing operation on the generation action data based on an editing task and the original noise to obtain a target generation action. According to the voice-driven generation action unified editing method and device based on reversible diffusion provided by the invention, the original noise is obtained by using the reverse noise reconstruction process of the reversible diffusion model, so that the generation action editing can be automatically performed based on the original noise, the waste of manpower and material resources is reduced, and the cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for unified editing of speech-driven generated actions based on reversible diffusion. Background Art

[0002] The speech-driven action generation task is an emerging topic. It strives to use speech data as input and obtain body movements that match these speech data as output, so as to reduce the uncanny valley effect of digital images with vivid speech but stiff bodies, and provide a new development direction for digital image interaction that imitates human-to-human communication in the real world in immersive human-computer interaction. In recent years, data-driven methods based on generative models such as variational autoencoders, generative adversarial networks, normalized flow or diffusion models have flourished. In particular, diffusion models have become the first choice for research in this field due to their excellent generation effects.

[0003] However, in the application field, the data-driven voice-driven action generation method has not yet become mainstream. One of the main reasons is that it fails to provide flexible and efficient editing functions. At present, if the details of the generated action need to be effectively modified, it takes a lot of time and manpower to manually modify the generated results, resulting in excessively high costs. Summary of the invention

[0004] The embodiments of the present application provide a method and device for unified editing of speech-driven generated actions based on reversible diffusion, so as to solve the technical problem of high cost of editing generated results in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a unified editing method for generating actions driven by voice based on reversible diffusion, comprising: Acquire a trained diffusion model and make the diffusion model reversible to obtain a reversible diffusion model; the diffusion model is used to perform a speech-driven action generation task; Conditioned on the original speech data, using the reversible diffusion model to reconstruct the original noise for generating the generated motion data matching the original speech data; An editing operation is performed on the generated action data based on the editing task and the original noise to obtain a target generated action.

[0006] In some embodiments, making the diffusion model reversible comprises: Introducing the generation scheduling strategy of the precursor step according to the generation scheduling strategy of the subsequent step, and establishing an affine coupling layer for the diffusion model to obtain a corresponding reversible diffusion model; The reversible diffusion model includes a deep denoising network, a generation scheduling strategy for subsequent steps, and a generation scheduling strategy for precursor steps.

[0007] In some embodiments, the generation scheduling strategy of the subsequent step refers to a strategy of using the deep denoising network to obtain the noisy generation result of the next step given the current noisy generation result; The generation scheduling strategy of the predecessor step refers to a strategy of using the deep denoising network to obtain the noisy generation result of the previous step under the premise of a given current noisy generation result.

[0008] In some embodiments, the editing operation is performed on the generated action data based on the editing task and the original noise to obtain the target generated action, including: Determine the editing method based on the editing task; The generated action data is edited based on the editing mode and the original noise to obtain a target generated action.

[0009] In some embodiments, the editing mode includes a first editing mode and a second editing mode; The first editing method refers to a method of directly editing the representation value of the generated action sequence matching the original speech; the representation value of the generated action sequence is used to control the rotation and movement of the target joint at the target frame position, the overall action range, the overall action speed and / or the symmetry of the left and right half body actions; The second editing method refers to generating a target generation action matching the target speech based on the target speech while retaining the style and characteristics of the generation action matching the original speech.

[0010] In some embodiments, performing an editing operation on the generated action data based on the first editing mode and the original noise to obtain a target generated action includes: Determine a mathematical representation of a sequence of generated actions corresponding to the editing task, and determine a loss function according to the mathematical representation; iteratively optimize the original noise with the goal of minimizing the loss function to obtain current noise, and, based on the original speech data, input the current noise into the reversible diffusion model for forward generation to obtain a current generated action; The current noise and the current generation action are updated until a target generation action is obtained.

[0011] In some embodiments, performing an editing operation on the generated action data based on the second editing mode and the original noise to obtain a target generated action includes: Based on the target speech, the original noise corresponding to the generated action data is input into the reversible diffusion model for forward generation to obtain the target generated action.

[0012] In some embodiments, obtaining a trained diffusion model includes: Obtain the network parameters of the deep denoising network in the diffusion model and generate a scheduling strategy; The forward generation process of the diffusion model is run and tested according to the network parameters and generation scheduling strategy of the deep denoising network.

[0013] In a second aspect, an embodiment of the present application provides a unified editing device for generating actions driven by voice based on reversible diffusion, comprising: A reversible diffusion model acquisition module is used to acquire a trained diffusion model and make the diffusion model reversible to obtain a reversible diffusion model; the diffusion model is used to perform a speech-driven action generation task; An original noise acquisition module, used to reconstruct the original noise of the generated action data matching the original speech data using the reversible diffusion model under the condition of the original speech data; The editing operation module is used to perform an editing operation on the generated action data based on the editing task and the original noise to obtain a target generated action.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the unified editing method for generating actions driven by voice based on reversible diffusion as described in the first aspect above is implemented.

[0015] In a fourth aspect, an embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the unified editing method for generating actions based on speech-driven reversible diffusion as described in the first aspect above.

[0016] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the unified editing method for generating actions driven by voice based on reversible diffusion as described in the first aspect above.

[0017] The embodiment of the present application provides a unified editing method and device for speech-driven generated action based on reversible diffusion. First, a trained diffusion model is obtained, and the diffusion model is used to perform speech-driven action generation tasks. The diffusion model is reversible to obtain a reversible diffusion model. Then, based on the original speech data, the reversible diffusion model is used to reconstruct the original noise of generated action data that matches the original speech data. The generated action data is edited based on the editing task and the original noise to obtain a target generated action. The original noise is obtained by the inverse noise reconstruction process of the reversible diffusion model. The generated action editing can be automatically performed based on the original noise, which provides a unified framework for the editing operation of speech-driven generated actions. No additional training is required, which reduces the waste of manpower and material resources and saves costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 This is one of the flow charts of the unified editing method of speech-driven action generation based on reversible diffusion provided in the embodiment of the present application.

[0020] Figure 2 It is a schematic diagram of the forward generation process of the voice-driven action generation diffusion model provided in an embodiment of the present application.

[0021] Figure 3 It is a schematic diagram of the inverse noise reconstruction process of the reversible diffusion model provided in an embodiment of the present application.

[0022] Figure 4 It is a schematic diagram of the forward generation process of the reversible diffusion model provided in the embodiment of the present application.

[0023] Figure 5 This is the second flow chart of the unified editing method of speech-driven action generation based on reversible diffusion provided in the embodiment of the present application.

[0024] Figure 6 It is a structural schematic diagram of a unified editing device for generating actions driven by voice based on reversible diffusion provided in an embodiment of the present application.

[0025] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The editing methods provided by current methods mainly focus on coarse-grained editing based on conditional modification such as speaker identity and emotion through conditional generation, which can only affect the generated results at the style level. If the details of the generated actions need to be effectively modified, professional content creators need to perform a lot of manual editing work and modify the generated results almost frame by frame, resulting in high costs. How to provide flexible and automatic editing methods for generated actions has become an important topic.

[0027] As the most popular diffusion model, the reversible diffusion model has become a good means to solve this problem. The reversible diffusion model can reconstruct the original noise input of the generated result, and the original noise input is the most important factor affecting the generation result of the diffusion model. By changing and maintaining the original noise in subsequent generation, the various aspects of the new generated result can be effectively changed and maintained. Inspired by this, the reversible diffusion model can not only achieve the common coarse-grained editing of styles by maintaining the original noise, but also reduce the storage resource requirements for noise optimization by reconstructing the noise, and achieve fine-grained editing of the details of the generated action, providing a unified framework for the editing of coarse and fine speech-driven generation actions.

[0028] The reversible diffusion model can reconstruct the original noise input of the generated result, and the original noise input is the most important factor affecting the generation result of the diffusion model. By changing and maintaining the original noise in the subsequent generation, the various aspects of the new generated result can be effectively changed and maintained. Inspired by this, the embodiment of the present application proposes a unified editing method for speech-driven generated actions based on reversible diffusion. First, a trained diffusion model is obtained, which is used to perform speech-driven action generation tasks. The diffusion model is reversible to obtain a reversible diffusion model. Then, based on the original speech data, the reversible diffusion model is used to reconstruct the original noise of the generated action data that matches the original speech data. The generated action data is edited based on the editing task and the original noise to obtain the target generated action. The original noise is obtained by the inverse noise reconstruction process of the reversible diffusion model, so that the generated action editing can be automatically performed based on the original noise, which provides a unified framework for the editing operation of speech-driven generated actions, without any form of additional training, reducing the waste of manpower and material resources, and saving costs.

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are 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 this application.

[0030] Figure 1 This is one of the flow charts of the unified editing method of speech-driven generation of actions based on reversible diffusion provided in the embodiment of the present application, such as Figure 1 As shown, an embodiment of the present application provides a unified editing method for generating actions by voice-driven generation based on reversible diffusion, and the method includes the following steps 101 and 102.

[0031] Step 101: Obtain a trained diffusion model and make the diffusion model reversible to obtain a reversible diffusion model; the diffusion model is used to perform a voice-driven action generation task.

[0032] Specifically, a pre-trained diffusion model is obtained for the voice-driven action generation task. The diffusion model includes a deep denoising network and a generation scheduling strategy for subsequent steps. Under given conditions and the control of the generation scheduling strategy, the input noise is progressively denoised to obtain a final generation result without noise.

[0033] In the embodiment of the present application, ∈(x t , t, C) or its abbreviation ∈(x t , t) to represent the deep denoising network, where t∈(T, T-1, ..., 1, 0) is the sequence number of the current step, arranged from large to small, indicating a decreasing degree of noise; correspondingly, the noise input of the current step (also the noise generation action) is recorded as x t , the noise input of the next step is recorded as x t-1 , the noise input of the previous step is recorded as x t+1 , so the original noise input is recorded as x T , matching the original speech generation action is recorded as x 0 ; C is the condition, that is, the original speech data, which can be omitted.

[0034] The generation scheduling strategy for the subsequent steps refers to how to use the deep denoising network to obtain the noisy generation result of the next step given the current noisy generation result.

[0035] For example, suppose that at each step the deep denoising network inputs a noisy generation action and tries to predict the noise-free generation result x 0 , the current step noise generation action is x t , the noise generation result of the next step is recorded as x t-1 , then there is a relationship: in, α t =1-β t , β 1 , β 2 , ..., βT is the predefined variance scheduling parameter; σ t z is a random perturbation, where

[0036] In some embodiments, obtaining a trained diffusion model includes: Obtain the network parameters of the deep denoising network in the diffusion model and generate a scheduling strategy; The forward generation process of the diffusion model is run and tested according to the network parameters and generation scheduling strategy of the deep denoising network.

[0037] Specifically, the network parameters of the deep denoising network in the diffusion model can be obtained in the following three ways: Method 1: Obtain speech data and matching actions, such as using public datasets in the field of speech-driven action generation, or running a human skeleton extraction algorithm on video RGB frames, or directly using motion capture technology to collect and establish a training dataset, and train a diffusion model with a network architecture designed for speech-driven action generation tasks.

[0038] Method 2: Directly use the existing pre-trained diffusion model parameters for voice-driven action generation characters.

[0039] Method 3: Use the data obtained in the above method 1 to fine-tune the existing model parameters obtained in method 2.

[0040] Specifically, based on the network parameters and generation scheduling strategy of the deep denoising network, the forward generation process of the diffusion model is run and tested. The test dataset can be established by using publicly available data in the field of speech-driven action generation or by collecting data on your own. Figure 2 is a schematic diagram of the forward generation process of the voice-driven action generation diffusion model provided in the embodiment of the present application, such as Figure 2 As shown in the figure, for each piece of data in the test data set, the original speech data is used as a condition and the random original noise is used as input to run its forward generation process to obtain the generation action that matches the original speech. Then check the correctness of the generation result and evaluate its effect to ensure that the model can work properly.

[0041] Conditioned on the original speech, from the original noise x T Starting from x, iteratively use the generation scheduling strategy of the subsequent steps t Get x t-1 , and finally get the generated action x that matches the original speech 0 .

[0042] After obtaining the trained diffusion model, the diffusion model is made reversible to obtain a reversible diffusion model.

[0043] In some embodiments, the diffusion model is made reversible, and the generation scheduling strategy of the predecessor step can be deduced according to the generation scheduling strategy of the subsequent step, and an affine coupling layer is established for the diffusion model to obtain a corresponding reversible diffusion model.

[0044] Specifically, the generation scheduling strategy of the predecessor step refers to the strategy of using the deep denoising network to obtain the noisy generation result of the previous step given the current noisy generation result. The generation scheduling strategy of the predecessor step can be derived from the generation scheduling strategy of the subsequent step, and the expression is: Among them, x on the right side of the equation t-1 It is known that x t Unknown, x t is the generated scheduling strategy for step t, x t The next step is to generate a scheduling strategy for x t-1 ; α t =1-β t , β 1 , β 2 , ..., β T is the predefined variance scheduling parameter; σ t z is a random perturbation, where

[0045] The affine coupling layer is used to store a copy of the variable of the noisy generation result of each step and fuse them to achieve mutual deduction between the noisy generation result of the previous step and the noisy generation result of the next step.

[0046] Specifically, an affine coupling layer is established for the diffusion model, that is, using cache or directly ignoring random perturbations, and adding a variable y t , expand the generation scheduling strategy of subsequent steps to: Specifically, to achieve the mutual derivation between the noisy generation result of the previous step and the noisy generation result of the next step, in addition to the above from x t ,y t to x t-1 ,y t-1 In addition to the method from x t-1 ,y t-1 to x t ,y t The method is a step in the inverse noise reconstruction process of deriving a noisy input from a noisy generation result: Finally, in conjunction with the generation scheduling strategy of the subsequent steps, a mixing coefficient needs to be set to fuse the two variables (note that x in the following two formulas is t-1 Not affected by the above formula): x t-1 ←px t-1 +(1-p)y t-1 , y t-1 ←(1-p)x t-1 +py t-1 Among them, p∈[0,1] is the mixing coefficient.

[0047] The obtained reversible diffusion model includes a deep denoising network, a generation scheduling strategy for subsequent steps, and a generation scheduling strategy for predecessor steps, which can perform forward generation process as well as reverse noise reconstruction process.

[0048] Step 102: Taking the original speech data as a condition, using the reversible diffusion model to reconstruct the original noise of the generated action data that matches the original speech data.

[0049] Specifically, firstly, original speech data and generated action data matching the original speech are obtained.

[0050] For example, one can use publicly available datasets in the field of voice-driven action generation, or run a human skeleton extraction algorithm on video RGB frames, or directly use motion capture technology to collect data; or directly collect small segments of user speech and matching movements on site; or use a generative model or re-enactment method to generate movements that match any segment of speech.

[0051] Then, the inverse noise reconstruction process of the reversible diffusion model is used. Figure 3 is a schematic diagram of the inverse noise reconstruction process of the reversible diffusion model provided in the embodiment of the present application, such as Figure 3 As shown, given the original speech data is conditioned on, the original noise of the generated motion data matching the original speech is reconstructed.

[0052] Among them, the inverse noise reconstruction process, that is, taking the original speech as the condition and the generation action matching the original speech as the input, under the control of the generation scheduling strategy of the predecessor step, uses the deep denoising network in reverse to obtain the corresponding original noise.

[0053] For example, conditional on the original speech, the generated action y from matching the original speech 0 =x 0 Start by iterating over x t-1 ,y t-1 to x t ,y t The method finally obtains the original noise xT .

[0054] Step 103: Edit the generated action data based on the editing task and the original noise to obtain a target generated action.

[0055] Specifically, the editing task of the speech-driven generated action is first determined, and then the generated action data is edited based on the editing task and the original noise to obtain the target generated action.

[0056] In some embodiments, a suitable editing method is first determined based on actual needs of the editing task using the reconstructed original noise; then, the generated action data is edited based on the determined editing method and the original noise to obtain a target generated action.

[0057] In the embodiment of the present application, the editing mode includes a first editing mode and a second editing mode.

[0058] The first editing method is the fine-grained editing method. If you want to perform direct editing operations on the numerical values ​​representing the action sequence, such as the rotation of certain joints at certain frame positions, the overall action range, the overall action speed, the symmetry of the left and right body actions, etc. in the generated action sequence that matches the original speech, then choose the fine-grained editing method.

[0059] The second editing method is the coarse-grained editing method. If you want to obtain the generated actions that match the new speech while retaining the style and characteristics of the generated actions that match the original speech, then choose the coarse-grained editing method.

[0060] The unified editing method for speech-driven generated actions based on reversible diffusion provided in the embodiment of the present application provides a unified framework for editing operations of speech-driven generated actions of both coarse and fine granularities by determining an editing method, such as a fine-grained editing method or a coarse-grained editing method, according to the editing task. This method does not require any form of additional training, thereby saving time and cost for obtaining generated actions.

[0061] In some embodiments, performing an editing operation on the generated action data based on the first editing mode and the original noise to obtain a target generated action includes: Determine a mathematical representation of a sequence of generated actions corresponding to the editing task, and determine a loss function according to the mathematical representation; iteratively optimize the original noise with the goal of minimizing the loss function to obtain current noise, and, based on the original speech data, input the current noise into the reversible diffusion model for forward generation to obtain a current generated action; The current noise and the current generation action are updated until a target generation action is obtained.

[0062] Specifically, corresponding fine-grained or coarse-grained editing operations are performed on the generated action data that matches the original speech. If the first editing method is used for fine-grained editing operations, a new generated action (i.e., a target generated action) that matches the original speech and meets the editing goal is obtained.

[0063] Fine-grained editing operations include the following steps: Step 201: Determine a mathematical representation of a generated action sequence corresponding to an editing task, ie, a fine-grained editing target, and design a loss function based on the mathematical representation.

[0064] The generated action sequence is generally represented mathematically as a three-dimensional tensor of "skeleton frame-joint-joint attribute", that is, the first dimension is the frame in the sequence, each frame represents a skeleton, and the skeleton is composed of many joints; the second dimension is the joint in a skeleton, and the joint can be represented by different attributes, such as joint position and / or joint rotation, etc.; the third dimension is the value of the attribute representation of a joint, such as the position can be represented as an absolute coordinate, relative coordinate or relative vector in a 3D space, and the rotation can be represented by 3D representations such as Euler angles and axis angles, 4D representations such as quaternions, or 9D representations such as rotation matrices, etc. In addition, a mixed representation of position and / or rotation can also be used, such as direct concatenation of position and rotation, 16-dimensional transformation matrix, etc. The relevant representation methods in the same sequence should be exactly the same.

[0065] Specifically, the mathematical representation of the fine-grained editing objective on the generated action sequence should be completely consistent with the mathematical representation of the generated action sequence to complete the loss function L(x 0 ) design. The following assumes that the representation of the generated sequence is Among them, F, J, and R correspond to the total number of frames, the total number of joints, and the total number of attributes, respectively. The fine-grained editing operations of four application scenarios are illustrated.

[0066] To achieve “frame-joint editing”, that is, to edit the rotation and other properties of some joints in the generated action sequence matching the original speech at some frame positions, while keeping other parts as unchanged as possible and having a good transition, the loss function L fj (x 0 ) can be designed as: The editing target is defined as the frame set to be changed. The joint collection in F′, J′ correspond to the number of frames and joints to be changed, respectively. index(j) is the number of frames and joints in the entire sequence x. 0 Instead of the subscript number in j, the square brackets are the corresponding values ​​​​in the corresponding dimension.

[0067] To implement “action range editing”, that is, to edit the action range of the entire action sequence, the loss function L mr (x 0 ) can be designed as: Among them, euler(x 0 ) is the conversion of joint attributes into Euler angles. Optimizing this loss function will reduce the range of motion. To increase the range of motion, optimize the opposite of this loss function.

[0068] If we want to implement “action speed editing”, that is, edit the action speed of the entire action sequence, the loss function L v (x 0 ) can be designed as: Among them, vel(x 0 ) is the rate of change of joint attributes calculated by using inter-frame differences, that is, when f = 0, vel(x 0 )[f, j, r]=0, f>0 when vel(x 0 )[f, j, r] = x 0 [f, j, r]-x 0 [f-1, j, r]. Optimizing this loss function will reduce the speed of the action. To increase the speed of the action, you can optimize the opposite of this loss function.

[0069] If we want to achieve “symmetry editing”, that is, to edit the symmetry of the left and right body movements of the action sequence, the loss function L s (x 0 ) can be designed as: Among them, l(x 0 )、r(x 0 ) respectively capture the joint attributes of the relevant joints of the left and right body, depending on the actual skeleton definition.

[0070] Step 202, iteratively optimize the original noise with the goal of minimizing the loss function to obtain the current noise, and based on the original speech data, input the current noise into the reversible diffusion model for forward generation to obtain the current generation action; update the current noise and the current generation action until the target generation action is obtained.

[0071] Specifically, the original noise is iteratively optimized using optimization algorithms such as gradient descent to minimize the loss function and obtain the current new noise. The forward generation process of the reversible diffusion model is re-run with the original speech as the condition and the new noise as the input to obtain the current new generation action. The process is repeated and the iteration is exited when the new generation action reaches the desired effect.

[0072] The gradient descent algorithm here is different from the usual one, because the reversible diffusion model has t-1 ,y t-1 to x t ,y t The method no longer needs to cache the activation values ​​of all deep denoising network nodes during the gradient descent process, but can t ,y t Variables are calculated as they are used. This feature enables this optimization to be completed on general hardware and is the core of this editing operation.

[0073] Figure 4 is a schematic diagram of the forward generation process of the reversible diffusion model provided in the embodiment of the present application, such as Figure 4 As shown in , the forward generation process of the reversible diffusion model means that, with the original speech as the condition and the original noise as the input, the reversible diffusion model is used instead of the original speech to drive the action generation diffusion model, so as to obtain the generated action matching the original speech. T =x T Start by iterating over x t ,y t to x t-1 ,y t-1 The method finally obtains the generated action x that matches the original speech 0 ,y 0 .

[0074] Specifically, with the original speech as the condition and the final new noise obtained after the iteration as the input, the forward generation process of the reversible diffusion model is rerun to obtain a new generation action that matches the original speech and meets the editing goal, namely the target generation action.

[0075] In some embodiments, performing an editing operation on the generated action data based on the second editing mode and the original noise to obtain a target generated action includes: Based on the target speech, the original noise corresponding to the generated action data is input into the reversible diffusion model for forward generation to obtain the target generated action.

[0076] Specifically, corresponding fine-grained or coarse-grained editing operations are performed on the generated action data that matches the original speech. If the coarse-grained editing operation is performed using the second editing method, a new generated action, namely the target generated action, is obtained that matches the new speech and retains the original action style.

[0077] The coarse-grained editing operation takes the new speech, i.e., the target speech, as the condition and the original noise corresponding to the generated action matching the original speech as the input, and reruns the forward generation process of the reversible diffusion model to obtain the new generated action that matches the new speech and retains the style of the original action, i.e., the target generated action.

[0078] Coarse-grained editing operations can realize editing operations for the "style-preserving regeneration" application scenario, that is, while retaining the style and features of the generation actions that match the original speech, for the new speech, the generation actions that match the new speech are obtained.

[0079] In order to illustrate the specific implementation method of the present invention in detail and verify the effectiveness of the present invention, the method proposed in the present invention is applied to a speech-driven action generation task in a small sample scenario.

[0080] Specifically, taking the five application scenarios mentioned in the above embodiments: frame-joint editing, motion range editing, motion speed editing, symmetry editing, and style-preserving regeneration as examples, the DiffuStyleGesture+ model is selected, and a data set is constructed on the relevant data of speakers 2 and 10 in the large-scale public data set BEAT for training and testing, and this method is implemented.

[0081] Figure 5 This is a second flow chart of a unified editing method for generating actions driven by voice based on reversible diffusion provided in an embodiment of the present application, such as Figure 5 As shown, the diffusion model used for the speech-driven action generation task is obtained and made reversible to obtain the corresponding reversible diffusion model; the inverse noise reconstruction process of the reversible diffusion model is used to reconstruct the original noise of the generated action data that matches the original speech, conditional on the given original speech data.

[0082] Then, the editing method is selected according to the editing task. If a fine-grained editing method is used, the noise is first optimized according to the editing goal to obtain the current new noise. The forward generation process of the reversible diffusion model is rerun with the original speech as the condition and the new noise as the input to obtain the current new generation action. The process is repeated and the iteration is exited after the new generation action reaches the desired effect.

[0083] If a coarse-grained editing method is used, the new speech is used as a condition, and the original noise corresponding to the generated action matching the original speech is used as input. The forward generation process of the reversible diffusion model is rerun to obtain a new generated action that matches the new speech and retains the style of the original action.

[0084] The editing results of five application scenarios are evaluated, including: objective indicators Fréchet Gesture Distance (FGD), namely Fréchet gesture distance, which refers to training an autoencoder (AutoEncoder) on a specified dataset and comparing the Fréchet distance of the encoder output feature vector before and after editing; and three subjective human preference indicators: for fine-grained editing, editing goal achievement (EGC), post-editing human-likeness (PEHL), and the degree of match between editing and original speech (PES) are selected; for coarse-grained editing, style preservation (SP), post-editing human-likeness (PEHL), and the degree of match between editing and original speech (PES) are selected.

[0085] Table 1 is the evaluation result of frame-joint editing. As shown in Table 1, for the frame-joint editing task, A2PR (a method that can expand low-frame rate key frames into complete high-frame rate action sequences and edit action sequences by editing key frames) is selected for comparison; at the same time, it is compared with manual program editing that directly assigns target values ​​to corresponding positions and interpolates surrounding frames; two configurations of the present invention are provided, namely, optimization 1 step and optimization 10 steps.

[0086] Table 1 Frame-joint editing evaluation results Table 2 is the evaluation result of motion range editing. As shown in Table 2, for the motion range editing task, manual program editing that multiplies the attribute value of each joint by a factor of 2 is selected for comparison; two configurations of the present invention are provided: optimization 3 steps and optimization 10 steps.

[0087] Table 2 Evaluation results of motion range editing Table 3 is the evaluation result of motion speed editing. As shown in Table 3, for the motion speed editing task, manual program editing that multiplies the change rate value of each joint attribute by a factor of 2 is selected for comparison; two configurations of the present invention are provided: optimization 3 steps and optimization 10 steps.

[0088] Table 3 Action speed editing evaluation results Table 4 is the evaluation result of symmetry editing. As shown in Table 4, for the symmetry editing task, manual program editing of assigning the joint attribute values ​​of the left half of the body to the joint attribute values ​​of the right half of the body is selected for comparison; two configurations of the present invention are provided: optimization 3 steps and optimization 10 steps.

[0089] Table 4 Symmetry editing evaluation results Table 5 is the evaluation result of style-preserving regeneration. As shown in Table 5, for style-preserving regeneration, CaMN (a method that can fix other conditions such as speaker identity and emotion and only change the speaking conditions to achieve style-preserving regeneration and editing) is selected for comparison; at the same time, it is compared with DSG (a method that can fix other conditions such as speaker identity and only change the speaking conditions to achieve style-preserving regeneration and editing).

[0090] Table 5 Evaluation results of style preservation regeneration The embodiment of the present application provides a unified editing method for speech-driven generation of actions based on reversible diffusion. The original noise input of the generation result can be reconstructed through the reversible diffusion model. The original noise input is the most important factor affecting the change of the diffusion model generation result. By changing and maintaining the original noise in subsequent generation, the various aspects of the new generation result can be effectively changed and maintained. The reversible diffusion model can not only achieve common coarse-grained editing of styles by maintaining the original noise, but also reduce the storage resource requirements required for noise optimization by reconstructing the noise, and achieve fine-grained editing of the details of the generated action, providing a unified framework for the editing of speech-driven generation of actions at both coarse and fine granularities, without the need for a large amount of professional manual editing work, reducing resource waste and reducing costs.

[0091] Figure 6 is a structural schematic diagram of a unified editing device for generating actions driven by speech based on reversible diffusion provided in an embodiment of the present application, such as Figure 6 As shown, an embodiment of the present application provides a unified editing device for generating actions based on speech-driven reversible diffusion, including a reversible diffusion model acquisition module 601, an original noise acquisition module 602 and an editing operation module 603.

[0092] The reversible diffusion model acquisition module 601 is used to acquire a trained diffusion model and make the diffusion model reversible to obtain a reversible diffusion model; the diffusion model is used to perform a voice-driven action generation task.

[0093] The original noise acquisition module 602 is used to reconstruct the original noise of the generated action data matching the original speech data using the reversible diffusion model under the condition of the original speech data.

[0094] The editing operation module 603 is used to perform an editing operation on the generated action data based on the editing task and the original noise to obtain a target generated action.

[0095] In some embodiments, the reversible diffusion model acquisition module 601 includes: The first acquisition submodule is used to deduce the generation scheduling strategy of the predecessor step according to the generation scheduling strategy of the subsequent step, and to establish an affine coupling layer for the diffusion model to obtain the corresponding reversible diffusion model; wherein the reversible diffusion model includes a deep denoising network, the generation scheduling strategy of the subsequent step and the generation scheduling strategy of the predecessor step.

[0096] In some embodiments, the generation scheduling strategy of the subsequent step refers to a strategy of using the deep denoising network to obtain the noisy generation result of the next step given the current noisy generation result; the generation scheduling strategy of the predecessor step refers to a strategy of using the deep denoising network to obtain the noisy generation result of the previous step given the current noisy generation result.

[0097] In some embodiments, the editing operation module 603 includes: A determination submodule is used to determine an editing method according to an editing task; The second acquisition submodule is used to perform an editing operation on the generated action data based on the editing mode and the original noise to obtain a target generated action.

[0098] In some embodiments, the editing mode includes a first editing mode and a second editing mode.

[0099] Among them, the first editing method refers to a method of directly editing the representation values ​​of the generated action sequence that matches the original speech; the representation values ​​of the generated action sequence are used to control the rotation and movement of the target joint at the target frame position, the overall movement range, the overall movement speed and / or the symmetry of the left and right half-body movements; the second editing method refers to generating a target generated action that matches the target speech based on the target speech while retaining the style and characteristics of the generated action that matches the original speech.

[0100] In some embodiments, the second acquisition submodule includes: A determination unit, configured to determine a mathematical representation of a generated action sequence corresponding to the editing task, and determine a loss function according to the mathematical representation; A first acquisition unit is used to iteratively optimize the original noise with the goal of minimizing the loss function to obtain the current noise, and input the current noise into the reversible diffusion model for forward generation based on the original speech data to obtain the current generation action; The second acquisition unit is used to update the current noise and the current generation action until a target generation action is obtained.

[0101] In some embodiments, the second acquisition submodule includes: The third acquisition unit is used to input the original noise corresponding to the generated action data into the reversible diffusion model for forward generation under the condition of the target speech, so as to obtain the target generated action.

[0102] In some embodiments, the reversible diffusion model acquisition module 601 further includes: The third acquisition submodule is used to obtain the network parameters of the deep denoising network in the diffusion model and generate a scheduling strategy; The forward generation submodule is used to run and test the forward generation process of the diffusion model according to the network parameters and generation scheduling strategy of the deep denoising network.

[0103] Specifically, the above-mentioned unified editing device for generating actions driven by voice based on reversible diffusion provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned unified editing method embodiment for generating actions driven by voice based on reversible diffusion, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those of the method embodiment will not be described in detail here.

[0104] It should be noted that the division of units / modules in the above embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, the functional units in the various embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware or in the form of software functional units.

[0105] Figure 7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 7 As shown, the electronic device may include: a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 communicate with each other through the communication bus 704. The processor 701 may call the logic instructions in the memory 703 to execute the unified editing method of speech-driven generation of actions based on reversible diffusion, the method comprising: Acquire a trained diffusion model and make the diffusion model reversible to obtain a reversible diffusion model; the diffusion model is used to perform a speech-driven action generation task; Conditioned on the original speech data, using the reversible diffusion model to reconstruct the original noise for generating the generated motion data matching the original speech data; An editing operation is performed on the generated action data based on the editing task and the original noise to obtain a target generated action.

[0106] Specifically, the processor 701 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD), and the processor can also adopt a multi-core architecture.

[0107] The logic instructions in the memory 703 can be implemented in the form of software functional units and can be stored in a processor-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0108] In some embodiments, a computer program product is further provided, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the unified editing method for generating actions based on speech-driven reversible diffusion provided by the above-mentioned method embodiments, the method comprising: Acquire a trained diffusion model and make the diffusion model reversible to obtain a reversible diffusion model; the diffusion model is used to perform a speech-driven action generation task; Conditioned on the original speech data, using the reversible diffusion model to reconstruct the original noise for generating the generated motion data matching the original speech data; An editing operation is performed on the generated action data based on the editing task and the original noise to obtain a target generated action.

[0109] Specifically, the above-mentioned computer program product provided in the embodiment of the present application can implement all the method steps implemented by the above-mentioned method embodiments, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0110] In some embodiments, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program is used to enable a computer to execute the unified editing method for generating actions based on speech-driven reversible diffusion provided in the above-mentioned method embodiments, the method comprising: Acquire a trained diffusion model and make the diffusion model reversible to obtain a reversible diffusion model; the diffusion model is used to perform a speech-driven action generation task; Conditioned on the original speech data, using the reversible diffusion model to reconstruct the original noise for generating the generated motion data matching the original speech data; An editing operation is performed on the generated action data based on the editing task and the original noise to obtain a target generated action.

[0111] Specifically, the above-mentioned computer-readable storage medium provided in the embodiment of the present application can implement all the method steps implemented by the above-mentioned method embodiments, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0112] It should be noted that the computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.

[0113] It should also be noted that the terms "first", "second", etc. in the embodiments of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.

[0114] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0115] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.

[0116] In this application, "determine B based on A" means that the factor A should be considered when determining B. It is not limited to "B can be determined based on A alone", but should also include: "determine B based on A and C", "determine B based on A, C and E", "determine C based on A, and further determine B based on C", etc. In addition, it can also include taking A as a condition for determining B, for example, "when A meets the first condition, use the first method to determine B"; for example, "when A meets the second condition, determine B", etc.; for example, "when A meets the third condition, determine B based on the first parameter", etc. Of course, it can also be a condition that takes A as a factor for determining B, for example, "when A meets the first condition, use the first method to determine C, and further determine B based on C", etc.

[0117] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0118] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0119] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0120] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0121] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A unified editing method for speech-driven generative motion based on reversible diffusion, It is characterized in that include: Acquire a trained diffusion model, and make the diffusion model reversible to obtain a reversible diffusion model; The diffusion model is used to perform speech-driven action generation tasks; Conditioned on the original speech data, using the reversible diffusion model to reconstruct the original noise for generating the generated motion data matching the original speech data; An editing operation is performed on the generated action data based on the editing task and the original noise to obtain a target generated action.

2. The method for unified editing of speech-driven generated actions based on reversible diffusion according to claim 1, It is characterized in that The step of making the diffusion model reversible comprises: Introducing the generation scheduling strategy of the precursor step according to the generation scheduling strategy of the subsequent step, and establishing an affine coupling layer for the diffusion model to obtain a corresponding reversible diffusion model; The reversible diffusion model includes a deep denoising network, a generation scheduling strategy for subsequent steps, and a generation scheduling strategy for precursor steps.

3. The method for unified editing of speech-driven generated actions based on reversible diffusion according to claim 2, It is characterized in that The generation scheduling strategy of the subsequent step refers to a strategy of using the deep denoising network to obtain the noisy generation result of the next step under the premise of a current noisy generation result; The generation scheduling strategy of the predecessor step refers to a strategy of using the deep denoising network to obtain the noisy generation result of the previous step under the premise of a given current noisy generation result.

4. The method for unified editing of speech-driven generated actions based on reversible diffusion according to claim 1, It is characterized in that The editing operation is performed on the generated action data based on the editing task and the original noise to obtain a target generated action, including: Determine the editing method based on the editing task; The generated action data is edited based on the editing mode and the original noise to obtain a target generated action.

5. The method for unified editing of speech-driven generated actions based on reversible diffusion according to claim 4, It is characterized in that The editing mode includes a first editing mode and a second editing mode; The first editing method refers to a method of directly editing the representation value of the generated action sequence matching the original speech; the representation value of the generated action sequence is used to control the rotation and movement of the target joint at the target frame position, the overall action range, the overall action speed and / or the symmetry of the left and right half body actions; The second editing method refers to generating a target generation action matching the target speech based on the target speech while retaining the style and characteristics of the generation action matching the original speech.

6. The method for unified editing of speech-driven generated actions based on reversible diffusion according to claim 5, It is characterized in that Performing an editing operation on the generated action data based on the first editing mode and the original noise to obtain a target generated action includes: Determine a mathematical representation of a generated action sequence corresponding to the editing task, and determine a loss function based on the mathematical representation; Iteratively optimizing the original noise with the goal of minimizing the loss function to obtain the current noise, and taking the original speech data as a condition, inputting the current noise into the reversible diffusion model for forward generation to obtain the current generation action; The current noise and the current generation action are updated until a target generation action is obtained.

7. The method for unified editing of speech-driven generated actions based on reversible diffusion according to claim 5, It is characterized in that Performing an editing operation on the generated action data based on the second editing mode and the original noise to obtain a target generated action includes: Based on the target speech, the original noise corresponding to the generated action data is input into the reversible diffusion model for forward generation to obtain the target generated action.

8. The method for unified editing of speech-driven generated actions based on reversible diffusion according to claim 1, It is characterized in that The step of obtaining the trained diffusion model includes: Obtain the network parameters of the deep denoising network in the diffusion model and generate a scheduling strategy; The forward generation process of the diffusion model is run and tested according to the network parameters and generation scheduling strategy of the deep denoising network.

9. A unified editing device for speech-driven generation of actions based on reversible diffusion, It is characterized in that include: A reversible diffusion model acquisition module is used to acquire a trained diffusion model and make the diffusion model reversible to obtain a reversible diffusion model; the diffusion model is used to perform a speech-driven action generation task; An original noise acquisition module, used to reconstruct the original noise of the generated action data matching the original speech data using the reversible diffusion model under the condition of the original speech data; The editing operation module is used to perform an editing operation on the generated action data based on the editing task and the original noise to obtain a target generated action.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the program, it implements the unified editing method of speech-driven generation of actions based on reversible diffusion as described in any one of claims 1 to 8.