Stylized motion generation method based on detail attention

By introducing a motion detail attention module and adversarial training into motion style transfer, the problem of ignoring local details in the existing technology is solved, and stylized motion generation with higher quality and expressiveness is achieved.

CN118570346APending Publication Date: 2024-08-30SHANGHAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing motion style transfer methods have limitations in processing detailed motion features, resulting in the generated animation lacking accuracy and vividness in style expression and ignoring local details.

Method used

A stylized motion generation method based on detail attention is proposed. The motion detail attention (MD-ATN) module is used to connect shallow and deep features through attention mechanism and normalization, calculate weighted statistics, and generate stylized motion. Features, combined with generator and multi-style discriminator for adversarial training, improve detail quality and expressiveness.

Benefits of technology

The detailed quality and expressiveness of stylized motion are significantly improved. The generated animation has better overall performance in terms of visual quality and realism, and can more accurately transfer and express the specified motion style while retaining rich detailed information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570346A
    Figure CN118570346A
Patent Text Reader

Abstract

The invention relates to a detail attention-based stylized motion generation method, which comprises the following steps of: preprocessing a stylized motion sequence data set, and defining a required motion style; respectively inputting the preprocessed motion sequence data set into a style encoder and a content encoder of a network to obtain style features and content features of a shallow layer and a deep layer; a motion detail attention MD-ATN module is used in a decoder to connect the extracted shallow and deep features, and an attention mechanism and normalization are used to fuse embedded features of different levels so as to generate stylized motion features; generating a stylized motion sequence through a generator by using the stylized motion features; a multi-style discriminator is used for carrying out true and false classification on the generated stylized motion sequence, and the sense of reality of motion generation is enhanced through adversarial training. According to the method, the specified exercise style is migrated and expressed more accurately while the exercise content is reserved, and the detail quality and expressive force of the generated stylized exercise are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer animation and deep learning, and in particular to a stylized motion generation method based on detail attention. Background Art

[0002] Motion style transfer technology aims to apply a specific motion style, such as emotion, age, or state, to a given motion content, thereby creating an expressive animation sequence. This technology has important application value in filmmaking, game development, and virtual reality. However, existing motion style transfer methods have limitations in processing motion detail features.

[0003] First, in the feature space of style motion, the mean and variance of features are calculated globally, which causes local details to be largely ignored.

[0004] Second, although some methods use attention mechanisms to capture local style features, they are usually derived from deeper features, which causes low-level details to be ignored.

[0005] Third, existing methods simply integrate the re-weighted style features into the content features without considering the feature distribution well.

[0006] Current research ignores local details in motion sequences, resulting in the lack of accuracy and vividness in the style expression of the generated animation. Therefore, how to generate high-quality stylized motion with good details is the focus of this article's stylized motion generation method. Summary of the invention

[0007] The present invention aims to overcome the shortcomings of existing motion style transfer technology in processing motion detail features, and proposes a stylized motion generation method based on detail attention. The present invention pays special attention to improving the detail quality and expressiveness of stylized motion generation to generate more realistic animation sequences. The core of the present invention is to propose a new motion detail attention (MD-ATN) module and design a new motion detail feature loss optimization target based on the module. The MD-ATN module uses attention mechanism and normalization to process global and local features. It connects the shallow and deep features of the motion and calculates weighted statistics using these features as the distribution of the attention weighted output of all style feature points. In this way, the present invention can more accurately transfer and express the specified motion style while retaining the motion content, significantly improving the detail quality and expressiveness of the generated stylized motion.

[0008] In order to achieve the above object, the present invention adopts the following technical solution:

[0009] A stylized motion generation method based on detail attention, the steps are as follows:

[0010] Step 1: Preprocessing of motion data set:

[0011] Preprocess the stylized motion sequence dataset and define the required motion style; the motion sequence dataset contains style features of style motion and content features of content motion;

[0012] Step 2: Extract style features and content features:

[0013] Input the motion sequence data set preprocessed in step 1 into the style encoder and content encoder of the network respectively to obtain shallow and deep style features and content features;

[0014] Step 3: Obtain stylized motion features:

[0015] In the decoder, the motion detail attention MD-ATN module is used to connect the shallow and deep features extracted in step 2, and the embedded features of different levels are fused using the attention mechanism and normalization to generate stylized motion features;

[0016] Step 4: Generate stylized motion sequence:

[0017] Using the stylized motion features in step 3, a stylized motion sequence is generated by a generator;

[0018] Step 5: Identify motion sequences and generate adversarial network training:

[0019] A multi-style discriminator is used to classify and identify the stylized motion sequence generated in step 4 as true or false, and adversarial training is used to enhance the realism of the generated motion and generate a realistic animation sequence.

[0020] Preferably, in step 1, the motion data set preprocessing comprises the following steps:

[0021] 1-1: Using the Xia dataset and the Bandai-Namco Research-Motion dataset;

[0022] 1-2: Relocate the motion data to a single CMU skeleton system with 21 joints to obtain a motion sequence dataset;

[0023] 1-3: Randomly use 10% of the data in the motion sequence dataset as test data and 90% of the data as training data;

[0024] 1-4: The training data is downsampled to half of the original frame rate and divided into 64-frame segments. The motion data less than T frames are padded with the first and last frames;

[0025] 1-5: In order to stably train the neural network, the motion data is scaled by subtracting the mean pose from the training data and dividing it by the standard deviation of the training data.

[0026] Preferably, in step 2, extracting style features and content features includes the following steps:

[0027] 2-1: Use the spatiotemporal graph convolutional network ST-GCN as the backbone network;

[0028] 2-2: Use the style encoder to extract the style features of the style motion input in step 1. The style encoder is mainly composed of two residual blocks of ST-GCN and activated by LReLU;

[0029] 2-3: Use the content encoder to extract the content features of the content motion input in step 1. The content encoder consists of two residual blocks of ST-GCN. Each ST-GCN residual block is equipped with an instance normalization layer IN, which is used to normalize the feature statistics of each channel to eliminate style changes in motion. LReLU activation is used;

[0030] 2-4: In each downsampling encoding step, for the temporal dimension of the motion sequence, an average pooling method is used; for the spatial dimension of the motion sequence, continuous joint nodes of the local body parts are averaged;

[0031] 2-5: The style features and content features obtained by the style encoder and content encoder are passed into the decoder.

[0032] Preferably, in step 3, using the MD-ATN module to generate stylized motion features comprises the following steps:

[0033] 3-1: Using a bilinear interpolation layer, the shallow features passed in step 2 are sampled into the same shape as the deep features, and are concatenated along the channel dimension to connect the shallow features with the deep features;

[0034] 3-2: The connected content features and style features obtained in step 3-1 are instance normalized, and then matrix multiplication is performed on the processed content features and style features through a 1×1 learnable convolution layer to obtain an attention map A;

[0035] 3-3: The attention map A obtained in step 3-2 is used for style feature statistics, and the attention weighted average M and the attention weighted standard deviation S are obtained by calculation;

[0036] 3-4: For each position and each channel of the normalized content feature, the corresponding proportion in the attention-weighted standard deviation S and the displacement data in the attention-weighted mean M are used to calculate the stylized motion feature.

[0037] Preferably, in step 4, generating a stylized motion sequence by a generator includes the following specific operation steps:

[0038] 4-1: Injecting the stylized motion features obtained in step 3 into the content motion;

[0039] 4-2: Generate stylized motion sequences and feed the results into the discriminator.

[0040] Preferably, in step 5, using a multi-style discriminator to discriminate motion sequences and generate adversarial network training comprises the following steps:

[0041] 5-1: The discriminator determines whether the input motion sequence is real motion data or the stylized motion sequence generated in step 4. If it incorrectly judges the style of the motion or the authenticity of the motion, it will be punished;

[0042] 5-2: Train the stylized motion generation network;

[0043] 5-3: The total loss function of the training network consists of action detail feature loss, adversarial loss, cycle consistency loss, content consistency loss, style reconstruction loss, and difference sensitivity loss;

[0044] 5-4: The network model training uses the Adam optimization algorithm, with 100K iterations on a single NVIDIA GeForce RTX 3090 GPU, a batch size of 8, and a training time of 6 hours.

[0045] Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant advantages:

[0046] 1. The present invention proposes a motion detail attention (MD-ATN) module, which pays special attention to the local features of motion and enhances the ability to capture motion details through the attention mechanism; the MD-ATN module innovatively connects the shallow and deep features of motion, realizes the multi-level fusion of features, and thus considers both global and local information in the process of style transfer;

[0047] 2. The present invention designs an optimization target for motion detail feature loss, specifically regularizes the local features of motion, further improves the quality of style transfer, and ensures that the generated motion has both the target style and retains rich detail information;

[0048] 3. Compared with the existing stylized motion generation method, the present invention can generate more detailed stylized motion and has better comprehensive performance in visual quality and realism;

[0049] 4. The present invention can be widely used in film production, game development, virtual reality, augmented reality and other fields, providing these industries with an efficient and expressive motion style transfer solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A flowchart of the method of the present invention.

[0051] Figure 2 The figure is an overall flow chart of the method of the present invention.

[0052] Figure 3 It is the motion detail attention (MD-ATN) module of the method of the present invention.

[0053] Figure 4 A comparison chart of the results of the detail-attention-based stylized motion generation method designed for the method of the present invention and multiple existing methods. DETAILED DESCRIPTION

[0054] The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0055] Embodiment 1:

[0056] In this embodiment, if Figure 1-2 As shown in FIG. 1 , a stylized motion generation method based on detail attention includes the following steps:

[0057] A stylized motion generation method based on detail attention, the steps are as follows:

[0058] Step 1: Preprocessing of motion data set:

[0059] Preprocess the stylized motion sequence dataset and define the required motion style; the motion sequence dataset contains style features of style motion and content features of content motion;

[0060] Step 2: Extract style features and content features:

[0061] Input the motion sequence data set preprocessed in step 1 into the style encoder and content encoder of the network respectively to obtain shallow and deep style features and content features;

[0062] Step 3: Obtain stylized motion features:

[0063] In the decoder, the motion detail attention MD-ATN module is used to connect the shallow and deep features extracted in step 2, and the embedded features of different levels are fused using the attention mechanism and normalization to generate stylized motion features;

[0064] Step 4: Generate stylized motion sequence:

[0065] Using the stylized motion features in step 3, a stylized motion sequence is generated by a generator;

[0066] Step 5: Identify motion sequences and generate adversarial network training:

[0067] A multi-style discriminator is used to classify and identify the stylized motion sequence generated in step 4 as true or false, and adversarial training is used to enhance the realism of the generated motion and generate a realistic animation sequence.

[0068] The method of this embodiment adopts a new motion detail attention (MD-ATN) module, and optimizes the target based on the motion detail feature loss of this module. The stylized motion generated by the method of this embodiment has more motion details and can maintain a good balance between motion content preservation and style transfer.

[0069] Embodiment 2:

[0070] This embodiment is basically the same as the first embodiment, with the following special features:

[0071] In step 1, the motion data set preprocessing includes the following steps:

[0072] 1-1: Using the Xia dataset and the Bandai-Namco Research-Motion dataset;

[0073] 1-2: Relocate the motion data to a single CMU skeleton system with 21 joints to obtain a motion sequence dataset;

[0074] 1-3: Randomly use 10% of the data in the motion sequence dataset as test data and 90% of the data as training data;

[0075] 1-4: The training data is downsampled to half of the original frame rate and divided into 64-frame segments. The motion data less than T frames are padded with the first and last frames;

[0076] 1-5: In order to stably train the neural network, the motion data is scaled by subtracting the mean pose from the training data and dividing it by the standard deviation of the training data.

[0077] In step 2, extracting style features and content features includes the following steps:

[0078] 2-1: Use the spatiotemporal graph convolutional network ST-GCN as the backbone network;

[0079] 2-2: Use the style encoder to extract the style features of the style motion input in step 1. The style encoder is mainly composed of two residual blocks of ST-GCN and activated by LReLU;

[0080] 2-3: Use the content encoder to extract the content features of the content motion input in step 1. The content encoder consists of two residual blocks of ST-GCN. Each ST-GCN residual block is equipped with an instance normalization layer IN, which is used to normalize the feature statistics of each channel to eliminate style changes in motion. LReLU activation is used;

[0081] 2-4: In each downsampling encoding step, for the temporal dimension of the motion sequence, an average pooling method is used; for the spatial dimension of the motion sequence, continuous joint nodes of the local body parts are averaged;

[0082] 2-5: The style features and content features obtained by the style encoder and content encoder are passed into the decoder.

[0083] In step 3, using the MD-ATN module, generating stylized motion features includes the following steps:

[0084] 3-1: Using a bilinear interpolation layer, the shallow features passed in step 2 are sampled into the same shape as the deep features, and are concatenated along the channel dimension to connect the shallow features with the deep features;

[0085] 3-2: The connected content features and style features obtained in step 3-1 are instance normalized, and then matrix multiplication is performed on the processed content features and style features through a 1×1 learnable convolution layer to obtain an attention map A;

[0086] 3-3: The attention map A obtained in step 3-2 is used for style feature statistics, and the attention weighted average M and the attention weighted standard deviation S are obtained by calculation;

[0087] 3-4: For each position and each channel of the normalized content feature, the corresponding proportion in the attention-weighted standard deviation S and the displacement data in the attention-weighted mean M are used to calculate the stylized motion feature.

[0088] In step 4, generating a stylized motion sequence through a generator includes the following specific operation steps:

[0089] 4-1: Injecting the stylized motion features obtained in step 3 into the content motion;

[0090] 4-2: Generate stylized motion sequences and feed the results into the discriminator.

[0091] In step 5, using a multi-style discriminator to identify motion sequences and generate adversarial network training includes the following steps:

[0092] 5-1: The discriminator determines whether the input motion sequence is real motion data or the stylized motion sequence generated in step 4. If it incorrectly judges the style of the motion or the authenticity of the motion, it will be punished;

[0093] 5-2: Train the stylized motion generation network;

[0094] 5-3: The total loss function of the training network consists of action detail feature loss, adversarial loss, cycle consistency loss, content consistency loss, style reconstruction loss, and difference sensitivity loss;

[0095] 5-4: The network model training uses the Adam optimization algorithm, with 100K iterations on a single NVIDIA GeForce RTX 3090 GPU, a batch size of 8, and a training time of 6 hours.

[0096] This embodiment adopts a motion detail attention (MD-ATN) module, which pays special attention to the local features of motion and enhances the ability to capture motion details through the attention mechanism; the MD-ATN module innovatively connects the shallow and deep features of motion, realizes the multi-level fusion of features, and thus considers both global and local information in the style transfer process; this embodiment considers the optimization goal of motion detail feature loss and specifically regularizes the local features of motion, further improving the quality of style transfer and ensuring that the generated motion has both the target style and retains rich detail information; compared with the existing stylized motion generation method, the method of this embodiment can generate more detailed stylized motion and has better comprehensive performance in visual quality and realism.

[0097] Embodiment three:

[0098] This embodiment is basically the same as the above embodiment, with the following special features:

[0099] The data set preprocessing in step 1 includes the following operations:

[0100] 1-1: The Xia dataset contains 572 motion clips, which can be classified into 6 types of motion content including "walking, running, jumping" and 8 types of motion styles including "innocent, depressed, and old"; the Bandai-Namco Research-Motion Dataset-2 dataset contains 2902 motion clips, which can be classified into 10 types of motion content including "walking, turning, waving" and 7 types of motion styles including "masculine, feminine, and youthful";

[0101] 1-2: For the Bandai-Namco Research-Motion Dataset-2 dataset, first delete its ROOT joint named "joint Root" and set its child joint "Hips" to ROOT; relocate the data in the two motion datasets to a single CMU skeleton system with J = 21 joints;

[0102] 1-3: Randomly use 10% of the above data as test data and the remaining 90% as training data;

[0103] 1-4: The training data is downsampled to half of the original frame rate (60fps) and divided into segments of T = 64 frames. The motion data of less than T frames is padded with the first and last frames. The motion sequence is represented as m∈R (T×d×J) , where T represents the number of frames, d=7 represents the feature dimension, and J represents the number of joints;

[0104] 1-5: To stably train the neural network, the motion data is scaled by subtracting the mean pose from the training data and dividing by their standard deviation.

[0105] The step 2 of extracting style features and content features includes the following operations:

[0106] 2-1: Use the spatiotemporal graph convolutional network (ST-GCN) as the backbone network and maintain the consistency of the graph and the human body structure through graph pooling;

[0107] 2-2: Use the style encoder to extract the style features of the style motion input in step 1. The style encoder is mainly composed of two residual blocks of ST-GCN. Using LReLU activation, the style features extracted from the xth layer can be expressed as:

[0108]

[0109] Where m s represents the style motion data, E x represents the style encoder of the xth layer;

[0110] 2-3: Use the content encoder to extract the content features of the content motion input in step 1. The content encoder consists of two residual blocks of ST-GCN. Each ST-GCN residual block is equipped with an instance normalization layer (IN) to standardize the feature statistics of each channel to eliminate style changes in motion. Using LReLU activation, the content features extracted from the xth layer can be expressed as:

[0111]

[0112] Where m c represents the style motion data, G x represents the style encoder of the xth layer;

[0113] 2-4: In each downsampling encoding step, for the temporal dimension of the motion sequence, the traditional average pooling method is used; for the spatial dimension of the motion sequence, the continuous joint nodes of the local body parts are averaged;

[0114] 2-5: The style features and content features obtained by the style encoder and content encoder are passed into the decoder.

[0115] The step 3 uses the MD-ATN module to obtain stylized motion features, including the following operations. The framework diagram of MD-ATN is as follows: Figure 3 As shown:

[0116] 3-1: Use the bilinear interpolation layer to sample the shallow features passed in step 2 into the same shape as the deep features, and concatenate them along the channel dimension to connect the shallow features with the deep features. This process can be expressed as

[0117]

[0118] The * in the table indicates c or s, which represent content features and style features respectively. x represents a bilinear interpolation layer, and ⊕ represents a concatenation operation;

[0119] 3-2: The concatenated content features and style features obtained in 3-1 are instance-normalized, and passed through a 1×1 learnable convolution layer, and then matrix multiplication is performed on the processed content features and style features to obtain the attention map A. This process can be expressed as:

[0120]

[0121] and They represent the content features and style features after the 1×1 learnable convolution layer, Represents matrix multiplication;

[0122] 3-3: Use the attention map A obtained in 3-2 for style feature statistics, and calculate the attention weighted average M and attention weighted standard deviation S. The calculation formula is as follows:

[0123]

[0124] where · represents the matrix dot product;

[0125] 3-4: For each position and each channel of the normalized content feature, the stylized motion feature is calculated using the corresponding scale in S and the displacement data in M:

[0126]

[0127] The step 4 of generating a stylized motion sequence by a generator comprises the following operations:

[0128] 4-1: Inject the stylized motion features obtained in step 3 into the content motion;

[0129] 4-2: Generate stylized motion sequences and feed the results into the discriminator.

[0130] The multi-style discriminator in step 5 identifies the motion sequence and generates adversarial network training, which includes the following operations:

[0131] 5-1: The discriminator determines whether the input motion sequence is real motion data or the motion sequence generated in step 4. If it incorrectly judges the style of the motion or the authenticity of the motion, it will be punished;

[0132] 5-2: Train the stylized motion generation network;

[0133] 5-3: Loss function is composed of action detail feature loss Adversarial Loss Cycle consistency loss Content consistency loss Style reconstruction loss Difference Sensitive Loss The action detail feature loss The loss term proposed in the present invention is used to make the stylized features consistent with the transformation results of the MD-ATN module, so that the model can generate better stylized outputs for local details. The quality of arbitrary motion style transfer is improved by regularizing the generated motion local features, which is expressed by the following equation:

[0134]

[0135] Where E x (m cs) represents the shallow and deep features extracted from the output motion, represents the embedded features fused by the MD-ATN modules corresponding to different layers, and x represents the number of layers.

[0136] The expression of the total loss function is as follows:

[0137]

[0138] where λ adv ,λ cyc ,λ con ,λ sty ,λ mdf and λ ds For each loss term, the hyperparameters are minimized To train the network.

[0139] 5-4: The network model training uses the Adam optimization algorithm, with 100K iterations on a single NVIDIA GeForce RTX 3090 GPU (24GB), a batch size of 8, and a training time of approximately 6 hours.

[0140] This embodiment selects the Xia dataset to verify the performance of the method of the present invention. The method of the present invention is used to realize the process of generating three stylized motions: "childlike style migration to angry jumping", "frustrated style migration to old jumping", and "sexy style migration to neutral walking", and is compared with the current advanced stylized motion generation methods: the method proposed by Aberman et al. in 2020, the method proposed by Park et al. in 2021, and the method proposed by Jang et al. in 2022. The comparison between the method of this embodiment and the existing stylized motion generation method is as follows: Figure 4 Compared with other methods, the results produced by the method of this embodiment retain the most local features and achieve a good balance between content features and style features, so the generated actions are more expressive in style and of higher quality.

[0141] It can be seen from the above embodiments that the method of the present invention overcomes the limitations of the prior art, and fully considers local details and low-level details in the global calculation analysis. The present invention combines feature distribution to generate high-quality stylized motion animation sequences with good details, and the generated animation is extremely excellent in the accuracy and vividness of style expression. The present invention pays special attention to improving the detail quality and expressiveness of stylized motion generation to generate more realistic animation sequences. The core of the present invention is to propose a new motion detail attention (MD-ATN) module and design a new motion detail feature loss optimization target based on the module. The MD-ATN module uses attention mechanism and normalization to process global and local features. It connects the shallow and deep features of the motion and calculates weighted statistics as the distribution of the attention weighted output of all style feature points. In this way, the present invention can more accurately migrate and express the specified motion style while retaining the motion content, significantly improving the detail quality and expressiveness of the generated stylized motion.

[0142] The above describes the embodiments of the present invention in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made according to the purpose of the invention. Any changes, modifications, substitutions, combinations or simplifications made according to the spirit and principle of the technical solution of the present invention should be equivalent replacement methods. As long as they meet the purpose of the invention and do not deviate from the technical principles and inventive concepts of the present invention, they belong to the protection scope of the present invention.

Claims

1. A stylized motion generation method based on detail attention, characterized in that: The steps are as follows: Step 1: Preprocessing of motion data set: Preprocess the stylized motion sequence dataset and define the required motion style; the motion sequence dataset contains style features of style motion and content features of content motion; Step 2: Extract style features and content features: Input the motion sequence data set preprocessed in step 1 into the style encoder and content encoder of the network respectively to obtain shallow and deep style features and content features; Step 3: Obtain stylized motion features: In the decoder, the motion detail attention MD-ATN module is used to connect the shallow and deep features extracted in step 2, and the embedded features of different levels are fused using the attention mechanism and normalization to generate stylized motion features; Step 4: Generate stylized motion sequence: Using the stylized motion features in step 3, a stylized motion sequence is generated by a generator; Step 5: Identify motion sequences and generate adversarial network training: A multi-style discriminator is used to classify and identify the stylized motion sequence generated in step 4 as true or false, and adversarial training is used to enhance the realism of the generated motion and generate a realistic animation sequence.

2. The method for generating stylized motion based on detail attention according to claim 1, characterized in that: In step 1, the motion data set preprocessing includes the following steps: 1-1: Using the Xia dataset and the Bandai-Namco Research-Motion dataset; 1-2: Relocate the motion data to a single CMU skeleton system with 21 joints to obtain a motion sequence dataset; 1-3: Randomly use 10% of the data in the motion sequence dataset as test data and 90% of the data as training data; 1-4: The training data is downsampled to half of the original frame rate and divided into 64-frame segments. The motion data less than T frames are padded with the first and last frames. 1-5: In order to stably train the neural network, the motion data is scaled by subtracting the mean pose from the training data and dividing it by the standard deviation of the training data.

3. The method for generating stylized motion based on detail attention according to claim 1, characterized in that: In step 2, extracting style features and content features includes the following steps: 2-1: Use the spatiotemporal graph convolutional network ST-GCN as the backbone network; 2-2: Use the style encoder to extract the style features of the style motion input in step 1. The style encoder is mainly composed of two residual blocks of ST-GCN and activated by LReLU; 2-3: Use the content encoder to extract the content features of the content motion input in step 1. The content encoder consists of two residual blocks of ST-GCN. Each ST-GCN residual block is equipped with an instance normalization layer IN, which is used to normalize the feature statistics of each channel to eliminate style changes in motion. LReLU activation is used; 2-4: In each downsampling encoding step, for the temporal dimension of the motion sequence, an average pooling method is used; for the spatial dimension of the motion sequence, continuous joint nodes of the local body parts are averaged; 2-5: The style features and content features obtained by the style encoder and content encoder are passed into the decoder.

4. The method for generating stylized motion based on detail attention according to claim 1, characterized in that: In step 3, using the MD-ATN module, generating stylized motion features includes the following steps: 3-1: Using a bilinear interpolation layer, the shallow features passed in step 2 are sampled into the same shape as the deep features, and are concatenated along the channel dimension to connect the shallow features with the deep features; 3-2: The connected content features and style features obtained in step 3-1 are instance normalized, and then matrix multiplication is performed on the processed content features and style features through a 1×1 learnable convolution layer to obtain an attention map A; 3-3: The attention map A obtained in step 3-2 is used for style feature statistics, and the attention weighted average M and the attention weighted standard deviation S are obtained by calculation; 3-4: For each position and each channel of the normalized content feature, the corresponding proportion in the attention-weighted standard deviation S and the displacement data in the attention-weighted mean M are used to calculate the stylized motion feature.

5. The method for generating stylized motion based on detail attention according to claim 1, characterized in that: In step 4, generating a stylized motion sequence through a generator includes the following specific operation steps: 4-1: Injecting the stylized motion features obtained in step 3 into the content motion; 4-2: Generate stylized motion sequences and feed the results into the discriminator.

6. The method for generating stylized motion based on detail attention according to claim 1, characterized in that: In step 5, using a multi-style discriminator to identify motion sequences and generate adversarial network training includes the following steps: 5-1: The discriminator determines whether the input motion sequence is real motion data or the stylized motion sequence generated in step 4. If it incorrectly judges the style of the motion or the authenticity of the motion, it will be punished; 5-2: Train the stylized motion generation network; 5-3: The total loss function of the training network consists of action detail feature loss, adversarial loss, cycle consistency loss, content consistency loss, style reconstruction loss, and difference sensitivity loss; 5-4: The network model training uses the Adam optimization algorithm, with 100K iterations on a single NVIDIA GeForce RTX 3090 GPU, a batch size of 8, and a training time of 6 hours.