Information processing device, data generation method, and program

The information processing device addresses dataset generation challenges by using generative models to create diverse and balanced facial images with controlled attributes, overcoming data limitations and biases, and ensuring privacy through latent variable manipulation.

WO2024202925A1PCT designated stage expired Publication Date: 2024-10-03SONY SEMICON SOLUTIONS CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/007728
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2024-03-01
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing methods for generating large datasets, such as facial images for AI models, face challenges in creating diverse and balanced datasets due to limitations in available training data, leading to biases and difficulties in generating specific attribute values like age and race, especially with stricter privacy laws.

Method used

An information processing device and method that uses a generative model to generate latent variables based on a combination of input data and learning data probability distributions, allowing for the creation of diverse facial images with controlled attributes, thereby overcoming data limitations and biases.

Benefits of technology

Enables the efficient generation of large datasets with balanced attribute distributions, reducing statistical biases and meeting customer requirements, while maintaining privacy through controlled latent variable manipulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024007728_03102024_PF_FP_ABST
    Figure JP2024007728_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present technology pertains to an information processing device, a data generation method, and a program that make it possible to efficiently generate a large number of items of data. A generation probability distribution that is used in the generation of a latent variable, which is for generating output data in an output data generation model that outputs output data in response to the input of input data, is generated on the basis of a first probability distribution for generating, as the output data, data in which the input data has been reconstructed, and a second probability distribution that is in accordance with training data used for training the generation model, and a latent variable is generated on the basis of the generation probability distribution. The generation model generates output data on the basis of the latent variable. The present technology can be applied, for example, to a data generation device that generates data such as facial images.
Need to check novelty before this filing date? Find Prior Art

Description

Information processing device, data generation method, and program

[0001] The present technology relates to an information processing device, a data generation method, and a program, and in particular to, for example, an information processing device, a data generation method, and a program that enable efficient generation of a large amount of data.

[0002] For example, as training data used to train an AI (Artificial Intelligence) model as a discrimination model (classifier) ​​for identifying faces, facial images (data) containing faces with various attribute values ​​for attributes such as gender, age, and race may be required.

[0003] Training an AI model as a discriminative model requires a large number of images, on the order of tens of thousands, as training data. However, it is difficult to collect such a large number of images suitable for the desired use case (situation). Furthermore, in recent years, legal regulations regarding privacy have become stricter, making it difficult to clear such regulations and collect a large number of images as training data.

[0004] Therefore, a technology has been proposed that generates a facial (synthetic) image based on an image, which retains the main features of the original image while adding secondary attribute (value) features (see, for example, Patent Document 1).

[0005] In the technology described in Patent Document 1, the image that is most similar to an input image is determined as a selected image from among images that belong to a specified category among images classified into multiple categories stored in a database, and an intermediate image between the selected image and the input image is generated by combining the selected image and the input image.

[0006] With the technology described in Patent Document 1, it is difficult to generate intermediate images that go beyond the range of categorized images. Also, the accuracy of synthesis of intermediate images varies depending on the similarity of the selected image to the input image.

[0007] Patent No. 4721052

[0008] Methods for generating a large number of facial images include, for example, using AI models such as VAE (Variational AutoEncoder) and StyleGAN (Generative Adversarial Network) as a facial synthesis model (generative model) to generate facial images with various attribute values. Among VAEs, the Very Deep VAE (VDVAE) is described, for example, in CHILD, Rewon. Very deep VAEs generalize autoregressive models and can outperform them on images. arXiv preprint arXiv:2011.10650, 2020. StyleGAN is described, for example, in KARRAS, Tero; LAINE, Samuli; AILA, Timo. A style-based generator architecture for generative adversarial networks. In: Proceedings of the IEEE / CVF conference on computer vision and pattern recognition. 2019, pp. 4401-4410.

[0009] The facial images output by an AI model as a facial synthesis model depend on the training data used to train the AI ​​model. Therefore, if the (facial) images in the training data do not contain any images that match the target image (the image to be generated that has the attribute values ​​requested by the user) with target attribute values ​​(ranges), i.e., if there are almost no images with attribute values ​​similar to the target image, it will be difficult for an AI model trained using such training data to efficiently generate the target image.

[0010] For example, publicly available datasets of facial images have biases toward certain age groups, such as a low number of elderly people over 60 and young people under 10, and a low number of Japanese people. Even if an AI model uses such datasets as training data to generate more than a thousand images, it will only generate a few dozen facial images of young people, elderly people, or Japanese people, making it difficult to efficiently generate a large number of target images when the target images are facial images of young people, elderly people, or Japanese people.

[0011] This is not limited to images, but is also true when generating other data.

[0012] The present technology has been made in view of such circumstances, and makes it possible to efficiently generate a large amount of data.

[0013] The information processing device or program of the present technology is an information processing device or a program for causing a computer to function as such an information processing device, which includes a control unit that generates a generation probability distribution used to generate a latent variable for generating output data in an output data generation model that outputs output data in response to input of input data, based on a first probability distribution for generating data that reconstructs the input data as the output data and a second probability distribution that is in line with learning data used to train the generative model, generates the latent variable based on the generation probability distribution, and causes the generative model to generate the output data based on the latent variable.

[0014] A data generation method of the present technology is a data generation method that includes generating a generation probability distribution used to generate a latent variable for generating output data in an output data generation model that outputs output data in response to input of input data, based on a first probability distribution for generating data that reconstructs the input data as the output data and a second probability distribution that is in line with training data used to train the generative model, generating the latent variable based on the generation probability distribution, and the generative model generating the output data based on the latent variable.

[0015] In the information processing device, data generation method, and program of the present technology, a generation probability distribution used to generate a latent variable for generating output data in an output data generation model that outputs output data in response to input data is generated based on a first probability distribution for generating data obtained by restoring the input data as the output data, and a second probability distribution along learning data used to train the generation model. Then, the latent variable is generated based on the generation probability distribution, and the output data is generated in the generation model based on the latent variable.

[0016] The information processing device may be an independent device or an internal block constituting a single device.

[0017] The program can also be provided by transmitting it via a transmission medium or by recording it on a recording medium.

[0018] 1 is a block diagram showing an example of the configuration of an embodiment of a data generation device to which the present technology is applied. FIG. 1 is a block diagram showing an example of the configuration of an encoder 21 and a decoder 24. FIG. 1 is a block diagram showing an example of the configuration of a residual block 31. FIG. 1 is a block diagram showing an example of the configuration of a top-down block 41. FIG. 2 is a diagram explaining an overview of first generation control of an output image. FIG. 3 is a diagram explaining an example of generation of a generation probability distribution q[new] under first generation control. FIG. 4 is a diagram explaining an example of setting a weight α by qualitative evaluation. FIG. 5 is a diagram explaining an example of setting an application layer of a generation probability distribution q[new] by qualitative evaluation. FIG. 6 is a diagram showing an example of an output image generated by a decoder 24 under first generation control. FIG. 7 is a diagram showing another example of an output image generated by a decoder 24 under first generation control. FIG. 8 is a diagram showing an example of the distribution of features of an input image and an output image generated under first generation control using the input image. FIG. 9 is a flowchart explaining an example of processing under first generation control by the attribute / ID control unit 23. FIG. 10 is a diagram explaining an overview of second generation control of an output image. FIG. 11 is a diagram explaining an example of transformation of a latent variable z under second generation control. FIG. 12 is a diagram showing an example of attributes to which a contribution vector β・nv contributes. FIG. 13 is a flowchart explaining an example of processing under the attribute / ID control unit 23 to generate a normal vector nv. 1 is a diagram illustrating an example of setting a threshold for separation accuracy by qualitative evaluation. FIG. 2 is a diagram illustrating an example of an output image generated by the decoder 24 under second generation control. FIG. 3 is a diagram illustrating another example of an output image generated by the decoder 24 under second generation control. FIG. 4 is a flowchart illustrating an example of processing of second generation control by the attribute / ID control unit 23. FIG. 5 is a flowchart illustrating an example of processing of normalization of the transformed latent variable zt performed in step S34. FIG. 6 is a diagram illustrating examples of an output image when normalization of the transformed latent variable zt is performed, and an output image when normalization is not performed. FIG. 7 is a diagram illustrating an example of a UI generated by the UI processing unit 26. FIG. 8 is a diagram illustrating another example of a UI generated by the UI processing unit 26. FIG. 9 is a block diagram illustrating an example of the configuration of an embodiment of a computer to which the present technology is applied.

[0019] <One embodiment of a data generation device to which the present technology is applied>

[0020] FIG. 1 is a block diagram showing an example of the configuration of an embodiment of a data generating device to which the present technology is applied.

[0021] The data generator 11 receives an input image as input data, generates an output image as output data, and outputs the output image.

[0022] The data generating device 11 receives, as input images, seed images serving as seeds for generating images, such as real face images captured by photographing an actual face or fictitious face images captured by an arbitrary generative model. The data generating device 11 generates, as output images, fictitious face images that differ in individual (person) or attribute (attribute values) from the face captured in the seed image serving as the input image. Therefore, the data generating device 11 can obtain output images that are privacy-protected and personal information-free face image datasets.

[0023] The data generation device 11 controls (manipulates) generation parameters obtained from pre-prepared seed images (input images), etc., to generate a large number of diverse images from a small number of seed images, such as images with desired values ​​for desired attributes or images with various values. Therefore, a large number of images as data can be efficiently generated, allowing for bulking up of a large number of images. An example of an image with desired values ​​for a desired attribute is an image of Japanese people as an attribute (attribute value of race). An example of an image with various values ​​for a desired attribute is an image of people with a wide range of age attributes (attribute values ​​of age) from young to old. Control of generation parameters includes not only direct control of generation parameters, but also processes that result in the control of generation parameters.

[0024] Generative parameters latently contain facial features such as eyes, skin color, and hairstyle, particularly facial appearance features. By providing generative parameters to a generative model, a facial image can be obtained as the output of the generative model. Generative parameters are also called latent variables.

[0025] The data generating device 11 performs labeling and cleansing on a large number of face images obtained by controlling latent variables as generation parameters, thereby generating a face image dataset consisting of all or part of the large number of face images.

[0026] In labeling, attribute values ​​for each attribute of the face in the face image (or the face in the face image) and a face ID (identification) are assigned to the face image. Labeling is an annotation process that automatically assigns attribute values ​​and face IDs without human intervention.

[0027] For a face image, attributes are items related to the facial features (appearance of the face) shown in the face image, such as age, sex, facial expression, eye shape, hair color, and race. A face ID is an ID that identifies an individual (person) whose face appears in the face image. The same face ID is assigned to multiple face images identified as belonging to the same person, and different face IDs are assigned to multiple face images identified as belonging to different people.

[0028] In cleansing, a process is performed to set the statistical values ​​(distribution) of the attribute values ​​of the attributes of the face images constituting the face image dataset, the number of face IDs, the resolution of the face images, and the number of face images (number of data (number of images)) constituting the face image dataset to desired values. For example, thinning of the face images, i.e., deleting some face images, downsampling or upsampling of the face images, etc. is performed.

[0029] By bulking up, labeling, and cleansing face images (seed images), it is possible to achieve equality by reducing statistical bias in attributes of face image datasets. Furthermore, it is possible to build face image datasets at low cost that meet the number of data, resolution, attributes (values), and statistical values ​​required by customers such as AI developers.

[0030] In facial image bulking, rather than editing the facial image itself on an image-by-image basis, latent variables can be controlled to generate a wide variety of facial images with various attributes (attribute values) and facial IDs. Furthermore, by changing (controlling) the latent variables in the latent space of the latent variables in a direction that changes the attribute values ​​of the desired attributes of the facial image, it is possible to easily generate facial images with attribute values ​​that tend to be lacking when actually photographing a face, or facial images that match the attribute values ​​and statistical values ​​desired by customers such as AI developers. Therefore, the cost of building a desired facial image dataset can be kept low.

[0031] In the data generating device 11, a fictitious face image, a real face image provided by a customer, or the like can be used as a seed image (input image) used for bulking up.

[0032] Requirements for a face image dataset requested by a customer (hereinafter also referred to as dataset requirements), such as the number of data, the number of people (the number of face IDs), resolution, attributes, attribute statistics (distribution of attribute values ​​for each attribute), etc., can be set by operating the data generating device 11. In addition, the dataset requirements can be set in the data generating device 11, for example, from a file storing the dataset requirements.

[0033] The final face image dataset file can include face images, an index file in which face images are linked to face IDs and attribute labels, thumbnails (images) of the face images, and an attribute statistics data file that shows attribute statistics for each attribute.

[0034] The data generation device 11 performs labeling by clustering the generated face images (output images) using a classifier that identifies people and attributes, assigning face IDs and attribute values, and calculating attribute statistics (statistics of attribute values). Furthermore, cleansing is performed so that the attribute statistics of the output images are equal to the attribute statistics required by the customer as a dataset requirement, and a final face image dataset can be generated.

[0035] The data generating device 11 includes an encoder 21, a scrambling unit 22, an attribute / ID control unit 23, a decoder 24, an annotation unit 25, and a UI (User Interface) processing unit 26. A seed image as an input image and dataset requirements are input to the data generating device 11, and the data generating device 11 generates a face image dataset based on the input seed image and dataset requirements. For example, the data generating device 11 can construct a face image dataset consisting of approximately 50,000 face images from several hundred seed images.

[0036] A plurality of seed images as input images prepared in advance are supplied to the encoder 21. The encoder 21 is, for example, an AE (AutoEncoder) encoder, extracts features from the seed images, and supplies the extracted features to the scrambling unit 22.

[0037] The scrambling unit 22 scrambles the feature quantities of the seed image from the encoder 21 and supplies the scrambled result to the attribute / ID control unit 23. Scrambling is a process that makes it impossible to restore the feature quantities of the seed image, and in scrambling, for example, any random noise or feature quantities extracted from an image prepared in advance separately from the seed image is added to the feature quantities of the seed image. Scrambling can strengthen the protection of the privacy of a real person when that person appears in the seed image.

[0038] The scrambling unit 22 can scramble the feature amounts as needed. Furthermore, the data set requirements required by the customer can be supplied to the scrambling unit 22. As described above, the data set requirements include, for example, the number of face images constituting the face image data set, the resolution of the face images, attributes such as age to be labeled, and attribute statistics indicating the distribution of attribute values ​​for each attribute, all specified by the customer. The scrambling unit 22 can scramble the feature amounts based on the data set requirements.

[0039] The attribute / ID control unit 23 controls the generation of an output image by a decoder 24 that generates a face image as an output image based on information obtained from the feature amount of the seed image from the scrambling unit 22, etc.

[0040] For example, in the generation control, the attribute / ID control unit 23 generates latent variables of a large number of output images showing faces that can be identified as different people from each other while maintaining the attributes (attribute values) of the seed image based on information obtained from the feature amounts, etc. of the seed image (for example, the probability distribution q, which will be described later). A large number of output images showing faces that can be identified as different people from each other mean images to which different face IDs can be assigned.

[0041] Furthermore, for example, in the generation control, the attribute / ID control unit 23 generates latent variables of a large number of output images in which specific attributes (attribute values) of the seed image, for example, age (apparent age), are changed based on information obtained from the features of the seed image (for example, the contribution vector described later).

[0042] Then, in the generation control, the attribute / ID control unit 23 causes the decoder 24 to generate output images based on the latent variables of each output image.

[0043] Data set requirements can be supplied to the attribute / ID control unit 23. The attribute / ID control unit 23 can perform generation control based on the data set requirements.

[0044] The decoder 24 is an output image generation model that outputs an output image (output data) in response to an input of an input image (input data) to the encoder 21, and is, for example, an AE decoder. The decoder 24 can generate and output an output image based on latent variables generated by the attribute / ID control unit 23 in accordance with the generation control of the attribute / ID control unit 23. The output image output by the decoder 24 is supplied to the annotation unit 25. Note that the decoder 24 as a generation model can generate an output image regardless of the input of an input image to the encoder 21. In this case, the output image generated by the decoder 24 is an image within a range that conforms to the learning data used for learning the decoder 24.

[0045] The dataset requirements are supplied to the annotation unit 25. The annotation unit 25 generates (constructs) a face image dataset that satisfies the dataset requirements based on the dataset requirements and the output image from the decoder 24, and outputs the dataset to a subsequent stage such as a recording unit (not shown).

[0046] That is, the annotation unit 25 performs labeling and cleansing (cleaning) of the face image dataset (face images) with respect to attributes and face IDs, and generates a final face image dataset that satisfies the dataset requirements.

[0047] The annotation unit 25 can perform labeling and cleansing without requiring user operation, i.e., without manual labor, by using, for example, any existing clustering method, similarity calculation method, a classifier obtained by prior learning, etc. The user is a user who uses the data generating device 11, and includes an operator of the data generating device 11, a customer, etc.

[0048] Cleansing is a bias removal process that removes statistical data biases, such as the attributes (values) of multiple output images. For example, cleansing involves deleting (removing) some output images that make up a face image dataset, adjusting the number of data, attribute statistics, and number of people so that the number of data, attribute statistics, and number of people meet the dataset requirements. Adjusting the number of people involves deleting output images with the same face ID.

[0049] The UI processing unit 26 functions as a UI generating unit that generates an image as a UI (GUI (Graphical UI)) including information to be provided to the user and buttons operated by the user as necessary, and presents the UI to the user by displaying the UI on a display unit (not shown). The UI processing unit 26 also performs various settings and controls the necessary blocks that constitute the data generating device 11 in response to user operations on the UI.

[0050] When the data generating device 11 is configured as a server-client system, for example, the server can function as the data generating device 11. In this case, the UI processing unit 26 can transmit the UI to the client and display it.

[0051] <Configuration example of the encoder 21 and the decoder 24>

[0052] FIG. 2 is a block diagram showing an example of the configuration of the encoder 21 and the decoder 24. As shown in FIG.

[0053] That is, FIG. 2 shows an example of the configuration of the encoder 21 and decoder 24 when a VDVAE (Very Deep VAE) (decoder) is used as a generative model for generating an output image.

[0054] In Fig. 2, an encoder 21 and a decoder 24 are the encoder and decoder of the VDVAE, respectively. Note that Fig. 2 and Figs. 3 and 4 described below are quoted from CHILD, Rewon. Very deep VAEs generalize autoregressive models and can outperform them on images. arXiv preprint arXiv:2011.10650, 2020.

[0055] The encoder 21 is composed of 66 layers of residual blocks (res blocks) 31 as multiple layers, and pooling layers (pool) 32 inserted for every several residual blocks 31. In the encoder 21, an input image is input to the bottom-most residual block 31 in the drawing, and data flows along a bottom-up path.

[0056] The residual block 31 receives the output of the residual block 31 or pooling layer 32 immediately below it as input, extracts (generates) features of the input image from the input, and outputs the activations to the residual block 31 or pooling layer 32 immediately above it. The bottommost residual block 31 extracts the features of the input image from the input image.

[0057] The pooling layer 32 pools the output (feature amount of the input image) of the residual block 31 immediately below, and outputs the result to the residual block 31 immediately above.

[0058] The decoder 24 is composed of the same 66-layer top-down blocks 41 as the encoder 21, and unpooling layers 42 inserted every several top-down blocks 41. The unpooling layers 42 are inserted at positions corresponding to the pooling layers 32 of the encoder 21. In the decoder 24, data flows along a top-down path.

[0059] In the encoder 21, the residual block 31 directly below the pooling layer 32 and the topmost residual block 31 among the residual blocks 31 also output the features of the input image to the top-down blocks 41 from the top-down block 41 at the position corresponding to that residual block 31 downward to the top-down block 41 directly above the next unpooling layer 42.

[0060] The top-down block 41 uses the output of the top-down block 41 or un-pooling layer 42 immediately above as input, and also uses the feature of the input image output by the residual block 31 as input as necessary, generates a feature of the output image from the input, and outputs it to the top-down block 41 or un-pooling layer 42 immediately below. The bottommost top-down block 41 outputs the output image.

[0061] The unpooling layer 42 unpools the output (feature amount of the output image) of the top-down block 41 immediately above, and outputs it to the top-down block 41 immediately below.

[0062] In the top-down block 41, when the features of the output image are generated using both the output of the top-down block 41 directly above or the unpooling layer 42 and the features of the input image output by the residual block 31 as inputs, the output image is a reconstructed image that restores the input image.

[0063] 2 omits illustration of some of the 66 layers of the residual block 31 and the top-down block 41. In addition, with respect to the layers of the residual block 31 and the top-down block 41, the lower side in the drawing is referred to as the upper layer, and the upper side is referred to as the lower layer.

[0064] FIG. 3 is a block diagram showing an example of the configuration of the residual block 31. As shown in FIG.

[0065] The residual block 31 includes convolution layers (conv) 51 to 54 and an adder 55 .

[0066] The convolutional layer 51 receives, as input to the residual block 31, an input image, the output of the previous (higher layer) residual block 31, or the output of the previous pooling layer 32. The convolutional layer 51 performs a 1×1 convolution (applies a kernel) on the input to the residual block 31 and outputs the result to the convolutional layer 52. The convolutional layer 52 performs a 3×3 convolution on the output of the convolutional layer 51 and outputs the result to the convolutional layer 53. The convolutional layer 53 performs a 3×3 convolution on the output of the convolutional layer 52 and outputs the result to the convolutional layer 54. The convolutional layer 54 performs a 1×1 convolution on the output of the convolutional layer 53 and outputs the result to the adder 55.

[0067] The adder 55 is supplied with the output of the convolutional layer 54, as well as the input to the residual block 31. The adder 55 adds the input to the residual block 31 and the output of the convolutional layer 54, and outputs the addition result as activations of the input image.

[0068] FIG. 4 is a block diagram showing an example of the configuration of the top-down block 41. As shown in FIG.

[0069] The top-down block 41 includes a concatenation unit (concat) 61 , convolution layers (conv) 62 to 70 , addition units 71 and 72 , and a residual block (res block) 73 .

[0070] The combination unit 61 receives, as input to the top-down block 41, a fixed value, the output of the immediately preceding (lower layer) top-down block 41, or the output of the immediately preceding pooling layer 42. Furthermore, the combination unit 61 receives the activations of the input image output by the residual block 31 of the encoder 21. The combination unit 61 combines the input to the top-down block 41 with the activations of the input image output by the residual block 31, and outputs the combined activations to the convolution layer 62.

[0071] The convolutional layer 62 performs a 1×1 convolution on the output of the concatenation unit 61 and outputs the result to the convolutional layer 63. The convolutional layer 63 performs a 3×3 convolution on the output of the convolutional layer 62 and outputs the result to the convolutional layer 64. The convolutional layer 64 performs a 3×3 convolution on the output of the convolutional layer 63 and outputs the result to the convolutional layer 65. The convolutional layer 65 performs a 1×1 convolution on the output of the convolutional layer 64 and outputs the result.

[0072] Here, in the top-down block 41, parameters that define a predetermined probability distribution (first probability distribution) q are generated based on the output of the convolutional layer 65.

[0073] The probability distribution q is a probability distribution of the latent variable z for generating an output image (output data) by restoring the input image (input data). Any probability distribution can be used as the probability distribution q. For example, if a normal distribution is used as the probability distribution q, the parameters that define the probability distribution q are the mean and standard deviation (or variance).

[0074] The input to the top-down block 41 is supplied to the convolutional layer 66. The convolutional layer 66 performs a 1×1 convolution on the input to the top-down block 41 and outputs the result to the convolutional layer 67. The convolutional layer 67 performs a 3×3 convolution on the output of the convolutional layer 66 and outputs the result to the convolutional layer 68. The convolutional layer 68 performs a 3×3 convolution on the output of the convolutional layer 67 and outputs the result to the convolutional layer 69. The convolutional layer 69 performs a 1×1 convolution on the output of the convolutional layer 68 and outputs the result to the adder 71.

[0075] Here, in the top-down block 41, parameters that define a predetermined probability distribution (second probability distribution) p are generated based on the output of the convolution layer 69.

[0076] The probability distribution p is a probability distribution of the latent variable z according to the training data used to train the decoder 24 (and the encoder 21) as a generative model (a probability distribution followed by the latent variable z of the training data). Any probability distribution can be used as the probability distribution p. For example, when a normal distribution is used as the probability distribution p, the parameters that define the probability distribution p are the mean and standard deviation.

[0077] A latent variable z is supplied to the convolutional layer 70. In the VDVAE, when an image restored from an input image is generated as an output image, the top-down block 41 samples the latent variable z based on the probability distribution q and supplies the sampled latent variable z to the convolutional layer 70. On the other hand, when a random image within a range consistent with the training data is generated as an output image, the top-down block 41 samples the latent variable z based on the probability distribution p and supplies the sampled latent variable z to the convolutional layer 70.

[0078] The convolution layer 70 performs 1×1 convolution on the latent variable z and outputs the result to the addition unit 72.

[0079] The adder 71 is supplied with the output of the convolutional layer 69, as well as the input to the top-down block 41. The adder 71 adds the output of the convolutional layer 69 and the input to the top-down block 41, and outputs the result to the adder 72. The adder 72 adds the output of the adder 71 and the output of the convolutional layer 70, and supplies the result to the residual block 73.

[0080] The residual block 73 is configured in the same manner as the residual block 31 in Fig. 3. The residual block 73 receives the output of the adder 72 as input, performs processing in the same manner as the residual block 31, and outputs the processing result as a feature of the output image.

[0081] The attribute / ID control unit 23 can perform either or both of a first generation control and a second generation control as generation control for generating an output image by the decoder 24 configured as described above. The first generation control and the second generation control will be described below.

[0082] <First Generation Control>

[0083] FIG. 5 is a diagram illustrating an outline of the first generation control of the output image.

[0084] In the first generation control, the attribute / ID control unit 23 generates a generation probability distribution q[new] as a new probability distribution based on the probability distributions q and p. Then, the attribute / ID control unit 23 generates a latent variable z for generating an output image based on the generation probability distribution q[new], and causes the decoder 24 to generate an output image based on the latent variable z (to generate a facial image from the latent variable z).

[0085] 4, the probability distribution q is information obtained from the activations of the input image obtained by the encoder 21 and the features of the output image obtained by the decoder 24. The probability distribution p is information obtained from the features of the output image obtained by the decoder 24.

[0086] As described above, in the first generation control, an output image is generated based on the latent variable z generated based on the generation probability distribution q[new] generated based on the probability distributions q and p. This makes it possible to efficiently generate, from a small number of input images (seed images), a large number of output images that maintain the attributes of the input images and that show faces that can be distinguished from each other as different people and that would be difficult to generate using only the probability distribution q or p.

[0087] Furthermore, since the output image is generated based on the latent variable z, rather than through image-based processing such as editing or compositing of input images, it is possible to generate an output image that shows a natural face.

[0088] FIG. 6 is a diagram illustrating an example of generation of a generation probability distribution q[new] under the first generation control.

[0089] Although any probability distribution can be used as the generated probability distribution q[new], we will use the normal distribution here. In this case, the generated probability distribution q[new] is defined by its mean value and standard deviation.

[0090] The attribute / ID control unit 23 can generate a normal distribution as the generated probability distribution q[new], in which the mean value qm[new] is the weighted sum of the mean value qm of the probability distribution q and a value based on the mean value pm of the probability distribution p, and the standard deviation qv[new] is the weighted sum of the standard deviation qv of the probability distribution q and a value based on the standard deviation pv of the probability distribution p.

[0091] Here, the value based on the mean value pm of the probability distribution p is expressed by the function f(pm) that takes the mean value pm as an argument, and the value based on the standard deviation pv of the probability distribution p is expressed by the function g(pv) that takes the standard deviation pv as an argument.

[0092] In this case, the mean value qm[new] of the generated probability distribution q[new] is expressed by the formula qm[new] = α·pm + (1 - α)·f(pm), and the standard deviation qv[new] is expressed by the formula qv[new] = α·pv + (1 - α)·g(pv). α is a weight that adjusts the blending ratio between probability distribution q and probability distribution p, and can be set to any value, including negative values, and is not limited to the range of 0 to 1. Note that when α = 0, it is almost equivalent to using only probability distribution p, and when α = 1, it is equivalent to using only probability distribution q.

[0093] As the function f(pm), which is a value based on the mean value pm, for example, f(pm) = X~N(pm, pmstd) or f(pm) = pm can be used. X~N(pm, pmstd) represents a value sampled based on a normal distribution with a mean value pm and a standard deviation pmstd. The standard deviation pmstd is a variable that adjusts the randomness of X~N(pm, pmstd) and can be set to any value.

[0094] As the function g(pv), which is a value based on the standard deviation pv, for example, g(pv) = X~N(pv, pvstd) or g(pv) = pv can be used. X~N(pv, pvstd) represents a value sampled based on a normal distribution with a mean value of pv and a standard deviation of pvstd. The standard deviation pvstd is a variable that adjusts the randomness of X~N(pv, pvstd) and can be set to any value.

[0095] In the following, we will use f(pm) = X~N(pm, pmstd) as the function f(pm) and g(pv) = X~N(pv, pvstd) as the function g(pv).

[0096] The weight α and the standard deviations pmstd and pvstd can be set, for example, by qualitative evaluation of the output image.

[0097] FIG. 7 is a diagram illustrating an example of setting the weight α based on qualitative evaluation.

[0098] FIG. 7 shows examples of a seed image as an input image and output images for each of α=0.5, 0.7, and 0.9.

[0099] The input image in FIG. 7 shows a Japanese woman.

[0100] When α=0.9, an output image is generated that shows a woman who is likely to be identified as the woman in the input image. Therefore, α=0.9 is not appropriate for padding an image of a person (a different person) from the input image.

[0101] When α=0.5 is set, the influence of images of Westerners, which are often included in the learning data of the decoder 24 (and the encoder 21), becomes stronger, and an output image is generated in which the attribute value of race as an attribute is changed from "Japanese" in the input image to "Western." Therefore, setting α=0.5 is not appropriate for generating an output image that shows a face that can be identified as a different person while maintaining the attributes of the input image.

[0102] When α=0.7, an output image is generated in which a face that can be identified as a different person is shown, while the attribute value of race as an attribute is maintained as "Japanese" in the input image. Therefore, by setting α=0.7, it is possible to efficiently generate an output image in which a face that can be identified as a different person is shown, while maintaining the attributes of the input image.

[0103] According to the inventors of the present invention, qualitative evaluation has confirmed that by setting the standard deviations pmstd and pvstd to pmstd = 0.35 and pvstd = 0.75, it is possible to efficiently generate an output image containing a face that can be identified as that of a different person while maintaining the attributes of the input image.

[0104] The weight α and the standard deviations pmstd and pvstd that can efficiently generate an output image showing a desired face may vary depending on the training data used to train the decoder 24, the input image, and the attributes of the input image to be maintained in the output image. Therefore, it is desirable to specify and set the weight α and the standard deviations pmstd and pvstd to values ​​that are effective for obtaining an output image showing a desired face, for example, by qualitative evaluation.

[0105] The generation of an output image (feature) using the generation probability distribution q[new], i.e., the generation of an output image based on the latent variable z generated based on the generation probability distribution q[new], can be performed for some, but not all, of the 66 layers (top-down blocks 41) of the decoder 24.

[0106] For example, generation of an output image using the generation probability distribution q[new] can be performed for only some of the 66 layers of the decoder 24, such as upper layers, middle layers, lower layers, or other arbitrarily selected layers. A layer that generates an output image using the generation probability distribution q[new] is also called an application layer of the generation probability distribution q[new].

[0107] Which part of the 66 layers of the decoder 24 is to be the application layer of the generated probability distribution q[new] can be set, for example, by qualitative evaluation of the output image.

[0108] FIG. 8 is a diagram illustrating an example of setting the application layer of the generated probability distribution q[new] based on qualitative evaluation.

[0109] FIG. 8 shows examples of a seed image as an input image and output images when the application layer of the generation probability distribution q[new] is the lower layers 10, 21, 43, and 57.

[0110] Of the 66 layers of the decoder 24, the remaining layers other than the application layer of the generated probability distribution q[new] use the probability distribution p (the latent variable z generated based on it).

[0111] The input image in Figure 8 depicts a Japanese woman. If the lower layers, such as layers 43 and 57, or even all 66 layers, of the 66 layers are applied as layers for the generating probability distribution q[new], the input image (probability distribution q) will have a large influence, and the generated output image will not exhibit much randomness (probability distribution p) within the range consistent with the training data. In other words, the generated output image will have low diversity, depicting women who are likely to be identified as the same person as the woman in the input image. Therefore, using many of the 66 layers as layers for the generating probability distribution q[new] is not appropriate for padding images that are likely to be identified as a different person from the person in the input image.

[0112] If the bottom 10 layers out of the 66 layers are used as application layers for the generation probability distribution q[new], the influence of images of Westerners, which are often included in the learning data of the decoder 24, will be strong, and an output image will be generated in which the attribute value for race as an attribute has been changed from "Japanese" in the input image to "Western." Therefore, using only the bottom 10 or so layers as application layers for the generation probability distribution q[new] is not appropriate for generating an output image that shows a face that can be identified as a different person while maintaining the attributes of the input image.

[0113] If the lowest 21 layers of the 66 layers are applied to the generation probability distribution q[new], an output image is generated that shows a face that can be identified as a different person, while maintaining the attribute value of race as "Japanese" in the input image. Therefore, by applying the generation probability distribution q[new] to the lowest 21 layers or so, it is possible to efficiently generate an output image that shows a face that can be identified as a different person, while maintaining the attributes of the input image.

[0114] Note that which layer, when used as the application layer of the generation probability distribution q[new], can efficiently generate an output image showing a desired face may vary depending on the training data used to train the decoder 24, the input image, the attributes of the input image to be maintained in the output image, etc. Therefore, it is desirable to specify and set, by qualitative evaluation or the like, a layer that is effective in obtaining an output image showing a desired face as the application layer of the generation probability distribution q[new].

[0115] FIG. 9 is a diagram showing an example of an output image generated by the decoder 24 under the first generation control.

[0116] In FIG. 9, the output image is shown together with the input image (seed image) used to generate the output image.

[0117] 9, it can be confirmed that the generated output image shows a person (with a face) different from the face in the input image, with facial features such as eyes, nose, and mouth being different from those in the input image. Furthermore, it can be confirmed that the input image shows a Japanese person, but the generated output image maintains the race attribute value "Japanese" as an attribute of the input image. It can also be confirmed that the generated output images show different people.

[0118] FIG. 10 is a diagram showing another example of an output image generated by the decoder 24 under the first generation control.

[0119] In FIG. 10, the output image is shown together with the input image (seed image) used to generate the output image.

[0120] 9 shows an output image when f(pm) = X~N(pm, pmstd) is used as the function f(pm) and g(pv) = X~N(pv, pvstd) is used as the function g(pv). In contrast, FIG. 10 shows an output image when f(pm) = pm is used as the function f(pm) and g(pv) = pv is used as the function g(pv).

[0121] In the case of Figure 10, the diversity of the output images is slightly lower than in the case of Figure 9, but it can still be confirmed that an output image is generated that shows a different person from the input image and other output images while maintaining the attributes of the input image (Japanese).

[0122] FIG. 11 is a diagram showing an example of the distribution of feature amounts of an input image and an output image generated using the input image under the first generation control.

[0123] 11, the horizontal and vertical axes represent feature principal components A and B, which are the first and second principal components of the feature obtained by principal component analysis of the feature of the input image or the output image, respectively. The feature of the input image or the output image here is not necessarily the same as the feature obtained by the encoder 21 or the decoder 24.

[0124] 11A shows the distribution of feature principal components A and B of 200 input images (seed images). 11B shows the distribution of feature principal components A and B of 4,140 output images generated by the first generation control using 200 input images. It can be confirmed that the output images with no bias in the distribution of feature principal components A and B have been padded.

[0125] FIG. 12 is a flowchart illustrating an example of the first generation control process by the attribute / ID control unit 23.

[0126] In step S11, the attribute / ID control unit 23 causes the decoder 24 to generate a probability distribution q based on the feature quantities of the input image from the encoder 21 (the feature quantities of the input image supplied from the encoder 21 via the scrambling unit 22), etc. Furthermore, the attribute / ID control unit 23 causes the decoder 24 to generate a probability distribution p. Then, the attribute / ID control unit 23 generates a generated probability distribution q[new] based on the probability distributions q and p, and the process proceeds from step S11 to step S12.

[0127] In step S12, the attribute / ID control unit 23 generates a latent variable z based on the generation probability distribution q[new], and the process proceeds to step S13. That is, the attribute / ID control unit 23 generates a latent variable z by sampling based on the generation probability distribution q[new] for the application layer of the generation probability distribution q[new].

[0128] In step S13, the attribute / ID control unit 23 causes the decoder 24, which serves as a generative model, to generate an output image based on the latent variable z. That is, for the application layer of the generation probability distribution q[new] among the 66 layers of the decoder 24, the attribute / ID control unit 23 causes the output image (feature quantities) to be generated based on the latent variable z generated based on the generation probability distribution q[new]. In the decoder 24, for layers other than the application layer of the generation probability distribution q[new], the output image is generated based on the latent variable z generated based on the probability distribution p of that layer.

[0129] The attribute / ID control unit 23 performs the processes of steps S11 to S13 for each input image, and also repeats the processes of steps S12 and S13 for each input image as many times as necessary, thereby generating the required number of output images.

[0130] <Second Generation Control>

[0131] FIG. 13 is a diagram illustrating an outline of the second generation control of the output image.

[0132] In the second generation control, the attribute / ID control unit 23 generates a new latent variable zt based on a latent variable z based on a probability distribution generated by the decoder 24 and a contribution vector. That is, the attribute / ID control unit 23 generates a transformed latent variable zt as a new latent variable by transforming the latent variable z generated by the decoder 24 based on the contribution vector. Then, the attribute / ID control unit 23 causes the decoder 24 to generate an output image based on the transformed latent variable zt (to generate a facial image from the transformed latent variable zt). The contribution vector is a vector that contributes to a predetermined attribute (or a change in the attribute value) of the input image in the latent space. The contribution vector is generated based on a latent variable z generated based on a probability distribution q generated based on the feature amounts (activations) of the input image obtained by the encoder 21, for example.

[0133] Here, the latent variable z based on the probability distribution generated by the decoder 24 refers to a latent variable z generated directly or indirectly based on one or both of the probability distributions q and p generated by the decoder 24. Therefore, the latent variable z based on the probability distribution generated by the decoder 24 includes not only latent variables generated directly based on the probability distribution q or p generated by the decoder 24, but also latent variables generated based on a generated probability distribution q[new] generated based on the probability distributions q and p. When the latent variable z is generated based on the probability distribution q, the activations of the input image obtained by the encoder 21 are used to generate the probability distribution q. Therefore, the latent variable z based on the probability distribution generated by the decoder 24 can also be said to be a latent variable generated based on the features of the input image.

[0134] As described above, in the second generation control, an output image is generated based on a transformed latent variable zt that is generated by transforming the latent variable z based on the contribution vector. This makes it possible to efficiently generate, from a small number of input images (seed images), a large number of output images in which the attributes (attribute values) contributed by the contribution vectors of the input images change, and which show faces that can be identified as the same person, and which would be difficult to generate using only the probability distribution q or p.

[0135] Furthermore, since the output image is generated based on the latent variable z, rather than through image-based processing such as editing or compositing of input images, it is possible to generate an output image that shows a natural face.

[0136] FIG. 14 is a diagram illustrating an example of transformation of the latent variable z in the second generation control.

[0137] In the second generation control, the attribute / ID control unit 23 linearly transforms the latent variable z into a transformed latent variable zt based on, for example, the contribution vector β·nv. That is, the attribute / ID control unit 23 linearly transforms the latent variable z into a transformed latent variable zt according to, for example, zt = z + β·nv.

[0138] In the contribution vector β·nv, nv represents a (unit) normal vector orthogonal to the division plane that divides the latent space of the latent variable z by the attribute value of a predetermined attribute of the input image. β is a variable that represents the amplitude of the attribute value of the attribute to which the contribution vector β·nv contributes. The value of the variable β controls the attribute value of the attribute (predetermined attribute) to which the contribution vector β·nv contributes in the output image.

[0139] FIG. 15 is a diagram showing an example of attributes to which the contribution vector β·nv contributes.

[0140] That is, FIG. 15 shows an example of attributes controlled by the contribution vector β·nv.

[0141] The contribution vector β·nv can control the attribute values ​​of attributes such as facial orientation (Pose), age (apparent age) (Age), facial expression (Expression), and whether or not the person is wearing glasses (Eyeglasses), and can generate an output image with attribute values ​​that differ from the input image (Original).

[0142] FIG. 16 is a flowchart illustrating an example of processing for generating a normal vector nv by the attribute / ID control unit 23.

[0143] In step S21, the attribute / ID control unit 23 controls the encoder 21 and the decoder 24 to generate a latent variable z based on the probability distribution q from the input image (seed image), and the process proceeds to step S22.

[0144] In step S22, the attribute / ID control unit 23 selects latent variables z to be used as training data and evaluation data for the linear separator from the latent variables z of each input image generated in step S21, and the process proceeds to step S23.

[0145] As the linear separator, an SVM (Support Vector Machine) or any other arbitrary linear separator can be adopted. As the learning data and evaluation data of the linear separator, when the input images are sorted in the order of the attribute values ​​of a predetermined attribute, i.e., an attribute to be controlled by the second generation control (hereinafter also referred to as an attribute of interest), latent variables z of the top multiple input images and the bottom multiple input images can be selected.

[0146] For example, if age (apparent age) is used as the attribute of interest, the latent variables z of the top 10% of input images sorted by age (ascending order), i.e., the input images depicting young people, and the latent variables z of the bottom 10% of input images, i.e., the input images depicting older people, can be selected as training data and evaluation data for the linear separator. Then, for example, the latent variables z of any 8% of the latent variables z of the top 10% of input images sorted by age, and the latent variables z of any 8% of the latent variables z of the bottom 10% of input images, can be selected as training data for the linear separator. Furthermore, the latent variables z of the remaining 2% of the latent variables z of the top 10% of input images and the latent variables z of the remaining 2% of the latent variables z of the bottom 10% of input images can be selected as evaluation data for the linear separator.

[0147] In step S23, the attribute / ID control unit 23 performs hyperplane learning using an SVM as a linear separator for each of the 66 layers of the decoder 24, using the latent variable z as learning data for that layer, and the process proceeds to step S24. Through hyperplane learning, a hyperplane is calculated as a division plane that divides the latent space for each layer of the decoder 24 according to the attribute value of the attribute of interest. In this case, since the attribute of interest is age, a hyperplane that divides the latent space into a subspace for older people and a subspace for younger people is calculated.

[0148] In step S24, the attribute / ID control unit 23 calculates the separation accuracy of the evaluation data by the hyperplane as the division plane for each layer of the decoder 24, and the process proceeds to step S25. As the separation accuracy, the ratio of the number of evaluation data pieces for which the latent variable z as evaluation data can be correctly separated into the subspace of the elderly group or the subspace of the young group can be used.

[0149] In step S25, the attribute / ID control unit 23 calculates (generates) the (unit) normal vector of the hyperplane as an age control vector for age control for the layer whose separation accuracy exceeds the threshold, and the process ends.

[0150] The attribute / ID control unit 23 generates (the feature quantities of) an output image based on the transformed latent variable zt only for the layer of the decoder 24 for which the normal vector serving as the age control vector was calculated in step S25. For the other layers, (the feature quantities of) an output image are generated based on the latent variable z generated by the decoder 24, i.e., the probability distribution q, the probability distribution p, or the latent variable z generated based on the generated probability distribution q[new].

[0151] The threshold value for the separation accuracy used in step S25 can be set, for example, by qualitative evaluation of the output image.

[0152] FIG. 17 is a diagram illustrating an example of setting a threshold value for separation accuracy based on qualitative evaluation.

[0153] Figure 17 shows an example of a seed image as an input image and an output image when the separation accuracy thresholds are set to 0.5, 0.8, and 0.9, and the transformed latent variable zt obtained by transforming the latent variable z based on the normal vector as the age control vector is used only for layers with separation accuracy exceeding the thresholds.

[0154] The input image in FIG. 17 shows a young Japanese male.

[0155] When the output image (feature quantities) is generated based on the transformed latent variable zt for all 66 layers of the decoder 24, an image with noise that appears yellowish overall is generated as the output image.

[0156] Therefore, generation of output images based on the transformed latent variables zt can be performed not for all 66 layers of the decoder 24 but only for some layers, for example, layers whose separation accuracy exceeds a threshold.

[0157] When the threshold is set to 0.5 and output images are generated based on the transformed latent variables zt only for layers with separation accuracy exceeding that threshold, yellowish-looking noise is noticeable in the output image, just as when output images are generated based on the transformed latent variables zt for all 66 layers.

[0158] On the other hand, if the threshold is set to 0.8 or higher and output images are generated based on the transformed latent variables zt only for layers with separation accuracy exceeding that threshold, the yellowish-looking noise is reduced and becomes less noticeable.

[0159] Therefore, for example, 0.8 can be adopted as the threshold for separation accuracy. The threshold for separation accuracy at which noise is inconspicuous in the output image may vary depending on the training data used to train the decoder 24 (and the encoder 21), the input image, the attribute of interest, etc. Therefore, it is desirable to specify and set the threshold for separation accuracy to a value that is effective for obtaining an output image in which noise is inconspicuous, for example, by qualitative evaluation.

[0160] FIG. 18 is a diagram showing an example of an output image generated by the decoder 24 under the second generation control.

[0161] Fig. 18 shows examples of output images when age is used as the attribute of interest. In Fig. 18, the images in the first row are output images obtained by changing the variable β from input images of Japanese men, and the images in the second row are output images obtained by changing the variable β from input images of Japanese women.

[0162] 18, it can be seen that the output images show faces of people of various ages in the input image, regardless of gender, and that the hairstyle, skin type, and other characteristics of the faces change with age in the output images.

[0163] FIG. 19 is a diagram showing another example of an output image generated by the decoder 24 under the second generation control.

[0164] 19 shows an example of an output image when race is used as the attribute of interest. In FIG. 19, the first row of images are output images obtained by changing the variable β from an input image of a Western woman, and the second row of images are output images obtained by changing the variable β from an input image of a Western man.

[0165] 19, it can be seen that an output image showing a Japanese (or Asian)-like face can be generated from a Western face shown in an input image, regardless of gender. Note that in FIG. 19, the facial contours and skin texture shown in the output image tend to depend on the input image.

[0166] FIG. 20 is a flowchart illustrating an example of the second generation control process by the attribute / ID control unit 23.

[0167] In step S31, the attribute / ID control unit 23 generates a normal vector nv, which becomes a contribution vector β·nv that contributes to the target attribute, as described in FIG. 16, and the process proceeds to step S32. Note that the normal vector nv can be generated using an input image (seed image) as described in FIG. 16, or can be generated using any facial image(s) other than the input image. Furthermore, if a normal vector nv has been generated for the target attribute in the past, the process from step S32 onwards can omit the process of step S31 by using the normal vector nv as a normal vector orthogonal to the division plane that divides the latent space by the attribute value of the target attribute of the input image.

[0168] In step S32, the attribute / ID control unit 23 sets a variable β based on attribute statistics (e.g., age distribution) of a target attribute as a data set requirement, etc. Furthermore, the attribute / ID control unit 23 generates a contribution vector β·nv based on the variable β, and the process proceeds from step S32 to step S33.

[0169] In step S33, the attribute / ID control unit 23 converts the latent variable z generated by the decoder 24 based on the probability distribution q or p, etc., into a converted latent variable zt based on the contribution vector β·nv in accordance with the equation zt = z + β·nv, and the process proceeds to step S34. The conversion of the latent variable z to the converted latent variable zt is performed only for the layer where the normal vector nv was generated, i.e., the layer where the separation accuracy exceeds a threshold.

[0170] In step S34, the attribute / ID control unit 23 normalizes the transformed latent variable zt as necessary, and the process proceeds to step S35.

[0171] In step S35, the attribute / ID control unit 23 causes the decoder 24, which serves as a generative model, to generate an output image based on the transformed latent variable zt. That is, the attribute / ID control unit 23 causes the layer in which the normal vector nv is generated, out of the 66 layers of the decoder 24, to generate an output image (feature quantities) based on the transformed latent variable zt. In the decoder 24, in layers other than the layer in which the normal vector nv is generated, an output image is generated based on the latent variable z generated based on the probability distribution q or p of that layer.

[0172] The attribute / ID control unit 23 repeats the processes of steps S32 to S36 for each input image as many times as necessary, thereby generating as many output images as necessary, each having a predetermined value or various values ​​as the attribute value of the target attribute.

[0173] Here, in step S33, when probability distribution q is used as the probability distribution for generating the latent variable z to be converted into the transformed latent variable zt, and in step S35, when probability distribution q is used as the probability distribution for generating the latent variable z of a layer other than the layer for which the normal vector nv is generated, an output image is generated that shows a face that can be identified as the same person as the face appearing in the input image used to generate probability distribution q, and in which the attribute value of the attribute of interest (e.g., age) has changed according to variable β. When probability distribution p is used as the probability distribution for generating latent variable z, an output image is generated that shows a face that is within a range that conforms to the learning data of decoder 24, and in which the attribute value of the attribute of interest has changed according to variable β.

[0174] FIG. 21 is a flowchart illustrating an example of the process of normalizing the transformed latent variable zt performed in step S34 of FIG.

[0175] The latent variable z is a vector having multiple elements, and in step S41, the attribute / ID control unit 23 calculates the mean value and variance of the elements of the vector as the latent variable z before conversion, and the process proceeds to step S42.

[0176] In step S42, the attribute / ID control unit 23 corrects the elements of the transformed latent variable zt based on the mean value and variance of the elements of the latent variable z before transformation so that the mean value and variance of the elements of the vector as the transformed latent variable zt match the mean and variance before transformation, respectively.

[0177] FIG. 22 is a diagram showing examples of an output image when normalization of the transformed latent variable zt is performed and when normalization is not performed.

[0178] When the transformed latent variable zt is used, particularly for the lower layers of the 66 layers of the decoder 24, if the transformed latent variable zt is not normalized, an image with noise that appears to have increased brightness is generated as the output image.

[0179] Therefore, for example, if one or both of the two lower layers (the lowest layer and the layer second from the lowest layer) are layers in which a normal vector nv is generated, the transformed latent variable zt can be normalized for that layer. By normalizing the transformed latent variable zt, an output image with reduced noise can be obtained, as shown in FIG. 22. Note that the normalization of the transformed latent variable zt can be performed not only for the two lower layers, but also for the three or more lower layers.

[0180] The first generation control and the second generation control described above can both be performed simultaneously. By performing both the first generation control and the second generation control simultaneously, it is possible to generate a large number of output images that are distinguishable as different people and have a wide variety of attribute values ​​for the target attribute. For example, if age is used as the target attribute, it is possible to generate a large number of output images that are distinguishable as different people and have a wide range of ages from young to old.

[0181] When both the first generation control and the second generation control are performed simultaneously, as described in the first generation control, for the application layer of the generation probability distribution q[new] among the 66 layers of the decoder 24, an output image (feature quantities) is generated based on the latent variable z generated based on the generation probability distribution q[new]. For layers other than the application layer of the generation probability distribution q[new], an output image is generated based on the latent variable z generated based on the probability distribution p of that layer. However, for the layer where the normal vector nv is generated, i.e., the layer where the separation accuracy exceeds the threshold, as described in the second generation control, the latent variable z is converted into a converted latent variable zt, and an output image is generated based on the converted latent variable zt.

[0182] <UI>

[0183] FIG. 23 is a diagram showing an example of a UI generated by the UI processing unit 26 of FIG.

[0184] It is assumed that the data generation device 11 performs both the first generation control and the second generation control, and that age is set as the attribute of interest.

[0185] FIG. 23 shows an example of a display of a target distribution input screen 110 as a UI.

[0186] The target distribution input screen 110 is a UI for setting target values ​​for the distribution of attribute values ​​of each attribute of the output image. By operating the target distribution input screen 110, the user can input target values ​​for the attributes (attribute values) of the output image, such as target values ​​for the age and gender distribution (age distribution and gender distribution) of faces (people) appearing in the output image (group).

[0187] The target distribution input screen 110 has a selection button 111, a preset name field 112, a storage destination field 113, a distribution input field 114, a storage destination field 115, a distribution display field 116, a preview button 117, an execute button 118, and the like.

[0188] The selection button 111 is operated to select a preset. A preset is a data set including target values ​​of age distribution and gender distribution prepared in advance as defaults, and seed images as input images. In Fig. 23, three presets are prepared to suit expected use cases.

[0189] When a preset is selected by operating the selection button 111, the name of the preset is entered in a preset name field 112. In addition, the storage destination (path) of the input image file as the preset selected by operating the selection button 111 (hereinafter also referred to as the selected preset) is entered in a storage destination field 113. Furthermore, the age distribution and gender distribution of the selected preset are entered in a distribution input field 114 as target values ​​for the age distribution and gender distribution of the output image.

[0190] If the age distribution or gender distribution as the selected preset entered in the distribution input field 114 does not match the age distribution or gender distribution as the customer's dataset requirement, the user can modify the age distribution or gender distribution as the selected preset entered in the distribution input field 114 so that it matches the age distribution or gender distribution as the dataset requirement. Therefore, if the age distribution and gender distribution as the selected preset match the age distribution and gender distribution as the dataset requirement, respectively, the user does not need to enter the age distribution and gender distribution as the dataset requirement (as numerical values). Furthermore, if a portion of the age distribution or gender distribution as the selected preset does not match the age distribution or gender distribution as the dataset requirement, the user can easily enter the age distribution and gender distribution as the dataset requirement by simply modifying the mismatched portion.

[0191] The preset name column 112 displays the name of the selected preset.

[0192] The storage destination of the input image file is displayed in the storage destination field 113. By operating the storage destination field 113, the user can input into the storage destination field 113 the storage destination of an input image that has been prepared separately from the input image as a preset.

[0193] Target values ​​for age distribution and gender distribution can be input into the distribution input field 114 by operating the distribution input field 114. As described above, when a preset is selected by operating the selection button 111, the age distribution or gender distribution of the selected preset is input into the distribution input field 114 as the target values ​​for the age distribution and gender distribution.

[0194] 23 , the percentage of the number of output images (with faces) for each age group from teens to 60s to the total number of output images is input as a target value for age distribution in the distribution input field 114. The percentages of the number of output images for each age group from teens to 60s are adjusted so that the total becomes 100%.

[0195] 23 , the percentage of output images (showing faces of) men and women relative to the total number of output images is input as a target value for gender distribution in the distribution input field 114. When the percentage of the number of output images for either men or women is changed in response to a user operation, the percentage of the number of output images for the other is adjusted so that the total becomes 100%.

[0196] The storage destination of the output image file is displayed in the storage destination field 115. The user can input the storage destination of the output image into the storage destination field 115 by operating the storage destination field 115.

[0197] The distribution display field 116 displays the target values ​​of the age distribution and gender distribution entered in the distribution input field 114 in the form of a histogram, with the number of output images for each age group and the number of output images for each gender as frequencies. The total number of output images can be set, for example, by a user operation. In FIG. 23, the total number of output images is set to 500.

[0198] The target values ​​of the age distribution and gender distribution can be changed not only by manipulating the distribution input field 114 but also by manipulating the histograms as the target values ​​of the age distribution and gender distribution displayed in the distribution display field 116. When the histograms as the target values ​​of the age distribution and gender distribution displayed in the distribution display field 116 are manipulated, the percentages in the distribution input field 114 are changed in accordance with the manipulation.

[0199] A preview button 117 is operated to display a preview of the output image.

[0200] The execute button 118 is operated when generating an output image based on the target values ​​of age distribution and gender distribution input in the distribution input field 114 (displayed in the distribution display field 116) in the data generation device 11.

[0201] When the preview button 117 or the execute button 118 is operated, the data generation device 11 classifies the input images stored in the storage destination displayed in the storage destination field 113 into male and female input images (input images depicting males and females, respectively). Then, the attribute / ID control unit 23 performs first and second generation controls using the male input images, and the decoder 24 generates output image(s) of various males of various ages based on the target values ​​of age distribution and gender distribution. Similarly, the first and second generation controls are performed using the female input images, and output image(s) of various females of various ages based on the target values ​​of age distribution and gender distribution. In generating the output images, the second generation control transforms the latent variable z based on the target value of the age distribution in the distribution input field 114 (distribution display field 116). That is, the variable β is set based on the target value of the age distribution, and the latent variable z is converted to the transformed latent variable zt based on the contribution vector β·nv. As a result, an output image is generated that has an age distribution that is as close as possible to the target value of the age distribution.

[0202] In the data generating device 11, the annotation unit 25 cleans the male and female output images generated by the decoder 24 so that the age distribution and gender distribution of the output images (almost) match the target values ​​of the age distribution and gender distribution in the distribution input field 114. Then, when the execute button 118 is operated, the output images obtained as a result of the cleansing are stored in the storage destination file displayed in the storage destination field 115.

[0203] In addition, if the execute button 118 is operated after the preview button 117 is operated, the output image generated in response to the operation of the preview button 117 can be stored in the storage destination file displayed in the storage destination field 115 without newly generating the output image.

[0204] FIG. 24 is a diagram showing another example of a UI generated by the UI processing unit 26 of FIG.

[0205] FIG. 24 shows an example of a display of a preview screen 120 that displays a preview of an output image as a UI generated when the preview button 117 in FIG. 23 is operated.

[0206] The preview screen 120 includes a preview field 121, an age field 122, a gender check box 123, an update button 124, a distribution display field 125, and the like.

[0207] When the preview button 117 is operated, the data generating device 11 generates output images as described above. Furthermore, the data generating device 11 generates thumbnails of some of the output images that are randomly selected, for example. The preview field 121 displays thumbnails of some of the output images generated as described above.

[0208] A number is displayed at the top of the thumbnail as a face ID. In FIG. 24 , only a number is displayed as a face ID at the top of the thumbnail of a male output image, and a number as a face ID is displayed in a rectangle at the top of the thumbnail of a female output image. This face ID display makes it easy to understand the gender of the person appearing in the output image (thumbnail). Additionally, the face ID can be displayed in different colors depending on the gender of the output image, such as displaying male face IDs in blue and female face IDs in red.

[0209] The age field 122 displays the age range of the output image (faces appearing in the image) whose thumbnail is displayed. The user can change the age displayed in the age field 122 by operating the age field 122. The preview field 121 displays thumbnails of some output images selected from the output images that show faces (people) of ages within the age range displayed in the age field 122.

[0210] The gender check box 123 is operated to select the gender of the output image whose thumbnail is to be displayed. The gender check box 123 has a male check box and a female check box. When the male check box is checked, the output image whose thumbnail is to be displayed is selected from the male output images. When the female check box is checked, the output image whose thumbnail is to be displayed is selected from the female output images.

[0211] The update button 124 is operated to update the thumbnail displayed in the preview field 121. When the update button 124 is operated, an output image whose thumbnail is to be displayed in the preview field 121 is reselected, and the thumbnail of that output image is displayed in the preview field 121.

[0212] 23, the distribution display field 125 displays the target values ​​of the age distribution and gender distribution (the age distribution and gender distribution set on the target distribution input screen 110) in the form of a histogram in which the number of output images for each age group and the number of output images for each gender are used as frequencies. Furthermore, the distribution display field 125 displays the age distribution and gender distribution of the output images actually generated by the data generation device 11 in the form of a similar histogram.

[0213] In the distribution display field 125, for age distribution, the target value (target) of the age distribution and the age distribution (output) of the output images actually generated by the data generating device 11 are displayed side by side as bar graphs showing the frequency of the same age. Similarly, for gender distribution, the target value (target) of the gender distribution and the gender distribution (output) of the output images actually generated by the data generating device 11 are displayed side by side as bar graphs showing the frequency of the same gender. That is, the target value for the number of male output images and the number of male output images actually generated by the data generating device 11 are displayed side by side, and the target value for the number of female output images and the number of female output images actually generated by the data generating device 11 are displayed side by side.

[0214] In this embodiment, facial images are used as input data and output data of the data generating device 11. However, other images containing subjects other than faces, or media data other than images, such as sound (voice) or text (sentence), can also be used as input data and output data. Furthermore, different media data can be used as input data and output data instead of the same media data such as images. For example, text can be used as input data, and an image of the content represented by the text can be used as output data.

[0215] Furthermore, in this embodiment, a VDVAE (decoder) is employed as the generative model. However, any other generative model other than the VDVAE may be employed as the generative model. For example, a VAE-based generative model other than the VDVAE or a generative model other than the VAE may be employed as the generative model subject to the first and second generative controls. For example, any other generative model other than the VAE-based generative model may be employed as the generative model subject to the first generative control, which provides, as output data, a first probability distribution for generating data reconstructed from input data and a second probability distribution based on the training data used to train the generative model.

[0216] Examples of synthetic image editing techniques include interfaceGAN and encoder4editing. InterfaceGAN is described in SHEN, Yujun, et al., "Interfacegan: Interpreting the disentangled face representation learned by gans." IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020. Encoder4editing is described in TOV, Omer, et al., "Designing an encoder for stylegan image manipulation." ACM Transactions on Graphics (TOG), 2021, 40.4: 1-14. Both interfaceGAN and encoder4editing are based on StyleGAN, which is trained on the premise of image transformation. Therefore, it is difficult to directly apply them to VAE-based face image generation (face synthesis models), including VDVAE.

[0217] <Description of a computer to which this technology is applied>

[0218] Next, the above-described series of processes can be performed by hardware or software. When the series of processes is performed by software, the programs constituting the software are installed in a general-purpose computer or the like.

[0219] FIG. 25 is a block diagram showing an example of the configuration of an embodiment of a computer in which a program for executing the above-described series of processes is installed.

[0220] The program can be recorded in advance on the hard disk 905 or ROM 903 as a recording medium built into the computer.

[0221] Alternatively, the program can be stored (recorded) on a removable recording medium 911 driven by the drive 909. Such a removable recording medium 911 can be provided as a so-called package software. Here, examples of the removable recording medium 911 include a flexible disk, a CD-ROM (Compact Disc Read Only Memory), an MO (Magneto Optical) disk, a DVD (Digital Versatile Disc), a magnetic disk, and a semiconductor memory.

[0222] The program can be installed into the computer from the removable recording medium 911 as described above, or can be downloaded to the computer via a communication network or a broadcasting network and installed on the built-in hard disk 905. That is, the program can be transferred to the computer wirelessly from a download site via an artificial satellite for digital satellite broadcasting, or transferred to the computer via a wired network such as a LAN (Local Area Network) or the Internet.

[0223] The computer includes a CPU (Central Processing Unit) 902 , to which an input / output interface 910 is connected via a bus 901 .

[0224] When a user inputs a command via an input / output interface 910 by operating an input unit 907, the CPU 902 executes a program stored in a read-only memory (ROM) 903 in accordance with the command. Alternatively, the CPU 902 loads a program stored on a hard disk 905 into a random access memory (RAM) 904 and executes the program.

[0225] As a result, the CPU 902 performs processing according to the flowchart described above or processing performed by the configuration of the block diagram described above. Then, the CPU 902 outputs the processing results from the output unit 906 via the input / output interface 910, or transmits them from the communication unit 908, or further records them on the hard disk 905, as necessary.

[0226] The input unit 907 is made up of a keyboard, a mouse, a microphone, etc. The output unit 906 is made up of an LCD (Liquid Crystal Display), a speaker, etc.

[0227] In this specification, the processing performed by a computer according to a program does not necessarily have to be performed in chronological order according to the order described in the flowchart. In other words, the processing performed by a computer according to a program also includes processing that is executed in parallel or individually (for example, parallel processing or object-based processing).

[0228] The program may be processed by a single computer (processor), or may be distributed among multiple computers. Furthermore, the program may be transferred to and executed on a remote computer.

[0229] Furthermore, in this specification, a system refers to a collection of multiple components (devices, modules (components), etc.), regardless of whether all of the components are contained in the same housing. Therefore, multiple devices housed in separate housings and connected via a network, and a single device housed in a single housing with multiple modules, are both systems.

[0230] It should be noted that the embodiments of the present technology are not limited to the above-described embodiments, and various modifications are possible within the scope of the present technology.

[0231] For example, the present technology can be configured as a cloud computing system in which a single function is shared and processed collaboratively by a plurality of devices via a network.

[0232] Furthermore, each step described in the above flowchart can be executed by one device, or can be shared and executed by a plurality of devices.

[0233] Furthermore, when one step includes multiple processes, the multiple processes included in that one step can be executed by one device or can be shared and executed by multiple devices.

[0234] Furthermore, the effects described in this specification are merely examples and are not limiting, and other effects may also be present.

[0235] The present technology can be configured as follows.

[0236] <1> An information processing device comprising: a control unit that generates a generation probability distribution used to generate a latent variable for generating output data in an output data generation model that outputs output data in response to input of input data, based on a first probability distribution for generating data obtained by restoring the input data as the output data, and a second probability distribution that is in line with training data used to train the generative model, generates the latent variable based on the generation probability distribution, and causes the generative model to generate the output data based on the latent variable. <2> The information processing device described in <1>, wherein the generation probability distribution, as well as the first probability distribution and the second probability distribution, are normal distributions. <3> The information processing device described in <2>, wherein the generation probability distribution is a normal distribution whose mean value is a weighted sum of a mean value of the first probability distribution and a value based on the mean value of the second probability distribution, and whose standard deviation is a weighted sum of a standard deviation of the first probability distribution and a value based on the standard deviation of the second probability distribution. <4> The information processing device according to <3>, wherein the generated probability distribution is a normal distribution whose mean is a weighted sum of the mean of the first probability distribution and values ​​sampled based on a normal distribution whose mean is the mean of the second probability distribution, and whose standard deviation is a weighted sum of the standard deviation of the first probability distribution and values ​​sampled based on a normal distribution whose mean is the standard deviation of the second probability distribution. <5> The information processing device according to <3>, wherein the generated probability distribution is a normal distribution whose mean is a weighted sum of the mean of the first probability distribution and the mean of the second probability distribution, and whose standard deviation is a weighted sum of the standard deviation of the first probability distribution and the standard deviation of the second probability distribution. <6> The information processing device according to any of <1> to <5>, wherein the generative model is a decoder of a variational autoencoder (VAE). <7> The information processing device according to <6>, wherein the generative model is a decoder of a very deep VAE (VDVAE), in which the encoder and the decoder are composed of multiple layers.<8> The information processing device according to <7>, wherein the control unit generates the latent variables for some of the multiple layers of the decoder based on the generation probability distribution, and generates the latent variables for the remaining layers based on the second probability distribution. <9> The information processing device according to <8>, wherein the control unit generates the latent variables for some lower layers of the multiple layers of the decoder based on the generation probability distribution. <10> The information processing device according to any of <1> to <9>, wherein the input data and the output data are images. <11> The information processing device according to <10>, wherein the image is a facial image containing a face. <12> A data generation method, comprising: generating a generation probability distribution used to generate latent variables for generating output data in an output data generation model that outputs output data in response to input data, based on: a first probability distribution for generating data obtained by restoring the input data as the output data; and a second probability distribution according to training data used to train the generative model; generating the latent variables based on the generation probability distribution; and the generative model generating the output data based on the latent variables. <13> A program for causing a computer to function as a control unit that generates a generation probability distribution used to generate latent variables for generating output data in an output data generation model that outputs output data in response to input data, based on a first probability distribution for generating data that reconstructs the input data as the output data, and a second probability distribution that is in line with training data used to train the generative model, generates the latent variables based on the generation probability distribution, and causes the generative model to generate the output data based on the latent variables.

[0237] REFERENCE SIGNS LIST 11 Data generation device, 21 Encoder, 22 Scrambling unit, 23 Attribute / ID control unit, 24 Decoder, 25 Annotation unit, 26 UI processing unit, 31 Residual block, 32 Pooling layer, 41 Top-down block, 42 ​​Unpooling layer, 51 to 54 Convolution layer, 55 Addition unit, 61 to 70 Convolution layer, 71, 72 Addition unit, 73 Residual block, 110 Target distribution input screen, 111 Selection button, 112 Preset name field, 113 Storage destination field, 114 Distribution input field, 115 Storage destination field, 116 Distribution display field, 117 Preview button, 118 Execute button, 120 Preview screen, 121 Preview field, 122 Age field, 123 Gender check box 124 Update button, 125 Distribution display field, 901 Bus, 902 CPU, 903 ROM, 904 RAM, 905 Hard disk, 906 Output unit, 907 Input unit, 908 Communication unit, 909 Drive, 910 Input / output interface, 911 Removable recording medium

Claims

1. An information processing device comprising: a control unit that generates a generation probability distribution used to generate latent variables for generating output data in an output data generation model that outputs output data in response to input data, based on a first probability distribution for generating data that reconstructs the input data as the output data, and a second probability distribution that is in line with learning data used to train the generative model; generates the latent variables based on the generation probability distribution; and causes the generative model to generate the output data based on the latent variables.

2. The information processing device according to claim 1, wherein the generated probability distribution, the first probability distribution and the second probability distribution are normal distributions.

3. The information processing device according to claim 2, wherein the generated probability distribution is a normal distribution whose average value is a weighted sum of the average value of the first probability distribution and a value based on the average value of the second probability distribution, and whose standard deviation is a weighted sum of the standard deviation of the first probability distribution and a value based on the standard deviation of the second probability distribution.

4. The information processing device described in claim 3, wherein the generated probability distribution is a normal distribution whose average value is a weighted sum of the mean of the first probability distribution and values ​​sampled based on a normal distribution whose mean value is the mean of the second probability distribution, and whose standard deviation is a weighted sum of the standard deviation of the first probability distribution and values ​​sampled based on a normal distribution whose mean value is the standard deviation of the second probability distribution.

5. The information processing device according to claim 3, wherein the generated probability distribution is a normal distribution whose average value is a weighted sum of the average value of the first probability distribution and the average value of the second probability distribution, and whose standard deviation is a weighted sum of the standard deviation of the first probability distribution and the standard deviation of the second probability distribution.

6. The information processing device according to claim 1, wherein the generative model is a decoder of a VAE (Variational AutoEncoder).

7. The information processing device according to claim 6, wherein the generative model is a decoder of a VDVAE (Very Deep VAE) in which the encoder and the decoder are composed of a plurality of layers.

8. The information processing device according to claim 7, wherein the control unit generates the latent variables for a portion of the multiple layers of the decoder based on the generation probability distribution, and generates the latent variables for the remaining layers based on the second probability distribution.

9. The information processing device according to claim 8, wherein the control unit generates the latent variables based on the generation probability distribution for a lower portion of the layers of the decoder.

10. The information processing device according to claim 1, wherein the input data and the output data are images.

11. The information processing device according to claim 10, wherein the image is a facial image showing a face.

12. A data generation method comprising: generating a generation probability distribution used to generate latent variables for generating output data in an output data generation model that outputs output data in response to input data, based on a first probability distribution for generating data that reconstructs the input data as the output data, and a second probability distribution based on training data used to train the generative model; generating the latent variables based on the generation probability distribution; and the generative model generating the output data based on the latent variables.

13. A program for causing a computer to function as a control unit that generates a generation probability distribution used to generate latent variables for generating output data in an output data generation model that outputs output data in response to input data, based on a first probability distribution for generating data that reconstructs the input data as the output data, and a second probability distribution that is in line with training data used to train the generative model, generates the latent variables based on the generation probability distribution, and causes the generative model to generate the output data based on the latent variables.