Conditional adversarial network training method, device, electronic device and storage medium

By converting the continuous quantity with the condition as the direction angle into the discrete quantity angle interval, and combining classification and regression supervision, the conditional adversarial network is trained, which solves the problem of difficult processing of the condition as the continuous quantity in the existing technology, and achieves better Convergence effect and generation stability.

CN111832700BInactive Publication Date: 2024-11-01BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010484906.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-01
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing conditional generation adversarial network is mainly suitable for situations where the condition is discrete amount, and it is difficult to effectively deal with the condition of continuous amounts, especially when generating target objects with multiple direction angles, the convergence effect is poor and the generation stability is insufficient.

Method used

By converting the continuous amount of the condition as the direction angle into a discrete amount angle interval, and using the mixed supervision of classification and regression, the conditional adversarial network is trained. The generator and discriminator generate and correct pictures through noise encoding and conditional encoding to achieve Treatment of continuous quantity conditions.

Benefits of technology

It improves the convergence effect and generation stability of the network, and can stably generate target objects from all directions and angles, improving the accuracy and generation effect of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111832700B_ABST
    Figure CN111832700B_ABST
Patent Text Reader

Abstract

The present application discloses a training method, device, electronic device and storage medium for a conditional adversarial network, and relates to the technical field of deep learning and image processing. Implementation scheme: By inputting the noise code and the current conditional code into the generator, a first picture containing the target object is obtained, and the first picture is input into the discriminator, and the generator and the discriminator are corrected according to the probability that the generated first picture belongs to the real picture, and the difference between the first discriminated direction angle of the target object in the first picture and the target direction angle, so as to train the conditional adversarial network. Thus, by converting the continuous quantity whose condition is the direction angle into the discrete quantity angle interval, and using the mixed supervision method of classification and regression to train the conditional adversarial network, a conditional adversarial network whose condition is the continuous quantity can be obtained, which not only improves the convergence effect of the network, but also can stably generate target objects of various direction angles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, specifically to the field of deep learning and image processing technology, and in particular to a training method, device, electronic device and storage medium for a conditional adversarial network. Background Art

[0002] The conditional generative adversarial network is a generative adversarial network with conditional constraints. It introduces conditional variables in both the generative model and the discriminative model, and uses additional conditions to guide the generation of data. Among them, the conditions in the conditional generative adversarial network are generally category labels, which are discrete quantities.

[0003] It can be seen that in the related art, the conditional generative adversarial network is suitable for the case where the condition is a discrete quantity. Summary of the invention

[0004] The present application provides a method, device, electronic device and storage medium applicable to a conditional generative adversarial network whose condition is a continuous quantity.

[0005] According to a first aspect, a training method for a conditional adversarial network is provided, comprising:

[0006] Get the target direction angle of the target object in the image to be generated;

[0007] Determine the current conditional code according to the angle interval to which the target direction angle belongs;

[0008] Inputting the conditional code and the noise code into a generator of the conditional adversarial network to generate a first picture including the target object;

[0009] Inputting the first image into the discriminator of the conditional adversarial network to generate a probability that the first image is a real image and a first discriminant direction angle of the target object in the first image; and

[0010] According to the probability that the first image is a real image and the difference between the first discrimination direction angle of the target object in the first image and the target direction angle, the generator and the discriminator are modified to train the conditional adversarial network.

[0011] The training method of the conditional adversarial network of the embodiment of the present application is to input the noise code and the conditional code determined according to the angle interval to which the target direction angle of the target object belongs into the generator, obtain the first picture containing the target object, and input the first picture into the discriminator, and according to the probability that the generated first picture belongs to the real picture, and the difference between the first discriminated direction angle of the target object in the first picture and the target direction angle, the generator and the discriminator are corrected to train the conditional adversarial network. Thus, by converting the continuous quantity whose condition is the direction angle into the discrete quantity angle interval, and using the mixed supervision of classification and regression to train the conditional adversarial network, a conditional adversarial network whose condition is the continuous quantity can be obtained, which not only improves the convergence effect of the network, but also can stably generate target objects of various direction angles.

[0012] According to a second aspect, a training device for a conditional adversarial network is provided, comprising:

[0013] A first acquisition module is used to acquire a target direction angle of a target object in a to-be-generated image;

[0014] A first determination module, used to determine the current conditional code according to the angle interval to which the target direction angle belongs;

[0015] A first generating module, configured to input the conditional code and the noise code into a generator of the conditional adversarial network to generate a first picture containing the target object;

[0016] A second generating module is used to input the first picture into the discriminator of the conditional adversarial network to generate a probability that the first picture belongs to a real picture and a first discriminant direction angle of the target object in the first picture; and

[0017] The first correction module is used to correct the generator and the discriminator according to the probability that the first image belongs to a real image and the difference between the first discrimination direction angle of the target object in the first image and the target direction angle, so as to train the conditional adversarial network.

[0018] The training device of the conditional adversarial network of the embodiment of the present application inputs the noise code and the conditional code determined according to the angle interval to which the target direction angle of the target object belongs to into the generator, obtains the first picture containing the target object, and inputs the first picture into the discriminator, obtains the probability that the generated first picture belongs to the real picture and the first discriminant direction angle in the first picture of the target object, and according to the probability that the first picture belongs to the real picture and the difference between the first discriminant direction angle of the target object in the first picture and the target direction angle, the generator and the discriminator are corrected to train the conditional adversarial network. Thus, by converting the continuous quantity whose condition is the direction angle into the discrete quantity angle interval, and using the mixed supervision method of classification and regression to train the conditional adversarial network, a conditional adversarial network whose condition is the continuous quantity can be obtained, which not only improves the convergence effect of the network, but also can stably generate target objects of angles in each direction.

[0019] According to a third aspect, there is provided an electronic device, comprising:

[0020] at least one processor; and

[0021] a memory communicatively connected to the at least one processor; wherein,

[0022] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the conditional adversarial network training method described in the above-mentioned embodiment.

[0023] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, on which a computer program is stored, wherein the computer instructions are used to enable the computer to execute the conditional adversarial network training method described in the above-mentioned first embodiment.

[0024] According to a fifth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the training method of the conditional adversarial network according to the embodiment of the first aspect.

[0025] According to an embodiment of the present application, by converting a continuous quantity conditioned on a direction angle into a discrete quantity angle interval and training the conditional adversarial network using a mixed supervision method of classification and regression, a conditional adversarial network conditioned on a continuous quantity can be obtained, which not only improves the convergence effect of the network, but also can stably generate target objects in various direction angles.

[0026] Other effects of the above optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0028] Figure 1 A flowchart of a method for training a conditional adversarial network provided in an embodiment of the present application;

[0029] Figure 2 A flowchart of a method for training a conditional adversarial network provided in an embodiment of the present application;

[0030] Figure 3 A schematic diagram of input and output of a generator and a discriminator provided in an embodiment of the present application;

[0031] Figure 4 A flowchart of another conditional adversarial network training method provided in an embodiment of the present application;

[0032] Figure 5 A flowchart of another conditional adversarial network training method provided in an embodiment of the present application;

[0033] Figure 6 A flowchart of another conditional adversarial network training method provided in an embodiment of the present application;

[0034] Figure 7 A schematic diagram of the structure of a conditional adversarial network training device provided in an embodiment of the present application;

[0035] Figure 8 The present invention is a block diagram of an electronic device for a method for training a conditional adversarial network according to an embodiment of the present application. DETAILED DESCRIPTION

[0036] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0037] The following describes the training method, device, electronic device and storage medium of the conditional adversarial network of the embodiments of the present application with reference to the accompanying drawings.

[0038] In the embodiment of the present application, a training method for a conditional adversarial network is proposed to address the problem that the conditional adversarial network in the related art is applicable to situations where the condition is a discrete quantity and has certain limitations.

[0039] The training method of the conditional adversarial network in the embodiment of the present application can obtain a conditional adversarial network with a continuous quantity as the condition, by converting the continuous quantity with the direction angle into a discrete quantity angle interval, and using a mixed supervision method of classification and regression to train the conditional adversarial network. This not only improves the convergence effect of the network, but also can stably generate target objects in various directions and angles.

[0040] Figure 1 A flowchart of a method for training a conditional adversarial network provided in an embodiment of the present application.

[0041] The training method of the conditional adversarial network of the embodiment of the present application can be executed by the training device of the conditional adversarial network provided in the embodiment of the present application. The device can be configured in an electronic device to realize the training of the conditional adversarial network by using a mixed supervision method of classification and regression.

[0042] like Figure 1 As shown, the training method of the conditional adversarial network includes:

[0043] Step 101, obtaining the target direction angle of the target object in the image to be generated.

[0044] In the related art, the input condition in the conditional generative adversarial network is a discrete quantity. For example, in the task of generating numbers, the condition is a number (0-9), and the generator is given an input category y. The goal is to let the generator generate the number y of the specified category, and the discriminator judges the authenticity and category of the generated number.

[0045] In practical applications, there is a need for continuous quantities, such as generating face images from various angles.

[0046] In this embodiment, the target direction angle of the target object in the image to be generated is obtained, wherein the target object may be hair, a face, or other objects, and the target direction angle may be pre-specified or randomly selected within the direction angle range satisfied by the target object.

[0047] For example, if the target direction angle in the image to be generated needs to be in the range of -20 degrees to 20 degrees, then an angle such as 2 degrees can be randomly selected within the range as the target direction angle.

[0048] Step 102, determining the current conditional coding according to the angle interval to which the target direction angle belongs.

[0049] In this embodiment, the angle range of the target object in the image can be divided into multiple angle intervals, thereby converting continuous quantities into discrete quantities. Each angle interval has a corresponding interval code, where the interval code can be understood as the ID of the angle interval, and the interval code can uniquely identify the angle interval.

[0050] For example, the angle range of the target object in the picture is -45 degrees to 45 degrees, and the angle range is divided into 91 angle intervals, and the interval coding can be -45, -44, ..., 0, 1, 2, ..., 44, 45. Of course, the interval coding can also start from 0, 0, 1, 2, ..., 91. The specific coding method can be set as needed.

[0051] In this embodiment, each angle interval also corresponds to a single-bit effective code, i.e., a one-hot code. For example, there are 5 angle intervals, which is equivalent to 5 categories. The one-hot codes corresponding to the 5 angle intervals can be 00001, 00010, 00100, 01000, and 10000, respectively.

[0052] After obtaining the target direction angle of the target object in the image to be generated, the angle interval to which the target direction angle belongs is determined according to the target direction angle and each angle interval range, and the interval code corresponding to the angle interval can be used as the current conditional code.

[0053] Step 103: input the conditional code and the noise code into a generator of a conditional adversarial network to generate a first image containing the target object.

[0054] In this embodiment, the noise code and the current conditional code are input into the generator of the conditional adversarial network, and the generator generates a picture containing the target object, which is referred to as the first picture.

[0055] For the convenience of calculation, in the specific implementation, the conditional code can be input into the generator in the form of a one-hot vector. For example, the interval code corresponding to the angle interval of the target direction angle is -2, that is, the current conditional code is -2. When the conditional code is input into the generator, the one-hot code corresponding to the angle interval can be input as 00001.

[0056] In this embodiment, the noise code may be an arbitrary vector or a vector that meets the conditions, such as a standard normal distribution vector.

[0057] Step 104: input the first image into the discriminator of the conditional adversarial network to generate the probability that the first image belongs to a real image and the first discriminant direction angle of the target object in the first image.

[0058] In this embodiment, the discriminator is used to determine whether the first picture is a real picture, and the category of the direction angle of the target object in the first picture. The real picture refers to a picture obtained by shooting.

[0059] In order to determine the probability that the first image belongs to a real image, a judgment can be made based on the real image containing the target object and the generated first image. Specifically, the first image, the real sample image containing the target object, the first image, and the conditional encoding are input to the discriminator, and the discriminator generates the probability that the first image belongs to a real image, and the first discriminant direction angle of the target object in the first image.

[0060] The first discriminant direction angle here is the direction angle of the target object discriminated by the discriminator in the first picture, and may be directly output by the discriminator.

[0061] In this embodiment, the real sample image containing the target object input into the discriminator can be a picture selected from a set of real pictures containing the target object, and the angle of the target object in the real sample image can be the target direction angle or the angle of the target object within the angle range in the picture.

[0062] Step 105, based on the probability that the first image is a real image and the difference between the first discrimination direction angle and the target direction angle of the target object in the first image, the generator and the discriminator are modified to train the conditional adversarial network.

[0063] In order to correct the discriminator, in this embodiment, on the one hand, the discriminator and the generator can be corrected according to the difference between the probability that the first image belongs to the real image and the first target true value. Thus, the discriminator and the generator are corrected by classification supervision.

[0064] Since the first image is a generated image, the first target true value here is 0. That is to say, the higher the probability that the first image is a real image, the worse the discriminator effect is.

[0065] Alternatively, the loss value may be determined based on the probability that the first image is a real image and the first target true value, and specifically, the cross entropy classification loss value may be calculated. Then, the discriminator and the generator are modified based on the loss value.

[0066] On the other hand, according to the difference between the first discriminant direction angle and the target direction angle, the discriminator and the generator are corrected, that is, regression supervision is performed.

[0067] Therefore, the conditional adversarial generative network is trained through a mixed supervision method of classification and regression to obtain a conditional adversarial generative network with a continuous quantity as the condition. This training method not only improves the convergence effect of the model, but also can stably generate hair data in various directions and angles.

[0068] The training method of the conditional adversarial network in the embodiment of the present application can obtain a conditional adversarial network with a continuous quantity as the condition, by converting the continuous quantity with the direction angle into a discrete quantity angle interval, and using a mixed supervision method of classification and regression to train the conditional adversarial network. This not only improves the convergence effect of the network, but also can stably generate target objects in various directions and angles.

[0069] In one embodiment of the present application, when the discriminator generates the first discriminant direction angle, the discriminator may generate each first probability of the target object in each angle interval, and then determine the first discriminant direction angle according to each first probability. Figure 2 To explain, Figure 2 A flowchart of a method for training a conditional adversarial network provided in an embodiment of the present application.

[0070] like Figure 2 As shown, the above-mentioned determining the first determination direction angle of the target object in the first picture according to each first probability, the interval code corresponding to each angle interval and the angle range corresponding to each angle interval includes:

[0071] Step 201: input a first image into a discriminator to generate first probabilities of a target object in various angle intervals.

[0072] In this embodiment, the first image, the real sample image containing the target object, the current conditional coding, etc. are input into the discriminator. The discriminator outputs the probability that the first image belongs to the real image in one path, and the probability of the target object in each angle interval in another path, which is called the first probability here.

[0073] The first probability is used to represent the possibility that the angle of the target object in the generated first picture belongs to the angle range.

[0074] For example, there are 5 angle intervals in total, and the discriminator outputs the first probability that the direction angle of the target object is in the 5 angle intervals.

[0075] Figure 3 A schematic diagram of the input and output of a generator and a discriminator provided in an embodiment of the present application. Figure 3 In the example, the noise code and the conditional code are input to the generator 310, and the generator outputs the first image. The generated first image, the real sample image and the conditional code are input to the discriminator 320, and the discriminator 320 has two outputs, one is the probability that the first image belongs to the real image, and the other output is the probability of the target object in each angle interval.

[0076] Step 202: determining a first determination direction angle of the target object in the first image according to each first probability, the interval code corresponding to each angle interval, and the angle range corresponding to each angle interval.

[0077] In this embodiment, the greater the first probability, the greater the probability that the direction angle of the target object is the angle of the angle interval. Therefore, according to each first probability and the interval code corresponding to each angle interval, the target interval code corresponding to the target object can be obtained, and according to the target interval code and the interval code of each angle interval, the target angle interval corresponding to the interval code closest to the target interval code is determined, and according to the target interval code and the angle range of the target angle interval, the first discriminated direction angle of the target object in the first picture is determined.

[0078] For example, the interval code of each angle interval is determined according to the angle. For example, the angle range of the target object in the picture is -2 to 2, and the codes of each angle interval from left to right are -2, -1, 0, 1, 2. Then, multiply the target interval code and the angle range of the angle interval, and the result is the first judgment direction angle.

[0079] In the embodiment of the present application, when determining the first discrimination direction angle of the target object in the first image, the first image can be input into the discriminator to generate each first probability of the target object in each angle interval, and the first discrimination direction angle of the target object in the first image can be determined according to each first probability, the interval code corresponding to each angle interval, and the angle range corresponding to each angle interval. Thus, the first discrimination direction angle is obtained according to the probability of the angle of the target object in each angle interval, the interval code of each angle interval, and the angle range of each angle interval, thereby improving the accuracy of the calculation.

[0080] Figure 4 A flowchart of another conditional adversarial network training method provided in an embodiment of the present application. In one embodiment of the present application, when determining the first discriminant direction angle according to each first probability, the interval code corresponding to each angle interval, and the angle range corresponding to each angle interval, the first discriminant direction angle can be determined by Figure 4 The method shown.

[0081] like Figure 4 As shown, the above-mentioned determining the first determination direction angle of the target object in the first picture according to each first probability, the interval code corresponding to each angle interval and the angle range corresponding to each angle interval includes:

[0082] Step 401 : determining a total interval code corresponding to a target object in a first picture according to each first probability and the interval code corresponding to each angle interval.

[0083] In this embodiment, the probability in each angle interval may be multiplied by the interval code of the angle interval, and each multiplication result may be summed up to obtain a total interval code corresponding to the target object in the first picture.

[0084] For example, there are 5 angle intervals in total, and the corresponding interval codes from left to right are -2, -1, 0, 1, and 2 respectively. The first probabilities of the target object in the 5 angle intervals are 0.8, 0.2, 0.1, 0, and 0 respectively. Then the total interval code is 0.8*(-2)+0.2*(-1)+0.1*0+1*0+2*0=-1.8.

[0085] Step 402: Determine a first determination direction angle according to the total interval code and the angle range corresponding to each angle interval.

[0086] In this embodiment, each angle interval corresponds to the same angle range. For example, the angle range of the target object in the picture is -2 to -2, and the angle range of each angle interval is 0.8, so 5 angle intervals can be obtained.

[0087] After determining the total interval code of the target object in the first picture, the total interval code may be multiplied by the angle range corresponding to each angle interval, and the calculated result is the first determination direction angle of the target object in the first picture.

[0088] As in the above example, the total interval is encoded as -1.8. If the angle range of each angle interval is 0.8, then -1.8*0.8=-1.44, that is, the angle of the target object judged by the discriminator in the first picture is -1.44, where the negative sign indicates the direction.

[0089] In the embodiment of the present application, the total interval code corresponding to the target object in the first image can be determined according to each first probability and the interval code corresponding to each angle interval, and then the first discrimination direction angle can be determined according to the total interval code and the angle range corresponding to each angle interval. Therefore, when calculating the total interval code, the probability of the angle of the target object in each angle interval is taken into account, so that the first discrimination angle calculated according to the total interval code and the angle range of each angle interval has high accuracy.

[0090] In the above embodiment, the image generated by the generator is input into the discriminator, and the network is trained according to the output result of the discriminator. In one embodiment of the present application, the network can also be trained by using the discriminator's discrimination result of the real image. Figure 5 To explain, Figure 5 A flowchart of another method for training a conditional adversarial network provided in an embodiment of the present application.

[0091] like Figure 5 As shown, the training method of the conditional adversarial network also includes:

[0092] Step 501: Obtain a second picture containing a target object and an actual direction angle of the target object in the second picture from a training set.

[0093] In this embodiment, the pictures in the training set are real pictures containing the target object, and the training set includes pictures of the target object at different angles within the angle range.

[0094] Specifically, a picture containing a target object may be selected from the training set, referred to as the second picture, and the actual direction angle of the target object in the second picture may be obtained. The actual direction angle may be annotated, for example, the training set includes each picture and the angle of the target object in each picture, or may be obtained by detecting the angle of the target object in the second picture.

[0095] Step 502: Input the second image into the discriminator to generate the probability that the second image is a real image and each second probability of the target object in each angle interval.

[0096] Specifically, according to the actual direction angle of the target object in the second picture, the angle interval to which the actual direction angle belongs is determined, thereby determining the conditional coding, and then the second picture, a real picture containing the target object that is different from the second picture, and the conditional coding are input into the discriminator, and the discriminator generates the probability that the second picture belongs to the real picture, and each second probability of the target object in the second picture in each angle interval.

[0097] Step 503: Determine a second determination direction angle of the target object in the second image according to each second probability, the interval code corresponding to each angle interval, and the angle range corresponding to each angle interval.

[0098] In this embodiment, determining the second discrimination direction angle of the target object in the second picture is similar to the above embodiment, in which the first discrimination direction angle of the target object in the first picture is determined based on each first probability, the interval coding corresponding to each angle interval, and the angle range corresponding to each angle interval, so it will not be repeated here.

[0099] Step 504: modify the discriminator according to the difference between the second discriminated direction angle and the actual direction angle, and the probability that the second image is a real image.

[0100] In this embodiment, the network parameters of the discriminator can be adjusted according to the difference between the second discriminated direction and the actual direction angle, and the difference between the probability that the second image belongs to the real image and the second target true value to correct the discriminator.

[0101] Among them, the second target true value is 1. This is because the second picture is a real picture, so the probability that it belongs to a real picture should be 1. Therefore, the discriminant effect of the discriminator can be measured according to the difference between the probability that the second picture belongs to the real picture and the second target true value. If the difference is larger, the discrimination effect is worse.

[0102] Alternatively, the regression loss value may be calculated based on the difference between the second discriminated direction angle and the actual direction angle, and the classification loss value may be calculated based on the probability that the second image belongs to the real image and the difference between the second target true value. Then, the total loss value is calculated based on the regression loss value and the classification loss value, and the network parameters of the discriminator are adjusted based on the total loss value.

[0103] After the discriminator is corrected, the corrected discriminator is used to determine the probability that the input image belongs to a real image, and to obtain the discriminant direction angle of the target object in the image, and the discriminator is further corrected.

[0104] In an embodiment of the present application, a second image containing a target object obtained from a training set can also be input into a discriminator to generate the probability that the second image belongs to a real image and the second probabilities of the target object in each angle interval, and then the second discrimination direction angle of the target object in the second image is determined by using the probability that the second image belongs to a real image, the second probabilities of the target object in each angle interval and the angle range corresponding to each angle interval, and then the discriminator is corrected according to the difference between the second discrimination direction angle and the actual direction angle and the probability that the second image belongs to a real image. Thus, not only can the discriminator be corrected using the image generated by the generator, but also the discriminator can be corrected using the real image containing the target object obtained from the training set, thereby improving the accuracy of the network.

[0105] In the above embodiment, the angle range of the target object in the picture can be divided into multiple angle intervals, and the number of angle intervals can be set as needed. In order to improve the performance of the network, in one embodiment of the present application, before determining the current conditional coding according to the angle interval to which the target direction angle belongs, the number of angle intervals can also be determined according to the type of the target direction angle. Figure 6 To explain, Figure 6 A flowchart of another method for training a conditional adversarial network provided in an embodiment of the present application.

[0106] like Figure 6 As shown, before determining the current conditional coding according to the angle interval to which the direction angle belongs, the method further includes:

[0107] Step 601, determining the angle range of the target object in the picture according to the type of the target direction angle.

[0108] In this embodiment, the direction angle of the target object in the picture can be of different types, such as yaw angle, pitch angle, roll angle, etc. Therefore, for different target objects, corresponding types of angles can be used, and for the same target object, multiple types of angles can also be used, so that a conditional adversarial network for target objects of different angle types can be generated, which has strong scalability.

[0109] In practical applications, the angles of the target objects in the picture are of different types, and the corresponding angle ranges are also different. For example, the angle range corresponding to the yaw angle is -45 to 45. Therefore, the type of the target direction angle can be determined first, and then the angle range of the target object in the picture can be determined according to the type of the target direction angle and the angle ranges corresponding to different types.

[0110] The type of the target direction angle may be preset or determined according to the type of the target object. Since different types of objects may have different applicable angle types, the type of the target direction angle is determined according to the type of the target object.

[0111] Step 602: Divide the angle range into a preset number of angle intervals.

[0112] After determining the angle range of the target object in the image, the angle range may be divided into a preset number of angle intervals.

[0113] Specifically, the preset number may be pre-set to divide the angle range into a preset number of angle intervals. Alternatively, the range of each angle interval may be set to divide the angle range into a preset number of angle intervals according to the angle range of the target object in the picture and the range of the angle interval.

[0114] When dividing the angle intervals, the angle range is evenly divided into a preset number of angle intervals, that is, the angle range of each angle interval is the same. Of course, the angle ranges of different angle intervals may also be different.

[0115] In this embodiment, the angle range is evenly divided into a preset number of angle intervals, so that the angle range of each angle interval is the same, so that the generation effect of the target object in each angle interval can be better.

[0116] In the embodiment of the present application, before determining the current conditional coding according to the angle interval to which the target direction angle belongs, the angle range of the target object in the picture is determined according to the type of the target direction angle, and the angle range is divided into a preset number of angle intervals. Thus, the angle range of the target object in the picture is determined according to the type of the target direction angle, which improves the accuracy of the angle interval division and thus improves the accuracy of the model.

[0117] In order to improve the training effect of the model, in one embodiment of the present application, the preset number of the above-mentioned angle intervals can also be determined according to the type of the target direction angle.

[0118] In practical applications, different types of direction angles may have different extreme values ​​of the corresponding angle ranges. The extreme value here may refer to the maximum value. If the angle range is greater than the extreme value, the model effect may be poor.

[0119] Specifically, the angle range extreme value corresponding to each angle interval can be determined according to the type of the target direction angle, and then the angle range corresponding to each angle interval can be determined according to the angle range extreme value. Thus, the preset number is determined according to the angle range of the target direction angle in the picture and the angle range corresponding to each angle interval.

[0120] For example, the type of the target direction angle is the yaw angle, and the angle range is -45 to 45 degrees. The angle range extreme value corresponding to each angle interval is 1 degree, that is, the maximum value of the angle range must be less than 1 degree. For example, the angle range corresponding to each angle interval is 0.9, then 90 divided by 0.9 is 100, that is, the preset number is 100.

[0121] In the embodiment of the present application, before dividing the angle range into a preset number of angle intervals, the angle range extreme value corresponding to each angle interval is determined according to the type of the target direction angle, and the preset number is determined according to the angle range extreme value corresponding to each angle interval. Thus, different preset numbers can be obtained for different types of target direction angles, and the network is trained according to different preset numbers of angle intervals, thereby improving the accuracy of the network.

[0122] The following takes the target object as hair and the target direction angle as the yaw angle as an example to illustrate the method for determining the number of angle intervals.

[0123] In this embodiment, considering that in actual applications, many hairs near 0 degrees will be generated, if the number of angle intervals is an even number, the generated hairs will either be biased to the left or to the right, which is not a good effect. Therefore, the middle area of ​​0 degrees can be used as an interval category, and the angle range of the yaw angle can be divided into odd numbers.

[0124] Specifically, the initial interval number N is determined according to the angle range of the yaw angle and the angle range extreme value corresponding to each angle interval. If the initial interval number N is an even number, the preset number is determined to be N+1.

[0125] That is to say, when the number of calculated angle intervals is an even number, the number of angle intervals is added by 1 to obtain an odd number, that is, the angle range corresponding to the yaw angle is divided into an odd number of angle intervals. Therefore, the area near 0 degrees is taken as an interval category, so that the generator can generate a lot of hair near 0 degrees, which improves the generation effect of the hair, thereby improving the fitting effect when fitting the hair to the face.

[0126] In the embodiment of the present application, if the target object is hair and the target direction angle is the yaw angle, when determining the preset number according to the angle range extreme value corresponding to each angle interval, the initial interval number N is determined according to the angle range extreme value corresponding to each angle interval, and if the initial interval number N is an even number, the preset number is determined to be N+1. Thus, the angle range of the yaw angle is divided into an odd number of angle intervals, and the area near 0 degrees is taken as an interval category, so that the generator generates a lot of hair near 0 degrees, avoiding the generated hair being slightly to the left or right, improving the generation effect of the hair, and thus improving the fitting effect when the hair is fitted to the face.

[0127] In the present application, when generating the first picture, the noise code and the current conditional code are input into the generator. If the characteristics of the noise exceed the conditional code, it will affect the target object in the generated picture. In order to improve the effect of the conditional adversarial network, in one embodiment of the present application, before the conditional code and the noise code are input into the generator of the conditional adversarial network to generate the first picture containing the target object, the target dimension of the noise code can be determined according to the dimension of the conditional code, so that the target dimension of the noise code is less than the dimension of the conditional code.

[0128] For example, the dimension of conditional coding is 101 dimensions, and the target dimension of noise coding can be 30 dimensions, 40 dimensions, etc.

[0129] Specifically, the target dimension of the noise coding may be determined to be a preset ratio of the dimension of the conditional coding, where the preset ratio may be less than a preset threshold, such as 0.5, thereby avoiding the situation where the dimension of the noise coding is smaller than the dimension of the conditional coding but is close to the dimension of the conditional coding.

[0130] After determining the target dimension of the noise coding, the conditional coding and the noise coding of the target dimension are input into the generator to generate a first image containing the target object, and the first image is input into the discriminator. According to the generation result of the discriminator, the network is trained.

[0131] In an embodiment of the present application, before generating a first image containing a target object, a target dimension of noise coding is determined based on the dimension of conditional coding, and the conditional coding and the noise coding of the target dimension are input into a generator to generate a first image containing the target object, thereby reducing the impact of noise on the target object and improving the effect of the conditional adversarial network.

[0132] In order to implement the above embodiment, the embodiment of the present application also proposes a training device for a conditional adversarial network. Figure 7 A schematic diagram of the structure of a conditional adversarial network training device provided in an embodiment of the present application.

[0133] like Figure 7 As shown, the conditional adversarial network training device 700 includes: a first acquisition module 710, a first determination module 720, a first generation module 730, a second generation module 740, and a first correction module 750.

[0134] A first acquisition module 710 is used to acquire a target direction angle of a target object in a to-be-generated image;

[0135] A first determination module 720, configured to determine a current conditional code according to an angle interval to which a target direction angle belongs;

[0136] A first generating module 730, configured to input the conditional code and the noise code into a generator of a conditional adversarial network to generate a first image containing a target object;

[0137] A second generation module 740 is used to input the first image into the discriminator of the conditional adversarial network to generate a probability that the first image belongs to a real image and a first discriminant direction angle of the target object in the first image; and

[0138] The first correction module 750 is used to correct the generator and the discriminator according to the probability that the first image belongs to the real image and the difference between the first discrimination direction angle and the target direction angle of the target object in the first image, so as to train the conditional adversarial network.

[0139] In a possible implementation of the embodiment of the present application, the second generating module 740 includes:

[0140] A generating unit, configured to input the first image into a discriminator to generate first probabilities of the target object in various angle intervals; and

[0141] The first determination unit is used to determine a first determination direction angle of the target object in the first picture according to each first probability, the interval code corresponding to each angle interval, and the angle range corresponding to each angle interval.

[0142] In a possible implementation of the embodiment of the present application, the first determining unit includes:

[0143] A first sub-determining unit, configured to determine a total interval code corresponding to the target object in the first picture according to each first probability and the interval code corresponding to each angle interval;

[0144] The second sub-determination unit is used to determine the first determination direction angle according to the total interval code and the angle range corresponding to each angle interval.

[0145] In a possible implementation of the embodiment of the present application, the device may further include:

[0146] A second acquisition module is used to acquire a second picture containing the target object and an actual direction angle of the target object in the second picture from the training set;

[0147] a third generating module, configured to input the second image into the discriminator to generate a probability that the second image is a real image and each second probability of the target object in each angle interval; and

[0148] A second determination module is used to determine a second determination direction angle of the target object in the second picture according to each second probability, the interval code corresponding to each angle interval and the angle range corresponding to each angle interval;

[0149] The second correction module is used to correct the discriminator according to the difference between the second discrimination direction angle and the actual direction angle, and the probability that the second image belongs to the real image.

[0150] In a possible implementation of the embodiment of the present application, the device may further include:

[0151] A third determination module is used to determine the angle range of the target object in the picture according to the type of the target direction angle; and

[0152] The division module is used to divide the angle range into a preset number of angle intervals.

[0153] In a possible implementation of the embodiment of the present application, the device may further include:

[0154] A fourth determination module, used to determine an angle range extreme value corresponding to each angle interval according to the type of the target direction angle;

[0155] The fifth determining module is used to determine the preset number according to the angle range extreme value corresponding to each angle interval.

[0156] In a possible implementation of the embodiment of the present application, the target object is hair, the target direction angle is a yaw angle, and the fifth determination module includes:

[0157] A second determining unit, configured to determine the number N of initial intervals according to an extreme value of an angle range corresponding to each angle interval;

[0158] The third determining unit is configured to determine the preset number to be N+1 if the initial interval number N is an even number.

[0159] In a possible implementation of the embodiment of the present application, the above-mentioned division module is used to:

[0160] Divide the angle range evenly into a preset number of angle intervals.

[0161] In a possible implementation of the embodiment of the present application, the device may further include:

[0162] A sixth determination module, used for determining a target dimension of noise coding according to the dimension of conditional coding;

[0163] The first generating module 730 is used to input the conditional coding and the noise coding of the target dimension into the generator to generate a first picture containing the target object.

[0164] In a possible implementation of the embodiment of the present application, the target direction angle may be at least one of the following angles: a yaw angle, a pitch angle, or a roll angle.

[0165] It should be noted that the explanation of the aforementioned conditional adversarial network training method embodiment is also applicable to the conditional adversarial network training device of this embodiment, so it will not be repeated here.

[0166] The training device of the conditional adversarial network of the embodiment of the present application inputs the noise code and the conditional code determined according to the angle interval to which the target direction angle of the target object belongs to into the generator, obtains the first picture containing the target object, and inputs the first picture into the discriminator, obtains the probability that the generated first picture belongs to the real picture and the first discriminant direction angle in the first picture of the target object, and according to the probability that the first picture belongs to the real picture and the difference between the first discriminant direction angle of the target object in the first picture and the target direction angle, the generator and the discriminator are corrected to train the conditional adversarial network. Thus, by converting the continuous quantity whose condition is the direction angle into the discrete quantity angle interval, and using the mixed supervision method of classification and regression to train the conditional adversarial network, a conditional adversarial network whose condition is the continuous quantity can be obtained, which not only improves the convergence effect of the network, but also can stably generate target objects of various direction angles.

[0167] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0168] like Figure 8, is a block diagram of an electronic device according to a training method of a conditional adversarial network according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0169] like Figure 8 As shown, the electronic device includes: one or more processors 801, memory 802, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 801 is taken as an example.

[0170] The memory 802 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the training method of the conditional adversarial network provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the training method of the conditional adversarial network provided in the present application.

[0171] The memory 802 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the training method of the conditional adversarial network in the embodiment of the present application (for example, the attached Figure 7 The processor 801 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 802, that is, the training method of the conditional adversarial network in the above method embodiment is implemented.

[0172] The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the training electronic device of the conditional adversarial network, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 802 may optionally include a memory remotely disposed relative to the processor 801, and these remote memories may be connected to the electronic device of the training method of the conditional adversarial network via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0173] The electronic device of the training method of the conditional adversarial network may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803 and the output device 804 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0174] The input device 803 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device of the training method of the conditional adversarial network, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 804 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0175] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0176] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0177] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0178] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0179] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS (Virtual Private Server) services.

[0180] In order to implement the above embodiments, the embodiments of the present application also propose a computer program product, including a computer program, which, when executed by a processor, implements the training method of the conditional adversarial network according to the above embodiments.

[0181] According to the technical solution of the embodiment of the present application, by converting a continuous quantity conditioned on a direction angle into a discrete quantity angle interval and training the conditional adversarial network using a mixed supervision method of classification and regression, a conditional adversarial network conditioned on a continuous quantity can be obtained, which not only improves the convergence effect of the network, but also can stably generate target objects in various direction angles.

[0182] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0183] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A training method for a conditional adversarial network, comprising: Get the target direction angle of the target object in the image to be generated; According to the target direction angle and each angle interval range, determine the angle interval to which the target direction angle belongs, and use the interval code corresponding to the angle interval as the current conditional code; Inputting the conditional code and the noise code into a generator of the conditional adversarial network to generate a first picture including the target object; Inputting the first image into a discriminator to generate first probabilities of the target object in various angle intervals; as well as Determine a first determination direction angle of the target object in the first picture according to the first probabilities, the interval codes corresponding to the angle intervals, and the angle range corresponding to each angle interval; as well as According to the probability that the first image is a real image and the difference between the first discrimination direction angle of the target object in the first image and the target direction angle, the generator and the discriminator are modified to train the conditional adversarial network.

2. The method of claim 1, wherein: The determining, according to the first probabilities, the interval codes corresponding to the angle intervals, and the angle range corresponding to each angle interval, a first determination direction angle of the target object in the first picture includes: Determine a total interval code corresponding to the target object in the first picture according to the first probabilities and the interval codes corresponding to the angle intervals; The first determination direction angle is determined according to the total interval code and the angle range corresponding to each angle interval.

3. The method of claim 1, further comprising: Acquire a second picture containing the target object and an actual direction angle of the target object in the second picture from a training set; Inputting the second image into the discriminator to generate a probability that the second image is a real image and each second probability of the target object in each angle interval; and Determine a second determination direction angle of the target object in the second picture according to the second probabilities, the interval codes corresponding to the angle intervals, and the angle range corresponding to each angle interval; The discriminator is corrected according to the difference between the second discriminated direction angle and the actual direction angle, and the probability that the second image belongs to a real image.

4. The method of claim 1, wherein: Before determining the current conditional coding according to the angle interval to which the target direction angle belongs, the method further includes: Determining the angle range of the target object in the picture according to the type of the target direction angle; and The angle range is divided into a preset number of angle intervals.

5. The method of claim 4, wherein: Before dividing the angle range into a preset number of angle intervals, the method further includes: According to the type of the target direction angle, determine the angle range extreme value corresponding to each angle interval; The preset number is determined according to the angle range extreme value corresponding to each angle interval.

6. The method of claim 5, wherein: The target object is hair, the target direction angle is a yaw angle, and the preset number is determined according to an angle range extreme value corresponding to each angle interval, including: Determine the number N of initial intervals according to the extreme value of the angle range corresponding to each angle interval; If the initial interval number N is an even number, the preset number is determined to be N+1.

7. The method of claim 4, wherein: The step of dividing the angle range into a preset number of angle intervals includes: The angle range is evenly divided into a preset number of angle intervals.

8. The method according to any one of claims 1 to 7, wherein: Before inputting the conditional code and the noise code into the generator of the conditional adversarial network to generate the first picture containing the target object, the method further includes: Determining a target dimension of the noise coding according to the dimension of the conditional coding; The step of inputting the conditional code and the noise code into a generator of the conditional adversarial network to generate a first picture containing the target object comprises: The conditional coding and the noise coding of the target dimension are input into the generator to generate the first picture including the target object.

9. The method according to any one of claims 1 to 5, wherein: The target direction angle is at least one of the following angles: a yaw angle, a pitch angle, or a roll angle.

10. A training device for a conditional adversarial network, comprising: A first acquisition module is used to acquire a target direction angle of a target object in a to-be-generated image; A first determination module is used to determine the angle interval to which the target direction angle belongs according to the target direction angle and each angle interval range, and use the interval code corresponding to the angle interval as the current conditional code; A first generating module, configured to input the conditional code and the noise code into a generator of the conditional adversarial network to generate a first picture containing the target object; A second generating module, configured to input the first image into a discriminator of the conditional adversarial network to generate a probability that the first image is a real image and a first discriminant direction angle of the target object in the first image; as well as A first correction module, configured to correct the generator and the discriminator according to the probability that the first picture belongs to a real picture and the difference between the first discrimination direction angle of the target object in the first picture and the target direction angle, so as to train the conditional adversarial network; The second generating module comprises: A generating unit, configured to input the first image into a discriminator to generate first probabilities of the target object in each angle interval; as well as The first determination unit is used to determine a first determination direction angle of the target object in the first picture according to the first probabilities, the interval codes corresponding to the angle intervals, and the angle range corresponding to each of the angle intervals.

11. The device of claim 10, wherein: The first determining unit includes: A first sub-determining unit, configured to determine a total interval code corresponding to the target object in the first picture according to each of the first probabilities and the interval codes corresponding to each of the angle intervals; The second sub-determination unit is used to determine the first determination direction angle according to the total interval code and the angle range corresponding to each angle interval.

12. The apparatus of claim 10, further comprising: A second acquisition module, used for acquiring a second picture containing the target object and an actual direction angle of the target object in the second picture from a training set; a third generating module, configured to input the second image into the discriminator to generate a probability that the second image is a real image and each second probability of the target object in each angle interval; as well as A second determination module, configured to determine a second determination direction angle of the target object in the second picture according to the second probabilities, the interval codes corresponding to the angle intervals, and the angle range corresponding to each angle interval; The second correction module is used to correct the discriminator according to the difference between the second discrimination direction angle and the actual direction angle, and the probability that the second picture belongs to a real picture.

13. The apparatus of claim 10, further comprising: A third determination module is used to determine the angle range of the target object in the picture according to the type of the target direction angle; as well as The division module is used to divide the angle range into a preset number of angle intervals.

14. The apparatus of claim 13, further comprising: A fourth determination module, configured to determine an angle range extreme value corresponding to each angle interval according to the type of the target direction angle; The fifth determination module is used to determine the preset number according to the angle range extreme value corresponding to each angle interval.

15. The device of claim 14, wherein: The target object is hair, the target direction angle is a yaw angle, and the fifth determination module includes: A second determining unit, configured to determine the number N of initial intervals according to an extreme value of the angle range corresponding to each angle interval; The third determining unit is configured to determine the preset number to be N+1 if the initial interval number N is an even number.

16. The device of claim 13, wherein: The partitioning module is used for: The angle range is evenly divided into a preset number of angle intervals.

17. The device according to any one of claims 10 to 16, further comprising: A sixth determination module, configured to determine a target dimension of the noise coding according to the dimension of the conditional coding; The first generating module is used to input the conditional coding and the noise coding of the target dimension into the generator to generate the first picture containing the target object.

18. The device according to any one of claims 10 to 14, wherein: The target direction angle is at least one of the following angles: a yaw angle, a pitch angle, or a roll angle.

19. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the training method of the conditional adversarial network described in any one of claims 1-9.

20. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the conditional adversarial network training method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Data type determination method and device, storage medium and electronic device

    CN110781433A

  • Mode dependent primary and secondary transforms

    US20200014924A1