A super-resolution method, device, electronic device and medium for cloth animation

Through error correction and low-frequency information conversion methods, the problem of low computational efficiency of cloth animation super-resolution method is solved, and cloth animation with high-quality wrinkle details is efficiently generated, ensuring the consistency of animation sequences.

CN118247151BActive Publication Date: 2024-08-23LINGDI (ZHEJIANG) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410646742.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-23
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing cloth animation super-resolution methods are computationally inefficient when processing high-resolution triangle meshes, resulting in a lot of time and labor costs.

Method used

The low-frequency motion is corrected through an error correction method to generate an animation sequence of the cloth animation, and high-frequency information is generated based on the low-frequency information in the animation sequence, avoiding the use of high-resolution physical simulation to efficiently generate high-quality wrinkle details.

Benefits of technology

Ensure the spatial consistency and temporal consistency of corrected low-frequency motion in animation sequences at different resolutions, efficiently generate high-quality cloth animation wrinkle details, and reduce computational costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118247151B
    Figure CN118247151B
Patent Text Reader

Abstract

The present application provides a super-resolution method, device, electronic device and medium for cloth animation. According to an example of the present disclosure, the method may include: performing error correction on low-frequency motion according to an error correction method to generate an animation sequence corresponding to the cloth animation; wherein the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has undergone error correction; based on the low-frequency information of the corrected low-frequency motion in the animation sequence, generating high-frequency information corresponding to the low-frequency information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a super-resolution method, device, electronic device and medium for cloth animation. Background Art

[0002] In cloth animation, high-quality cloth simulation usually requires high-resolution meshes to express fine wrinkle details. Cloth simulated with low-resolution meshes has a rough surface, while cloth simulated with high-resolution meshes has smooth and delicate wrinkle effects.

[0003] Currently, super-resolution methods for cloth animation usually require the use of high-resolution triangular meshes as input data to simulate fine-grained clothing wrinkle details. However, when processing high-resolution triangular meshes, the computational efficiency of this super-resolution method is relatively low, and it takes a lot of time and manpower. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides a super-resolution method, device, electronic device and medium for cloth animation.

[0005] According to a first aspect of any embodiment of the present application, a super-resolution method for cloth animation is provided, the method comprising:

[0006] According to the error correction method, the low-frequency motion is error corrected to generate an animation sequence corresponding to the cloth animation; wherein the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has been error corrected;

[0007] Based on the low-frequency information in the animation sequence, high-frequency information corresponding to the low-frequency information is generated.

[0008] According to a second aspect of any embodiment of the present application, a super-resolution device for cloth animation is provided, the device comprising:

[0009] An animation sequence generation module, used to perform error correction on low-frequency motion according to an error correction method, and generate an animation sequence corresponding to the cloth animation; wherein the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has undergone error correction;

[0010] The super-resolution module is used to generate high-frequency information corresponding to the low-frequency information based on the low-frequency information in the animation sequence.

[0011] According to a third aspect of any embodiment of the present application, there is provided an electronic device, including:

[0012] processor;

[0013] a memory for storing processor-executable instructions;

[0014] The processor implements the method described in any embodiment of the present application by running the executable instructions.

[0015] According to a fourth aspect of any embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the method described in any embodiment of the present application is implemented.

[0016] According to a fifth aspect of any embodiment of the present application, a computer program product is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the method described in any embodiment of the present application is implemented.

[0017] The technical solution provided by this application may have the following beneficial effects:

[0018] According to the above embodiments, by performing error correction on low-frequency motion according to the error correction method, an animation sequence corresponding to the cloth animation is generated, thereby ensuring the spatial consistency of the corrected low-frequency motion in the animation sequence at different resolutions. Since the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has been error-corrected, it is possible to avoid accumulating errors between low resolution and high resolution of the low-frequency motion during the simulation process, while ensuring the temporal consistency of the corrected low-frequency motion in the animation sequence at different resolutions; based on the low-frequency information of the corrected low-frequency motion in the animation sequence, high-frequency information corresponding to the low-frequency information is generated, and the high-frequency information has high-quality local wrinkles and other details corresponding to the low-frequency information, without the need to use high-resolution physical simulation, and high-quality wrinkle details in the cloth animation are efficiently generated.

[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0021] Figure 1 is a schematic diagram of a low-resolution cloth according to an exemplary embodiment of the present application;

[0022] Figure 2 is a schematic diagram of a high-resolution cloth according to an exemplary embodiment of the present application;

[0023] Figure 3is a flowchart of a super-resolution method for cloth animation according to an exemplary embodiment of the present application;

[0024] Figure 4 is a structural schematic diagram of a super-resolution framework according to an exemplary embodiment of the present application;

[0025] Figure 5 is a schematic diagram of an animation sequence generation process shown in the present application according to an exemplary embodiment;

[0026] Figure 6 is a schematic diagram of a high-frequency information generation process according to an exemplary embodiment of the present application;

[0027] Figure 7 is a schematic diagram of a cloth without performing a super-resolution method according to an exemplary embodiment of the present application;

[0028] Figure 8 is a schematic diagram of a cloth on which a super-resolution method has been executed according to an exemplary embodiment of the present application;

[0029] Fig. 9 is a flowchart of another super-resolution method for cloth animation according to an exemplary embodiment of the present application;

[0030] Fig.10 is a structural schematic diagram of an electronic device according to an exemplary embodiment of the present application;

[0031] Fig.11 It is a block diagram of a super-resolution device for cloth animation according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0032] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0033] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0034] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0035] In cloth animation, high-quality cloth simulation usually requires high-resolution meshes to express fine wrinkle details. High-resolution meshes can provide more vertices and triangles to simulate the deformation and wrinkles of these cloths, thereby more accurately restoring the behavior of cloth in the real world.

[0036] See also Figure 1 , Figure 1 shows a schematic diagram of a low-resolution cloth. Figure 1 The cloth of the garment shown is simulated using a high-resolution mesh, and the cloth has a rough surface and lacks fine wrinkle details. Figure 2 shows a schematic diagram of a high-resolution cloth, Figure 2 The cloth of the garment shown is simulated using a high-resolution mesh, and the cloth has smooth and detailed wrinkles.

[0037] The current super-resolution method for cloth animation usually uses high-resolution triangular meshes to simulate high-resolution cloth, which has low computational efficiency and requires a lot of time and manpower costs.

[0038] In order to solve the above problems, the present application proposes a super-resolution method for cloth animation. To further illustrate the present application, the following embodiments are provided:

[0039] See also Figure 3 , Figure 3 This is a flowchart of a super-resolution method for cloth animation according to an exemplary embodiment of the present application. The super-resolution method for cloth animation can be applied to a super-resolution framework, which is used to simulate, correct and super-resolution cloth animation, and can be applied to terminal devices such as computers and tablets.

[0040] To further introduce the super-resolution framework, Figure 4 A schematic diagram of the structure of a super-resolution framework is shown. Figure 4 As shown, the super-resolution framework includes: an animation sequence generation module 401, a core intermediate variable 402 and a super-resolution module 403. The animation sequence generation module 401 includes: an error corrector 4011 and a simulator 4012. The super-resolution module 403 includes: a super-resolution device 4031.

[0041] The animation sequence generation module 401 is used to correct low-frequency motion and simulate to generate animation sequence. The error corrector 4011 is used to correct the error of low-frequency motion, and the simulator 4012 is used to simulate the low-frequency motion after error correction to obtain the low-frequency motion of the next frame.

[0042] The core intermediate variable 402 is used to connect the animation sequence generation module 401 and the super-resolution module 403 . The core intermediate variable 402 receives the animation sequence generated by the animation sequence generation module 401 and outputs the animation sequence to the super-resolution module 403 .

[0043] The super-resolution module 403 is used to perform super-resolution on the animation sequence output by the core intermediate variable 402, that is, convert the low-resolution animation sequence into a high-resolution version. The super-resolution device 4031 is used to generate a high-resolution cloth animation based on the corrected low-resolution motion in the animation sequence.

[0044] It can be understood that the various modules and devices of the super-resolution framework of the example of the present application are only examples, and there may be options different from the examples of the present application. As long as the super-resolution framework can implement the method described in the embodiments of the present application, the embodiments of the present application do not limit this.

[0045] like Figure 3 As shown, the super-resolution method of cloth animation may include the following steps:

[0046] Step 302: According to the error correction method, error correction is performed on the low-frequency motion to generate an animation sequence corresponding to the cloth animation; wherein the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has undergone error correction.

[0047] In this step, there is usually a deviation between the low-frequency motion extracted from the low-resolution cloth animation and the low-frequency motion extracted from the high-resolution cloth animation, namely, a spatial consistency deviation.

[0048] The error corrector 4011 performs error correction on the low-frequency motion according to the error correction method, and corrects the error between the low-resolution and high-resolution cloth animations of the low-frequency motion. The error corrector 4011 adds the corrected low-frequency motion after error correction to the low-frequency animation sequence.

[0049] If the corrected low-frequency motion after the error correction cannot be fed back to the simulator 4012, then as the simulation time accumulates, the error will accumulate in the animation sequence generated by the simulator 4012 alone, and the deviation in spatial consistency will become larger and larger until it cannot be corrected by the error corrector 4011, thus causing a deviation in temporal consistency.

[0050] Therefore, the animation sequence generation module 401 uses the corrected low-frequency motion of each frame after error correction as the input of the simulator 4012, and the simulator 4012 outputs the low-frequency motion to be corrected for the next frame.

[0051] The animation sequence generation module 401 alternately uses the error corrector 4011 and the simulator 4012 to repeatedly correct the low-frequency motion of each frame by simulating the corrected low-frequency motion of the previous adjacent frame in the animation sequence that has been error corrected.

[0052] The corrected low-frequency motion after error correction is added to the animation sequence, and the corrected low-frequency motion is simulated to obtain the low-frequency motion to be corrected in the next frame, until the set simulation target is reached, thereby generating an animation sequence corresponding to the continuous cloth animation.

[0053] The corrected low-frequency motion in this animation sequence can maintain good spatial consistency and temporal consistency with the low-frequency motion in the high-resolution cloth animation. Spatial consistency refers to the similarity of the wrinkle effect of the cloth at different resolutions; temporal consistency means that the wrinkles of the cloth at different resolutions move in a similar pattern.

[0054] Among them, cloth animation is an animation that simulates the local wrinkle movement and the global translation, rotation or large swing of cloth. It can be a number of low-resolution images, video frames and other data prepared by the user in advance, such as clothing animation, furniture decoration animation, etc.

[0055] Animation sequences are sequences of corrected low-frequency motions with each frame corrected and simulated, used to represent the continuous process of gradual deformation and movement of cloth over a period of time. The simulation goal is used to determine when to end the simulation and correction, such as time range, expected effect, etc.

[0056] Low-frequency motion is used to express the response and deformation of cloth in motion in cloth animation using lower-dimensional data, such as explicit low-resolution grids, implicit low-dimensional subspaces, etc. Corrected low-frequency motion is the error-corrected low-frequency motion in the animation sequence, which is used to generate animation sequences and simulate the low-frequency motion to be corrected in the next frame.

[0057] The error correction method is used to correct the error between different resolutions of low-frequency motion. The error between different resolutions of low-frequency motion usually manifests as inconsistent overall movement or local large-scale movement of fabrics or clothing. The error correction method can be a grid processing method based on graph neural network, graph anomaly detection algorithm, etc.

[0058] Taking the low-dimensional subspace as a low-frequency motion as an example, the error corrector 4011 can select an error correction method based on deep learning, the simulator 4012 can select a differentiable simulator based on deep learning, and the super-resolution device 4031 can select a super-resolution method based on deep learning.

[0059] Taking the low-resolution grid as a low-frequency motion as an example, the error corrector 4011 can select a grid processing method based on a graph neural network, the simulator 4012 can select a physics-based simulator, and the super-resolution device 4031 can select a grid super-resolution method.

[0060] Exemplarily, the error corrector 4011 can downsample the high-resolution mesh and use the correct low-frequency motion information on the high-resolution mesh as a reference standard for error correction. The error corrector 4011 uses a mesh processing method based on a graph neural network to correct the vertex positions on the low-resolution mesh, and the geometric shape of the corrected low-resolution mesh will be closer to the geometric shape of the high-resolution mesh.

[0061] See also Figure 5 , Figure 5 This is a schematic diagram of an animation sequence generation process according to an exemplary embodiment of the present application. Taking a low-resolution mesh as a low-frequency motion as an example, the deformation information of the vertices and edges in the low-resolution mesh can represent the motion information of the low-resolution mesh. Figure 5 The generation process of the animation sequence at the tth time and the t+1th time is shown.

[0062] Among them, the first low-resolution grid 501 is a low-resolution grid that has not been error-corrected at the tth moment. The first low-resolution grid 501 can be obtained by simulating the low-resolution grid at the t-1th moment after error correction, or it can be a low-resolution grid of the first frame.

[0063] The first corrected low-resolution grid 502 is a corrected low-resolution grid obtained after error correction is performed on the first low-resolution grid 501 .

[0064] The second low-resolution mesh 511 is a low-resolution mesh that has not been error corrected at time t+1, and is obtained by simulating the first corrected low-resolution mesh 502 at time t. The second corrected low-resolution mesh 512 is a corrected low-resolution mesh obtained after the second low-resolution mesh 511 is error corrected.

[0065] Exemplarily, the error corrector 4011 performs error correction on the first low-resolution grid 501 based on a grid processing method of a graph neural network to obtain a corrected first corrected low-resolution grid 502, and adds the first corrected low-resolution grid 502 to the animation sequence 52.

[0066] The simulator 4012 simulates the first corrected low-resolution mesh 502 to obtain the second low-resolution mesh 511 to be corrected. The error corrector 4011 performs error correction on the second low-resolution mesh 511 to obtain the corrected second corrected low-resolution mesh 512, and adds the second corrected low-resolution mesh 512 to the animation sequence 52.

[0067] The error corrector 4011 repeatedly corrects the low frequency motion of each frame to obtain the corrected low frequency motion, and then the simulator 4012 simulates the corrected low frequency motion to obtain the low frequency motion of the next frame. A continuous animation sequence 52 is generated based on the corrected low frequency motion generated for each frame.

[0068] Furthermore, when the low-frequency motion to be corrected is the first-frame low-frequency motion, and there is no previous frame corrected low-frequency motion adjacent to the first-frame low-frequency motion in the animation sequence, the animation sequence generation module 401 uses the received preset low-frequency motion as the first-frame low-frequency motion.

[0069] The error corrector 4011 performs error correction on the low-frequency motion of the first frame according to the error correction method to obtain the corrected low-frequency motion of the first frame.

[0070] The error corrector 4011 adds the corrected low-frequency motion of the first frame to the animation sequence. The simulator 4012 simulates the corrected low-frequency motion of the first frame to obtain the low-frequency motion of the next frame.

[0071] Among them, the first frame low-frequency motion is the initial physical state to be corrected in the first frame, including the position and velocity of the cloth mesh. The preset low-frequency motion is used to characterize the initial physical state corresponding to the cloth animation. The initial physical state is used to simulate and express the motion state of the cloth in the cloth animation, providing a benchmark and reference for the subsequent dynamic changes of the cloth.

[0072] As described above, by taking the received preset low-frequency motion as the first-frame low-frequency motion to be corrected, error correction is performed on the first-frame low-frequency motion according to the error correction method to obtain the corrected low-frequency motion of the first frame, the corrected low-frequency motion of the first frame is added to the animation sequence, and the corrected low-frequency motion of the first frame is simulated to obtain the low-frequency motion of the next frame, thereby obtaining the accurate initial physical state corresponding to the cloth animation, thereby ensuring the accuracy of subsequent correction and simulation of the cloth animation.

[0073] Step 304: Based on the low-frequency information in the animation sequence, generate high-frequency information corresponding to the low-frequency information.

[0074] In this step, the core intermediate variable 402 receives the animation sequence generated by the animation sequence generation module 401 by executing step 302 , and the core intermediate variable 402 outputs the animation sequence to the super-resolution module 403 .

[0075] The super-resolution module 403 can extract the low-frequency information corresponding to the corrected low-frequency motion in the animation sequence. The super-resolution device 4031 obtains the high-frequency information corresponding to the low-frequency information by using a super-resolution method based on image interpolation, a super-resolution method based on deep learning, etc., based on the low-frequency information corresponding to the corrected low-frequency motion, and then restores the high-frequency details such as local wrinkles.

[0076] The super-resolution device 4031 generates corresponding high-frequency information from the input low-frequency information, and then combines the low-frequency information with the high-frequency information to obtain a high-resolution cloth animation with high-frequency details.

[0077] Among them, low-frequency information refers to the relatively slow and lasting morphological changes and dynamic characteristics of cloth over time in cloth animation, such as contours and shapes.

[0078] High-frequency information refers to the rapid and subtle changes in shape and dynamic details of the cloth in a short period of time. Super-resolution cloth animation is a high-resolution cloth animation converted from low-resolution cloth animation.

[0079] See also Figure 6 , Figure 6 is a schematic diagram of a high-frequency information generation process according to an exemplary embodiment of the present application. Figure 5 Take the generated animation sequence as an example, Figure 6 The generation process of high-frequency information at time t and time t+1 is shown.

[0080] The first low-frequency information 601 is the low-frequency information in the first corrected low-resolution grid 502 , and the first high-frequency information 602 is the high-frequency information corresponding to the first low-frequency information 601 .

[0081] The second low-frequency information 611 is the low-frequency information in the second corrected low-resolution grid 512 , and the second high-frequency information 612 is the high-frequency information corresponding to the second low-frequency information 611 .

[0082] The first high-resolution grid 603 is a high-resolution grid obtained by correcting and super-resolving the first low-resolution grid 501 , and the second high-resolution grid 613 is a high-resolution grid obtained by correcting and super-resolving the second low-resolution grid 511 .

[0083] The super-resolution module 403 extracts the first low-frequency information 601 in the first corrected low-resolution grid 502 in the animation sequence 52. The super-resolution device 4031 obtains the high-frequency information corresponding to the first low-frequency information 601 according to the first low-frequency information 601.

[0084] The super-resolution device 4031 generates corresponding first high-frequency information 602 according to the first low-frequency information 601 . The orange area and orange lines in the first high-frequency information 602 represent high-frequency details corresponding to the first low-frequency information 601 .

[0085] The super-resolution device 4031 generates first high-frequency information 602 on the first high-resolution grid 603 to achieve super-resolution processing of the first low-resolution grid 501 .

[0086] The super-resolution module 403 extracts the second low-frequency information 611 in the second corrected low-resolution grid 512 in the animation sequence 52. The super-resolution device 4031 obtains the high-frequency information corresponding to the second low-frequency information 611 according to the second low-frequency information 611.

[0087] The super-resolution device 4031 generates corresponding second high-frequency information 612 according to the second low-frequency information 611 . The orange area and orange lines in the second high-frequency information 612 represent high-frequency details corresponding to the second low-frequency information 611 .

[0088] The super-resolution device 4031 generates second high-frequency information 612 on the second high-resolution grid 613 to achieve super-resolution processing of the second low-resolution grid 511 .

[0089] See also Figure 7 and Figure 8 , Figure 7 A schematic diagram showing a cloth without performing a super-resolution method, Figure 8 A schematic diagram of a cloth on which a super-resolution method has been performed is shown. Figure 7 After the low-resolution cloth shown in FIG. 1 is subjected to the super-resolution method described in step 302 and step 304, a Figure 8 High-resolution cloth shown with high-quality, complex folds and high-resolution details.

[0090] The super-resolution method for cloth animation of the present embodiment performs error correction on low-frequency motion according to an error correction method to generate an animation sequence corresponding to the cloth animation, thereby ensuring the spatial consistency of the corrected low-frequency motion in the animation sequence at different resolutions. Since the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has undergone error correction, it is possible to avoid accumulating errors between low resolution and high resolution of the low-frequency motion during the simulation process, while ensuring the temporal consistency of the corrected low-frequency motion in the animation sequence at different resolutions. Based on the low-frequency information of the corrected low-frequency motion in the animation sequence, high-frequency information corresponding to the low-frequency information is generated, and the high-frequency information has high-quality local wrinkles and other details corresponding to the low-frequency information, without using high-resolution physical simulation, and high-quality wrinkle details in the cloth animation are efficiently generated.

[0091] In the above-mentioned embodiments, it is introduced that low-frequency motion is corrected and simulated alternately to generate an animation sequence, and high-frequency information corresponding to the low-frequency information is generated based on the low-frequency information in the animation sequence. In the following embodiments, a detailed description will be given on how to further optimize the super-resolution method of cloth animation, and it can be applied to any of the above embodiments.

[0092] In one embodiment, in some animation sequences generated based on small time steps, if super-resolution processing is performed on each frame in the animation sequence to correct low-frequency motion, the efficiency of super-resolution of the animation sequence will be affected.

[0093] When the super-resolution module 403 performs super-resolution on the low-frequency information in the animation sequence, the selected low-frequency information corresponding to the super-resolution interval is selected in the animation sequence according to the preset super-resolution interval, and there is no need to generate a super-resolution task for the low-frequency information of correcting the low-frequency motion for each frame. The super-resolution module 403 generates high-frequency information corresponding to the selected low-frequency information based on the selected low-frequency information corresponding to the super-resolution interval.

[0094] The super-resolution interval is the interval between the selected low-frequency information to be super-resolutioned, for example, 5 frames, 10 frames, etc. The selected low-frequency information is the low-frequency information for correcting low-frequency motion separated by the super-resolution interval in the animation sequence.

[0095] The super-resolution task refers to the super-resolution processing process of converting low-frequency information into high-frequency information in a single pass.

[0096] The super-resolution interval can be determined based on the simulation correction time and the super-resolution time, wherein the simulation correction time is the calculation time for a single simulation and error correction, and the super-resolution time is the calculation time for a single super-resolution of low-frequency information.

[0097] Specifically, if the simulation correction time is greater than or equal to the super-resolution time, the super-resolution interval can be set to 1 frame, that is, each time a simulation and error correction is performed, a super-resolution task is executed.

[0098] If the simulation correction time is less than the super-resolution time, the super-resolution interval can be determined according to the following formula (1):

[0099] (1)

[0100] Where n represents the super-resolution interval, represents the simulation correction time, represents the super-resolution time.

[0101] When the simulation correction time is less than the super-resolution time, the ratio of the super-resolution time to the simulation correction time is used as the super-resolution interval, eliminating the need to perform super-resolution processing on each frame to correct low-frequency motion, thereby improving the efficiency of cloth animation super-resolution.

[0102] Due to the delayed visual response of the human eye, super-resolution tasks are usually performed thirty times per second to achieve a cloth simulation effect similar to that of super-resolution processing for correcting low-frequency motion for each frame.

[0103] Therefore, when the simulation correction time is less than the super-resolution time, if the super-resolution interval calculated based on the simulation correction time and the super-resolution time is greater than the standard interval, the super-resolution interval can be set to the standard interval. The standard interval is the ratio of the number of simulations and error corrections per second of animation duration to thirty.

[0104] Exemplarily, the animation sequence generation module 401 uses a time step dt=1 / 300s to generate an animation sequence, that is, 300 simulations and error corrections are required within one second of animation duration.

[0105] If the simulation correction time is less than the super-resolution time, the standard interval is 300 / 30=10 frames. When the calculated super-resolution interval is greater than 10 frames, the super-resolution interval can be set to 10 frames.

[0106] The super-resolution module 403 selects selected low-frequency information every 10 frames in the animation sequence, performs super-resolution processing on the selected 30 frames of selected low-frequency information per second, and generates high-frequency information corresponding to the selected low-frequency information.

[0107] Since the simulation correction time is shorter than the super-resolution time, after an interval of 10 frames, the previous super-resolution calculation has not yet ended, and the next simulation and error correction calculation can be continued. Converting the selected low-frequency information within 30 frames per second into high-frequency information can increase the efficiency of super-resolution for cloth animation by ten times without losing the super-resolution effect of cloth animation.

[0108] As described above, by selecting selected low-frequency information corresponding to a super-resolution interval in an animation sequence according to a preset super-resolution interval, and generating high-frequency information corresponding to the selected low-frequency information based on the selected low-frequency information, it is only necessary to perform super-resolution on the selected low-frequency information at intervals of multiple frames, thereby improving the overall efficiency of the super-resolution of the cloth animation without losing the super-resolution effect of the cloth animation.

[0109] In one embodiment, the super-resolution device 4031 can use super-resolution methods such as SRCNN (Super-Resolution Convolutional Neural Network) and VDSR (Very Deep Super-Resolution) to input low-frequency information into the trained super-resolution model and obtain high-frequency information corresponding to the low-frequency information output by the super-resolution model.

[0110] Among them, the super-resolution model is a model that converts low-frequency information into high-frequency information, which can be obtained by learning and training a large number of low-resolution images and the high-resolution images corresponding to the low-resolution images.

[0111] As mentioned above, by inputting low-frequency information into the super-resolution model and obtaining high-frequency information corresponding to the low-frequency information output by the super-resolution model, the super-resolution model built based on deep learning technology has strong flexibility and scalability, reducing the total cost of obtaining and processing high-frequency information.

[0112] In one embodiment, in the super-resolution task for low-frequency information, considering the influence of the high-frequency information of the historical frame on the high-frequency information of the current frame is important for maintaining the temporal consistency of the generated wrinkle details. The super-resolution device 4031 can generate high-frequency information corresponding to the low-frequency information based on the low-frequency information and the historical high-frequency information, taking the historical high-frequency information as a reference.

[0113] Among them, the historical high-frequency information is the high-frequency information generated most recently in the animation sequence, which is used to improve the temporal consistency of the super-resolution wrinkle details generated by the low-frequency information in the animation sequence.

[0114] Exemplarily, the super-resolution device 4031 may use historical high-frequency information as an auxiliary input, input low-frequency information and historical high-frequency information into the super-resolution model, and obtain high-frequency information corresponding to the low-frequency information output by the super-resolution model.

[0115] Please continue reading Figure 6 When the super-resolution device 4031 performs super-resolution processing on the second low-frequency information 611, the first high-frequency information 602 can be used as the historical high-frequency information, and the second low-frequency information 611 and the first high-frequency information 602 can be input into the super-resolution model to obtain the second high-frequency information 612.

[0116] The super-resolution device 4031 can also generate high-frequency information corresponding to the low-frequency information based on interpolation, reconstruction and other methods, combining low-frequency information and historical high-frequency information, and the embodiment of the present application does not limit this.

[0117] As described above, high-frequency information corresponding to the low-frequency information is generated based on the low-frequency information and the historical high-frequency information, and the most recently generated historical high-frequency information in the animation sequence is used as a reference to further improve the temporal consistency of the high-frequency information generated by the low-frequency information in the animation sequence, thereby enhancing the similarity of the motion laws of the wrinkle details at different resolutions.

[0118] In one embodiment, the simulator 4012 can select a physics-based simulator, and use the position and speed of the corrected low-frequency motion in the previous frame as the input information of the simulator, so that the corrected low-frequency motion moves forward for an appropriate time step, outputs the simulated low-frequency motion, and obtains the new position and new speed information of the simulated low-frequency motion.

[0119] Among them, the physics-based simulator is used to simulate the softness and drape of cloth based on physical principles, such as dynamic simulator, mass spring mechanics model, etc. The time step is used to determine the time interval between two adjacent frames of low-frequency motion.

[0120] As described above, by using a physics-based simulator, the position and speed of the corrected low-frequency motion in the previous frame are used as input information of the simulator, and the simulated low-frequency motion is output. Using a physics-based simulator to simulate the corrected low-frequency motion can improve the accuracy and stability of cloth simulation in scenarios such as collision processing.

[0121] To further illustrate the super-resolution process for cloth animation, Fig. 9 FIG. 1 is a flowchart of another method for super-resolution of cloth animation according to an exemplary embodiment of the present application. Fig. 9 As shown, the super-resolution method of cloth animation may include the following steps:

[0122] Step 902: the animation sequence generation module 401 uses the received preset low-frequency motion as the first frame low-frequency motion.

[0123] Step 904: According to the error correction method, error correction is performed on the low-frequency motion of the first frame to obtain the corrected low-frequency motion of the first frame.

[0124] In this step, the error corrector 4011 performs error correction on the low-frequency motion of the first frame according to the error correction method to obtain the corrected low-frequency motion of the first frame.

[0125] Step 906: the animation sequence generation module 401 adds the corrected low-frequency motion of the first frame into the animation sequence.

[0126] Step 908: Use a physics-based simulator to simulate the corrected low-frequency motion to obtain the low-frequency motion of the next frame.

[0127] In this step, the simulator 4012 uses a physics-based simulator to simulate the corrected low-frequency motion to obtain the low-frequency motion of the next frame.

[0128] Step 910: Repeat correcting the low-frequency motion and simulating the corrected low-frequency motion to generate an animation sequence corresponding to the cloth animation.

[0129] In this step, the animation sequence generation module 401 alternately uses the error corrector 4011 and the simulator 4012 to repeatedly correct the low-frequency motion of each frame, and adds the corrected low-frequency motion after error correction into the animation sequence.

[0130] The corrected low-frequency motion is simulated to obtain the next frame of low-frequency motion to be corrected, until the set simulation target is reached, and an animation sequence corresponding to the cloth animation is generated.

[0131] Step 912: The super-resolution module 403 selects selected low-frequency information corresponding to the super-resolution interval in the animation sequence according to the preset super-resolution interval.

[0132] Step 914: input the selected low-frequency information and the historical high-frequency information into the super-resolution model, and obtain the high-frequency information corresponding to the selected low-frequency information output by the super-resolution model.

[0133] In this step, the super-resolution device 4031 inputs the selected low-frequency information corresponding to the super-resolution interval and the most recently generated historical high-frequency information into the super-resolution model, obtains the high-frequency information corresponding to the selected low-frequency information output by the super-resolution model, and generates a high-resolution cloth animation with high-frequency information.

[0134] Fig.101 is a schematic diagram of a structure of an electronic device according to an exemplary embodiment of the present application. The electronic device may be, for example, a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a personal digital assistant, a server, a smart home appliance, etc. Fig.10 At the hardware level, the electronic device includes a processor 1002, an internal bus 1004, a network interface 1006, a memory 1008, and a non-volatile memory 1010, and may also include hardware required for other services. The processor 1002 reads the corresponding computer program from the non-volatile memory 1010 into the memory 1008 and then runs it, forming a super-resolution device for cloth animation at the logical level. Of course, in addition to the software implementation, this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0135] Fig.11 is a block diagram of a super-resolution device for cloth animation according to an exemplary embodiment of the present application. Fig.11 , the device may include: an animation sequence generation module 401 and a super-resolution module 403, wherein:

[0136] The animation sequence generation module 401 is used to perform error correction on the low-frequency motion according to the error correction method, and generate an animation sequence corresponding to the cloth animation; wherein the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has undergone error correction;

[0137] The super-resolution module 403 is used to generate high-frequency information corresponding to the low-frequency information based on the low-frequency information in the animation sequence.

[0138] In one example, the super-resolution module 403, when used to generate high-frequency information corresponding to the low-frequency information based on the low-frequency information in the animation sequence, includes: selecting selected low-frequency information corresponding to the super-resolution interval in the animation sequence according to a preset super-resolution interval; and generating high-frequency information corresponding to the selected low-frequency information based on the selected low-frequency information.

[0139] In one example, the super-resolution module 403, when used to generate high-frequency information corresponding to the low-frequency information based on the low-frequency information in the animation sequence, includes: generating high-frequency information corresponding to the low-frequency information based on the low-frequency information and historical high-frequency information; wherein the historical high-frequency information is the most recently generated high-frequency information in the animation sequence.

[0140] In one example, the animation sequence generation module 401 is also used to use a physics-based simulator to take the position and speed of the corrected low-frequency motion of the previous adjacent frame as input information of the simulator to obtain the simulated low-frequency motion output by the simulator.

[0141] In one example, the animation sequence generation module 401, before being used to perform error correction on low-frequency motion according to an error correction method to generate an animation sequence corresponding to the cloth animation, further includes: using the received preset low-frequency motion as the first-frame low-frequency motion; the preset low-frequency motion is used to characterize the initial physical state corresponding to the cloth animation; according to the error correction method, performing error correction on the first-frame low-frequency motion to obtain the corrected low-frequency motion of the first frame; adding the corrected low-frequency motion of the first frame to the animation sequence, simulating the corrected low-frequency motion of the first frame to obtain the low-frequency motion.

[0142] In one example, the super-resolution module 403, when used to generate high-frequency information corresponding to the low-frequency information based on the low-frequency information in the animation sequence, includes: inputting the low-frequency information into a super-resolution model, and obtaining high-frequency information corresponding to the low-frequency information output by the super-resolution model.

[0143] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0144] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of a super-resolution device for cloth animation to implement any method as described in the above embodiments.

[0146] The non-temporary computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc., and the present application does not limit this.

[0147] In an exemplary embodiment, a computer program product including a computer program / instruction is also provided. The computer program / instruction can be executed by a processor of a super-resolution device for cloth animation to implement any of the methods described in the above embodiments.

[0148] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0149] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions claimed herein. The present application is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0150] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A super-resolution method for cloth animation, characterized in that: The method comprises: According to the error correction method, the low-frequency motion is error corrected to generate an animation sequence corresponding to the cloth animation; wherein the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has been error corrected; Based on the low-frequency information for correcting the low-frequency motion in the animation sequence, high-frequency information corresponding to the low-frequency information is generated.

2. The method according to claim 1, characterized in that The step of generating high-frequency information corresponding to the low-frequency information based on the low-frequency information correcting the low-frequency motion in the animation sequence comprises: According to a preset super-resolution interval, selecting selected low-frequency information corresponding to the super-resolution interval in the animation sequence; Based on the selected low-frequency information, high-frequency information corresponding to the selected low-frequency information is generated.

3. The method according to claim 1, characterized in that The step of generating high-frequency information corresponding to the low-frequency information based on the low-frequency information correcting the low-frequency motion in the animation sequence comprises: Based on the low-frequency information and the historical high-frequency information, generating high-frequency information corresponding to the low-frequency information; The historical high-frequency information is the high-frequency information generated most recently in the animation sequence.

4. The method according to claim 1, characterized in that: The simulation method of the low-frequency motion includes: A physics-based simulator is used, and the position and speed of the corrected low-frequency motion in the adjacent previous frame are used as input information of the simulator to obtain the simulated low-frequency motion output by the simulator.

5. The method according to claim 1, characterized in that Before performing error correction on the low-frequency motion according to the error correction method to generate an animation sequence corresponding to the cloth animation, the method further includes: The received preset low-frequency motion is used as the first-frame low-frequency motion; the preset low-frequency motion is used to represent the initial physical state corresponding to the cloth animation; According to the error correction method, error correction is performed on the low-frequency motion of the first frame to obtain a corrected low-frequency motion of the first frame; The corrected low-frequency motion of the first frame is added to the animation sequence, and the corrected low-frequency motion of the first frame is simulated to obtain the low-frequency motion.

6. The method according to claim 1, characterized in that The step of generating high-frequency information corresponding to the low-frequency information based on the low-frequency information correcting the low-frequency motion in the animation sequence comprises: The low-frequency information is input into a super-resolution model to obtain high-frequency information corresponding to the low-frequency information output by the super-resolution model.

7. A super-resolution device for cloth animation, characterized in that: The device comprises: An animation sequence generation module, used to perform error correction on low-frequency motion according to an error correction method, and generate an animation sequence corresponding to the cloth animation; wherein the low-frequency motion is obtained by simulating the corrected low-frequency motion of the adjacent previous frame in the animation sequence that has undergone error correction; The super-resolution module is used to generate high-frequency information corresponding to the low-frequency information based on the low-frequency information in the animation sequence.

8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 6 by running the executable instructions.

9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product having a computer program / instructions stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.