Model training method and device, data generation method and device, image generation model training method and image generation method

By using the noise pair generation model in the consistency generation model and training data noise pairs, the problems of large calculation amount and poor generation quality in the existing technology are solved, and more efficient data generation is achieved.

CN118568494APending Publication Date: 2024-08-30ALIBABA (CHINA) CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

The existing consistency generation model has a large amount of calculations and poor data generation quality during the training process. This is mainly due to the difficulty in strictly obtaining two adjacent points on the same PF ODE trajectory, resulting in independent sampling noise and data-induced training process. Yamato build quality problem.

Method used

By determining multiple noise data, input noise pairs to generate the model, obtain the target noise and initial data, denoise and determine the data noise pairs, thereby training to obtain the data generation model, using the data noise pairs to reduce uncertainty in the training process and reduce calculation quantity needs and improve the quality of generated data.

Benefits of technology

It effectively reduces the computational requirements for model training, improves the quality of data generated by the data generation model, simplifies the learning mapping relationship, and improves the quality of the generated data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568494A
    Figure CN118568494A
Patent Text Reader

Abstract

The embodiment of the invention provides a model training method and device, a data generation method and device, an image generation model training method and an image generation method, and relates to the technical field of computers.The model training method comprises the steps that multiple pieces of noise data are determined, and the multiple pieces of noise data are input into a noise pair generation model, obtaining target noise and initial data corresponding to each piece of noise data; determining a plurality of data noise pairs according to the target noise corresponding to each noise data and the initial data; determining a target data noise pair from the plurality of data noise pairs, and determining a target time step and an adjacent time step of the target time step from the plurality of time steps; determining a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step; according to the first initial noise, the second initial noise and initial data in the target data noise pair, training to obtain a data generation model; the data volume in the training process can be reduced, and the quality of data generated by the data generation model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and in particular to a model training method and apparatus, a data generation method and apparatus, and an image generation model training and image generation method. Background Art

[0002] The consistency generative model is an emerging generative model. Its characteristic is that it can achieve a generation effect close to that of a diffusion model with multi-step sampling through one or a few steps of sampling, while not requiring adversarial training. Therefore, the consistency generative model has been applied in the fields of image generation and video generation.

[0003] The basic principle of the consistency generation model is as follows: by letting the consistency generation model learn the PF ODE (Probability Flow Ordinary Differential Equation) trajectory at any point x t The point x corresponding to the starting point ∈ The points on the PF ODE trajectory represent data, so that the consistency generative model can also be used to generate data from any point x at time T. T Directly map to x corresponding to the time ∈ ∈ As long as T is chosen to be large enough, x T Approximately obey the Gaussian distribution, and sufficiently small ∈ can make x ∈ Approximately obey the required data distribution; in this way, it is possible to obtain the data distribution from Gaussian noise in one step. When multiple steps of sampling are required to improve the quality of data generation, the generated data can be re-noised to correspond to the distribution of a certain intermediate time t, and then remapped to the corresponding data distribution through the model, and then repeat this operation.

[0004] However, in actual training, since it is difficult to strictly obtain two adjacent points on the same PF ODE trajectory, the adjacent points are approximated in the following way: first, data samples and Gaussian noise are obtained by sampling independently from the data distribution and Gaussian distribution, and then the noise z is used to add noise to the data at adjacent time steps t i and t i+1The corresponding noise level is obtained to obtain the noised data corresponding to the adjacent time steps. The noised data obtained by this approximation method are not strictly on the same PF ODE trajectory, although as the difference between adjacent time steps in the time step sequence gradually decreases to 0, it converges to the required consistency generation model. However, when training the model in this way, the amount of calculation required is large, and the data generation quality is also poor. Summary of the invention

[0005] In view of this, an embodiment of this specification provides a model training method. One or more embodiments of this specification also relate to a model training device, a data generation method, a data generation device, an image generation model training method, an image generation method, a computing device, a computer-readable storage medium, and a computer program product to solve the technical defects existing in the prior art.

[0006] According to a first aspect of an embodiment of this specification, a model training method is provided, including:

[0007] Determine a plurality of noise data, input the plurality of noise data into a noise pair generation model, obtain target noise and initial data corresponding to each noise data, wherein each initial data is obtained by denoising each noise data according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise;

[0008] Determining a plurality of data-noise pairs according to the target noise corresponding to each noise data and the initial data;

[0009] Determine a target data-noise pair from the plurality of data-noise pairs, and determine a target time step and adjacent time steps of the target time step from the plurality of time steps;

[0010] Determining a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step;

[0011] A data generation model is obtained by training according to the first initial noise, the second initial noise and the initial data in the target data noise pair.

[0012] According to a second aspect of an embodiment of this specification, a data generation method is provided, including:

[0013] Determine initial noise data and a first target time step corresponding to the initial noise data, and obtain initial data using a data generation model, wherein the data generation model denoises the initial noise data according to the first target time step in the time step sequence;

[0014] Determine an initial noise corresponding to the initial noise data, and sample a reference noise from a standard noise corresponding to the initial noise;

[0015] Obtaining updated noise according to the initial noise and the reference noise, and adding noise to the initial data according to the updated noise and other time steps in the time step sequence except the first target time step to obtain target noise data;

[0016] The target data is obtained by using the data generation model according to the target noise data and a second target time step corresponding to the target noise data, wherein the other time step and the second target time step are both smaller than the first target time step.

[0017] According to a third aspect of an embodiment of this specification, there is provided an image generation model training method, comprising:

[0018] Determine a plurality of noise images, input the plurality of noise images into a noise pair generation model, obtain a target noise and an initial image corresponding to each noise image, wherein each initial image is obtained by denoising the noise image according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise;

[0019] Determining a plurality of image-noise pairs according to the target noise corresponding to each noise image and an initial image;

[0020] Determine a target image-noise pair from the plurality of image-noise pairs, and determine a target time step and adjacent time steps of the target time step from the plurality of time steps;

[0021] Determining a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step;

[0022] An image generation model is obtained by training according to the first initial noise, the second initial noise and the initial image in the target data noise pair.

[0023] According to a fourth aspect of the embodiments of this specification, there is provided an image generation method, including:

[0024] Determine an initial noisy image and a first target time step corresponding to the initial noisy image, and obtain an initial image using an image generation model, wherein the image generation model denoises the initial noisy image according to the first target time step in the time step sequence;

[0025] Determine an initial noise corresponding to the initial noise image, and sample a reference noise from a standard noise corresponding to the initial noise;

[0026] Obtaining updated noise according to the initial noise and the reference noise, and adding noise to the initial image according to the updated noise and other time steps in the time step sequence except the first target time step to obtain a target noise image;

[0027] According to the target noise image and the second target time step corresponding to the target noise data, the target image is obtained by using the image generation model, wherein the other time step and the second target time step are both smaller than the first target time step.

[0028] According to a fifth aspect of the embodiments of this specification, a model training device is provided, including:

[0029] A data input module is configured to determine a plurality of noise data, input the plurality of noise data into a noise pair generation model, and obtain a target noise and initial data corresponding to each noise data, wherein each initial data is obtained by denoising each noise data according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise;

[0030] A data pair determination module, configured to determine a plurality of data-noise pairs according to the target noise corresponding to each noise data and the initial data;

[0031] A time step determination module is configured to determine a target data noise pair from the plurality of data noise pairs, and determine a target time step and adjacent time steps of the target time step from the plurality of time steps;

[0032] The model training module is configured to determine a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step, and train a data generation model based on the first initial noise, the second initial noise and the initial data in the target data noise pair.

[0033] According to a sixth aspect of an embodiment of this specification, there is provided a data generating device, including:

[0034] A data determination module is configured to determine initial noise data and a first target time step corresponding to the initial noise data, and obtain initial data using a data generation model, wherein the data generation model denoises the initial noise data according to the first target time step in the time step sequence;

[0035] a noise sampling module, configured to determine an initial noise corresponding to the initial noise data, and sample a reference noise from a standard noise corresponding to the initial noise;

[0036] A noise acquisition module is configured to obtain an update noise according to the initial noise and the reference noise, and to add noise to the initial data according to the update noise and other time steps in the time step sequence except the first target time step to obtain target noise data;

[0037] The data acquisition module is configured to obtain target data using the data generation model according to the target noise data and a second target time step corresponding to the target noise data, wherein the other time step and the second target time step are both smaller than the first target time step.

[0038] According to a seventh aspect of an embodiment of this specification, there is provided a computing device, including:

[0039] Memory and processor;

[0040] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the above-mentioned model training method and data generation method are implemented.

[0041] According to an eighth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the above-mentioned model training method and data generation method are implemented.

[0042] According to the ninth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instruction, which implements the steps of the above-mentioned model training method and data generation method when executed by a processor.

[0043] A model training method provided by an embodiment of the present specification includes determining a plurality of noise data, inputting the plurality of noise data into a noise pair generation model, obtaining a target noise and initial data corresponding to each noise data, wherein each initial data is obtained by denoising the noise data according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise; determining a plurality of data-noise pairs according to the target noise and the initial data corresponding to each noise data; determining a target data-noise pair from the plurality of data-noise pairs, and determining a target time step and adjacent time steps of the target time step from the plurality of time steps; determining a first initial noise corresponding to the target time step, and a second initial noise corresponding to the adjacent time step; and training to obtain a data generation model according to the first initial noise, the second initial noise, and the initial data in the target data-noise pair.

[0044] Based on this, the model training method provided in the embodiments of this specification obtains noise and data corresponding to multiple noise data by utilizing a noise pair generation model, thereby obtaining data-noise pairs with a matching relationship. Therefore, when the data generation model is obtained by utilizing data-noise pair training, the problem of large demand for training data and large amount of calculation in the training process caused by independent sampling of noise and data can be solved; and the mapping relationship learned by the data generation model can be simplified, thereby improving the quality of generated data when the data generation model is subsequently applied to generate data. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a scenario diagram of a data generation method provided by an embodiment of this specification;

[0046] Figure 2 is a flow chart of a model training method provided by an embodiment of this specification;

[0047] Figure 3 is a processing flow chart of a model training method provided by an embodiment of this specification;

[0048] Figure 4 is a flow chart of a data generation method provided by an embodiment of this specification;

[0049] Figure 5 is a processing flow chart of a data generation method provided by an embodiment of this specification;

[0050] Figure 6 is a flowchart of an image generation model training method provided by an embodiment of this specification;

[0051] Figure 7 is a flow chart of an image generation method provided by an embodiment of this specification;

[0052] Figure 8 It is a structural schematic diagram of a model training device provided by an embodiment of this specification;

[0053] Fig. 9 is a structural schematic diagram of a data generating device provided by an embodiment of this specification;

[0054] Fig.10 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0055] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0056] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification 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 in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0057] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this 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 one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. 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".

[0058] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0059] First, the terms involved in one or more embodiments of this specification are explained.

[0060] Generative models: models that are able to sample from a given data distribution.

[0061] Diffusion model: A generative model that includes two random processes, the forward process and the reverse process. The forward process starts at time t=0 and gradually adds Gaussian noise independent of the data to the data until it approaches pure noise (standard Gaussian distribution) at time t=T. The reverse process is the actual sampling process, which starts with pure noise sampled from the standard Gaussian distribution and gradually removes the noise to obtain data samples.

[0062] Probability Flow Ordinary Differential Equation (PFODE): Each diffusion model corresponds to a PF ODE, which can also be sampled from the data distribution through multiple iterations; unlike the reverse process of the diffusion model, the PF ODE is a deterministic process described by ODE rather than a random process.

[0063] Consistency generation model: consistency model, consistency generation model, can learn the following mapping defined by a PFODE: from any point x_t at any time t on the trajectory of the PF ODE to the point x_∈ corresponding to the starting time ∈ on the same trajectory. When the distribution at a certain time T is given as a boundary condition, if the distribution of the starting time ∈ of this PF ODE is exactly the data distribution required for sampling, then the consistency generation model can achieve sampling from the given data distribution.

[0064] Rectified flow: A generative model based on ODE, an adjusted or corrected flow model; similar to PF ODE, it can generate data samples starting from Gaussian noise through multiple iterations. At the same time, rectified flow also has a feature: using the data noise pairs composed of the data generated by the rectified flow and the corresponding noise, a new rectified flow can be retrained. This new rectified flow has a simpler data-to-noise mapping relationship (the ODE trajectory is simpler and the transmission cost from noise to data is smaller).

[0065] 1-rectified flow: does not depend on other rectified flows, and is trained directly from the data distribution and noise independent of the data.

[0066] 2-rectified flow: The rectified flow is retrained using the data-noise pairs generated by the 1-rectified flow; compared with the 1-rectified flow, it has a simpler data-to-noise mapping relationship.

[0067] As an emerging generative model, the consistency generative model has been applied in image generation, video generation and other fields due to its fast generation speed. However, the consistency generative model still has the following problems: large computing resources are required for model training. In order to obtain sufficient generation quality, model training requires a large batch size; the generation quality is insufficient. Although the consistency generative model can sacrifice time in exchange for generation quality through multi-step sampling, the generation quality is still lower than that of mainstream high-quality generative models.

[0068] In this specification, a model training method is provided. One or more embodiments of this specification also involve a model training device, a data generation method, a data generation device, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.

[0069] See also Figure 1 , Figure 1 A schematic diagram of a scenario of a data generation method provided according to an embodiment of the present specification is shown.

[0070] Specifically, the text processing method is implemented by the terminal device 102 and the server 104. Taking the data generation method applied to the image field as an example, the data generation method is described in detail. In actual applications, the data generation method can also be applied to text, audio and video fields, which are not limited here.

[0071] The terminal device 102 is used to send an initial noise image and a first target time step to the server 104. The initial noise image is an image with noise, and the first target time step is determined from the time step sequence. In actual applications, when the data generation method is applied to the audio field, the user can input the initial noise audio into the terminal device 102 by voice. In this case, the terminal device 102 will also include corresponding audio processing parts, such as audio analysis, audio synthesis and other modules, which are used to receive and process the initial noise audio input by the user. This specification does not limit this.

[0072] A data generation model is obtained by training in the server 104. The data generation model determines a plurality of noise data, inputs the plurality of noise data into a noise pair generation model, obtains target noise and initial data corresponding to each noise data, wherein each initial data is obtained by denoising each noise data according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise; determines a plurality of data-noise pairs according to the target noise and the initial data corresponding to each noise data; determines a target data-noise pair from the plurality of data-noise pairs, and determines a target time step and an adjacent time step of the target time step from the plurality of time steps; determines a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step, and The image is obtained by training with the initial data of the first initial noise, the second initial noise and the target data noise pair; thereby, the initial image is obtained by using the data generation model according to the initial noise image and the first target time step; in order to improve the quality of the generated image, the initial image is re-noised to obtain a target noise image and a second target time step corresponding to the target noise image, and the data generation model is used to remap the image to the corresponding data distribution, i.e., the image is regenerated. The above operation can be repeated to obtain multiple generated images for the initial noise image, and a target image is determined from the multiple generated images, the target image being a clearer and higher-resolution image among the multiple generated images, i.e., the image quality of the target image is greater than that of other images among the multiple generated images, and the target image is returned to the terminal device 102.

[0073] The end-side device 102 may include a browser, an APP (Application), or a web application such as an H5 (Hyper Text Markup Language 5, version 5 of Hypertext Markup Language) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The end-side device may be based on the software development kit (SDK) of the corresponding service provided by the server, such as based on the real-time communication (RTC) SDK development and acquisition. The end-side device can be deployed in an electronic device and needs to rely on the device to run or some APPs in the device to run. The electronic device may have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, etc. Various other types of applications can usually be configured in the electronic device, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0074] Server 104 can be understood as a server that provides various services, including physical servers and cloud servers, such as a server that provides communication services to multiple clients, a server for background training that supports the model used on the client, and a server that processes the data sent by the client. It should be noted that server 104 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. Server 104 can also be a server for a distributed system, or a server combined with a blockchain. Server 104 can also be a cloud server for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0075] It is worth noting that the data generation method provided in the embodiments of this specification can be executed by the server 104. In other embodiments of this specification, the data generation model can be deployed in the terminal device 102, so that the terminal device 102 can also have similar functions as the server 104, thereby executing the data generation method provided in the embodiments of this specification; in other embodiments, the data generation method provided in the embodiments of this specification can also be executed jointly by the terminal device 102 and the server 104.

[0076] The data generation method provided in the embodiments of this specification generates a model for training data through data noise, thereby reducing the computational requirements for model training and the computational pressure of a GPU (Graphic Processing Unit, also known as a display core, visual processor, display chip, a microprocessor that performs image and graphics related operations on personal computers, workstations, game consoles, and some mobile devices (such as tablets, smart phones, etc.)). The data generation model can be used to obtain initial data corresponding to the initial noise data. The data generation model can be used to improve the generation quality of data generated by the data generation model through multi-step sampling, thereby improving the quality of the target data.

[0077] See also Figure 2 , Figure 2 A flow chart of a model training method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0078] Step 202: Determine a plurality of noise data, input the plurality of noise data into a noise pair generation model, obtain a target noise and initial data corresponding to each noise data, wherein each initial data is obtained by denoising the noise data according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise.

[0079] The noise data can be understood as data containing noise, which refers to data that deviates from its true value due to random interference; noise can be understood as abnormal values ​​that appear in the data due to various reasons; for example, in image processing, noise can be manifested as color or brightness anomalies, blur, etc. at the pixel level. In practical applications, noise can be classified from different perspectives, such as Gaussian noise (obeying normal distribution), uniform noise (equal probability of occurrence at each level), salt and pepper noise (random distribution of black and white pixels), exponential noise, etc.

[0080] The noise pair generation model can be understood as a rectified flow model, which can process noise data and generate corresponding ideal noise and corresponding initial data estimation based on the noise data; the target noise can be understood as the ideal noise value calculated by the noise pair generation model for each noise data, that is, if the real signal is to be restored, the target noise needs to be subtracted from the original noise data.

[0081] The initial data can be understood as data obtained by denoising the noise data. The denoising in the embodiments of this specification is completed based on the target noise and time step sequence obtained by the noise generation model; the time step sequence can be understood as the data record (i.e., initial noise) at a series of time steps arranged in chronological order when processing continuous data; of course, the time step sequence can also record a series of time steps arranged in chronological order when processing continuous data. When there is a corresponding relationship between each time step and the corresponding data, the corresponding data can be determined according to each time step in the time step sequence.

[0082] Taking the target noise as Gaussian noise that conforms to the Gaussian distribution as an example, when the target noise is obtained, it can be represented by Gaussian distribution parameters (such as Gaussian distribution parameters are mean μ and standard deviation σ). For each time step in the time step sequence, the initial noise corresponding to each time step is determined by determining its corresponding Gaussian distribution parameters.

[0083] Specifically, the noise pair generation model receives multiple noise data as input, and then generates target noise corresponding to each noise data respectively, and based on the target noise and the initial noise of different time steps in the time step sequence, gradually denoises the noise data to obtain the restored initial data.

[0084] Step 204: Determine a plurality of data-noise pairs according to the target noise corresponding to each noise data and the initial data.

[0085] The data-noise pair can be understood as a data-noise pair consisting of initial data and target noise, that is, the data and noise in the data-noise pair are correlated and are obtained by processing the same noise data.

[0086] Specifically, when the noise pair generation model is used to obtain the target noise and the initial data, a data-noise pair can be constructed according to the target noise and the initial data. When the noise pair generation model is a 1-rectified flow model (a pre-trained rectified flow model), the mapping from the noise data to the initial data is the mapping on the trajectory defined by the 1-rectified flow. Therefore, when the data generation model is subsequently trained using the data noise pair generated by the 1-rectified flow model, the data generation model learns the mapping on the trajectory corresponding to the 2-rectified flow model. The mapping at this time is simpler. When the mapping from the noise data to the initial data is simpler, the data quality of the generated initial data can be improved when the data generation model is used to generate initial data from the noise data.

[0087] In order to facilitate the subsequent training data generation model, the time period between the starting time ∈ and the end time T is usually discretized first to obtain a time step sequence ∈=t1 with a length of N <t2<…<t N =T (the sequence length N and the discretization method of the sequence may change as the training process progresses). Through model training, any adjacent time step t i and t (i+1) Any two points x on the same PF ODE trajectory ti and x t(i+1) , after the mapping of the data generation model, the same result can be obtained, that is, the same initial data, while the constraint model can convert any x ∈ Mapping to itself remains unchanged, then this data generation model can be generated from any t i Any point at any moment is mapped to the starting moment and the corresponding point on the same trajectory to complete the training of the data generation model.

[0088] When the existing training data is used to generate the model, data and noise are obtained by independent sampling, two adjacent time steps and the initial noise corresponding to the two adjacent time steps are determined, and the data is noised based on the initial noise to obtain the noise data corresponding to the two adjacent time steps, that is, the above x ti and x t(i+1), thereby using the noise data corresponding to two adjacent time steps to train the data generation model; however, when the data and noise are obtained by independent sampling, due to the difference between the PF ODE trajectory of the uncertain data and the data with added noise, when training the data generation model, due to the uncertainty in the training process, a large amount of training data is required for training, which increases the amount of calculation during training.

[0089] In the embodiments of this specification, based on the data-noise pair, it can be ensured that the data and the data with added noise correspond to the same PF ODE trajectory, thereby reducing the uncertainty of the data generation model during the training process, thereby reducing the demand for training data and further reducing the computational requirements during training.

[0090] Step 206: Determine a target data-noise pair from the multiple data-noise pairs, and determine a target time step and adjacent time steps of the target time step from the multiple time steps.

[0091] Among them, the data noise pair is used as a training sample pair to realize the training of the data generation model, and the target data noise pair can be understood as the training sample determined in this round of training; the target time step can be understood as a specific time step determined from multiple time steps in the time step sequence; the adjacent time step can be understood as the time step immediately before or after the target time step in the time step sequence; the time step indicates the position in the time dimension of the model processing data.

[0092] Specifically, a target data-noise pair is randomly sampled from multiple data-noise pairs, so as to process the target data-noise pair, and the data generation model is trained based on the target data-noise pair. During the training, it is necessary to determine the position point on the ODE trajectory to which the noise should be added when the initial data in the target data-noise pair is denoised and the corresponding noise data is obtained, and the position point is determined by the time step; thus, a target time step and adjacent time steps adjacent to the target time step are sampled from multiple time steps in the time step sequence.

[0093] Step 208: Determine a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step, and train a data generation model based on the first initial noise, the second initial noise and the initial data in the target data noise pair.

[0094] Among them, the first initial noise can be understood as the initial noise corresponding to the target time step, reflecting the degree to which the data points corresponding to the target time step deviate from the ideal (noise-free) state; the second initial noise can be understood as the initial noise corresponding to the adjacent time step, reflecting the degree to which the data points corresponding to the adjacent time step deviate from the ideal (noise-free) state; the data generation model can be understood as a model that can estimate the original, noise-free data from noisy data. In the embodiment of this specification, the data generation model is taken as a consistency generation model as an example.

[0095] Specifically, a data generation model is trained by using the initial noise of the target time step and its adjacent time steps in combination with the initial data in the target data-noise pair. During the specific training, the initial data is denoised by using the initial noise of the target time step and its adjacent time steps to obtain the noisy data after denoising. The noise data corresponding to the target time step and the adjacent time step are denoised by using the data generation model to generate restored data. The data generation model is obtained by training by comparing the gap between the two time steps and the restored data.

[0096] In practical applications, when the initial data is an image, the noise data is a noisy image, and the data generation model is an image generation model; when the initial data is text, the noise data is noisy text, and the data generation model is a text generation model; when the initial data is audio, the noise data is noisy frequency, and the data generation model is an audio generation model; when the initial data is a video, the noise data is a noisy video, and the data generation model is a video generation model.

[0097] In one or more embodiments of the present specification, the initial data is denoised based on the first initial noise and the second initial noise to obtain the first noise data and the second noise data after the denoising, so as to perform model training based on the two noise data. The specific implementation method is as follows:

[0098] The training and obtaining of a data generation model according to the first initial noise, the second initial noise, and the initial data in the target data noise pair includes:

[0099] Adding noise to the initial data in the target data noise pair according to the first initial noise to obtain first noise data;

[0100] Adding noise to the initial data in the target data-noise pair according to the second initial noise to obtain second noise data;

[0101] The data generation model is obtained by training according to the first noise data and the second noise data.

[0102] The first noise data may be understood as noise data containing noise obtained by superimposing the first initial noise on the initial data in the target data noise pair; the second noise data may be understood as another noise data containing noise obtained by applying the second initial noise to the initial data in the same set of target data noise pairs.

[0103] Specifically, the first initial noise and the second initial noise are used to add noise to the initial data in the target data noise pair respectively, so as to generate two first noise data and second noise data containing noise; the first noise data and the second noise data are used as training samples and used together for training data generation model.

[0104] In practical applications, the data noise pair can be expressed as (x, z), where x represents data and z represents noise; the points on the PF ODE trajectory corresponding to the data generation model can be obtained by the following formula: Among them, n~U[1,N-1] obeys the discrete uniform distribution from 1 to N-1, t n represents the nth time step in the time step sequence, t n+1 represents the n+1th time step in the time step sequence, Indicates t n The point on the trajectory corresponding to the time step, that is, t n The noise data corresponding to the time step, Indicates t n+1 The point on the trajectory corresponding to the time step, that is, t n+1 Noise data corresponding to the time step.

[0105] In the embodiments of this specification, t n The value of is in the range of [0,1], (1-t n )x+t n z represents the linear interpolation of x and z, which can also be understood as adding t to the data x. n / (1-t n )*z noise, and then scale the whole, the coefficient is (1-t n ), similarly, calculate (1-t n+1 )x+t n+1 z.

[0106] The model training method provided in the embodiments of this specification adds noise to the initial data according to the initial noise corresponding to the time step to obtain the noise data after adding noise. When the time step is two adjacent time steps, two noise data corresponding to the same trajectory can be obtained. When the model is subsequently trained based on the two noise data, the demand for larger training data in the training process can be reduced, thereby reducing the computational complexity of training.

[0107] In one or more embodiments of the present specification, by inputting the noise data and the time step corresponding to the two time steps into the data generation model, data generated based on the data generation model can be obtained, and thus the data generation model can be obtained based on the two data training. The specific implementation method is as follows:

[0108] The step of training and obtaining the data generation model according to the first noise data and the second noise data includes:

[0109] Inputting the first noise data and the target time step into the data generation model to obtain first initial data corresponding to the first noise data;

[0110] Inputting the second noise data and the adjacent time steps into the data generation model to obtain second initial data corresponding to the second noise data;

[0111] The data generation model is obtained by training according to the loss function calculated based on the first initial data and the second initial data.

[0112] Among them, the first initial data can be understood as the initial data obtained by restoring the first noise data from the target time step and one-step sampling based on the data generation model; sampling can be understood as the process of generating a batch of samples that obey the distribution of a variable when the distribution of the variable is determined; the second initial data can be understood as the initial data obtained by restoring the first noise data from the adjacent time step and one-step sampling based on the data generation model.

[0113] The loss function can be understood as a mathematical function that measures the degree of difference between the model prediction output and the true value. In the embodiment of this specification, the loss function is used to quantify the difference between the first initial data and the second initial data generated by the data generation model, so as to determine the training effect of the data generation model. For example, the smaller the difference between the first initial data and the second initial data, the better the training effect of the data generation model.

[0114] Specifically, by inputting the first noise data and the target time step into the data generation model, the first noise data is sampled from the target time step and one step through the data generation model, and the first initial data after the first noise data is denoised is generated. Similarly, by inputting the second noise data and the adjacent time step into the data generation model, the second noise data is sampled from the adjacent time step and one step through the data generation model, and the second initial data after the second noise data is denoised is generated.

[0115] A loss function is calculated based on the first initial data and the second initial data, wherein the loss function includes but is not limited to mean square error (MSE), cross entropy (for classification tasks) or other indicators that can quantify the gap between the first initial data and the second initial data.

[0116] In practical applications, after obtaining the loss function, the data generation model can adjust its internal weight parameters through the back-propagation algorithm and optimizer (such as gradient descent, Adam, etc.) to minimize the value of the loss function. This iterative training process continues until the data generation model can generate the same first initial data and second initial data given any two first noise data and second noise data.

[0117] The model training method provided in the embodiments of this specification, during the training process, the data generation model will adjust its own parameters according to the loss function calculated from the two initial data, so that the noise data corresponding to any time step can effectively restore high-quality noise-free data, and optimize the data generation model parameters by calculating the loss function to achieve better data generation effects.

[0118] In one or more embodiments of this specification, since the loss function at different time steps in the time step sequence has different requirements on the data generation model, the target weight of the loss function at the target time step is determined. The specific implementation method is as follows:

[0119] The loss function calculated according to the first initial data and the second initial data is trained to obtain the data generation model, comprising:

[0120] determining a target weight of the target time step relative to the loss function;

[0121] The data generation model is obtained by training according to the first initial data, the second initial data and the loss function calculated by the target weight.

[0122] Among them, there is a corresponding relationship between the target weight and the target time step. During the training process, different weights can be assigned to the loss functions at different time steps according to actual needs; by adjusting the weights of the loss functions at different time steps, a better training effect can be achieved overall.

[0123] Specifically, on the basis of determining the target time step, the target weight of the loss function corresponding to the target time step is determined, so as to train and obtain the data generation model according to the loss function calculated according to the first initial data, the second initial data and the target weight.

[0124] For example, the loss function is: Where E represents the expectation, where n, x and z are the expectations; data generation model fθ is based on the trainable parameter θ, and f θ- is the previous model state; this loss function aims to optimize the consistency of the data generation model in processing time-continuously changing samples generated from data noise pairs (x, z).

[0125] Specifically, the data noise pair (x, z) is generated by a 1-rectified flow, and the time variable t n and t n+1 represents two adjacent time steps in the time step sequence, and They are the noise data at these two time steps, which are obtained by linear interpolation formula, reflecting a smooth transition in the latent space.

[0126] λ(t n ) is a time-related weight function, reflecting the different degrees of consistency requirements for the data generation model at different time steps; d is a distance metric function used to measure the model f θ At time step t n+1 The data generated under the same conditions as the reference model f θ- At time step t n The difference between the data generated under Indicates that the model f θ , for t n+1 The corresponding noise data at time step t n+1 One step sampling, generate the corresponding initial data; similarly, Indicates that the model f θ- , for t n The corresponding noise data at time step t n One-step sampling generates the corresponding initial data; use d to calculate the distance between the two initial data and quantify the difference between the two initial data.

[0127] In actual training, multiple (n, x, z) pairs are sampled to form a batch, and the expectation is approximated by averaging a batch, that is, the loss function is calculated for each pair of samples in the batch, and the average is taken as the estimated value of the loss function of the batch, so as to perform optimization operations such as gradient descent; this training method can approximate the theoretical expected loss, and then iteratively update the model parameters θ to minimize the loss function and improve the performance consistency of the data generation model in time step sequence generation.

[0128] The model training method provided in the embodiments of this specification reasonably designs the loss functions at different time steps. By adjusting the weights of the loss functions at different time steps, the performance of the data generation model at each time step can be optimized in a targeted manner, thereby achieving an overall better training effect for the data generation model.

[0129] In one or more embodiments of this specification, the end condition of the data generation model training process is constrained by determining the target training step size. The specific implementation method is as follows:

[0130] Before training and obtaining a data generation model according to the first initial noise, the second initial noise, and the initial data in the target data noise pair, the method further includes:

[0131] Determining an initial number of training steps and a target number of training steps, wherein the initial number of training steps is less than the target number of training steps;

[0132] The training and obtaining of a data generation model according to the first initial noise, the second initial noise, and the initial data in the target data noise pair includes:

[0133] updating model parameters of the data generation model for training according to the first initial noise, the second initial noise, and initial data in the target data noise pair;

[0134] The initial training step number is incremented by 1, and when it is determined that the initial training step number is less than the target training step number, the steps of determining a target data-noise pair from the multiple data-noise pairs, determining a target time step and an adjacent time step of the target time step from the multiple time steps, determining a first initial noise corresponding to the target time step, and a second initial noise corresponding to the adjacent time step, and updating model parameters of the data generation model for training according to the first initial noise, the second initial noise, and initial data in the target data-noise pair are continued, until the data generation model is obtained when it is determined that the initial training step number is greater than the target training step number.

[0135] Among them, the initial training step can be understood as the starting point of the first iteration step set when the data generation model starts training, marking the starting point of the training cycle, usually initialized to 1; the target training step can be understood as a specified value, representing the total number of iteration steps expected to be achieved during the training process. When the training step reaches this value, the training process will stop.

[0136] Specifically, based on the loss function obtained in the above manner, the model parameters of the data generation model are updated through back propagation and gradient descent; after each iteration, the initial training step number is increased by 1, and it is checked whether the target training step number has been reached. If the current training step number is still less than the target training step number, new target data noise pairs are continuously selected from multiple data noise pairs, and the training process is repeated; when the initial training step number is equal to the target training step number, the training is stopped, and the model obtained at this time is the trained data generation model.

[0137] The model training method provided in the embodiments of this specification can gradually improve the model parameters of the data generation model in each step by gradually increasing the number of training steps, thereby more accurately simulating the probability distribution of real data and improving the quality of generated data; and by setting the initial number of training steps and the target number of training steps, the training time cost can be flexibly controlled, which can not only achieve reasonable training under limited computing resources, but also extend the training cycle when necessary to pursue higher model performance.

[0138] The model training method provided in the embodiments of this specification can use data noise pairs to train the data generation model, thereby reducing the computational requirements during the training process and improving the quality of generated data.

[0139] See also Figure 3 , Figure 3 A processing flow chart of a model training method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0140] Step 302: Initialize model parameters θ, initialize model parameters θ - , initialize the training step number k to 0, and initialize the data noise for the data set D.

[0141] Specifically, the embodiments of this specification take the data generation model as a consistency generation model as an example for explanation.

[0142] In the case of model training, first initialize the model parameters θ and θ of the consistency generation model - , the model parameter θ can be randomly selected or set based on experience, and there is no restriction here. Initialize the number of training steps k: = 0, this is to track the progress of training, and the value of the number of training steps k will increase by 1 after each training iteration.

[0143] The initialized data noise pair dataset D is generated by the pre-trained 1-rectified flow model using its corresponding sampling method, so that in each pair of data noise pairs (x, z) obtained, the data x is generated by the 1-rectified flow through its corresponding noise z.

[0144] Step 304: Sample target data-noise pairs (x, z) from the noise data pair dataset D.

[0145] Specifically, in each training iteration, a pair of data x and noise z is randomly selected from the noise data pair dataset D, and is determined as a target data noise pair as a training sample for this round of training.

[0146] Step 306: Sampling to obtain an integer n.

[0147] Specifically, an integer n is sampled from a uniform distribution of 1-N(k)-1, where N(k) represents the number of samples used in the previous k training runs and n is a random integer. By determining n, t is obtained. n , the t n As the target time step, that is, the target time step is determined from the time step sequence by sampling n. When the target time step is determined, the time step adjacent to the target time step is determined as the adjacent time step.

[0148] Step 308: Calculate the loss function and update the model parameters θ.

[0149] When n, x, and z are known, according to the above formula get and So as to calculate the loss function L(θ,θ - ) represents the model parameters θ and θ - The difference between.

[0150] The loss function is updated by gradient descent. Gradient descent is an optimization method that updates the model parameters θ along the negative gradient direction of the loss function to minimize the loss function.

[0151] Step 310: Increment the value of k by 1 and assign the model parameter θ to the model parameter θ - .

[0152] After completing a training iteration, the value of k increases by 1, and the current model parameter θ is assigned to the model parameter θ - , ready for the next iteration.

[0153] Step 312: End judgment k=K?, that is, judge whether the number of training steps reaches the target number of training steps K. If so, output the model parameter θ and end the training; if not, execute step 304 to continue the training.

[0154] If the number of training steps k is equal to the preset target number of training steps K, then the training reaches the end condition and the training ends; otherwise, the process returns to step 304 to continue the next round of training and resample the target data noise pair.

[0155] Step 314: Output model parameters θ.

[0156] After the training is completed, the final model parameters θ are output, and new data can be predicted based on these model parameters θ.

[0157] The model training method provided in the embodiments of this specification can use data noise pairs to train the data generation model, thereby reducing the computational requirements during the training process and improving the quality of generated data.

[0158] See also Figure 4 , Figure 4 A flow chart of a data generation method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0159] Step 402: Determine initial noise data and a first target time step corresponding to the initial noise data, and obtain initial data using a data generation model, wherein the data generation model denoises the initial noise data according to the first target time step in a time step sequence.

[0160] Among them, the initial noise data can be understood as the original random data, which can be expressed as Gaussian noise or other types of random signals. These data do not directly represent clear or meaningful data, but they can be converted into useful information after being processed by the data generation model.

[0161] The first target time step can be understood as a specific time step in the time step sequence, at which the data generation model will perform specified operations on the initial noisy data, such as denoising or reconstruction; in the embodiment of this specification, the first target time step is selected as a larger time step in the time step sequence.

[0162] A data generation model can be understood as an artificial intelligence algorithm or model that is used to generate new and realistic data samples from a latent space (usually a noise distribution); this model learns how to map random noise into the data space to create new data that conforms to the real data distribution.

[0163] Denoising can be understood as the process of iteratively optimizing or transforming the initial noise data by the data generation model. The purpose is to remove meaningless random components, extract parts that meet the structural characteristics of the target data, and generate data samples that are clearer or closer to actual application needs.

[0164] Specifically, the initial noise data and the first target time step are determined, and then the pre-trained data generation model is used to process the initial noise data at the given first target time step, and the noise is eliminated through the reverse propagation or forward generation process of the model, so as to generate initial data that is initially close to the real data in one step.

[0165] Step 404: Determine the initial noise corresponding to the initial noise data, and sample reference noise from the standard noise corresponding to the initial noise.

[0166] Among them, the initial noise is used to describe the uncertainty or randomness existing in the initial noise data; the standard noise is the noise corresponding to the distribution of the initial noise and conforms to the standard distribution. For example, when the initial noise is Gaussian noise that conforms to the Gaussian distribution, the standard noise is standard Gaussian noise that conforms to the standard Gaussian distribution; the reference noise can be understood as the noise randomly sampled from the standard noise that conforms to the standard distribution.

[0167] Specifically, taking the initial noise as Gaussian noise as an example, the standard noise corresponding to the initial noise is determined by determining the initial noise, so as to obtain the reference noise by sampling in the standard noise; it is convenient to obtain the combined noise by combining the initial noise with the reference noise later.

[0168] Step 406: Obtain updated noise based on the initial noise and the reference noise, and add noise to the initial data based on the updated noise and other time steps in the time step sequence except the first target time step to obtain target noise data.

[0169] Among them, the update noise can be understood as a new noise signal calculated by combining the initial noise and the reference noise, which is used to adjust and correct the initial noise so that a little randomly sampled Gaussian noise is added to the initial noise, thereby adjusting the quality of the initial data while being able to generate the initial data.

[0170] The target noise data may be understood as noise data obtained by adding noise to the initial data through the update noise.

[0171] Specifically, when the update noise is obtained, the noise corresponding to other time steps in the time step sequence except the first target time step is determined based on the update noise, and the noise corresponding to other time steps is added to the initial data in a step-by-step iterative manner to obtain the target noise data after the noise is added.

[0172] Step 408: According to the target noise data and a second target time step corresponding to the target noise data, the target data is obtained by using the data generation model, wherein the other time step and the second target time step are both smaller than the first target time step.

[0173] Among them, the second target time step can be understood as the time step that is before the first target time step in the time step sequence, and the target noise data includes the noise of the second target time step and other time steps before it; the target data can be understood as the data with better quality after the noise is removed, which is output by the data generation model.

[0174] Specifically, the target noise data is input into the data generation model, the noise is removed by using the data generation model, and the denoised data is obtained by sampling from the second target time step. The output is the target data, which has the noise effect removed and is as close as possible to the data value in the actual noise-free state relative to the second target time step; that is, the target noise data is first generated by applying noise to the initial data, and then the data generation model is used to restore or predict the noise-free data at the second target time step.

[0175] In practical applications, the data generation method can be applied to various scenarios. For example, when applied to an image generation scenario, the initial noise data can be a noisy image, and the corresponding target data is an image; when applied to a text generation scenario, the initial noise data can be a noisy text, and the corresponding target data is text; when applied to an audio generation scenario, the initial noise data can be a noisy frequency, and the corresponding target data is audio; when applied to a video generation scenario, the initial noise data can be a noisy video, and the corresponding target data is a video.

[0176] In one or more embodiments of the present specification, the process of obtaining the target data is a multi-step sampling process, that is, by obtaining initial data multiple times, adding noise to the initial data, and then using the data generation model to denoise the steps, multiple candidate data are obtained, and the target data that is finally output is determined based on the candidate data. The specific implementation method is as follows:

[0177] The step of obtaining target data by using the data generation model according to the target noise data and the second target time step corresponding to the target noise data includes:

[0178] According to the target noise data and a second target time step corresponding to the target noise data, using the data generation model to obtain candidate data;

[0179] Updating the second target time step to the first target time step, and updating the candidate data to the initial data, and determining whether there are other time steps except the first target time step in the time step sequence;

[0180] If yes, continue to perform the step of sampling the reference noise from the standard noise corresponding to the initial noise;

[0181] If not, the target data is determined according to the candidate data.

[0182] Among them, candidate data can be understood as data obtained by denoising noisy data containing noise using a data generation model. During the denoising process, the noise data is restored to the denoised data step by step based on time; target data can be understood as candidate data with better quality than other candidate data.

[0183] Specifically, the data generation model is used to denoise the target noise data at the second target time step to obtain candidate data, which is a better estimate of the noise-free state of the target noise data, and the candidate data improves the data quality based on the initial data; when the first target time step is a time step that is ranked later in the time step sequence, and the second target time step is smaller than the first target time step, the second target time step is determined, and after the candidate data is obtained by using the data generation model, the second target time step is updated to the first target time step, and the candidate data is subsequently updated to the initial data, that is, the candidate data is loaded again; it is achieved by iteratively generating multiple candidate data step by step in the time step sequence, that is, the entire cycle process moves forward one by one according to the order of the time steps in the time step sequence until all time steps that need to be processed are covered.

[0184] In practical applications, when it is determined that there are other time steps to be processed in the time step sequence (i.e., time steps other than those updated to the first target time step), the loop process is continued to extract new reference noise from the standard noise distribution corresponding to the initial noise, so as to perform the same noise addition and denoising processing based on these other time steps.

[0185] If there are no other time steps that need to be processed, it means that the time steps in the time step sequence have been processed. At this time, the target data is determined based on the previously obtained candidate data, that is, the target data is considered to be the data closest to the actual situation after noise is removed.

[0186] The data generation method provided in the embodiments of this specification samples reference noise in a continuous loop and updates different time steps until all required time steps are traversed to gradually obtain multiple candidate data, thereby ensuring that the candidate data of each time step is carefully adjusted, thereby improving the quality of the generated target data.

[0187] In one or more embodiments of the present specification, in order to obtain candidate data generated in the next cycle, the step of sampling reference noise from the standard noise corresponding to the initial noise is continued. The specific implementation method is as follows:

[0188] The step of continuing to perform the step of sampling the reference noise from the standard noise corresponding to the initial noise comprises:

[0189] Sampling a reference noise from a standard noise corresponding to the initial noise;

[0190] Obtaining updated noise according to the initial noise and the reference noise, and adding noise to the initial data according to the updated noise and other time steps in the time step sequence except the first target time step to obtain target noise data;

[0191] The candidate data is obtained by using the data generation model according to the target noise data and a second target time step corresponding to the target noise data.

[0192] For the specific implementation, please refer to the above embodiments, which will not be described in detail here.

[0193] In practical applications, since the process of mapping from initial noise data back to initial data in one step using a data generation model usually cannot guarantee the quality of the initial data, the generated initial data is optimized and corrected; when the initial noise data corresponds to the first target time step, the second target time step before the first time step is selected, and the target noise data corresponding to the second target data step is obtained by adding noise to the initial data. The target noise data is less affected by noise than the initial noise data, and the second target time step is closer to the time step corresponding to the initial data than the first target time step. Therefore, when the data generation model is used to map from the target noise data back to the candidate data in one step, less noise is removed and the time step span is short, so the quality of the candidate data is better than the initial data.

[0194] The data generation method provided in the embodiments of this specification enables the data generation model to gradually process different time steps through multi-step sampling when the data noise supports multi-step sampling for the trained data generation model, thereby ensuring the consistency of data processing over the entire time step sequence. At the same time, it also allows optimization and adjustment of the generated data at each time step, further improving the generation quality of the generated data.

[0195] See also Figure 5 , Figure 5 A processing flow chart of a data generation method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0196] Step 502: Input data to generate model f θ , input the total number of sampling steps N, input the time step sequence, initialize Gaussian noise, and initialize n to 1.

[0197] Specifically, the time step sequence is T min <T N-1 <… <T1<T max , where T minDenote a smaller time step. A sufficiently small value needs to be selected such that when the corresponding noise is added to the data, the impact on the data is negligible; in practical applications, for image data, 0.002 is usually taken.

[0198] T max Denote a larger time step. A sufficiently large value needs to be selected, usually much larger than the value range of the data itself, such that the noisy data corresponding to this time step can be approximately regarded as pure noise. For image data with the value range normalized to [-1, 1], 80 is usually taken.

[0199] T1, ···, T N-1 Denote the middle N - 1 time steps, satisfying the size relationship T N-1 < ··· < T1 is sufficient, and the specific values are not restricted.

[0200] On this basis, a sequence r1, r2, ···, r N-1 will also be input, representing the magnitude of the newly added random noise in each subsequent step. The value range is [0, 1], and a value close to 0 needs to be taken to obtain a better generation effect, such as the value range [0, 0.4].

[0201] Step 504: Input the initial noise and the larger time step into the data generation model to obtain the generated data.

[0202] Input the initial Gaussian noise z0 and the time step T max into the model f θ , and obtain the generated data z, that is, z := f θ (z0, τ max ); Subsequently, the remaining N - 1 steps of sampling will be performed to correct the generated data.

[0203] Step 506: Sample noise from the standard Gaussian distribution.

[0204] That is, the above process of sampling the reference noise will not be elaborated here.

[0205] Step 508: Combine the sampled noise and the initial noise to obtain the updated noise.

[0206] Specifically, the noise sampled from the standard Gaussian distribution is Using to obtain the updated noise, that is, the combination weight is controlled by r n , and this updated noise is used to re - add noise to the generated data z.

[0207] Step 510: Add the updated noise to the generated data to obtain the noise - added data.

[0208] That is The degree of adding noise is determined by Tn Determined by the formula z and The coefficient between is determined.

[0209] Step 512: The noise-added data and time step T n Re-input the data generation model to obtain new generated data.

[0210] use New generated data z is obtained, where the new generated data is the candidate data in the above embodiment.

[0211] Step 514: n is incremented by 1 and it is determined whether n is equal to the total number of sampling steps N. If so, new data is output; if not, step 506 is executed.

[0212] Step 516: Output new data.

[0213] The newly generated data here is the target data in the above embodiment.

[0214] The data generation method provided in the embodiments of this specification enables the data generation model to gradually process different time steps through multi-step sampling when the data noise supports multi-step sampling for the trained data generation model, thereby ensuring the consistency of data processing over the entire time step sequence. At the same time, it also allows optimization and adjustment of the generated data at each time step, further improving the generation quality of the generated data.

[0215] See also Figure 6 , Figure 6 A flowchart of an image generation model training method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0216] Step 602: determining a plurality of noise images, inputting the plurality of noise images into a noise pair generation model, obtaining a target noise corresponding to each noise image and an initial image, wherein each initial image is obtained by denoising the noise images according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise;

[0217] Step 604: determining a plurality of image-noise pairs according to the target noise corresponding to each noise image and the initial image;

[0218] Step 606: determining a target image-noise pair from the multiple image-noise pairs, and determining a target time step and adjacent time steps of the target time step from the multiple time steps;

[0219] Step 608: Determine a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step, and train an image generation model based on the first initial noise, the second initial noise and the initial image in the target data noise pair.

[0220] That is, the above-mentioned image generation model training method is a specific implementation of the model training method applied to the image field; the specific implementation method can be found in the above-mentioned embodiment, which will not be repeated here.

[0221] The image generation model training method provided in the embodiments of the present specification obtains noise and images corresponding to multiple noise images by utilizing a noise pair generation model, thereby obtaining image noise pairs with a matching relationship. Therefore, when the image generation model is obtained by utilizing image noise pair training, the problem of a large demand for training images and a large amount of calculation in the training process caused by independent sampling of noise and images can be solved; and the mapping relationship learned by the image generation model can be simplified, thereby improving the quality of the generated image when the image generation model is subsequently applied to generate images.

[0222] See also Figure 7 , Figure 7 A flowchart of an image generation method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0223] Step 702: determining an initial noisy image and a first target time step corresponding to the initial noisy image, and obtaining an initial image using an image generation model, wherein the image generation model denoises the initial noisy image according to the first target time step in the time step sequence;

[0224] Step 704: determining an initial noise corresponding to the initial noise image, and sampling a reference noise from a standard noise corresponding to the initial noise;

[0225] Step 706: obtaining an updated noise according to the initial noise and the reference noise, and adding noise to the initial image according to the updated noise and other time steps in the time step sequence except the first target time step to obtain a target noise image;

[0226] Step 708: Obtain a target image using the image generation model according to the target noise image and the second target time step corresponding to the target noise data, wherein the other time steps and the second target time step are both smaller than the first target time step.

[0227] That is, the above-mentioned image generation method is a specific implementation of the data generation method applied to the image field; the specific implementation method can be found in the above-mentioned embodiment, which will not be repeated here.

[0228] The image generation method provided in the embodiments of the present specification, when using image noise to support multi-step sampling for the trained image generation model, enables the image generation model to gradually process different time steps through multi-step sampling, thereby ensuring the consistency of data processing over the entire time step sequence, while also allowing optimization and adjustment of the generated image at each time step, further improving the generation quality of the generated image.

[0229] Corresponding to the above method embodiment, this specification also provides a model training device embodiment, Figure 8 FIG. 1 shows a schematic diagram of a model training device provided by an embodiment of the present specification. Figure 8 As shown, the device comprises:

[0230] The data input module 802 is configured to determine a plurality of noise data, input the plurality of noise data into a noise pair generation model, and obtain a target noise and initial data corresponding to each noise data, wherein each initial data is obtained by denoising the noise data according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise;

[0231] A data pair determination module 804 is configured to determine a plurality of data-noise pairs according to the target noise corresponding to each noise data and the initial data;

[0232] A time step determination module 806 is configured to determine a target data noise pair from the plurality of data noise pairs, and determine a target time step and adjacent time steps of the target time step from the plurality of time steps;

[0233] The model training module 808 is configured to determine the first initial noise corresponding to the target time step and the second initial noise corresponding to the adjacent time step, and train to obtain a data generation model based on the first initial noise, the second initial noise and the initial data in the target data noise pair.

[0234] Optionally, the model training module 808 is further configured to:

[0235] Adding noise to the initial data in the target data noise pair according to the first initial noise to obtain first noise data;

[0236] Adding noise to the initial data in the target data-noise pair according to the second initial noise to obtain second noise data;

[0237] The data generation model is obtained by training according to the first noise data and the second noise data.

[0238] Optionally, the model training module 808 is further configured to:

[0239] Inputting the first noise data and the target time step into the data generation model to obtain first initial data corresponding to the first noise data;

[0240] Inputting the second noise data and the adjacent time steps into the data generation model to obtain second initial data corresponding to the second noise data;

[0241] The data generation model is obtained by training according to the loss function calculated based on the first initial data and the second initial data.

[0242] Optionally, the model training module 808 is further configured to:

[0243] determining a target weight of the target time step relative to the loss function;

[0244] The data generation model is obtained by training according to the first initial data, the second initial data and the loss function calculated by the target weight.

[0245] The device further comprises:

[0246] The step number determination module is configured to determine an initial training step number and a target training step number, wherein the initial training step number is less than the target training step number.

[0247] Optionally, the model training module 808 is further configured to:

[0248] updating model parameters of the data generation model for training according to the first initial noise, the second initial noise, and initial data in the target data noise pair;

[0249] The initial training step number is incremented by 1, and when it is determined that the initial training step number is less than the target training step number, the steps of determining a target data-noise pair from the multiple data-noise pairs, determining a target time step and an adjacent time step of the target time step from the multiple time steps, determining a first initial noise corresponding to the target time step, and a second initial noise corresponding to the adjacent time step, and updating model parameters of the data generation model for training according to the first initial noise, the second initial noise, and initial data in the target data-noise pair are continued, until the data generation model is obtained when it is determined that the initial training step number is greater than the target training step number.

[0250] The model training device provided in the embodiments of this specification can use data noise pairs to train the data generation model, thereby reducing the computational requirements during the training process and improving the quality of generated data.

[0251] The above is a schematic scheme of a model training device of this embodiment. It should be noted that the technical scheme of the model training device and the technical scheme of the above-mentioned model training method belong to the same concept, and the details not described in detail in the technical scheme of the model training device can be referred to the description of the technical scheme of the above-mentioned model training method.

[0252] Corresponding to the above method embodiment, this specification also provides a data generating device embodiment, Fig. 9 FIG. 1 shows a schematic diagram of a data generating device provided by an embodiment of the present specification. Fig. 9 As shown, the device comprises:

[0253] The data determination module 902 is configured to determine initial noise data and a first target time step corresponding to the initial noise data, and obtain initial data using a data generation model, wherein the data generation model denoises the initial noise data according to the first target time step in the time step sequence;

[0254] The noise sampling module 904 is configured to determine the initial noise corresponding to the initial noise data, and sample reference noise from the standard noise corresponding to the initial noise;

[0255] The noise acquisition module 906 is configured to obtain an update noise according to the initial noise and the reference noise, and to add noise to the initial data according to the update noise and other time steps in the time step sequence except the first target time step to obtain target noise data;

[0256] The data acquisition module 908 is configured to obtain target data using the data generation model according to the target noise data and a second target time step corresponding to the target noise data, wherein the other time step and the second target time step are both smaller than the first target time step.

[0257] Optionally, the data acquisition module 908 is further configured to:

[0258] According to the target noise data and a second target time step corresponding to the target noise data, using the data generation model to obtain candidate data;

[0259] Updating the second target time step to the first target time step, and updating the candidate data to the initial data, and determining whether there are other time steps except the first target time step in the time step sequence;

[0260] If yes, continue to perform the step of sampling the reference noise from the standard noise corresponding to the initial noise;

[0261] If not, the target data is determined according to the candidate data.

[0262] Optionally, the data acquisition module 908 is further configured to:

[0263] Sampling a reference noise from a standard noise corresponding to the initial noise;

[0264] Obtaining updated noise according to the initial noise and the reference noise, and adding noise to the initial data according to the updated noise and other time steps in the time step sequence except the first target time step to obtain target noise data;

[0265] The candidate data is obtained by using the data generation model according to the target noise data and a second target time step corresponding to the target noise data.

[0266] The data generation device provided in the embodiments of this specification enables the data generation model to gradually process different time steps through multi-step sampling when the data noise supports multi-step sampling for the trained data generation model, thereby ensuring the consistency of data processing over the entire time step sequence. At the same time, it also allows optimization and adjustment of the generated data at each time step, further improving the generation quality of the generated data.

[0267] The above is a schematic scheme of a data generating device of this embodiment. It should be noted that the technical scheme of the data generating device and the technical scheme of the above data generating method belong to the same concept, and the details not described in detail in the technical scheme of the data generating device can be referred to the description of the technical scheme of the above data generating method.

[0268] Fig.10 The block diagram of a computing device 1000 according to an embodiment of the present specification is shown. The components of the computing device 1000 include but are not limited to a memory 1010 and a processor 1020. The processor 1020 is connected to the memory 1010 via a bus 1030, and the database 1050 is used to store data.

[0269] The computing device 1000 also includes an access device 1040 that enables the computing device 1000 to communicate via one or more networks 1060. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1040 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0270] In one embodiment of the present specification, the above components of the computing device 1000 and Fig.10 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.10 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0271] The computing device 1000 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 1000 may also be a mobile or stationary server.

[0272] Among them, the processor 1020 is used to execute the following computer program / instructions, which, when executed by the processor, implement the steps of the above-mentioned model training method and data generation method.

[0273] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computing device embodiment, since it is basically similar to the model training method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the model training method embodiment.

[0274] An embodiment of the present specification also provides a computer-readable storage medium, which stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the above-mentioned model training method and data generation method are implemented.

[0275] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computer-readable storage medium embodiment, since it is basically similar to the model training method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the model training method embodiment.

[0276] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned model training method and data generation method when executed by a processor.

[0277] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the above-mentioned model training method belong to the same concept, and the details not described in detail in the technical scheme of the computer program product can be referred to the description of the technical scheme of the above-mentioned model training method.

[0278] The above is a description of a specific embodiment of the specification. 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 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.

[0279] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0280] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0281] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0282] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can understand and use this specification well. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A model training method, include: Determine a plurality of noise data, input the plurality of noise data into a noise pair generation model, obtain target noise and initial data corresponding to each noise data, wherein each initial data is obtained by denoising each noise data according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise; Determining a plurality of data-noise pairs according to the target noise corresponding to each noise data and the initial data; Determine a target data-noise pair from the plurality of data-noise pairs, and determine a target time step and adjacent time steps of the target time step from the plurality of time steps; Determine a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step, and train a data generation model based on the first initial noise, the second initial noise, and initial data in the target data noise pair.

2. The model training method according to claim 1, wherein the data generation model is obtained by training based on the initial data of the first initial noise, the second initial noise and the target data noise pair, include: Adding noise to the initial data in the target data noise pair according to the first initial noise to obtain first noise data; Adding noise to the initial data in the target data-noise pair according to the second initial noise to obtain second noise data; The data generation model is obtained by training according to the first noise data and the second noise data.

3. The model training method according to claim 2, wherein the data generation model is obtained by training based on the first noise data and the second noise data, include: Inputting the first noise data and the target time step into the data generation model to obtain first initial data corresponding to the first noise data; Inputting the second noise data and the adjacent time steps into the data generation model to obtain second initial data corresponding to the second noise data; The data generation model is obtained by training according to the loss function calculated based on the first initial data and the second initial data.

4. The model training method according to claim 3, wherein the data generation model is obtained by training based on the loss function calculated according to the first initial data and the second initial data, include: determining a target weight of the target time step relative to the loss function; The data generation model is obtained by training according to the first initial data, the second initial data and the loss function calculated by the target weight.

5. The model training method according to claim 1, before training the data generation model based on the first initial noise, the second initial noise and the initial data in the target data noise pair, further comprising: include: Determining an initial number of training steps and a target number of training steps, wherein the initial number of training steps is less than the target number of training steps; The training and obtaining of a data generation model according to the first initial noise, the second initial noise, and the initial data in the target data noise pair includes: updating model parameters of the data generation model for training according to the first initial noise, the second initial noise, and initial data in the target data noise pair; The initial training step number is incremented by 1, and when it is determined that the initial training step number is less than the target training step number, the steps of determining a target data-noise pair from the multiple data-noise pairs, determining a target time step and an adjacent time step of the target time step from the multiple time steps, determining a first initial noise corresponding to the target time step, and a second initial noise corresponding to the adjacent time step, and updating model parameters of the data generation model for training according to the first initial noise, the second initial noise, and initial data in the target data-noise pair are continued, until the data generation model is obtained when it is determined that the initial training step number is greater than the target training step number.

6. According to the model training method of claim 1, the initial data is an image, the noise data is a noisy image, and the data generation model is an image generation model; and / or the initial data is text, the noise data is noisy text, and the data generation model is a text generation model; and / or the initial data is audio, the noise data is noisy frequency, and the data generation model is an audio generation model; and / or the initial data is video, the noise data is noisy video, and the data generation model is a video generation model.

7. A data generation method, include: Determine initial noise data and a first target time step corresponding to the initial noise data, and obtain initial data using a data generation model, wherein the data generation model denoises the initial noise data according to the first target time step in the time step sequence; Determine an initial noise corresponding to the initial noise data, and sample a reference noise from a standard noise corresponding to the initial noise; Obtaining updated noise according to the initial noise and the reference noise, and adding noise to the initial data according to the updated noise and other time steps in the time step sequence except the first target time step to obtain target noise data; The target data is obtained by using the data generation model according to the target noise data and a second target time step corresponding to the target noise data, wherein the other time step and the second target time step are both smaller than the first target time step.

8. The data generation method according to claim 7, wherein the target data is obtained by using the data generation model according to the target noise data and the second target time step corresponding to the target noise data, include: According to the target noise data and a second target time step corresponding to the target noise data, using the data generation model to obtain candidate data; Updating the second target time step to the first target time step, and updating the candidate data to the initial data, and determining whether there are other time steps except the first target time step in the time step sequence; If yes, continue to perform the step of sampling the reference noise from the standard noise corresponding to the initial noise; If not, the target data is determined according to the candidate data.

9. The data generating method according to claim 8, wherein the step of continuously performing the step of sampling the reference noise from the standard noise corresponding to the initial noise, include: Sampling a reference noise from a standard noise corresponding to the initial noise; Obtaining updated noise according to the initial noise and the reference noise, and adding noise to the initial data according to the updated noise and other time steps in the time step sequence except the first target time step to obtain target noise data; The candidate data is obtained by using the data generation model according to the target noise data and a second target time step corresponding to the target noise data.

10. According to the data generation method of claim 7, the initial noise data is a noisy image, and the target data is an image; and / or the initial noise data is a noisy text, and the target data is text; and / or the initial noise data is a noisy frequency, and the target data is audio; and / or the initial noise data is a noisy video, and the target data is a video.

11. A method for training an image generation model, include: Determine a plurality of noise images, input the plurality of noise images into a noise pair generation model, obtain a target noise and an initial image corresponding to each noise image, wherein each initial image is obtained by denoising the noise image according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise; Determining a plurality of image-noise pairs according to the target noise corresponding to each noise image and an initial image; Determine a target image-noise pair from the plurality of image-noise pairs, and determine a target time step and adjacent time steps of the target time step from the plurality of time steps; Determine a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step, and train an image generation model based on the first initial noise, the second initial noise, and an initial image in the target data noise pair.

12. A method for generating an image, include: Determine an initial noisy image and a first target time step corresponding to the initial noisy image, and obtain an initial image using an image generation model, wherein the image generation model denoises the initial noisy image according to the first target time step in the time step sequence; Determine an initial noise corresponding to the initial noise image, and sample a reference noise from a standard noise corresponding to the initial noise; Obtaining updated noise according to the initial noise and the reference noise, and adding noise to the initial image according to the updated noise and other time steps in the time step sequence except the first target time step to obtain a target noise image; According to the target noise image and the second target time step corresponding to the target noise data, the target image is obtained by using the image generation model, wherein the other time step and the second target time step are both smaller than the first target time step.

13. A model training device, include: A data input module is configured to determine a plurality of noise data, input the plurality of noise data into a noise pair generation model, and obtain a target noise and initial data corresponding to each noise data, wherein each initial data is obtained by denoising each noise data according to a plurality of time steps in a time step sequence and an initial noise corresponding to each time step, and the initial noise is determined according to the target noise; A data pair determination module, configured to determine a plurality of data-noise pairs according to the target noise corresponding to each noise data and the initial data; A time step determination module is configured to determine a target data noise pair from the plurality of data noise pairs, and determine a target time step and adjacent time steps of the target time step from the plurality of time steps; The model training module is configured to determine a first initial noise corresponding to the target time step and a second initial noise corresponding to the adjacent time step, and train a data generation model based on the first initial noise, the second initial noise and the initial data in the target data noise pair.

14. A data generating device, include: A data determination module is configured to determine initial noise data and a first target time step corresponding to the initial noise data, and obtain initial data using a data generation model, wherein the data generation model denoises the initial noise data according to the first target time step in the time step sequence; a noise sampling module, configured to determine an initial noise corresponding to the initial noise data, and sample a reference noise from a standard noise corresponding to the initial noise; A noise acquisition module is configured to obtain an update noise according to the initial noise and the reference noise, and to add noise to the initial data according to the update noise and other time steps in the time step sequence except the first target time step to obtain target noise data; The data acquisition module is configured to obtain target data using the data generation model according to the target noise data and a second target time step corresponding to the target noise data, wherein the other time step and the second target time step are both smaller than the first target time step.

15. A computing device, include: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the method described in any one of claims 1 to 12 are implemented.

16. A computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 12.

17. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Diffusion model training method and device, image generation method and device and medium

    CN117809135A

Cited By

  • Fast text guidance sound effect generation method and system based on segmented rectification

    CN119811365A

  • Image consistency model adaptive discretization method and device for optimizing visual angle inspiration, computer readable storage medium and computer program product

    CN121072614A