Image generation method, device, computer equipment and readable storage medium
By obtaining the style features of source domain and target domain images, calculating the style features of the intermediate domain and generating the target image, it solves the problem of missing samples in the intermediate domain and improves the richness of image samples and the generalization ability of the neural network model.
Patent Information
- Application Number
- CN202010973417.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-09-16
AI Technical Summary
In the existing technology, due to the lack of intermediate domain image samples, the richness of image samples is poor, which further reduces the generalization ability of the neural network model.
By obtaining the style features of the source domain and target domain images, calculating the style features of the intermediate domain, and using the generation network to generate the corresponding target image, this can make up for the lack of image samples in the intermediate domain and improve the richness of the image samples.
It realizes image generation in any preset intermediate domain from the source domain to the target domain, greatly increasing the richness of image samples and improving the generalization ability of the neural network model.
Smart Images

Figure CN112184846B
Abstract
Description
Technical Field
[0001] The present application relates to the field of machine learning technology, and in particular to an image generation method, apparatus, computer device and readable storage medium. Background Art
[0002] With the continuous development of machine learning technology, neural network models are widely used in various artificial intelligence scenarios, such as object classification, face recognition, weather recognition and prediction, etc. In the actual training process, the neural network model learns features from the training samples, so that the trained neural network model has the ability to distinguish different features.
[0003] The quality of the neural network model is closely related to the quality of the training samples, and the richness of the training samples is one of the important factors affecting the quality of the training samples. For example, a weather recognition model needs to be trained, but due to limited acquisition conditions, the image samples used for training are only sunny images and heavy snow images. Then, the neural network model trained based on the image samples cannot distinguish between light snow, cloudy days, etc.
[0004] Therefore, how to improve the richness of image samples and thus improve the generalization ability of neural network models has become a problem that needs to be solved urgently. Summary of the invention
[0005] Based on this, it is necessary to provide an image generation method, device, computer equipment and readable storage medium that can improve the richness of image samples and the generalization ability of neural network models in response to the above technical problems.
[0006] In a first aspect, an embodiment of the present application provides an image generation method, the method comprising:
[0007] Acquire a source domain image and a target domain image, acquire a source domain style feature and a source domain content feature according to the source domain image, and acquire a target domain style feature according to the target domain image;
[0008] Acquire at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature, where the first intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the source domain and the target domain;
[0009] A first target image corresponding to each of the first intermediate domain style features is generated according to the source domain content feature and the at least one first intermediate domain style feature.
[0010] In one embodiment, acquiring source domain style features and source domain content features according to the source domain image, and acquiring target domain style features according to the target domain image, includes:
[0011] Inputting the source domain image and the target domain image into the encoder network of the generation network respectively, to obtain the source domain style feature, the source domain content feature and the target domain style feature;
[0012] Correspondingly, generating, according to the source domain content feature and the at least one first intermediate domain style feature, a first target image corresponding to each of the first intermediate domain style features includes:
[0013] For each of the first intermediate domain style features, the source domain content feature and the first intermediate domain style feature are input into a decoder network of the generation network to obtain a first target image corresponding to the first intermediate domain style feature.
[0014] In one of the embodiments, acquiring at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature includes:
[0015] Determine at least one interpolation coefficient, where the interpolation coefficient is used to characterize the degree of correlation between a preset intermediate domain between a source domain and a target domain and the source domain and the target domain;
[0016] For each of the interpolation coefficients, the source domain style feature and the target domain style feature are interpolated using the interpolation coefficient to obtain a first intermediate domain style feature corresponding to the interpolation coefficient.
[0017] In one embodiment, the method further comprises:
[0018] Acquire target domain content features according to the target domain image;
[0019] Acquire at least one second intermediate domain style feature according to the source domain style feature and the target domain style feature, where the second intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the target domain and the source domain;
[0020] A second target image corresponding to each of the second intermediate domain style features is generated according to the target domain content feature and the at least one second intermediate domain style feature.
[0021] In one embodiment, the training process of the generating network includes:
[0022] Acquire a training sample set, wherein the training sample set includes a sample source domain image and a sample target domain image;
[0023] According to the training sample set, the initial generative adversarial network model is iteratively trained to obtain the generative network.
[0024] In one embodiment, the initial generative adversarial network model includes an initial generative network and an initial discriminative network, and the initial generative adversarial network model is iteratively trained according to the training sample set to obtain the generative network, including:
[0025] In one iterative training process, the initial generation network is used to generate a sample intermediate domain image corresponding to the random interpolation coefficient according to the sample source domain image, the sample target domain image and the random interpolation coefficient;
[0026] Inputting the sample intermediate domain image into the initial discriminant network to obtain prediction interpolation coefficients;
[0027] Determine whether the intermediate generation network converges according to multiple random interpolation coefficients and multiple predicted interpolation coefficients corresponding to multiple iterative training processes;
[0028] If the intermediate generation network converges, the generation network is obtained.
[0029] In one embodiment, determining whether the intermediate generation network converges according to multiple random interpolation coefficients and multiple predicted interpolation coefficients corresponding to multiple iterative training processes includes:
[0030] For each of the predicted interpolation coefficients, detecting whether a difference between the predicted interpolation coefficient and a corresponding random interpolation coefficient is less than a preset threshold;
[0031] If the differences corresponding to the predicted interpolation coefficients are all smaller than the threshold, it is determined that the intermediate generation network converges.
[0032] In a second aspect, an embodiment of the present application provides an image generating device, the device comprising:
[0033] A first acquisition module is used to acquire a source domain image and a target domain image, acquire a source domain style feature and a source domain content feature according to the source domain image, and acquire a target domain style feature according to the target domain image;
[0034] A second acquisition module, configured to acquire at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature, wherein the first intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the source domain and the target domain;
[0035] The first generating module is configured to generate a first target image corresponding to each of the first intermediate domain style features according to the source domain content feature and the at least one first intermediate domain style feature.
[0036] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the first aspect when executing the computer program.
[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of the first aspect described above.
[0038] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0039] By acquiring a source domain image and a target domain image, a source domain style feature and a source domain content feature are acquired according to the source domain image, and a target domain style feature is acquired according to the target domain image; at least one first intermediate domain style feature is acquired according to the source domain style feature and the target domain style feature, and the first intermediate domain style feature is used to characterize the image style feature of a preset intermediate domain between the source domain and the target domain; a first target image corresponding to each first intermediate domain style feature is generated according to the source domain content feature and the at least one first intermediate domain style feature; thus, a first target image corresponding to each first intermediate domain style feature can be generated according to the source domain content feature and the at least one first intermediate domain style feature, that is, for each first intermediate domain style feature, a first target image can be generated according to the source domain content feature and the first intermediate domain style feature, and the first target image is an image of the preset intermediate domain corresponding to the first intermediate domain style feature. For example, if the source domain image is a sunny image and the target domain image is a heavy snow image, then the preset intermediate domain can be any intermediate domain in the process of changing from sunny to heavy snow, for example, it can be light snow, then the first intermediate domain style feature is the image style feature corresponding to light snow, and the light snow image, i.e., the first target image, can be generated according to the content feature of the sunny image and the first intermediate domain style feature; this avoids the problem in traditional technology that the richness of image samples is poor due to the lack of certain intermediate domain image samples, which in turn leads to poor generalization ability of the neural network model trained based on the image samples. The embodiment of the present application realizes the generation of the first target image of any preset intermediate domain between the source domain and the target domain, which can make up for the lack of intermediate domain image samples, greatly increase the richness of image samples, and thus improve the generalization ability of the neural network model trained based on image samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a schematic flow chart of an image generating method in one embodiment;
[0041] Figure 2 is a schematic flow chart of an image generating method in one embodiment;
[0042] Figure 3Schematic diagram of detailed steps of step S200 in one embodiment;
[0043] Figure 4 is a schematic flow chart of an image generating method in one embodiment;
[0044] Figure 5 A schematic diagram of a process of an image generating method in one embodiment;
[0045] Figure 6 A schematic diagram of a training process for generating a network in one embodiment;
[0046] Figure 7 Schematic diagram of detailed steps of step S502 in one embodiment;
[0047] Figure 8 is a structural block diagram of an image generating device in one embodiment;
[0048] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The image generation method, device, computer equipment and readable storage medium provided in the embodiments of the present application are intended to solve the technical problem in the traditional technology that the image samples are poorly rich due to the lack of some intermediate domain image samples, which in turn leads to poor generalization ability of the neural network model trained based on the image samples. The technical solution of the present application will be described in detail below through embodiments and in conjunction with the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0051] It should be noted that the image generation method provided in the embodiment of the present application, its execution subject may be an image generation device, and the image generation device may be implemented as part or all of a computer device through software, hardware, or a combination of software and hardware, and the computer device may be a server. In the following method embodiments, the execution subject is a computer device as an example for explanation. It is understandable that the image generation method provided in the following method embodiments may also be applied to a terminal, and may also be applied to a system including a terminal and a server, and may be implemented through the interaction between the terminal and the server.
[0052] In one embodiment, Figure 1 As shown, a method for generating an image is provided, comprising the following steps:
[0053] Step S100: obtaining a source domain image and a target domain image, obtaining source domain style features and source domain content features according to the source domain image, and obtaining target domain style features according to the target domain image.
[0054] In an embodiment of the present application, the source domain image and the target domain image may be images with different image domains. For example, the source domain image is a sunny image, and the target domain image is a heavy snow image. For another example, the source domain image is a summer image, and the target domain image is a winter image, and so on. No specific limitation is made to the image domains of the source domain image and the target domain image.
[0055] A computer device obtains a source domain image and a target domain image, and obtains a source domain style feature and a source domain content feature based on the source domain image, and obtains a target domain style feature based on the target domain image, wherein the source domain style feature may be a feature corresponding to the style of the source domain image, the source domain content feature may be a feature corresponding to the content of the source domain image, and the target domain style feature may be a feature corresponding to the style of the target domain image.
[0056] In a possible implementation, the computer device may use a convolutional neural network to convolve and downsample the source domain image to obtain source domain style features and source domain content features, and convolve and downsample the target domain image to obtain target domain style features. The source domain style features, source domain content features, and target domain style features may all be in the form of feature vectors.
[0057] Step S200: acquiring at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature.
[0058] In an embodiment of the present application, a computer device may perform interpolation operations on source domain style features and target domain style features using an interpolation formula to obtain a first intermediate domain style feature, which is used to characterize image style features of a preset intermediate domain between the source domain and the target domain.
[0059] Since the source domain image and the target domain image are continuous in style, the source domain style features and the target domain style features can be regarded as two points in a high-dimensional space. The computer device uses an interpolation formula to interpolate the source domain style features and the target domain style features, and then the feature vector of the intermediate state between the source domain and the target domain can be obtained, that is, the image style features of the intermediate domain.
[0060] It can be understood that if the source domain style feature and the target domain style feature are regarded as two points in a high-dimensional space, then any point on the line between the two points can be used as an image style feature of a corresponding intermediate domain. Therefore, the computing device can use different interpolation coefficients to perform interpolation operations on the source domain style feature and the target domain style feature based on the interpolation formula to obtain the first intermediate domain style feature of each different preset intermediate domain. An interpolation coefficient corresponds to a preset intermediate domain, and the size of the interpolation coefficient can indicate whether the corresponding preset intermediate domain is closer to the source domain or closer to the target domain.
[0061] Step S300 : generating a first target image corresponding to each first intermediate domain style feature according to a source domain content feature and at least one first intermediate domain style feature.
[0062] For each first intermediate domain style feature, the computer device generates a first target image corresponding to the first intermediate domain style feature according to the source domain content feature and the first intermediate domain style feature. As an implementation method, the computer device may concatenate the source domain content feature and the first intermediate domain style feature and input them into a transposed convolutional network, and perform transposed convolution on the transposed convolutional network to generate a first target image output from the concatenated features.
[0063] For each first intermediate domain style feature, the computer device can generate a first target image corresponding to the first intermediate domain style feature. Different first intermediate domain style features correspond to different preset intermediate domains. Therefore, the computer device can generate first target images corresponding to each preset intermediate domain from the source domain to the target domain through the above embodiment, thereby obtaining an image sequence with continuously changing style from the source domain to the target domain.
[0064] The above-mentioned embodiment obtains a source domain image and a target domain image, obtains a source domain style feature and a source domain content feature according to the source domain image, and obtains a target domain style feature according to the target domain image; obtains at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature, and the first intermediate domain style feature is used to characterize the image style feature of a preset intermediate domain between the source domain and the target domain; generates a first target image corresponding to each first intermediate domain style feature according to the source domain content feature and the at least one first intermediate domain style feature; thus, according to the source domain content feature and the at least one first intermediate domain style feature, a first target image corresponding to each first intermediate domain style feature can be generated, that is, for each first intermediate domain style feature, a first target image can be generated according to the source domain content feature and the first intermediate domain style feature, and the first target image is an image of the preset intermediate domain corresponding to the first intermediate domain style feature. For example, if the source domain image is a sunny image and the target domain image is a heavy snow image, then the preset intermediate domain can be any intermediate domain in the process of changing from sunny to heavy snow, for example, it can be light snow, then the first intermediate domain style feature is the image style feature corresponding to light snow, and the light snow image, i.e., the first target image, can be generated according to the content feature of the sunny image and the first intermediate domain style feature; this avoids the problem in traditional technology that the richness of image samples is poor due to the lack of certain intermediate domain image samples, which in turn leads to poor generalization ability of the neural network model trained based on the image samples. The embodiment of the present application realizes the generation of the first target image of any preset intermediate domain between the source domain and the target domain, which can make up for the lack of intermediate domain image samples, greatly increase the richness of image samples, and thus improve the generalization ability of the neural network model trained based on image samples.
[0065] In one embodiment, in the above Figure 1 Based on the embodiment shown, see Figure 2 This embodiment relates to a process of how a computer device acquires source domain style features, source domain content features, target domain style features, and a first target image. Figure 2 As shown, step S100 in this embodiment includes step S101 and step S102:
[0066] Step S101, obtaining a source domain image and a target domain image.
[0067] Step S102, inputting the source domain image and the target domain image into the encoder network of the generation network respectively, to obtain source domain style features, source domain content features and target domain style features.
[0068] In an embodiment of the present application, as an implementation method, a computer device can be based on a GAN (Generative Adversarial Network) machine learning framework to achieve better generation effects through the mutual confrontation between a generator network and a discriminator network during training, and train a generation network, which can be composed of an encoder network and a decoder network.
[0069] The computer device inputs the source domain image and the target domain image into the encoder network of the trained generation network respectively, and obtains the source domain style features and the source domain content features after convolution and downsampling the source domain image through the encoder network, and obtains the target domain style features after convolution and downsampling the target domain image.
[0070] In a possible implementation, the computer device may input the source domain image and the target domain image into the same encoder network, or the computer device may input the source domain image and the target domain image into different encoder networks, respectively, without specific limitation herein.
[0071] Please continue to see Figure 2 ,like Figure 2 As shown, step S300 in this embodiment may include step S301:
[0072] Step S301: for each first intermediate domain style feature, the source domain content feature and the first intermediate domain style feature are input into a decoder network of a generation network to obtain a first target image corresponding to the first intermediate domain style feature.
[0073] After the computer device obtains at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature, the computer device splices each first intermediate domain style feature with the source domain content feature. For each first intermediate domain style feature, the computer device inputs the spliced feature corresponding to the first intermediate domain style feature into the decoder network of the trained generator network, and generates the first target image corresponding to the first intermediate domain style feature from the spliced feature through transposed convolution of the decoder network.
[0074] Image generation technology has made great progress after the emergence of GAN. In traditional technology, the image generation model based on GAN training can only realize the style or content conversion between the source domain and the target domain based on the source domain images and the target domain images, but cannot generate images of the intermediate domain between the source domain and the target domain, resulting in poor diversity of image generation.
[0075] In the embodiment of the present application, the computer device extracts the source domain style features and source domain content features of the source domain image through the encoder network of the generation network, and extracts the target domain style features of the target domain image, and obtains the image style features of each preset intermediate domain between the source domain and the target domain by using the interpolation formula to perform interpolation operations on the source domain style features and the target domain style features, that is, each first intermediate domain style feature; the computer device can generate a first target image corresponding to a preset intermediate domain between the source domain and the target domain, or a sequence of first target images with continuously changing styles corresponding to multiple consecutive preset intermediate domains through the decoder network of the generation network, and each preset intermediate domain can generate a corresponding first target image. As a result, the diversity of image generation of the generation network is greatly improved, which is conducive to improving the richness of image samples in model training tasks.
[0076] In one embodiment, in the above Figure 1 Based on the embodiment shown, see Figure 3 This embodiment relates to a process of how a computer device acquires at least one first intermediate domain style feature based on a source domain style feature and a target domain style feature. Figure 3 As shown, step S200 may include step S201 and step S202:
[0077] Step S201: determining at least one interpolation coefficient, where the interpolation coefficient is used to characterize the degree of correlation between a preset intermediate domain between a source domain and a target domain and the source domain and the target domain.
[0078] Step S202: for each interpolation coefficient, interpolation processing is performed on the source domain style feature and the target domain style feature using the interpolation coefficient to obtain a first intermediate domain style feature corresponding to the interpolation coefficient.
[0079] As an implementation method, the computer device may perform interpolation operation on the source domain style feature and the target domain style feature using an interpolation formula, and the interpolation formula may be as shown in Formula 1:
[0080] S = S_a + α (S_b - S_a) Formula 1
[0081] Among them, S_a is the source domain style feature, S_b is the target domain style feature, α is the interpolation coefficient, and S is the first intermediate domain style feature corresponding to the value of the interpolation coefficient α.
[0082] As an implementation method, the interpolation coefficient can be a random value between (0, 1) generated by a computer device. The closer the value of the interpolation coefficient is to 0, the closer the preset intermediate domain from the source domain to the target domain corresponding to the interpolation coefficient is to the source domain. The closer the value of the interpolation coefficient is to 1, the closer the preset intermediate domain from the source domain to the target domain corresponding to the interpolation coefficient is to the target domain. Therefore, by adjusting the value of the interpolation coefficient, the first intermediate domain style features of each different preset intermediate domain can be calculated, and one interpolation coefficient corresponds to one preset intermediate domain.
[0083] For each first intermediate domain style feature, the computer device can generate a first target image corresponding to the first intermediate domain style feature. Therefore, in the actual implementation process, a first target image of one or more intermediate domains between the source domain and the target domain can be generated according to actual needs. If the interpolation coefficients are continuous, an image sequence with continuously changing styles from the source domain to the target domain can be generated.
[0084] In an embodiment of the present application, by changing the value of the interpolation coefficient, the first intermediate domain style feature corresponding to each interpolation coefficient can be calculated, so that the first target image of any intermediate domain between the source domain and the target domain can be generated, thereby greatly improving the richness of the generated image.
[0085] In one embodiment, based on the above Figure 1 The embodiment shown, see Figure 4 The image generation method of this embodiment further includes step S401, step S402 and step S403:
[0086] Step S401, obtaining target domain content features according to the target domain image.
[0087] As an implementation manner, the process by which a computer device acquires target domain content features based on a target domain image is similar to the process by which a computer device acquires source domain content features based on a source domain image in the above embodiment, and will not be described in detail here.
[0088] Step S402: acquiring at least one second intermediate domain style feature according to the source domain style feature and the target domain style feature.
[0089] The computer device can use an interpolation formula to perform interpolation operation on the source domain style feature and the target domain style feature to obtain a second intermediate domain style feature, and the second intermediate domain style feature is used to characterize the image style feature of a preset intermediate domain between the target domain and the source domain.
[0090] Step S403: generating a second target image corresponding to each second intermediate domain style feature according to the target domain content feature and at least one second intermediate domain style feature.
[0091] For each second intermediate domain style feature, the computer device generates a second target image corresponding to the second intermediate domain style feature according to the target domain content feature and the second intermediate domain style feature. As an implementation, the computer device may concatenate the target domain content feature and the second intermediate domain style feature and input them into a transposed convolutional network, and perform a transposed convolution on the transposed convolutional network to generate a second target image output from the concatenated features.
[0092] For each second intermediate domain style feature, the computer device can generate a second target image corresponding to the second intermediate domain style feature. Different second intermediate domain style features correspond to different preset intermediate domains. Therefore, the computer device can generate second target images corresponding to each preset intermediate domain from the target domain to the source domain through the above embodiment, thereby obtaining an image sequence with continuously changing style from the target domain to the source domain.
[0093] See also Figure 5 , Figure 5 The figure is a schematic diagram of a process in which a computer device generates a first target image and a second target image according to a source domain image and a target domain image in one embodiment.
[0094] like Figure 5 As shown, the computer device can input the source domain image and the target domain image into the encoder network (Encode) of the generation network, and obtain the source domain style feature S_a and the source domain content feature C_a after convolution and downsampling the source domain image through the encoder network, and obtain the target domain style feature S_b and the target domain content feature C_b after convolution and downsampling the target domain image.
[0095] The computer device determines interpolation coefficients α and β, where α and β can be random values between (0,1) generated by the computer device. The closer the value of α is to 0, the closer the preset intermediate domain from the source domain to the target domain corresponding to α is to the source domain, and the closer the value of α is to 1, the closer the preset intermediate domain from the source domain to the target domain corresponding to α is to the target domain. The closer the value of β is to 0, the closer the preset intermediate domain from the target domain to the source domain corresponding to β is to the target domain, and the closer the value of β is to 1, the closer the preset intermediate domain from the target domain to the source domain corresponding to β is to the source domain.
[0096] Based on the determined interpolation coefficients α and β, the computer device can calculate the first intermediate domain style feature corresponding to α and the second intermediate domain style feature corresponding to β according to S_a and S_b using the interpolation formula shown in the above formula 1.
[0097] The computer device concatenates C_a and the first intermediate domain style feature and inputs them into the decoder network (Decode) of the generation network to obtain a first target image corresponding to the first intermediate domain style feature, and the first target image is a generated image of the preset intermediate domain corresponding to α.
[0098] The computer device concatenates C_b and the second intermediate domain style feature and inputs them into the decoder network of the generation network to obtain a second target image corresponding to the second intermediate domain style feature, and the second target image is a generated image of the preset intermediate domain corresponding to β.
[0099] Therefore, the embodiment of the present application realizes the generation of the first target image of any preset intermediate domain between the source domain and the target domain, and the generation of the second target image of any preset intermediate domain between the target domain and the source domain through the above implementation, which can make up for the lack of intermediate domain image samples and greatly increase the richness of image samples, thereby improving the generalization ability of the neural network model trained based on image samples. The embodiment of the present application improves the problem of poor diversity of image generation of the image generation model based on GAN training in traditional technology.
[0100] In one embodiment, in the above Figure 2 Based on the embodiment shown, this embodiment relates to the process of how a computer device trains and generates a network. Figure 6 As shown, the training process of generating the network includes step S501 and step S502:
[0101] Step S501, obtaining a training sample set.
[0102] The computer device obtains a training sample set, wherein the training sample set includes a sample source domain image and a sample target domain image.
[0103] Step S502, iteratively train the initial generative adversarial network model according to the training sample set to obtain a generative network.
[0104] The initial generative adversarial network model includes an initial generative network and an initial discriminative network. The computer device iteratively trains the initial generative adversarial network model according to the training sample set to obtain a generative network. The computer device achieves better generation effect by the mutual confrontation between the initial generative network and the initial discriminative network during the training process.
[0105] As an implementation method, Figure 6 Based on the embodiment shown, Figure 7 As shown, step S502 may include step S5021, step S5022, step S5023 and step S5024:
[0106] Step S5021, in an iterative training process, using the initial generation network, generates a sample intermediate domain image corresponding to the random interpolation coefficient according to the sample source domain image, the sample target domain image and the random interpolation coefficient.
[0107] During the first training process, the computer device inputs the sample source domain image and the sample target domain image into the encoder network of the initial generation network to obtain the style features and content features of the sample source domain image, as well as the style features of the sample target domain image. The computer device uses randomly generated random interpolation coefficients to calculate the intermediate domain style features corresponding to the random interpolation coefficients according to the interpolation formula shown in the formula in the above embodiment. The computer device concatenates the intermediate domain style features and the content features of the sample source domain image and inputs them into the decoder network of the initial generation network to obtain the sample intermediate domain image corresponding to the random interpolation coefficients.
[0108] Step S5022: input the sample intermediate domain image into the initial discriminant network to obtain prediction interpolation coefficients.
[0109] In the embodiment of the present application, different from the traditional technology of inputting real pictures and generated pictures into the discriminant network, the computer device in the embodiment of the present application inputs the sample intermediate domain image into the initial discriminant network to obtain the predicted interpolation coefficients corresponding to the first training process output by the initial discriminant network.
[0110] Step S5023, determining whether the intermediate generation network converges according to the multiple random interpolation coefficients and the multiple predicted interpolation coefficients corresponding to the multiple iterative training processes.
[0111] The computer device repeats the above steps S5021 and S5022. In each training process, the prediction interpolation coefficient generated by the previous iterative training is used as supervision to iterate in sequence. Each training process will obtain the corresponding prediction interpolation coefficient.
[0112] The computer device determines whether the intermediate generation network converges according to the multiple random interpolation coefficients and the multiple predicted interpolation coefficients corresponding to the multiple iterative training processes. In a possible implementation, the computer device detects, for each predicted interpolation coefficient, whether the difference between the predicted interpolation coefficient and the corresponding random interpolation coefficient is less than a preset threshold.
[0113] For example, during an iterative training process, the random interpolation coefficient randomly generated by the computer device is 0.6, and the predicted interpolation coefficient output by the discriminant network is also 0.6 or a value close to 0.6. The computer device subtracts the predicted interpolation coefficient from the random interpolation coefficient and detects whether the difference is less than a preset threshold, which can be set by yourself during implementation.
[0114] If the differences corresponding to the prediction interpolation coefficients corresponding to the multiple iterative training processes within the preset time period are all less than the threshold, it is determined that the intermediate generation network is stable, and then it is determined that the intermediate generation network converges.
[0115] Step S5024: If the intermediate generated network converges, a generated network is obtained.
[0116] If the intermediate generation network converges, the computer device determines the currently converged intermediate generation network as the generation network.
[0117] In the generative network training process, the embodiment of the present application utilizes the predicted interpolation coefficients generated in the previous iterative training to supervise the intermediate generative network to generate sample intermediate domain images with corresponding changes, and achieves the convergence of the intermediate generative network through adversarial training.
[0118] Thus, during the application process, the computer device can input the source domain image and the target domain image into the encoder network of the generation network respectively, obtain the source domain style feature, the source domain content feature and the target domain style feature, obtain at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature, and for each first intermediate domain style feature, input the source domain content feature and the first intermediate domain style feature into the decoder network of the generation network to obtain the first target image corresponding to the first intermediate domain style feature. Thus, the computer device can generate a first target image corresponding to a preset intermediate domain between the source domain and the target domain, or a sequence of first target images with continuously changing styles corresponding to multiple consecutive preset intermediate domains through the decoder network of the generation network, and each preset intermediate domain can generate a corresponding first target image. Thus, the diversity of image generation of the generation network is greatly improved, which is conducive to improving the richness of image samples in model training tasks.
[0119] It should be understood that although Figure 1-7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-7 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0120] In one embodiment, Figure 8 As shown, an image generating device is provided, comprising:
[0121] A first acquisition module 10 is used to acquire a source domain image and a target domain image, acquire a source domain style feature and a source domain content feature according to the source domain image, and acquire a target domain style feature according to the target domain image;
[0122] A second acquisition module 20, configured to acquire at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature, wherein the first intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the source domain and the target domain;
[0123] The first generating module 30 is configured to generate a first target image corresponding to each of the first intermediate domain style features according to the source domain content feature and the at least one first intermediate domain style feature.
[0124] Optionally, the first acquisition module 10 includes:
[0125] An encoding unit, configured to input the source domain image and the target domain image into an encoder network of a generation network respectively, to obtain the source domain style feature, the source domain content feature, and the target domain style feature;
[0126] Correspondingly, the first generating module 30 includes:
[0127] A decoding unit is used to input the source domain content feature and the first intermediate domain style feature into a decoder network of the generation network for each of the first intermediate domain style features, so as to obtain a first target image corresponding to the first intermediate domain style feature.
[0128] Optionally, the second acquisition module 20 includes:
[0129] a first determining unit, configured to determine at least one interpolation coefficient, wherein the interpolation coefficient is used to characterize a correlation degree between a preset intermediate domain between a source domain and a target domain and the source domain and the target domain;
[0130] An interpolation unit is used to perform interpolation processing on the source domain style feature and the target domain style feature using the interpolation coefficient for each of the interpolation coefficients, so as to obtain a first intermediate domain style feature corresponding to the interpolation coefficient.
[0131] Optionally, the device further comprises:
[0132] A third acquisition module, configured to acquire target domain content features according to the target domain image;
[0133] a fourth acquisition module, configured to acquire at least one second intermediate domain style feature according to the source domain style feature and the target domain style feature, wherein the second intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the target domain and the source domain;
[0134] The second generating module is used to generate a second target image corresponding to each of the second intermediate domain style features according to the target domain content feature and the at least one second intermediate domain style feature.
[0135] Optionally, the device further comprises:
[0136] A fifth acquisition module, configured to acquire a training sample set, wherein the training sample set includes a sample source domain image and a sample target domain image;
[0137] The training module is used to iteratively train the initial generative adversarial network model according to the training sample set to obtain the generative network.
[0138] Optionally, the initial generative adversarial network model includes an initial generative network and an initial discriminative network, and the training module includes:
[0139] A generating unit, configured to use the initial generating network to generate a sample intermediate domain image corresponding to the random interpolation coefficient according to the sample source domain image, the sample target domain image and the random interpolation coefficient during an iterative training process;
[0140] A discriminant unit, used for inputting the sample intermediate domain image into the initial discriminant network to obtain prediction interpolation coefficients;
[0141] A second determination unit determines whether the intermediate generation network converges according to a plurality of random interpolation coefficients and a plurality of predicted interpolation coefficients corresponding to the plurality of iterative training processes;
[0142] An acquisition unit is used to obtain the generation network if the intermediate generation network converges.
[0143] Optionally, the second determination unit is specifically used to detect, for each of the predicted interpolation coefficients, whether the difference between the predicted interpolation coefficient and the corresponding random interpolation coefficient is less than a preset threshold; if the differences corresponding to each of the predicted interpolation coefficients are less than the threshold, it is determined that the intermediate generation network has converged.
[0144] For the specific definition of the image generation device, please refer to the definition of the image generation method above, which will not be repeated here. Each module in the above-mentioned image generation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0145] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data of the image generation method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an image generation method is implemented.
[0146] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0147] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0148] Acquire a source domain image and a target domain image, acquire a source domain style feature and a source domain content feature according to the source domain image, and acquire a target domain style feature according to the target domain image;
[0149] Acquire at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature, where the first intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the source domain and the target domain;
[0150] A first target image corresponding to each of the first intermediate domain style features is generated according to the source domain content feature and the at least one first intermediate domain style feature.
[0151] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0152] Inputting the source domain image and the target domain image into the encoder network of the generation network respectively, to obtain the source domain style feature, the source domain content feature and the target domain style feature;
[0153] Correspondingly, generating, according to the source domain content feature and the at least one first intermediate domain style feature, a first target image corresponding to each of the first intermediate domain style features includes:
[0154] For each of the first intermediate domain style features, the source domain content feature and the first intermediate domain style feature are input into a decoder network of the generation network to obtain a first target image corresponding to the first intermediate domain style feature.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0156] Determine at least one interpolation coefficient, where the interpolation coefficient is used to characterize the degree of correlation between a preset intermediate domain between a source domain and a target domain and the source domain and the target domain;
[0157] For each of the interpolation coefficients, the source domain style feature and the target domain style feature are interpolated using the interpolation coefficient to obtain a first intermediate domain style feature corresponding to the interpolation coefficient.
[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0159] Acquire target domain content features according to the target domain image;
[0160] Acquire at least one second intermediate domain style feature according to the source domain style feature and the target domain style feature, where the second intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the target domain and the source domain;
[0161] A second target image corresponding to each of the second intermediate domain style features is generated according to the target domain content feature and the at least one second intermediate domain style feature.
[0162] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0163] Acquire a training sample set, wherein the training sample set includes a sample source domain image and a sample target domain image;
[0164] According to the training sample set, the initial generative adversarial network model is iteratively trained to obtain the generative network.
[0165] In one embodiment, the initial generative adversarial network model includes an initial generative network and an initial discriminative network, and the processor further implements the following steps when executing the computer program:
[0166] In one iterative training process, the initial generation network is used to generate a sample intermediate domain image corresponding to the random interpolation coefficient according to the sample source domain image, the sample target domain image and the random interpolation coefficient;
[0167] Inputting the sample intermediate domain image into the initial discriminant network to obtain prediction interpolation coefficients;
[0168] Determine whether the intermediate generation network converges according to multiple random interpolation coefficients and multiple predicted interpolation coefficients corresponding to multiple iterative training processes;
[0169] If the intermediate generation network converges, the generation network is obtained.
[0170] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0171] For each of the predicted interpolation coefficients, detecting whether a difference between the predicted interpolation coefficient and a corresponding random interpolation coefficient is less than a preset threshold;
[0172] If the differences corresponding to the predicted interpolation coefficients are all smaller than the threshold, it is determined that the intermediate generation network converges.
[0173] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0174] Acquire a source domain image and a target domain image, acquire a source domain style feature and a source domain content feature according to the source domain image, and acquire a target domain style feature according to the target domain image;
[0175] Acquire at least one first intermediate domain style feature according to the source domain style feature and the target domain style feature, where the first intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the source domain and the target domain;
[0176] A first target image corresponding to each of the first intermediate domain style features is generated according to the source domain content feature and the at least one first intermediate domain style feature.
[0177] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0178] Inputting the source domain image and the target domain image into the encoder network of the generation network respectively, to obtain the source domain style feature, the source domain content feature and the target domain style feature;
[0179] Correspondingly, generating, according to the source domain content feature and the at least one first intermediate domain style feature, a first target image corresponding to each of the first intermediate domain style features includes:
[0180] For each of the first intermediate domain style features, the source domain content feature and the first intermediate domain style feature are input into a decoder network of the generation network to obtain a first target image corresponding to the first intermediate domain style feature.
[0181] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0182] Determine at least one interpolation coefficient, where the interpolation coefficient is used to characterize the degree of correlation between a preset intermediate domain between a source domain and a target domain and the source domain and the target domain;
[0183] For each of the interpolation coefficients, the source domain style feature and the target domain style feature are interpolated using the interpolation coefficient to obtain a first intermediate domain style feature corresponding to the interpolation coefficient.
[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0185] Acquire target domain content features according to the target domain image;
[0186] Acquire at least one second intermediate domain style feature according to the source domain style feature and the target domain style feature, where the second intermediate domain style feature is used to characterize an image style feature of a preset intermediate domain between the target domain and the source domain;
[0187] A second target image corresponding to each of the second intermediate domain style features is generated according to the target domain content feature and the at least one second intermediate domain style feature.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] Acquire a training sample set, wherein the training sample set includes a sample source domain image and a sample target domain image;
[0190] According to the training sample set, the initial generative adversarial network model is iteratively trained to obtain the generative network.
[0191] In one embodiment, the initial generative adversarial network model includes an initial generative network and an initial discriminative network, and when the computer program is executed by the processor, the following steps are also implemented:
[0192] In one iterative training process, the initial generation network is used to generate a sample intermediate domain image corresponding to the random interpolation coefficient according to the sample source domain image, the sample target domain image and the random interpolation coefficient;
[0193] Inputting the sample intermediate domain image into the initial discriminant network to obtain prediction interpolation coefficients;
[0194] Determine whether the intermediate generation network converges according to multiple random interpolation coefficients and multiple predicted interpolation coefficients corresponding to multiple iterative training processes;
[0195] If the intermediate generation network converges, the generation network is obtained.
[0196] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0197] For each of the predicted interpolation coefficients, detecting whether a difference between the predicted interpolation coefficient and a corresponding random interpolation coefficient is less than a preset threshold;
[0198] If the differences corresponding to the predicted interpolation coefficients are all smaller than the threshold, it is determined that the intermediate generation network converges.
[0199] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0200] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0201] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for generating an image, It is characterized in that The method comprises: Acquire a source domain image and a target domain image, acquire a source domain style feature and a source domain content feature according to the source domain image, and acquire a target domain style feature according to the target domain image; Determine at least one interpolation coefficient α, the interpolation coefficient α is used to characterize the degree of correlation between a preset intermediate domain between a source domain and a target domain and the source domain and the target domain; for each of the interpolation coefficients α, use the interpolation coefficient α to perform interpolation processing on the source domain style feature and the target domain style feature to obtain a first intermediate domain style feature corresponding to the interpolation coefficient α, the first intermediate domain style feature is used to characterize the image style feature of the preset intermediate domain between the source domain and the target domain; one interpolation coefficient α corresponds to one preset intermediate domain; the closer the value of the interpolation coefficient α is to 0, the closer the preset intermediate domain between the source domain and the target domain corresponding to the interpolation coefficient α is to the source domain; the closer the value of the interpolation coefficient α is to 1, the closer the preset intermediate domain between the source domain and the target domain corresponding to the interpolation coefficient is to the target domain; generating, according to the source domain content feature and the at least one first intermediate domain style feature, first target images corresponding to the first intermediate domain style features, wherein the first target images are used to represent an image sequence with a continuous style change from the source domain to the target domain; Acquire target domain content features according to the target domain image; Determine at least one interpolation coefficient β, and for each interpolation coefficient β, use the interpolation coefficient β to perform interpolation processing on the target domain style feature and the source domain style feature to obtain a second intermediate domain style feature corresponding to the interpolation coefficient β; the second intermediate domain style feature is used to characterize the image style feature of a preset intermediate domain between the target domain and the source domain; the closer the value of the interpolation coefficient β is to 0, the closer the preset intermediate domain between the target domain and the source domain corresponding to the interpolation coefficient β is to the target domain, and the closer the value of the interpolation coefficient β is to 1, the closer the preset intermediate domain between the target domain and the source domain corresponding to the interpolation coefficient β is to the source domain; A second target image corresponding to each of the second intermediate domain style features is generated according to the target domain content feature and the at least one second intermediate domain style feature.
2. The method according to claim 1, It is characterized in that The acquiring of source domain style features and source domain content features according to the source domain image, and acquiring of target domain style features according to the target domain image, includes: Inputting the source domain image and the target domain image into the encoder network of the generation network respectively, to obtain the source domain style feature, the source domain content feature and the target domain style feature; Correspondingly, generating, according to the source domain content feature and the at least one first intermediate domain style feature, a first target image corresponding to each of the first intermediate domain style features includes: For each of the first intermediate domain style features, the source domain content feature and the first intermediate domain style feature are input into a decoder network of the generation network to obtain a first target image corresponding to the first intermediate domain style feature.
3. The method according to claim 2, It is characterized in that The training process of the generative network includes: Acquire a training sample set, wherein the training sample set includes a sample source domain image and a sample target domain image; According to the training sample set, the initial generative adversarial network model is iteratively trained to obtain the generative network.
4. The method according to claim 3, It is characterized in that The initial generative adversarial network model includes an initial generative network and an initial discriminative network. The initial generative adversarial network model is iteratively trained according to the training sample set to obtain the generative network, including: In one iterative training process, the initial generation network is used to generate a sample intermediate domain image corresponding to the random interpolation coefficient according to the sample source domain image, the sample target domain image and the random interpolation coefficient; Inputting the sample intermediate domain image into the initial discriminant network to obtain prediction interpolation coefficients; Determine whether the intermediate generation network converges according to multiple random interpolation coefficients and multiple predicted interpolation coefficients corresponding to multiple iterative training processes; If the intermediate generation network converges, the generation network is obtained.
5. The method according to claim 4, It is characterized in that The step of determining whether the intermediate generation network converges according to the multiple random interpolation coefficients and the multiple predicted interpolation coefficients corresponding to the multiple iterative training processes includes: For each of the predicted interpolation coefficients, detecting whether a difference between the predicted interpolation coefficient and a corresponding random interpolation coefficient is less than a preset threshold; If the differences corresponding to the predicted interpolation coefficients are all smaller than the threshold, it is determined that the intermediate generation network converges.
6. An image generating device, It is characterized in that The device comprises: A first acquisition module is used to acquire a source domain image and a target domain image, acquire a source domain style feature and a source domain content feature according to the source domain image, and acquire a target domain style feature according to the target domain image; A second acquisition module is used to determine at least one interpolation coefficient α, wherein the interpolation coefficient α is used to characterize the degree of correlation between a preset intermediate domain between a source domain and a target domain and the source domain and the target domain; for each of the interpolation coefficients α, the source domain style feature and the target domain style feature are interpolated using the interpolation coefficient α to obtain a first intermediate domain style feature corresponding to the interpolation coefficient α, wherein the first intermediate domain style feature is used to characterize the image style feature of the preset intermediate domain between the source domain and the target domain; one interpolation coefficient α corresponds to one preset intermediate domain; the closer the value of the interpolation coefficient α is to 0, the closer the preset intermediate domain between the source domain and the target domain corresponding to the interpolation coefficient α is to the source domain; the closer the value of the interpolation coefficient α is to 1, the closer the preset intermediate domain between the source domain and the target domain corresponding to the interpolation coefficient is to the target domain; A first generating module, configured to generate first target images corresponding to the first intermediate domain style features according to the source domain content features and the at least one first intermediate domain style feature, wherein the first target images are used to represent an image sequence with a continuous style change from the source domain to the target domain; A third acquisition module, configured to acquire target domain content features according to the target domain image; The fourth acquisition module is used to determine at least one interpolation coefficient β, and for each of the interpolation coefficients β, use the interpolation coefficient β to interpolate the target domain style feature and the source domain style feature to obtain a second intermediate domain style feature corresponding to the interpolation coefficient β; the second intermediate domain style feature is used to characterize the image style feature of a preset intermediate domain between the target domain and the source domain; the closer the value of the interpolation coefficient β is to 0, the closer the preset intermediate domain between the target domain and the source domain corresponding to the interpolation coefficient β is to the target domain, and the closer the value of the interpolation coefficient β is to 1, the closer the preset intermediate domain between the target domain and the source domain corresponding to the interpolation coefficient β is to the source domain; The second generating module is used to generate a second target image corresponding to each of the second intermediate domain style features according to the target domain content feature and the at least one second intermediate domain style feature.
7. The device according to claim 6, It is characterized in that The first acquisition module includes: An encoding unit, configured to input the source domain image and the target domain image into an encoder network of a generation network respectively, to obtain the source domain style feature, the source domain content feature, and the target domain style feature; Correspondingly, the first generating module includes: A decoding unit is used to input the source domain content feature and the first intermediate domain style feature into a decoder network of the generation network for each of the first intermediate domain style features, so as to obtain a first target image corresponding to the first intermediate domain style feature.
8. The device according to claim 7, It is characterized in that The device further comprises: A fifth acquisition module, configured to acquire a training sample set, wherein the training sample set includes a sample source domain image and a sample target domain image; The training module is used to iteratively train the initial generative adversarial network model according to the training sample set to obtain the generative network.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
License plate detection scene picture generation method based on multi-scale mixed image stylization
CN109614968A
Multi-domain image style migration method based on generative adversarial network
CN110310221A
Cross-domain diversity image generation method and system based on generative adversarial network
CN111292384A
Image style migration method combining meta-learning mechanism and feature fusion
CN111325681A
Image coloring processing method and device based on cyclic generative adversarial network
CN111524205A
