Action generation method and related system
The 'prompt-reconstruction' action generation method solves the problem of action generation methods in the existing technology relying on large data sets and online training, and achieves flexible and diverse action generation, which is suitable for scenarios such as virtual digital humans.
Patent Information
- Application Number
- CN202310737934.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2023-06-20
- Publication Date
- 2024-10-01
AI Technical Summary
Existing action generation methods rely on a large number of motion capture data sets, resulting in poor versatility, and require online matching and network training during the deployment phase, resulting in high computational resource and time overhead and affecting the diversity of actions.
The action generation method using the 'prompt-reconstruction' method does not require retraining or fine-tuning the action generation model. Actions can be generated by simply adjusting the 'prompt' format. It supports users to select target poses and sequence information through prompts in natural language processing. Learning and training, with the help of text posture generation model and posture feature extraction model, zero-sample training is achieved.
It improves the controllability and flexibility of action generation, saves computing resources, reduces time overhead, ensures the diversity of actions, is not restricted by specific data sets, and is suitable for scenarios such as virtual digital humans.
Smart Images

Figure CN118734062A_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on March 30, 2023, with application number 202310330716.7 and invention name “A zero-sample learning method for open text-driven character action generation”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of artificial intelligence (AI) technology, and in particular to an action generation method, system, computing device cluster, computer-readable storage medium, and computer program product. Background Art
[0003] With the continuous development of artificial intelligence technology, a variety of motion generation methods have emerged. The above motion generation methods are also called action generation methods, which usually generate actions based on various types of input conditions, such as action labels and phrase descriptions. Action generation methods based on action labels or phrase descriptions rely on a large number of motion capture datasets. The above datasets are often limited by the domain knowledge of the task and the preferences of the collector, making the datasets less universal.
[0004] Thanks to the rapid development of basic models (such as large-scale language models and text-image matching models), zero-shot or few-shot learning has shown the potential to surpass supervised learning. Among them, some text-image matching models, such as the contrastive language image pretraining (CLIP) model based on contrastive learning, have been verified to have powerful visual features and text representation extraction capabilities. The powerful text-image pairing capability of the CLIP model is widely used to empower traditional visual tasks, enabling these tasks to get rid of the reliance on large amounts of annotated data.
[0005] When the CLIP model is used for action generation, although no labeled data is required, online matching and network training are required for the given text during the deployment phase, which affects the diversity of the generated actions and requires a lot of computing resources and time overhead. Summary of the invention
[0006] The present application provides an action generation method, which generates actions in a "prompt-reconstruction" manner. For different task requirements, there is no need to retrain or fine-tune the action generation model. The action can be generated by simply adjusting the format of the "prompt", which has strong controllability and flexibility. Since there is no need to perform online matching and network training for a given text during the deployment phase, computing resources are saved and time overhead is reduced. Moreover, the method is not limited to a specific data set, ensuring the diversity of generated actions. The present application also provides an action generation system, a computing device cluster, a computer-readable storage medium, and a computer program product corresponding to the method.
[0007] In the first aspect, the present application provides an action generation method, which can be executed by an action generation system. The action generation system is used to generate an action corresponding to the text based on the text. The action generation system can be a software system, which can be deployed in a computing device cluster, and the computing device cluster executes the program code of the software system to execute the action generation method of the present application. It should be noted that the software system can be an independent software system, or it can be integrated into other systems, for example, it can be integrated into other software systems in the form of a plug-in. The software system can be provided to the user in the form of a software package, or it can be provided to the user in the form of an interface or a cloud service. In some possible implementations, the above-mentioned action generation system can also be a hardware system, for example, the action generation system can be a computing device cluster with an action generation function, and when the computing device cluster is running, the action generation method of the present application is executed.
[0008] Specifically, the action generation system can receive a target text input by a user, and then determine the prompt information corresponding to the target text based on the target text, wherein the prompt information includes at least one gesture, and then input the prompt information into an action generation model trained based on prompt learning to obtain a target action corresponding to the target text, wherein the target action includes a gesture sequence formed by multiple gestures corresponding to the target text.
[0009] This method generates actions in a "prompt-reconstruction" manner. For different task requirements, there is no need to retrain or fine-tune the action generation model. Actions can be generated by simply adjusting the format of the "prompt", which has strong controllability and flexibility. Since there is no need to perform online matching and network training for given texts during the deployment phase, computing resources are saved and time overhead is reduced. Moreover, this method is not limited to a specific data set, ensuring the diversity of generated actions.
[0010] In some possible implementations, the action generation system may generate multiple first gestures corresponding to the target text based on the target text, present the multiple first gestures to the user, and determine that the prompt information includes the target gesture selected by the user from the multiple first gestures.
[0011] The method supports the user to select multiple first postures corresponding to the target text, for example, by selecting through the user's submission operation or confirmation operation, thereby determining the target posture, and determining that the prompt information includes the above-mentioned target posture, so that the user can select the action to be generated to meet the user's needs.
[0012] In some possible implementations, the target text may be an open domain text, that is, a text with no restrictions on format, content, or subject, so as to enrich usage scenarios and enhance applicability.
[0013] In some possible implementations, the prompt information may further include sequence information of at least one gesture, and the sequence information may indicate the position of at least one gesture in the target action, or, when the prompt information includes multiple gestures, the sequence information may indicate the positional relationship of the multiple gestures.
[0014] In this method, the prompt information corresponding to the target text may also include sequence information of at least one gesture, such as sequence information of the target gesture selected by the user. In this way, the position of at least one gesture in the gesture sequence or the positional relationship of multiple gestures is determined, so that the target action better meets the user's needs.
[0015] In some possible implementations, the action generation system supports the user to adjust the order of the target gestures, and uses the adjusted order as the order information. In this way, the user can adjust the prompt information so that the generated target action matches the user's needs.
[0016] In some possible implementations, the action generation model can be trained in the following manner: obtain an original pose sequence, mask the original pose sequence to obtain a masked pose sequence, then input the masked pose sequence into the action generation model to obtain a reconstructed pose sequence, and update the parameters of the action generation model according to the loss values of the original pose sequence and the reconstructed pose sequence.
[0017] The action generation model in this method draws on the prompt learning training in natural language processing and adopts the "mask-reconstruction" self-supervised training paradigm, so that the action generation model can flexibly control the corresponding action generation through the generated posture. At the same time, the learned dynamic model of the action is universal and can be directly used in downstream tasks for action generation, which is characterized by strong controllability and flexibility.
[0018] In some possible implementations, the action generation system can extract text features from the target text, input the text features into the text gesture generation model, and generate at least one gesture corresponding to the target text. The method generates at least one gesture corresponding to the target text with the help of the text gesture generation model, so that prompt information can be obtained according to the gesture for action generation.
[0019] In some possible implementations, the text posture generation model can be trained in the following manner: sampling text feature samples from the feature space, inputting the text feature samples into the text posture generation model, obtaining at least one posture corresponding to the text feature samples, then extracting posture features from at least one posture corresponding to the text feature samples, and updating the parameters of the text posture generation model based on the contrast loss between the text feature samples and the posture features.
[0020] This method takes into account the lack of open domain text and gesture matching data, and the fact that open source datasets are limited by the domain knowledge of the task and the collector's preferences, resulting in poor versatility. A wordless training process is used to train the text gesture generation model. By sampling and training from the text feature space, the need to collect a large amount of real-world text is avoided. At the same time, the training results can handle real-world text well.
[0021] In some possible implementations, a posture feature extraction model obtained by distillation can be used to extract posture features from at least one posture corresponding to a text feature sample, wherein the posture feature extraction model takes the posture as input and outputs the posture feature. The method extracts posture features with the help of a more refined posture feature extraction model obtained by distillation, thereby determining the supervisory signal in the wordless training process and improving the performance of the text posture generation model.
[0022] In some possible implementations, the posture feature extraction model can be trained in the following manner: obtaining posture samples, rendering the posture samples to obtain multi-perspective posture images, encoding the multi-perspective posture images respectively, obtaining a first posture feature corresponding to the posture sample based on the encoding result, and inputting the posture sample into the posture feature extraction model to obtain a second posture feature corresponding to the posture sample, and then updating the parameters of the posture feature extraction model based on the distillation loss of the first posture feature and the second posture feature.
[0023] This method achieves zero-sample training through contrast loss of text feature samples and posture features, thus achieving fast training or inference.
[0024] In some possible ways, the method can be applied to scenarios such as virtual digital humans, digital assistants, or virtual anchors, so as to generate richer and more intelligent actions to meet user needs. At the same time, the method can also be adjusted and customized according to user needs and the digital human model provided by the user.
[0025] In some possible implementations, the text gesture generation model and the action generation model may not depend on each other during the training process, and may be run sequentially during the reasoning process, or they may be split and run independently according to the needs of downstream tasks. In this way, the demand for video memory is small during the training phase, and the demand for hardware is small during the reasoning phase, and real-time response can be achieved.
[0026] In a second aspect, the present application provides an action generation system, the action generation system is used to generate an action corresponding to a text according to the text, the system comprising:
[0027] An interactive module, used for receiving a target text input by a user;
[0028] A gesture generation module, used to determine prompt information corresponding to the target text according to the target text, wherein the prompt information includes at least one gesture;
[0029] The action generation module is used to input the prompt information into an action generation model based on prompt learning training to obtain a target action corresponding to the target text, wherein the target action includes a gesture sequence formed by multiple gestures corresponding to the target text.
[0030] In some possible implementations, the gesture generation module is specifically used to:
[0031] According to the target text, generating a plurality of first gestures corresponding to the target text;
[0032] presenting the plurality of first gestures to the user;
[0033] A target posture selected by the user from the plurality of first postures is determined, and the prompt information includes the target posture.
[0034] In some possible implementations, the prompt information may also include sequence information of the at least one gesture, wherein the sequence information indicates the position of the at least one gesture in the target action, or when the prompt information includes multiple gestures, the sequence information indicates the positional relationship of the multiple gestures.
[0035] In some possible implementations, the action generation model is trained in the following manner:
[0036] Get the original pose sequence;
[0037] Masking the original posture sequence to obtain a masked posture sequence;
[0038] Inputting the mask posture sequence into the action generation model to obtain a reconstructed posture sequence;
[0039] The parameters of the action generation model are updated according to the loss values of the original posture sequence and the reconstructed posture sequence.
[0040] In some possible implementations, the gesture generation module is specifically used to:
[0041] extracting text features from the target text;
[0042] The text features are input into a text gesture generation model to generate at least one gesture corresponding to the target text.
[0043] In some possible implementations, the text gesture generation model is trained in the following manner:
[0044] Sampling text feature samples from the feature space;
[0045] Inputting the text feature sample into a text gesture generation model to obtain at least one gesture corresponding to the text feature sample;
[0046] Extracting a gesture feature from at least one gesture corresponding to the text feature sample;
[0047] The parameters of the text gesture generation model are updated according to the contrast loss between the text feature sample and the gesture feature.
[0048] In some possible implementations, the posture feature is obtained by:
[0049] Using the posture feature extraction model obtained by distillation, a posture feature is extracted from at least one posture corresponding to the text feature sample, wherein the posture feature extraction model takes the posture as input and takes the posture feature as output.
[0050] In some possible implementations, the posture feature extraction model is trained in the following manner:
[0051] Get posture samples;
[0052] Rendering the posture sample to obtain multi-view posture images, encoding the multi-view posture images respectively, obtaining a first posture feature corresponding to the posture sample according to the encoding result, and inputting the posture sample into the posture feature extraction model to obtain a second posture feature corresponding to the posture sample;
[0053] According to the distillation loss of the first posture feature and the second posture feature, the parameters of the posture feature extraction model are updated.
[0054] In a third aspect, the present application provides a computing device cluster. The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory. The at least one processor and the at least one memory communicate with each other. The at least one processor is used to execute instructions stored in the at least one memory, so that the computing device or the computing device cluster performs the action generation method described in the first aspect or any implementation of the first aspect.
[0055] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, wherein the instructions instruct a computing device or a computing device cluster to execute the action generation method described in the first aspect or any one of the implementations of the first aspect.
[0056] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computing device or a computing device cluster, enables the computing device or the computing device cluster to execute the action generation method described in the first aspect or any one of the implementations of the first aspect.
[0057] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical method of the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.
[0059] Figure 1 A schematic diagram of the architecture of an action generation system provided in an embodiment of the present application;
[0060] Figure 2 A flowchart of an action generation method provided in an embodiment of the present application;
[0061] Figure 3 A flowchart of a text-based generation action provided in an embodiment of the present application;
[0062] Figure 4 A schematic diagram of a training action generation model provided in an embodiment of the present application;
[0063] Figure 5 A schematic diagram of a training text gesture generation model provided in an embodiment of the present application;
[0064] Figure 6 A schematic diagram of a training posture feature extraction model provided in an embodiment of the present application;
[0065] Figure 7 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0066] Figure 8 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0067] Fig. 9 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application;
[0068] Fig.10 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0070] First, some technical terms involved in the embodiments of the present application are introduced.
[0071] An action refers to a sequence of postures formed by a plurality of continuous postures of a moving object within a period of time. The moving object may be an object in motion, including but not limited to a real person, a virtual digital person, a cartoon character or other animals in motion.
[0072] Posture refers to the posture or state of a stationary object at a certain moment. The posture can be a three-dimensional (3D) posture, which can usually be represented by the rotation angle of the joint point.
[0073] Considering that conditional motion generation methods (methods that generate motion based on input conditions, such as action labels and phrase descriptions) rely on a large number of motion capture datasets, which are limited by the domain knowledge of the task and the preferences of the collectors and have poor universality, the industry is increasingly using zero-shot or few-shot learning to drive motion generation. Zero-shot refers to no matching text-gesture training data or no matching text-motion training data, and few-shot refers to a small amount of matching text-gesture training data or a small amount of matching text-motion training data.
[0074] Zero-shot or few-shot learning driven action generation can usually be achieved through contrastive language image pretraining (CLIP) models based on contrastive learning. The powerful text-image pairing capability of the CLIP model is widely used to empower traditional vision tasks, enabling these tasks to get rid of the dependence on large amounts of annotated data (such as matched text-pose training data or matched text-action training data).
[0075] When the CLIP model is used for action generation, although no labeled data is required, online matching and network training are required for the given text during the deployment phase, which affects the diversity of the generated actions and requires a lot of computing resources and time overhead.
[0076] In view of this, the present application provides an action generation method. The method can be executed by an action generation system. The action generation system is used to generate an action corresponding to the text based on the text. The action generation system can be a software system, which can be deployed in a computing device cluster, and the computing device cluster executes the program code of the software system to execute the action generation method of the present application. It should be noted that the software system can be an independent software system, or it can be integrated into other systems, for example, it can be integrated into other software systems in the form of a plug-in. The software system can be provided to the user in the form of a software package, or it can be provided to the user in the form of an interface or a cloud service. In some possible implementations, the above-mentioned action generation system can also be a hardware system, for example, the action generation system can be a computing device cluster with an action generation function, and when the computing device cluster is running, the action generation method of the present application is executed.
[0077] Specifically, the action generation system can receive a target text input by a user, and then determine the prompt information corresponding to the target text based on the target text, wherein the prompt information includes at least one gesture, and then input the prompt information into an action generation model trained based on prompt learning to obtain a target action corresponding to the target text, wherein the target action includes a gesture sequence formed by multiple gestures corresponding to the target text.
[0078] This method generates actions in a "prompt-reconstruction" manner. For different task requirements, there is no need to retrain or fine-tune the action generation model. Actions can be generated by simply adjusting the format of the "prompt", which has strong controllability and flexibility. Since there is no need to perform online matching and network training for given texts during the deployment phase, computing resources are saved and time overhead is reduced. Moreover, this method is not limited to a specific data set, ensuring the diversity of generated actions.
[0079] This method can be applied to scenarios such as virtual digital humans, digital assistants, or virtual anchors to generate richer and more intelligent actions to meet customer needs. This method can also be adjusted and customized according to customer needs and the digital human model provided by the customer.
[0080] In order to make the technical solution of the present application clearer and easier to understand, the action generation system of the present application is introduced below with reference to the accompanying drawings.
[0081] See also Figure 1The schematic diagram of the action generation system shown in the figure, the action generation system 10 includes a prompt subsystem 100 and an action generation subsystem 200. The prompt subsystem 100 is used to receive a target text input by a user, and determine prompt information corresponding to the target text according to the target text, and the prompt information includes at least one gesture. The action generation subsystem 200 is used to input the prompt information into an action generation model based on prompt learning training, and obtain a target action corresponding to the target text, and the target action includes a gesture sequence formed by multiple gestures corresponding to the target text.
[0082] In some possible implementations, the prompt subsystem 100 includes an interaction module 102 and a gesture generation module 104. The interaction module 102 is used to receive a target text input by a user, and the target text may be an open domain text. The gesture generation module 104 is used to generate at least one gesture corresponding to the target text according to the target text. The prompt information may include the at least one gesture. The gesture generation module 104 may generate at least one gesture corresponding to the target text according to the target text through a text gesture generation model.
[0083] When the gesture generation module 104 generates multiple gestures, for example, the gesture generation module 104 generates multiple first gestures corresponding to the target text according to the target text, the interaction module 102 is further configured to present the multiple first gestures to the user and determine the target gesture selected by the user from the multiple first gestures. Accordingly, the prompt information includes the above target gesture.
[0084] In some possible implementations, the action generation subsystem 200 includes an action generation module 202. The action generation module 202 is used to input the posture sequence in the prompt information into the action generation model based on prompt learning and training, and obtain the target action corresponding to the target text. In other words, the input of the action generation model can be postures and the order of postures. It should be noted that the input of the action generation model can also be postures. For example, when the prompt information includes a posture, the input of the action generation model can be a posture. Further, the action generation subsystem 200 can also include an interaction module 204. The interaction module 204 is used to output the target action corresponding to the target text.
[0085] The models used by the prompt subsystem 100 and the action generation subsystem 200, such as the text gesture generation model and the action generation model, are not dependent on each other during the training process. They can be run one after the other during the reasoning process, or they can be split and run independently according to the needs of downstream tasks. The text gesture generation model and the action generation model can be run on a single graphics card during the training stage, such as a V100 graphics card with a size of 32 GigaBytes (GB). In the reasoning stage, the hardware requirements are relatively small. Similarly, the action generation system 10 is deployed on a single V100 graphics card, which can process the generation of about 14,000 texts to actions at the same time, taking about 0.0159 seconds, and can achieve real-time response to meet customer needs.
[0086] Next, the action generation method of the present application will be introduced from the perspective of the action generation system 10.
[0087] See also Figure 2 The flow chart of the action generation method shown in FIG. 1 comprises the following steps:
[0088] S201 : The action generation system 10 receives a target text input by a user.
[0089] The target text refers to the text input by the user. For example, the target text may be the text input by the user through the interactive interface; for another example, the target text may be the text input by the user through voice. In some examples, the target text may be an open domain text (also referred to as open text). Among them, the open domain text refers to the text with no restrictions on the format, content, or subject. In other words, the target text may be open domain data. In other examples, the target text may also be the text with limited format, content, or subject. In other words, the target text may be closed set data. Open domain data is a concept opposite to closed set data. Closed set data may include limited samples, open domain data may be samples in the real world, and the number of samples in open domain data may be infinite.
[0090] The target text may include a behavior description. When the target text is an open domain text, the target text may include multiple behavior descriptions, which may correspond to different action generation requirements, and each text is regarded as a downstream task.
[0091] S203 : The action generation system 10 generates a plurality of first gestures corresponding to the target text according to the target text.
[0092] Specifically, the action generation system 10 can generate a plurality of first gestures corresponding to the target text through a text gesture generation model according to the target text, wherein the text gesture generation model can take the text as input or take the text features extracted from the text as input.
[0093] In some possible implementations, the text gesture generation model takes text features as input and takes gestures as output. Accordingly, the action generation system 10 can extract text features from the target text, input the text features into the text gesture generation model, and generate at least one gesture corresponding to the target text. Among them, the at least one gesture may include one gesture, or include multiple first gestures. In this way, even if no real text has been seen during the training process, the text gesture generation model can also be directly applied to unseen open domain texts.
[0094] In some other possible implementations, the text gesture generation model may take text as input and take gesture as output, and accordingly, the action generation system 10 may input the target text into the text gesture generation model to generate at least one gesture corresponding to the target text. The at least one gesture may include one gesture, or include multiple first gestures.
[0095] S205 . The action generation system 10 presents a plurality of first gestures to the user.
[0096] Specifically, the action generation system 10 can present multiple first postures to the user through a prompt interface. Wherein, the prompt interface can be a graphical user interface (GUI). The prompt interface can include multiple first postures, and provide a selection control corresponding to each of the multiple first postures. The selection control can be a display control, for example, it can be a selection box corresponding to each first posture, and the user can select the first posture by clicking the selection box. The selection control can also be an implicit control, and the user can select the first posture by clicking the first posture.
[0097] S207 . The action generation system 10 determines that the prompt information includes a target posture selected by the user from a plurality of first postures.
[0098] The action generation system 10 can determine the target posture selected by the user from the multiple first postures in response to the user's submission operation or confirmation operation, and determine that the prompt information includes the above-mentioned target posture. Further, the action generation system 10 can also obtain the sequence information of the postures in the prompt information, such as the sequence information of the target posture selected by the user, and determine that the prompt information also includes the sequence information of the postures.
[0099] In some possible implementations, the sequence information may indicate the position of at least one gesture in the target action (action to be generated) corresponding to the target text. For example, when the target action is a gesture sequence formed by n gestures, the sequence information may indicate that the current gesture is the i-th gesture in the gesture sequence, where i and n are positive integers and i≤n.
[0100] In some other possible implementations, when the prompt information includes multiple gestures, the sequence information may also indicate the positional relationship of the multiple gestures. For example, when the prompt information includes gesture i and gesture j, the sequence information may indicate that gesture i is in front and gesture j is in the back, that is, the position of gesture i in the target action is ahead of the position of gesture j in the target action.
[0101] The following is an example of the order in which the action generation system 10 obtains posture information.
[0102] In some possible implementations, when the user selects a target posture from multiple first postures, the action generation system 10 can also capture the selection operation trigger time, and determine the sequence information of the target posture based on the trigger time. When the user triggers a submission operation or a confirmation operation, the action generation system 10 can obtain the sequence information of the target posture.
[0103] In some other possible implementations, when the user selects a target posture from a plurality of first postures, the action generation system 10 may display the order of the target postures according to the selection operation trigger time, for example, displaying the number of each target posture (including but not limited to the number of the target posture in the entire target action), and the action generation system 10 also supports the user to adjust the order of the target postures. When the user adjusts the order of the target postures, the action generation system 10 may obtain the adjusted order, thereby obtaining the order information. When the user does not adjust the order of the target postures, the action generation system 10 may obtain the order of the currently displayed target postures as the order information.
[0104] The above S203 to S207 are one implementation of "the action generation system 10 determines the prompt information corresponding to the target text according to the target text" in the embodiment of the present application. In other possible implementations of the embodiment of the present application, the action generation system 10 may also determine the prompt information in other ways. For example, the action generation system 10 may determine the gesture generated by the text gesture generation model as the prompt information without performing the manual confirmation step, especially when the text gesture generation model outputs a gesture, the action generation system 10 directly determines the gesture as the prompt information.
[0105] S209, the action generation system 10 inputs the prompt information into the action generation model trained based on prompt learning to obtain the target action corresponding to the target text.
[0106] Prompt learning refers to modifying the input and output of downstream tasks without significantly changing the structure and parameters of the pre-trained model (such as the CLAP model), such as modifying the style of "prompt information" to make it suitable for the pre-trained model.
[0107] In the present embodiment, the action generation model is a pre-trained model, which can be a CLAP model. The input of the action model can be prompt information, such as a gesture in the prompt information. Further, the input of the action model can include sequential information of the gesture. The output of the action model can be a target action, and the target action includes a gesture sequence formed by a plurality of gestures corresponding to the target text. The gesture sequence can include the gesture in the prompt information, such as the target gesture. Further, when the prompt information also includes sequential information, the position of the gesture in the prompt information in the gesture sequence matches the sequential information in the prompt information.
[0108] The action generation model in this embodiment can draw on prompt learning in natural language processing, for example, it can be obtained by "prompt-reconstruction" training. The action generation model can be a controllable generation model of text-action based on prompt information. In order to be able to flexibly control the corresponding action generation through the generated posture, the action generation model adopts the "mask-reconstruction" self-supervised training paradigm, so that the action generation model can centrally learn the dynamic model of the action. The learned dynamic model of the action is universal, so the action generation model (pre-trained action generation model) can be directly used in various downstream tasks for action generation.
[0109] After training the action generation model, the action generation system 10 can generate gestures based on the text, and then use the gestures to construct "prompt information", which is input into the action generation model to achieve the generation of text to action. The process from text to action can be seen in Figure 3 , the user inputs the target text, which can be a series of sentences. The series of sentences in the target text are input into the text gesture generation model, and a corresponding series of gestures can be generated as prompt information. Among them, the user can select the target gesture according to the sentence and the corresponding gesture, and determine the sequence information of the target gesture. The action generation system 10 can input the target gesture and the sequence information of the target gesture as prompt information into the action generation model to obtain a series of actions.
[0110] Based on the above description, it can be seen that the action generation method of the embodiment of the present application does not need to design an action generation model for each task, which enables the action generation model to meet different action generation requirements in real time. Especially for open domain texts, open domain texts may include multiple behavior descriptions and correspond to different action generation requirements. Each open domain text can be regarded as a downstream task. The action generation method of the embodiment of the present application does not need to fine-tune and train the action generation model for different texts, which reduces the computational overhead and time consumption of the action generation process.
[0111] It should be noted that Figure 2The key to realizing action generation in the illustrated embodiment lies in the action generation model. The training process of the action generation model is introduced below.
[0112] See also Figure 4 The schematic diagram of a training action generation model is shown. The action generation model can be trained by the action generation system 10 or by an independent training system or training platform. This embodiment uses the action generation system 10 to train the action generation model as an example.
[0113] Specifically, the action generation system 10 can obtain an original posture sequence, which can be represented as p1, ..., p k ,…p T The action generation system 10 may obtain the original posture sequence from an open source dataset, or obtain the original posture sequence through motion capture. Then the action generation system 10 may mask the original posture sequence to obtain a masked posture sequence. For example, the action generation system 10 may perform masking on p1, ..., p k ,…p T Perform random masking to obtain The action generation system 10 inputs the mask posture sequence into the action generation model to obtain the reconstructed posture sequence. Figure 4 As shown, the action generation model may include a decoder, which may be a transformer decoder, for generating a mask pose sequence according to the mask pose sequence. Generate a reconstructed pose sequence p′1,…,p′ k …, p′ T Therefore, it is also called a motion generator. It should be noted that the action generation system 10 Before entering the motion generator, you can also combine the position information with Combined, for example, Perform position encoding and input the encoding result into the motion generator. The motion generation system 10 updates the parameters of the motion generation model according to the loss values of the original posture sequence and the reconstructed posture sequence.
[0114] Among them, the loss value can be determined according to the following loss function:
[0115]
[0116]
[0117] Among them, p is the posture, such as information such as joint angles, and v is the vector composed of all points corresponding to the three-dimensional character, specifically the constraint of position information. represents the loss from the reconstructed pose to the original pose, m represents the original pose sequence (or original action), m′ represents the reconstructed pose sequence (or reconstructed action), represents the loss of reconstructing the pose sequence to the original pose sequence, Represents divergence.
[0118] Furthermore, when training the action generation model, an encoder such as a transformer decoder can be used for encoding, and then reparameterization can be performed to obtain latent features (embedding), which can be input into a decoder to assist the decoder in action generation. Figure 4 As shown, the action generation system 10 can obtain the vector e of the science department μ and e ε , the original posture sequence p1,…,p k ,…p T and e μ 、e ε Position encoding is performed to obtain μ and ε. The latent feature z obtained by re-parameterization of μ and ε can be input into the decoder to assist the decoder in action generation.
[0119] This method trains the motion generation model in a "cue-reconstruction" manner. For different task requirements, this method does not require retraining or fine-tuning the motion generation model network. It only needs to adjust the format of the "cue information" to generate the corresponding action. It has the characteristics of strong controllability and flexibility.
[0120] The action generation method of the present application can generate gestures with the help of a text gesture generation model, thereby obtaining prompt information according to the gesture for action generation. Generally, the text gesture generation model can be trained with matching data (annotated data) of text and gesture. Considering the lack of open domain text and gesture matching data, and the open source data set is limited by the domain knowledge of the task and the collector's preference, resulting in poor versatility, the present application also provides a wordless training process.
[0121] The wordless training process of the present application directly samples text features from the feature space of the text encoder as training input (instead of using text as the input of the text gesture generation model). In this way, the need to collect a large amount of real-world text is avoided, and the training results can be well generalized to process real-world text. In other words, the wordless training process of the present application not only does not require the collection of text for training, but also can deal with the diversity problem of text. Even if no real text has been seen during the training process, the text gesture generation model of the present application can be directly applied to unseen open domain texts.
[0122] The training of the text gesture generation model is described below in conjunction with an embodiment.
[0123] See also Figure 5A schematic diagram of a training text gesture generation model is shown. The text gesture generation model can be trained by the action generation system 10 or by an independent training system or training platform. This embodiment uses the action generation system 10 to train the text gesture generation model as an example.
[0124] Specifically, the action generation system 10 can obtain text feature samples by sampling from the feature space. For example, the action generation system 10 can obtain text feature samples f by randomly sampling in the feature space. d , as shown below:
[0125]
[0126] Among them, f d is the text feature sample, ∈ is the sampling value, and b is the bias. By increasing b, we can avoid the data tending to be sampled centered on 0, which leads to over-concentration of sampling and limited diversity of text features. The denominator in the above formula is used to achieve normalization.
[0127] Then, the action generation system 10 may input the text feature sample into the text pose generation model to obtain at least one pose corresponding to the text feature sample. The action generation system 10 also extracts pose features from at least one pose corresponding to the text feature sample. For example, the action generation system 10 may extract pose features from at least one pose as a supervisory signal through a pose feature extraction model. The pose feature extraction model may be a text-pose alignment model (TPA).
[0128] The action generation system 10 can determine the contrast loss of the text feature sample and the posture feature, and update the parameters of the text posture generation model according to the contrast loss of the text feature sample and the posture feature. The contrast loss can be determined by the following formula:
[0129]
[0130] Among them, a represents a sample or data, b represents another sample or data, cossim represents cosine similarity, B represents batch size, and Pr represents probability probability. a , f b Represents posture feature and text feature samples, represents the loss of posture features extracted by TPA, represents the loss of pose feature to text feature sample. l It is the output of text-pose generation about the text feature f, which is in the feature space of VPoser and can be decoded into 3D pose p by VPoser(). pRefers to the encoder, such as the attitude encoder of TPA, E p () indicates the encoding result. 0.1×||p l ||2 is a regularization term used for regularization constraints. It should be noted that the bold symbols in formula (4) represent batches, for example
[0131] Based on the above description, it can be seen that the training process of the text gesture generation model does not use the text gesture annotation dataset throughout the whole process. The text features are obtained by sampling in the feature space. The gesture is the gesture obtained by using the model to input the text features. The gesture can obtain the gesture feature through TPA. The text feature samples and gesture features are corresponding. The action generation system 10 can be based on the contrast loss of the two, that is, the diagonal represents the match as 1, and the others are 0 as the target for training, thus realizing zero-sample training. Moreover, sampling training from the text feature space avoids the need to collect a large amount of real-world text, and the training results can generalize the processing of real-world text well.
[0132] In order to convert open domain text into "prompt information", the present application considers converting text into action elements, namely gestures, and then using the generated gestures to construct "prompt information" to generate actions. However, considering the lack of diversity in existing text gesture annotation datasets, the present application can use existing multimodal models to obtain supervisory signals for the training process. Based on this, a more refined text-3D character gesture multimodal model can be distilled from existing text-image multimodal models such as CLIP, such as TPA. TPA can provide supervisory signals for the training process of the text gesture generation model.
[0133] The training of the posture feature extraction model is described below in conjunction with an embodiment.
[0134] See also Figure 6 A schematic diagram of a training posture feature extraction model is shown. The posture feature extraction model can be trained by the action generation system 10 or by an independent training system or training platform. This embodiment uses the action generation system 10 to train the posture feature extraction model as an example.
[0135] Specifically, the action generation system 10 can obtain a posture sample, render the posture sample, obtain a multi-perspective posture image, and then encode the multi-perspective posture images separately, for example, by encoding the multi-perspective posture images separately through a CLIP image encoder, and obtain a first posture feature corresponding to the posture sample according to the encoding result. In some examples, the action generation system 10 can pool the encoded image features, for example, by average pooling, to obtain a first posture feature corresponding to the posture sample.
[0136] The process of extracting the first posture feature is a relatively complex overall process, which usually requires three-dimensional modeling of the posture data, obtaining multi-view images, using CLIP to extract features, and then performing average pooling. The embodiment of the present application uses TPA to simplify the feature extraction process. The simplified process can be to directly input the posture to TPA and output the posture feature. The process of simplifying the complex process in the dotted box to obtain a simplified posture feature extraction model (such as TPA) is distillation.
[0137] Specifically, the action generation system 10 also inputs the posture sample into the posture feature extraction model to obtain a second posture feature corresponding to the posture sample. The action generation system 10 updates the parameters of the posture feature extraction model according to the distillation loss of the first posture feature and the second posture feature. The distillation loss can be determined by the following formula:
[0138]
[0139] p is the posture input, is the target feature, specifically the first posture feature, Ep is the posture encoder of TPA, and Ep(p) can represent the second posture feature. represents the distillation loss. The first part of the distillation loss is the numerical difference between two features, and the second one is the cosine similarity, which characterizes the consistency of the directions of the two features.
[0140] The posture feature extraction model (such as TPA) of the embodiment of the present application can learn an end-to-end neural network, which learns the mapping between posture (such as the posture of a three-dimensional character model) to posture features (such as three-dimensional character features). Based on this mapping, combined with the text encoder of CLIP, open domain text-posture (3D posture) matching can be achieved.
[0141] It should be noted that the posture feature extraction model of the embodiment of the present application takes posture as input and posture feature as output. Using the distilled posture feature extraction model, posture features can be extracted from at least one posture corresponding to the text feature sample for training the text posture generation model.
[0142] Based on the above description, the training of the posture feature extraction model uses the image features obtained by image encoding of multi-view images of 3D postures generated by posture data, and distills them to obtain a posture feature extraction model (such as TPA). No text posture annotation dataset (a collection of text posture annotation data, or a collection of text posture matching data) is used, thus achieving zero-sample training.
[0143] It should be noted that the above embodiments provided in this application can be implemented independently or in combination as required, and this application does not impose any restrictions on this.
[0144] based on Figure 2 The action generation method of the embodiment shown in the present application provides an action generation system 10. Figure 1 As shown, the action generation system 10 is used to generate an action corresponding to the text according to the text, and the system 10 includes:
[0145] The interaction module 102 is used to receive the target text input by the user:
[0146] The gesture generating module 104 is used to determine prompt information corresponding to the target text according to the target text, wherein the prompt information includes at least one gesture:
[0147] The action generation module 202 is used to input the prompt information into the action generation model based on prompt learning training to obtain the target action corresponding to the target text, wherein the target action includes a gesture sequence formed by multiple gestures corresponding to the target text.
[0148] The interaction module 102 and the gesture generation module 104 may be modules in the prompt subsystem 100, and the action generation module 202 may be a module in the action generation subsystem 200. The action generation subsystem 200 may further include an interaction module 204, which may be used to output a target action corresponding to the target text.
[0149] It should be noted that the above module division method is only a possible implementation method provided in the embodiment of the present application. In other possible implementation methods, different module division methods can be used as needed, and the embodiment of the present application does not limit this.
[0150] The above-mentioned interaction module 102, gesture generation module 104 and action generation module 202 can be implemented by hardware modules or by software modules. Among them, the interaction module 102, gesture generation module 104 and action generation module 202 can be implemented by a computing device or a computing engine on a computing device. Below, the gesture generation module 104 is taken as an example for description.
[0151] When implemented by software, the posture generation module 104 may be an application or application module running on a computing device or a computing device cluster, such as a computing engine. The application may be provided to users in the form of a virtualized service. Virtualized services may include virtual machine (VM) services, bare metal server (BMS) services, and container services. Among them, the VM service may be a service that uses virtualization technology to virtualize a virtual machine (VM) resource pool on multiple physical hosts (such as computing devices) to provide users with VMs on demand for use. The BMS service is a service that virtualizes a BMS resource pool on multiple physical hosts to provide users with BMS on demand for use. The container service is a service that virtualizes a container resource pool on multiple physical hosts to provide users with containers on demand for use. VM is a simulated virtual computer, that is, a logical computer. BMS is a high-performance computing service that can be elastically scalable, and its computing performance is no different from that of a traditional physical machine, and it has the characteristics of secure physical isolation. Containers are a kernel virtualization technology that can provide lightweight virtualization to achieve the purpose of isolating user space, processes, and resources. It should be understood that the VM service, BMS service and container service in the above-mentioned virtualization services are merely specific examples. In actual applications, the virtualization service may also be other lightweight or heavyweight virtualization services, which are not specifically limited here.
[0152] When implemented by hardware, the gesture generation module 104 may include at least one computing device, such as a server, etc. Alternatively, the gesture generation module 104 may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), etc. The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0153] In some possible implementations, the gesture generation module 104 is specifically used to:
[0154] According to the target text, generating a plurality of first gestures corresponding to the target text;
[0155] presenting a plurality of first gestures to the user;
[0156] A target posture selected by a user from a plurality of first postures is determined, wherein the prompt information includes the target posture.
[0157] In some possible implementations, the prompt information may further include sequence information of at least one gesture, where the sequence information indicates the position of the at least one gesture in the target action, or when the prompt information includes multiple gestures, the sequence information indicates the positional relationship of the multiple gestures.
[0158] In some possible implementations, the action generation model is trained in the following way:
[0159] Get the original pose sequence;
[0160] Mask the original pose sequence to obtain a masked pose sequence;
[0161] Input the mask posture sequence into the action generation model to obtain the reconstructed posture sequence;
[0162] According to the loss values of the original pose sequence and the reconstructed pose sequence, the parameters of the action generation model are updated.
[0163] In some possible implementations, the gesture generation module 104 is specifically used to:
[0164] Extract text features from the target text;
[0165] The text features are input into a text gesture generation model to generate at least one gesture corresponding to the target text.
[0166] In some possible implementations, the text gesture generation model is trained in the following manner:
[0167] Sampling text feature samples from the feature space;
[0168] Inputting the text feature sample into a text gesture generation model to obtain at least one gesture corresponding to the text feature sample;
[0169] extracting a gesture feature from at least one gesture corresponding to the text feature sample;
[0170] According to the contrast loss of text feature samples and posture features, the parameters of the text posture generation model are updated.
[0171] In some possible implementations, the posture features are obtained by:
[0172] Using the posture feature extraction model obtained by distillation, a posture feature is extracted from at least one posture corresponding to the text feature sample, wherein the posture feature extraction model takes the posture as input and takes the posture feature as output.
[0173] In some possible implementations, the posture feature extraction model is trained in the following manner:
[0174] Get posture samples;
[0175] Rendering the posture sample to obtain multi-view posture images, encoding the multi-view posture images respectively, obtaining a first posture feature corresponding to the posture sample according to the encoding result, and inputting the posture sample into a posture feature extraction model to obtain a second posture feature corresponding to the posture sample;
[0176] According to the distillation loss of the first posture feature and the second posture feature, the parameters of the posture feature extraction model are updated.
[0177] The present application also provides a computing device 700. Figure 7 As shown, computing device 700 includes: bus 702, processor 704, memory 706 and communication interface 708. Processor 704, memory 706 and communication interface 708 communicate through bus 702. Computing device 700 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 700.
[0178] The bus 702 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The bus 702 may include a path for transmitting information between various components of the computing device 700 (eg, the memory 706, the processor 704, and the communication interface 708).
[0179] The processor 704 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0180] The memory 706 may include a volatile memory, such as a random access memory (RAM). The memory 706 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD). The memory 706 stores executable program code, and the processor 704 executes the executable program code to implement the aforementioned action generation method. Specifically, the memory 706 stores instructions for the action generation system 10 to execute the action generation method.
[0181] The communication interface 708 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 700 and other devices or communication networks.
[0182] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0183] like Figure 8 As shown, the computing device cluster includes at least one computing device 700. The memory 706 in one or more computing devices 700 in the computing device cluster may store the same instructions of the action generation system 10 for executing the action generation method.
[0184] In some possible implementations, one or more computing devices 700 in the computing device cluster may also be used to execute some instructions of the action generation system 10 for executing the action generation method. In other words, a combination of one or more computing devices 700 may jointly execute instructions of the action generation system 10 for executing the action generation method.
[0185] It should be noted that the memory 706 in different computing devices 700 in the computing device cluster can store different instructions for executing partial functions of the action generation system 10 .
[0186] Fig. 9 A possible implementation is shown. Fig. 9As shown, two computing devices 700A and 700B are connected via a communication interface 708. The memory in computing device 700A stores instructions for executing the functions of interaction module 102 and gesture generation module 104. The memory in computing device 700B stores instructions for executing the functions of action generation module 202 and interaction module 204. In other words, the memory 706 of computing devices 700A and 700B jointly stores instructions for the action generation system 10 to execute the action generation method.
[0187] Fig. 9 The connection mode between the computing device clusters shown may be based on the fact that the action generation method provided in this application needs to determine prompt information and obtain target actions. Therefore, it is considered that the functions implemented by the interaction module 102 and the gesture generation module 104 are executed by the computing device 700A, and the functions implemented by the action generation module 202 and the interaction module 204 are executed by the computing device 700B.
[0188] It should be understood that Fig. 9 The functions of the computing device 700A shown in FIG. 7 may also be completed by multiple computing devices 700. Similarly, the functions of the computing device 700B may also be completed by multiple computing devices 700.
[0189] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.10 A possible implementation is shown. Fig.10 As shown, two computing devices 700C and 700D are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device. In this type of possible implementation, the memory 706 in the computing device 700C stores instructions for executing the functions of the interaction module 102 and the gesture generation module 104. At the same time, the memory 706 in the computing device 700D stores instructions for executing the functions of the action generation module 202 and the interaction module 204.
[0190] Fig.10 The connection mode between the computing device clusters shown can be considered that the action generation method provided in this application needs to determine prompt information and obtain target actions. Therefore, it is considered that the functions implemented by the interaction module 102 and the gesture generation module 104 are executed by the computing device 700C, and the functions implemented by the action generation module 202 and the interaction module 204 are executed by the computing device 700D. It should be understood that Fig.10 The functions of the computing device 700C shown in FIG. 700A may also be completed by multiple computing devices 700. Similarly, the functions of the computing device 700D may also be completed by multiple computing devices 700.
[0191] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned application to the action generation system for executing the action generation method.
[0192] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned action generation method.
[0193] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. An action generation method, characterized in that: Applied to an action generation system, the action generation system is used to generate an action corresponding to the text according to the text, the method comprising: Receive target text input by the user; Determining prompt information corresponding to the target text according to the target text, wherein the prompt information includes at least one gesture; The prompt information is input into an action generation model based on prompt learning training to obtain a target action corresponding to the target text, wherein the target action includes a gesture sequence formed by multiple gestures corresponding to the target text.
2. The method according to claim 1, characterized in that The step of determining prompt information corresponding to the target text according to the target text includes: According to the target text, generating a plurality of first gestures corresponding to the target text; presenting the plurality of first gestures to the user; A target posture selected by the user from the plurality of first postures is determined, and the prompt information includes the target posture.
3. The method according to claim 1 or 2, characterized in that: The prompt information may further include sequence information of the at least one gesture, the sequence information indicating the position of the at least one gesture in the target action, or when the prompt information includes multiple gestures, the sequence information indicates the positional relationship of the multiple gestures.
4. The method according to any one of claims 1 to 3, characterized in that: The action generation model is trained in the following way: Get the original pose sequence; Masking the original posture sequence to obtain a masked posture sequence; Inputting the mask posture sequence into the action generation model to obtain a reconstructed posture sequence; The parameters of the action generation model are updated according to the loss values of the original posture sequence and the reconstructed posture sequence.
5. The method according to any one of claims 1 to 4, characterized in that: At least one gesture in the prompt information is generated in the following manner: extracting text features from the target text; The text features are input into a text gesture generation model to generate at least one gesture corresponding to the target text.
6. The method according to claim 5, characterized in that The text gesture generation model is trained in the following way: Sampling text feature samples from the feature space; Inputting the text feature sample into a text gesture generation model to obtain at least one gesture corresponding to the text feature sample; Extracting a gesture feature from at least one gesture corresponding to the text feature sample; According to the contrast loss between the text feature sample and the posture feature, the parameters of the text posture generation model are updated.
7. The method according to claim 6, characterized in that The step of extracting a gesture feature from at least one gesture corresponding to the text feature sample comprises: Using the posture feature extraction model obtained by distillation, a posture feature is extracted from at least one posture corresponding to the text feature sample, wherein the posture feature extraction model takes the posture as input and takes the posture feature as output.
8. The method according to claim 7, characterized in that The posture feature extraction model is trained in the following way: Get posture samples; Rendering the posture sample to obtain multi-view posture images, encoding the multi-view posture images respectively, obtaining a first posture feature corresponding to the posture sample according to the encoding result, and inputting the posture sample into the posture feature extraction model to obtain a second posture feature corresponding to the posture sample; According to the distillation loss of the first posture feature and the second posture feature, the parameters of the posture feature extraction model are updated.
9. An action generation system, the action generation system is used to generate an action corresponding to a text according to the text, the system comprising: An interactive module, used for receiving a target text input by a user; A gesture generation module, used to determine prompt information corresponding to the target text according to the target text, wherein the prompt information includes at least one gesture; The action generation module is used to input the prompt information into an action generation model based on prompt learning training to obtain a target action corresponding to the target text, wherein the target action includes a gesture sequence formed by multiple gestures corresponding to the target text.
10. The system according to claim 9, characterized in that The posture generation module is specifically used for: According to the target text, generating a plurality of first gestures corresponding to the target text; presenting the plurality of first gestures to the user; A target posture selected by the user from the plurality of first postures is determined, and the prompt information includes the target posture.
11. The system according to claim 9 or 10, characterized in that: The prompt information may further include sequence information of the at least one gesture, the sequence information indicating the position of the at least one gesture in the target action, or when the prompt information includes multiple gestures, the sequence information indicates the positional relationship of the multiple gestures.
12. The system according to any one of claims 9 to 11, characterized in that The action generation model is trained in the following way: Get the original pose sequence; Masking the original posture sequence to obtain a masked posture sequence; Inputting the mask posture sequence into the action generation model to obtain a reconstructed posture sequence; The parameters of the action generation model are updated according to the loss values of the original posture sequence and the reconstructed posture sequence.
13. The system according to any one of claims 9 to 12, characterized in that: The posture generation module is specifically used for: extracting text features from the target text; The text features are input into a text gesture generation model to generate at least one gesture corresponding to the target text.
14. The system according to claim 13, characterized in that The text gesture generation model is trained in the following way: Sampling text feature samples from the feature space; Inputting the text feature sample into a text gesture generation model to obtain at least one gesture corresponding to the text feature sample; Extracting a gesture feature from at least one gesture corresponding to the text feature sample; According to the contrast loss between the text feature sample and the posture feature, the parameters of the text posture generation model are updated.
15. The system according to claim 14, characterized in that The posture feature is obtained by: Using the posture feature extraction model obtained by distillation, a posture feature is extracted from at least one posture corresponding to the text feature sample, wherein the posture feature extraction model takes the posture as input and takes the posture feature as output.
16. The system according to claim 15, characterized in that The posture feature extraction model is trained in the following way: Get posture samples; Rendering the posture sample to obtain multi-view posture images, encoding the multi-view posture images respectively, obtaining a first posture feature corresponding to the posture sample according to the encoding result, and inputting the posture sample into the posture feature extraction model to obtain a second posture feature corresponding to the posture sample; According to the distillation loss of the first posture feature and the second posture feature, the parameters of the posture feature extraction model are updated.
17. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the computing device cluster executes the method as described in any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that: The method comprises computer-readable instructions; the computer-readable instructions are used to implement the method according to any one of claims 1 to 8.
