Method and system for action style transfer
By parsing the source action files and conducting multi-dimensional quality assessments, and utilizing content encoders and style encoders to decouple action content from style features, the problem of uncontrollable action content integrity and transfer quality in action style transfer is solved, enabling interactive editing and efficient action generation.
Patent Information
- Application Number
- CN202611110509.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-24
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, motion semantics and style features of motion data are encoded in a mixed manner, lacking an effective style-content decoupling mechanism. This results in the integrity of motion content being affected during style transfer, uncontrollable transfer quality, and the inability to achieve interactive real-time editing.
The source action sequence is obtained by parsing the source action file. The semantic and style features of the action content are decoupled and separated using a pre-trained content encoder and style encoder to generate the target action sequence. Multi-dimensional quality evaluation is performed, and iterative optimization and adjustment are carried out until all dimensions meet the standards.
It achieves decoupling and separation of action style and content, ensuring the integrity and reliability of action content during style transfer, supporting interactive editing, and improving the reliability and standardization of generated actions.
Smart Images

Figure CN123160733A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motion generation technology, and in particular to a method and system for motion style transfer. Background Technology
[0002] With the rapid development of virtual content industries such as games, film and television, and the metaverse, the field of virtual character animation production faces the challenge of reusing motion resources across styles. Current technologies mainly rely on the following solutions: 1. Global parameter transformation scheme: This scheme changes the movement style by applying simple transformations such as global scaling (amplitude coefficient) and speed curve adjustment to the motion data. It is simple to implement but the effect is rough. It cannot finely control the various dimensions of style transformation and has large differences in sensitivity to different types of movements (standing, running, jumping), which can easily lead to motion distortion or physical inconsistencies.
[0003] 2. Animator's manual keyframe adjustment solution: Animators modify motion data frame by frame to match the target style. This relies on personal experience and professional skills. Although it can achieve good results, it is time-consuming (usually several hours per motion), costly, and lacks reusability. Each style adjustment requires manual operation again.
[0004] 3. Body style transfer solution based on skeletal redirection: Existing skeletal redirection technology mainly solves the problem of cross-body type adaptation. It achieves motion transfer through skeletal semantic mapping and body type difference coefficient adjustment. Style adjustment is an auxiliary function of this solution. It relies on preset style parameters (amplitude coefficient, rhythm factor, etc.) for post-adjustment and cannot achieve deep decoupling and fine control of style dimension.
[0005] 4. Deep learning-based style transfer schemes: Although existing technologies have proposed research on action style transfer based on variational autoencoders (VAE) or generative adversarial networks (GAN), their implementation generally suffers from the problem of difficulty in separating style from content. During the transfer process, the source action semantics are easily lost, and interactive editing capabilities are lacking, making it impossible for users to control the transfer intensity and mix multiple styles in real time.
[0006] In summary, the core drawback of the existing technology is that the motion semantics (such as "walking" and "jumping") and style features (such as the amplitude, rhythm, and exaggeration of the movement) are mixed and encoded in the joint rotation sequence in the existing motion data. The lack of an effective style-content decoupling mechanism leads to the inevitable impact on the integrity of the motion content during style transfer, resulting in uncontrollable transfer quality and the inability to achieve interactive real-time editing. Summary of the Invention
[0007] The technical problem to be solved by the present invention is to provide a method and system for action style transfer, which can achieve decoupling and separation of action style and content, and ensure the integrity of action content and the reliability of style transfer during the style transfer process.
[0008] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: A method for action style transfer includes: Receive the source action file, parse the source action file, and obtain the source action sequence; The source action sequence is input into a pre-trained content encoder, which outputs a source action content vector. Receive target style reference data, and generate a target style vector based on the target style reference data; A target action sequence is generated based on the source action content vector and the target style vector. A multi-dimensional quality assessment is performed on the target action sequence to obtain a quality assessment report. If any dimension in the quality assessment report fails to meet the standard, the target action sequence will be iteratively optimized and adjusted according to the quality assessment report until all dimensions meet the standard, and then the target action sequence will be output.
[0009] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows: A terminal for action style transfer includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the action style transfer method described above.
[0010] The beneficial effects of this invention are as follows: By parsing the source action file, a source action sequence is obtained, providing structured action data input for subsequent encoding processing; the source action sequence is input into the content encoder and style encoder respectively, outputting source action content vectors and source action style vectors, achieving decoupling and separation of action content semantics and style features, facilitating independent manipulation of different attributes; a target style vector is generated based on the received target style reference data, giving style transfer a clear and quantifiable orientation; a target action sequence is generated based on the source action content vector and target style vector, and a multi-dimensional quality assessment is performed on the target action sequence to obtain a quality assessment report, achieving comprehensive quantitative detection of the action generation result across multiple objective dimensions; based on feedback from dimensions that do not meet the standards in the quality assessment report, the target action sequence is iteratively optimized and adjusted until all dimensions meet the standards, ensuring that the final output target action sequence meets the preset quality standards in each assessment dimension, thereby improving the reliability and standardization of the generated actions. Attached Figure Description
[0011] Figure 1This is a flowchart of a motion style transfer method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of a motion style transfer system according to an embodiment of the present invention. Detailed Implementation
[0012] Definitions: Mutual information estimate After scoring the training sample pairs (positive and negative sample pairs) by a discriminator, a numerical value is calculated to measure the correlation between the content vector and the style vector. The smaller the value, the better the separation effect between content and style. Mutual information estimation discriminator Used to estimate the mutual information between the content vector output by the content encoder and the style vector output by the style encoder. Preset parameters - Vector mapping network Used to map target style reference data (input via parameter configuration) into a fixed-dimensional target style vector. Original feature map The intermediate feature tensor of the current layer of the decoder after performing linear or nonlinear transformations on the input, but before normalization and style modulation. Frame features The original feature map, after being segmented along the time dimension (frame number dimension), is the collection of all channel data corresponding to a certain moment (a certain frame). Affine Transformation Network Each layer in the decoder is equipped with a dedicated small neural network (usually two fully connected layers) responsible for converting the target style vector into the scaling and offset parameters of that layer, thereby performing an affine transformation on the normalized feature map. To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.
[0013] In existing technologies, the motion style transformation in the virtual character animation production process mainly adopts the following methods: global parameter transformation, manual keyframe adjustment by animators, body style transformation based on bone redirection, and style transfer methods based on deep learning. Specifically, global parameter transformation schemes change the style of motion by applying simple transformations such as global scaling and speed curve adjustment to motion data. While simple to implement, the results are coarse, and it is impossible to finely control the various dimensions of style transformation. Furthermore, the sensitivity to different types of motion varies greatly, which can easily lead to motion distortion or physical inconsistencies. The animator's manual keyframe adjustment scheme involves the animator modifying motion data frame by frame to match the target style. Although it can achieve good results, it is time-consuming, costly, and requires manual operation for each style adjustment, lacking reusability. The body style transfer scheme based on skeleton redirection mainly solves the problem of cross-body adaptation. Its style adjustment is only an auxiliary function, relying on preset style parameters for post-adjustment, and cannot achieve deep decoupling and fine control of style dimensions. Although deep learning-based style transfer schemes have proposed style transfer research based on variational autoencoders or generative adversarial networks, they generally suffer from the problem of difficulty in separating style from content. During the transfer process, the semantics of the source motion are easily lost, and interactive editing capabilities are lacking.
[0014] In summary, the core flaw of existing technologies lies in the fact that motion semantics and style features in motion data are mixed and encoded in joint rotation sequences, lacking an effective style-content decoupling mechanism. This inevitably affects the integrity of motion content during style transfer, resulting in uncontrollable transfer quality and the inability to achieve interactive real-time editing.
[0015] To at least address the aforementioned issues, this method receives source action files, parses them to extract source action sequences, and inputs these sequences into a pre-trained content encoder to obtain source action content vectors. Simultaneously, a target style vector is generated based on received target style reference data. A target action sequence with the target style is then generated based on the source action content vector and the target style vector. The generated target action sequence undergoes multi-dimensional quality evaluation. If any aspects fail to meet the evaluation criteria, the target action sequence is iteratively optimized and adjusted according to the quality evaluation report until all dimensions meet the expected requirements, at which point a qualified target action sequence is output. This approach achieves decoupling between action style and content, ensuring the integrity of action content and the reliability of style transfer during the process.
[0016] The following details a method for action style transfer according to the present invention. Please refer to [link / reference]. Figure 1 The method 100 includes steps 101 to 105: Step 101: Receive the source action file, parse the source action file, and obtain the source action sequence.
[0017] Specifically, by receiving source action files, parsing them, including format parsing, data verification, joint rotation normalization, frame rate unification, and other processing operations, a standardized source action sequence is output, providing a unified and standardized data input foundation for subsequent content encoding and style decoupling processing.
[0018] Step 102: Input the source action sequence into the pre-trained content encoder and output the source action content vector.
[0019] Specifically, the source action sequence is decomposed into two independent identifiers, orthogonal source action content vector and source action style vector, by pre-trained content encoder and style encoder, providing a content representation basis that preserves the core skeleton of the action for the subsequent style transfer process.
[0020] Step 103: Receive target style reference data and generate a target style vector based on the target style reference data.
[0021] Specifically, the system receives target style reference data input from the user and, based on the input type, converts it into a target style vector using the appropriate processing method. This approach is compatible with multiple input methods, uniformly converting heterogeneous reference data into a target style vector within the same vector space as the source action style vector, thus providing consistent input for subsequent style transfer.
[0022] Step 104: Generate a target action sequence based on the source action content vector and the target style vector, perform a multi-dimensional quality assessment on the target action sequence, and obtain a quality assessment report.
[0023] Specifically, the decoder uses the source action content vector as the backbone feature. At each network layer, it converts the target style vector into scaling and offset parameters for that layer, modulates the feature distribution, and generates a keyframe sequence. This allows style information to be injected layer by layer during decoding, rather than simply concatenated at the input, thus achieving a more natural style transfer effect. Temporal interpolation is performed on the keyframe sequence to fill in intermediate frames, resulting in a target action sequence with the target style. This ensures that the frame rate of the output action is consistent with the source action sequence while maintaining temporal continuity. A multi-dimensional quality assessment of the target action sequence is then performed to obtain a quality assessment report, providing a basis for subsequent iterative optimization and adjustments.
[0024] Step 105: If any dimension in the quality assessment report fails to meet the standard, the target action sequence is iteratively optimized and adjusted according to the quality assessment report until all dimensions meet the standard, and the target action sequence is output.
[0025] Specifically, when any dimension in the quality assessment report fails to meet the standard, the problem type corresponding to the failed dimension is identified. Based on the problem type, the relevant parameter configuration in the target action sequence generation process is adjusted. The target action sequence generation and multi-dimensional quality assessment are re-executed using the adjusted parameters. The above iterative optimization process is repeated until all dimensions meet the preset quality requirements, ensuring that the final output target action sequence meets the preset quality standards in each assessment dimension, thereby improving the reliability and standardization of the generated actions.
[0026] In one embodiment of the present invention, step 101 includes step 1011: Step 1011: Check the integrity and format compliance of the source action file. If the checks pass, parse the action keyframe data from the source action file, and perform joint rotation normalization and frame rate unification processing on the action keyframe data to obtain the source action sequence.
[0027] Specifically, the system receives source motion files, which support multiple formats such as FBX and BVH. It then performs file format verification on these files, checking their integrity and format compliance. If verification fails, an error log is logged and the user is notified. If verification succeeds, the system parses motion keyframe data from the source motion file (extracting rotation and displacement information for each joint in each frame). The parsed motion keyframe data undergoes joint rotation normalization (converting to quaternion representation) and frame rate unification (converting to a target frame rate), outputting a standardized source motion sequence. This method eliminates inconsistencies in skeletal coordinate systems and rotation representations between motion files from different sources, ensuring that subsequent encoders receive standardized data input with a consistent format.
[0028] In one embodiment of the present invention, before step 102, a pre-training process is performed on the content encoder. The training process is as follows: an action sample training set is obtained, and each action sample in the action sample training set is input into the content encoder and the style encoder respectively to obtain the content vector and style vector of each action sample. A training sample pair set is constructed based on all content vectors and all style vectors, that is, the content vector and style vector of the same training sample are used as positive sample pairs, and the content vector of each training sample is randomly paired with the style vector of other different training samples as negative sample pairs. A training sample pair set is generated based on each positive sample pair and each negative sample pair. A mutual information estimation discriminator is constructed, and each training sample pair in the training sample pair set is input into the mutual information estimation discriminator to output scalar scores. A mutual information estimate is calculated based on all scalar scores. If the mutual information estimate is greater than a preset mutual information estimation threshold, the network parameters of the content encoder and the style encoder are adjusted, and the encoding, training sample pair set construction, and mutual information estimation calculation processes are repeated until the mutual information estimate is less than or equal to the preset mutual information estimation threshold, thus obtaining the trained content encoder.
[0029] Specifically, an encoder network is designed that includes a content encoder and a style encoder operating in parallel. The content encoder, based on a temporal convolutional network, extracts semantic features of actions (such as the topology of joint motion trajectories and key temporal nodes) and outputs a content vector. The style encoder, based on a statistical feature extraction network, captures style attributes (such as the distribution of joint rotation amplitude, the shape of velocity curves, and rhythmic patterns) and outputs a style vector. A training set of action samples (containing N action samples) is obtained. Each action sample is processed by a two-stream encoder (i.e., a content encoder and a style encoder) to generate a content vector and a style vector, respectively. The content vector and style vector of the same action sample are used as positive sample pairs, such as the content vector c of the i-th action sample. i and style vectors s i (c) i s i The content vector of each training sample is randomly paired with the style vector of other different training samples to form a negative sample pair, such as the content vector of the i-th action sample and the style vector of the j-th action sample (c i s j A training sample pair set is constructed based on all positive and negative sample pairs.
[0030] A mutual information estimation discriminator D is constructed. This discriminator receives a pair of vectors (content vector c, style vector s) as input and outputs a scalar score D(c, s), indicating whether the vector pair is a "true pair" from the same action sample or a randomly assembled "spurious pair". Each training sample pair in the training sample pair set is input to the mutual information estimation discriminator, which outputs a scalar score. Based on all scalar scores, the mutual information estimate MI_est is calculated: MI_est = log(N) + (1 / N) sum(D(c_i, s_i))-log((1 / N) The expression `sum(exp(D(c_i, s_j))))` sums all training sample pairs. This mutual information estimate is based on the InfoNCE lower bound estimation principle: when the content vector `c` and style vector `s` are completely independent (mutual information is zero), the discriminator `D` cannot distinguish between positive and negative sample pairs, and `MI_est` approaches zero; when there is information leakage between them (mutual information is greater than zero), the discriminator can distinguish between positive and negative sample pairs, and `MI_est` increases accordingly. Therefore, a smaller `MI_est` value indicates a higher degree of decoupling between the content vector and style vector. Based on this, a preset mutual information estimation threshold is set. After each training round, the mutual information estimate is checked to see if it is greater than the preset mutual information estimate. If so, the orthogonal constraint weight is increased, i.e., the weight of the mutual information minimization loss in the total training loss is increased (total training loss = reconstruction loss (ensuring the original action can be restored after encoding and decoding) + orthogonal constraint weight). The mutual information minimization loss (forcing content and style to be orthogonal) plus other auxiliary loss terms allows for stronger constraints in subsequent training rounds to continue optimizing the encoder network parameters until the mutual information estimate falls below a preset mutual information estimation threshold, resulting in a trained content encoder and style encoder. The source action sequence is input into the trained content encoder and style encoder, outputting source action content vectors and source action style vectors. This method achieves orthogonal decoupling between content vectors and style vectors, ensuring that content vectors carry only action semantic information and style vectors carry only style attribute information, laying the foundation for maintaining the integrity of action content during subsequent style transfer.
[0031] In one embodiment of the present invention, step 103 includes step 1031: Step 1031: If the input type of the target style reference data is an example action mode, then the target style reference data is input to the style encoder to obtain the target style vector; If the input type of the target style reference data is style tag, then the target style vector corresponding to the target style reference data is queried from the preset style library; If the input type of the target style reference data is parameter configuration, then the target style vector is synthesized based on the target style reference data through a preset parameter-vector mapping network.
[0032] Specifically, the target style reference data supports multiple input methods, including example action input, style label input, and parameter configuration input. If the input type is example action input, the target style reference data is input to the style encoder, which extracts the style vector to obtain the target style vector. If the input type is style label input, the target style vector corresponding to the target style reference data is queried from a preset style library. This preset style library is pre-built and stores the style vectors corresponding to each style label through a large number of labeled actions during the training phase. If the input type is parameter configuration input, i.e., user-defined style parameters (amplitude coefficient, velocity curve, rhythm parameter, etc.), the target style vector is synthesized based on the target style reference data through a preset parameter-vector mapping network. The target style vector is then normalized, and the normalized target style vector is output. In this way, the three heterogeneous style inputs—example action, style label, and parameter configuration—can be uniformly converted into a target style vector in the same vector space as the source action style vector, ensuring that the target style vector can be directly used for style modulation in the subsequent decoding stage.
[0033] In one embodiment of the present invention, step 104 includes steps 1041 and 1042: Step 1041: Based on the target style vector, set the scaling parameters and offset parameters of the preset decoder layer by layer, use the preset decoder to decode the source action content vector layer by layer to generate a key frame sequence, and perform temporal interpolation processing on the key frame sequence to obtain the target action sequence.
[0034] Specifically, the decoder employs an adaptive instance normalization mechanism, which uses the source action content vector as the backbone feature and transforms the target style vector into scaling and offset parameters for each network layer to adjust the feature distribution. In the current layer of the preset decoder, the target style vector is input into the affine transformation network (composed of two fully connected layers) of the current layer, and the scaling and offset parameters of the current layer are output. The original feature map obtained by the preset decoder decoding the source action content vector is obtained. For each frame feature in the original feature map, the mean and variance of the current frame and each preset number of frames before and after it (e.g., 3 frames) are obtained. The mean and variance of each frame are weighted and averaged to obtain the weighted average mean and weighted average variance. Based on the weighted average mean and weighted average variance, the original feature map is normalized to obtain the normalized features. The normalized feature map is adjusted according to scaling and offset parameters to obtain a style-modulated feature map. A gating coefficient is determined based on the source action content vector, i.e., predicted by a small fully connected network based on the source action content vector. When the content semantics are complex, the gating coefficient is automatically reduced (weakening style injection); when the content semantics are simple, the gating coefficient is appropriately increased (enhancing style injection), thereby achieving adaptive adjustment of the style injection intensity. The original feature map and the style-modulated feature map are weighted and mixed according to the gating coefficient to obtain the output feature map of the current layer: Output Feature Map = Gating Coefficient. Feature map after style modulation + (1 - gating coefficient) The original feature map is used as the input feature map of the next layer. The parameters are remapped, normalized, style modulated and gated weighted mixing are performed until the last layer of the preset decoder outputs the target feature map. The key frame sequence is generated based on the target feature map.
[0035] The target style vector is injected layer by layer through an adaptive instance normalization mechanism. Compared with simple vector concatenation, the style transfer effect is more natural and uniform, avoiding the problem of style features being concentrated in some frames while other frames lack style. Furthermore, the intermediate frames of the keyframe sequence are supplemented by a temporal interpolation network to obtain the target action sequence, ensuring that the frame rate of the output action is consistent with the source action, while maintaining temporal continuity.
[0036] Step 1042: Perform a multi-dimensional quality assessment on the target action sequence, including content preservation dimension, style matching dimension, and physical rationality dimension, and generate a quality assessment report based on the assessment results of each dimension.
[0037] Specifically, the target action sequence is input into the content encoder and style encoder respectively, and the output is the target action content vector and the target action style vector. The cosine similarity between the target action content vector and the source action content vector is calculated, and the evaluation result of the content preservation dimension is determined based on the cosine similarity: if the cosine similarity is lower than the preset content similarity threshold, it is determined that the content preservation dimension does not meet the standard, the content offset interval is marked and optimization suggestions are generated; the distance between the target action style vector and the target style vector is calculated, and the evaluation result of the style matching dimension is determined based on the distance: if the style matching degree is lower than the preset style matching degree threshold, it is determined that the style matching degree does not meet the standard, and optimization suggestions are generated.
[0038] The physical rationality of the target action sequence is checked based on preset physical constraints. The evaluation results of the physical rationality dimensions are determined based on the results of the physical rationality check, including: 1. Joint Angle Limitation Check: Obtain the rotation data (quaternion representation) of each joint in each frame of the target motion sequence. Convert the quaternion rotation value of each joint into Euler angles. Then check whether the three-axis rotation angle of each joint exceeds the predefined human physiological angle limit range (e.g., elbow flexion and extension range is 0 degrees to 145 degrees, knee flexion and extension range is 0 degrees to 140 degrees, shoulder abduction range is 0 degrees to 180 degrees, etc.). If the rotation angle of a certain joint in a certain frame exceeds the limit, it is marked as a physical violation. 2. Velocity continuity check: Obtain the position difference data (i.e., angular velocity) of each joint between adjacent frames in the target action sequence, calculate the rotational angular velocity of each joint between adjacent frames (the difference between the quaternion of the current frame and the quaternion of the previous frame divided by the frame interval time), and then check whether the rate of change of angular velocity in time (i.e., angular acceleration) exceeds the preset smoothing threshold. If a joint has a sudden change in angular acceleration (e.g., the absolute value of angular acceleration exceeds the threshold), it indicates that there is an unnatural velocity jump at that point, which is marked as velocity discontinuity.
[0039] 3. Ground penetration detection: Obtain the vertical position (Y-axis coordinate value, assuming the Y-axis is the vertical direction) of the foot joints (left and right ankles, left and right toes) in the world coordinate system for each frame in the target action sequence. Calculate the world coordinate position of the foot joints by using forward kinematics to obtain the root joint displacement and the relative displacement of each foot joint. Then check whether the Y-coordinate of the foot joint is lower than the ground height (default is 0). If the Y-coordinate of the foot joint is less than the ground height minus a small tolerance value (such as -0.01), it is determined to be ground penetration.
[0040] A quality assessment report is generated based on all assessment results, providing a reliable basis for subsequent optimization and adjustment of the target action sequence.
[0041] In one embodiment of the present invention, step 105 includes step 1051: Step 1051: Determine the problem type based on the quality assessment report, adjust the corresponding parameters in the target action sequence generation process according to the problem type, regenerate the target action sequence using the adjusted parameters and re-perform multi-dimensional quality assessment until the quality of all dimensions meets the standards, and output the target action sequence.
[0042] Specifically, the quality assessment report records specific problem type labels ("content offset" / "style mismatch" / "physical violation") and quantitative indicators of problem severity (such as content similarity deviation value and style distance deviation value). If the problem type is content offset, the injection strength coefficient of the target style vector in the preset decoder is reduced (the offset parameter is shrunk towards 0, and the scaling parameter is shrunk towards 1) to reduce the interference of style modulation on the content. If the problem type is style mismatch, the style vector weight is increased or the style reference is changed, so that the preset decoder is more inclined to meet the style matching target during the generation process. If the problem type is physical violation, local physical correction is performed to increase the weight of physical constraint loss. The target action sequence generation and multi-dimensional quality assessment are re-executed using the adjusted parameters until the quality of all dimensions meets the standards, and the final target action sequence is output. In this way, it is ensured that the transfer results meet the standards in the three dimensions of style, content, and physics. The hierarchical optimization mechanism can take corresponding correction strategies for different problem types, avoid blind global retries, and improve the iteration convergence speed.
[0043] In one embodiment of the present invention, an interactive style editing interface is also provided to adjust the style intensity, mix multiple styles and edit local limb differences of the qualified target action sequence, and output the final stylized action file.
[0044] Specifically, users load a qualified target action sequence through an interactive style editing interface and perform further style editing adjustments on the action sequence, including: 1. Style Intensity Adjustment: The style transfer intensity value is set via a slider. The style transfer intensity value ranges from 0% to 100%, where 0% indicates that the original style of the source action is retained, and 100% indicates that the target style is fully adopted. Based on this intensity value, the system performs vector interpolation calculation between the source action style vector and the target style vector. For smooth transitions between styles of the same type, linear interpolation is used, and for uniform transitions between styles of different types, spherical interpolation is used to maintain the uniformity of the transition in the high-dimensional vector space. The interpolated style vector is then sent to the lightweight decoder to generate a preview action and display it in real time.
[0045] 2. Multi-style blending: Users can specify multiple target style vectors at the same time and set blending weights for each target style vector. The system performs weighted combination of each target style vector to generate a blended style vector, wherein the number of styles blended at the same time does not exceed a preset threshold.
[0046] 3. Localized Limb Differentiation Editing: The skeleton of the virtual character is divided into a preset number of limb regions. Users set independent style parameters for each limb region. The system performs localized style differentiation processing according to the independent style parameters of each limb region. During the editing process, the system only loads lightweight decoder weights and achieves real-time preview through GPU acceleration. If the GPU performance of the current device is lower than the preset performance threshold, the preview frame rate will be automatically reduced or the system will switch to keyframe preview mode.
[0047] Once the user confirms the editing results, the system locks the final editing parameters, reads the confirmed final stylized motion sequence, applies the final editing parameters to generate complete stylized motion data, exports the stylized motion file according to the target format, and simultaneously generates a style editing parameter record and a migration log. The style editing parameter record contains the final values of each parameter during this style editing process, and the migration log contains the source motion identifier, the source of the target style, the quality assessment results for each dimension, and the number of iterations. In this way, animators can complete style adjustments within minutes, and real-time preview ensures the intuitiveness and efficiency of the editing process.
[0048] In one embodiment of the present invention, the following specific application scenarios are also provided: Scenario 1: Reuse of Action Assets in Game Projects with Different Styles Scenario Description: A game company has a high-quality motion library (containing hundreds of actions such as walking, running, jumping, and attacking) for realistic 3D characters. Now, it needs to start a new project with a cartoon rendering style and adapt this motion library to the cartoon style (more exaggerated actions and faster pace).
[0049] Triggering condition: After the art director of the new project determines the cartoon style requirements, a motion style migration request is submitted.
[0050] Input data: Source animations: All animation files in the realistic style character animation library (FBX format, standard humanoid skeleton); Target style reference: 3-5 cartoon-style example animations handcrafted by animators.
[0051] Internal system processing: 1. The data input and preprocessing module receives batch source action files and sample actions, ensuring uniform format and frame rate; 2. The content-style decoupling coding module performs content-style decoupling on each source action; 3. The style feature extraction module extracts the target style vector from cartoon example actions; 4. The style transfer and compositing module performs style transfer in batches; 5. The quality assessment module checks the migration results item by item, and automatically optimizes and retryes those that fail. 6. The interactive editing module allows animators to fine-tune the style intensity of individual movements.
[0052] Output: A complete set of cartoon-style motion library files (FBX format), along with style editing parameter records and a quality assessment report.
[0053] Expected results: The reuse rate of motion resources will be greatly improved, and the production cycle and cost will be significantly reduced compared to remaking the entire set of motions for a new project.
[0054] Business impact: Projects with different styles can share the same basic motion library, which speeds up project startup and reduces animation production costs.
[0055] Scene 2: Stylized action scenes in post-production of film and television Scene description: In the post-production of film and television, the director requested that the realistic motion capture data that had been completed be adjusted to a specific artistic style (such as exaggerated cartoon-style performance) to match the overall visual style of the film.
[0056] Triggering condition: During the post-production stage, the director requests adjustments to the action performance style after reviewing the film.
[0057] Input data: Source motion: Realistic performance motion data captured by motion capture (BVH format); Target style: The director specifies the target style (amplitude coefficient 1.4, exaggeration level 1.6, and fast pace) through the style parameter panel.
[0058] Internal system processing: 1. The system receives motion capture data and standardizes it; 2. The content-style decoupling encoding module extracts content vectors and style vectors; 3. The style feature extraction module synthesizes the target style vector from the parameter configuration; 4. The style transfer and compositing module performs style transfer; 5. The quality assessment module checks physical plausibility and content retention. 6. The director can adjust the style intensity slider in real time through the interactive editing interface, preview the effect, and fine-tune the parameters.
[0059] Output: Stylized motion data file with edit parameter records.
[0060] Expected results: The style adjustment process will be shortened from manual rework by animators to interactive editing, allowing directors to preview and precisely control the effects in real time.
[0061] Business impact: Improves the efficiency of film and television post-production and reduces rework costs.
[0062] Scenario 3: Multi-style motion adaptation scenario in virtual live streaming Scenario Description: The virtual live streaming platform supports various virtual character styles (realistic, chibi, anime, etc.), and it is necessary to adapt the streamer's common actions (waving, clapping, dancing, etc.) to the action performance of different character styles.
[0063] Triggering condition: After the streamer selects a virtual avatar style, the system needs to adapt the preset action library to the corresponding style.
[0064] Input data: Source motion: Platform standard motion library (based on realistic humanoid character creation); Target style: The style tag selected by the user (e.g., "Q version"). Internal system processing: 1. The system queries the style tag library for the "Q version" style vector; 2. Perform batch execution of content-style decoupling and style transfer on source actions; 3. After the quality assessment is passed, output the motion data adapted to the style; 4. Cache the migration results for later use; Output: A collection of animations adapted for a chibi (Q-style) aesthetic.
[0065] Expected result: Supports the use of a unified action library for virtual avatars of any style, with style adaptation completed automatically.
[0066] Business impact: Enhances the richness of content on the virtual live streaming platform and reduces the maintenance costs of multi-style action resources.
[0067] In summary, this invention provides a method for action style transfer. It parses source action files to obtain source action sequences, providing structured action data input for subsequent encoding processing. The source action sequences are then input into a content encoder and a style encoder, respectively, outputting source action content vectors and source action style vectors. This decouples action content semantics from style features, facilitating independent manipulation of different attributes. A target style vector is generated based on received target style reference data, providing a clear and quantifiable guide for style transfer. A target action sequence is generated based on the source action content vector and the target style vector, and a multi-dimensional quality assessment is performed on this sequence to obtain a quality assessment report, achieving comprehensive quantitative detection of the action generation result across multiple objective dimensions. Based on feedback from dimensions that do not meet the standards in the quality assessment report, the target action sequence is iteratively optimized and adjusted until all dimensions meet the standards, ensuring that the final output target action sequence meets preset quality standards in each assessment dimension, thereby improving the reliability and standardization of the generated actions.
[0068] Please refer to Figure 2 The present invention also provides a system 200 for action style transfer, including a memory 201, a processor 202, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the various steps of an action style transfer method as described above.
[0069] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for action style transfer, characterized in that, include: Receive the source action file, parse the source action file, and obtain the source action sequence; The source action sequence is input into a pre-trained content encoder, and the source action content vector is output. Receive target style reference data, and generate a target style vector based on the target style reference data; A target action sequence is generated based on the source action content vector and the target style vector. A multi-dimensional quality assessment is performed on the target action sequence to obtain a quality assessment report. If any dimension in the quality assessment report fails to meet the standard, the target action sequence will be iteratively optimized and adjusted according to the quality assessment report until all dimensions meet the standard, and then the target action sequence will be output.
2. The method for action style transfer according to claim 1, characterized in that, The source action file is parsed to obtain the source action sequence, including: The integrity and format compliance of the source motion file are checked. If the checks pass, the motion keyframe data is parsed from the source motion file. The motion keyframe data is then normalized for joint rotation and uniformized for frame rate to obtain the source motion sequence.
3. The method for action style transfer according to claim 1, characterized in that, The source action sequence is input into a pre-trained content encoder, which outputs a source action content vector, including: Obtain an action sample training set, input each action sample in the action sample training set into the content encoder and style encoder respectively, and obtain the content vector and style vector of each action sample. Construct a training sample pair set based on all content vectors and all style vectors. A mutual information estimation discriminator is constructed. Each training sample pair in the training sample pair set is input into the mutual information estimation discriminator, which outputs a scalar score. The mutual information estimate is calculated based on all scalar scores. If the mutual information estimate is greater than a preset mutual information estimation threshold, the network parameters of the content encoder and the style encoder are adjusted, and the encoding, training sample pair set construction, and mutual information estimation calculation processes are repeated until the mutual information estimate is less than or equal to the preset mutual information estimation threshold, thus obtaining the trained content encoder and style encoder.
4. The method for action style transfer according to claim 3, characterized in that, A training sample pair set is constructed based on all content vectors and all style vectors, including: The content vector and style vector of the same training sample are used as positive sample pairs, and the content vector of each training sample is randomly paired with the style vector of other different training samples as negative sample pairs. A training sample pair set is generated based on each positive sample pair and each negative sample pair.
5. The method for action style transfer according to claim 3, characterized in that, Generate a target style vector based on the target style reference data, including: If the input type of the target style reference data is an example action mode, then the target style reference data is input to the style encoder to obtain the target style vector; If the input type of the target style reference data is style tag, then the target style vector corresponding to the target style reference data is queried from the preset style library; If the input type of the target style reference data is parameter configuration, then the target style vector is synthesized based on the target style reference data through a preset parameter-vector mapping network.
6. The method for action style transfer according to claim 1, characterized in that, Generate a target action sequence based on the source action content vector and the target style vector, including: Based on the target style vector, the scaling and offset parameters of the preset decoder are set layer by layer. The source action content vector is decoded layer by layer using the preset decoder to generate a key frame sequence. The key frame sequence is then subjected to temporal interpolation to obtain the target action sequence.
7. The method for action style transfer according to claim 6, characterized in that, Based on the target style vector, the scaling and offset parameters of the preset decoder are set layer by layer. The source action content vector is then decoded layer by layer using the preset decoder to generate a keyframe sequence, including: For the current layer of the preset decoder, the target style vector is input into the affine transformation network of the current layer, and the scaling parameters and offset parameters of the current layer are output. Obtain the original feature map obtained by the preset decoder decoding the source action content vector. For each frame feature in the original feature map, obtain the mean and variance of the current frame and each preset number of frames before and after it. Calculate the weighted average of each mean and variance to obtain the weighted average mean and weighted average variance. Based on the weighted average mean and the weighted average variance, the original feature map is normalized to obtain a normalized feature map. The normalized feature map is then adjusted according to the scaling parameter and the offset parameter to obtain a style-modulated feature map. Based on the source action content vector, a gating coefficient is determined, and the original feature map and the style-modulated feature map are weighted and mixed according to the gating coefficient to obtain the output feature map of the current layer; The output feature map of the current layer is used as the input feature map of the next layer, and parameter mapping, normalization, style modulation and gated weighted mixing are performed again until the last layer of the preset decoder outputs the target feature map, and a key frame sequence is generated based on the target feature map.
8. The method for action style transfer according to claim 3, characterized in that, A multi-dimensional quality assessment is performed on the target action sequence to obtain a quality assessment report, including: The multi-dimensional quality assessment includes content preservation, style matching, and physical plausibility. The target action sequence is input into the content encoder and the style encoder respectively, and the target action content vector and the target action style vector are output. Calculate the cosine similarity between the target action content vector and the source action content vector, and determine the evaluation result of the content preservation dimension based on the cosine similarity; Calculate the distance between the target action style vector and the target style vector, and determine the evaluation result of the style matching dimension based on the distance; The physical rationality of the target action sequence is checked based on preset physical constraints, and the evaluation result of the physical rationality dimension is determined based on the physical rationality check result. A quality assessment report is generated based on all assessment results.
9. The method for action style transfer according to claim 1, characterized in that, If any dimension in the quality assessment report fails to meet the standard, the target action sequence is iteratively optimized and adjusted according to the quality assessment report until all dimensions meet the standard, and the target action sequence is output, including: The problem type is determined based on the quality assessment report. The corresponding parameters in the target action sequence generation process are adjusted according to the problem type. The target action sequence is regenerated using the adjusted parameters and a multi-dimensional quality assessment is performed again until the quality of all dimensions meets the standards. The target action sequence is then output.
10. A system for action style transfer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements each step of the action style transfer method according to any one of claims 1 to 9.
