Image generating device, image generating method, and program

The image generation device employs adversarial learning to project feature expressions onto image space, addressing the inefficiency of long training times in CNN behavior analysis and low visibility in existing methods, enabling rapid generation of interpretable images.

JP7561381B2Active Publication Date: 2024-10-04NIPPON TELEGRAPH & TELEPHONE CORP +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2021134786
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-08-20
Publication Date
2024-10-04
Estimated Expiration
2041-08-20

AI Technical Summary

Technical Problem

Existing techniques for understanding the behavior of convolutional neural networks (CNNs) require extensive learning times due to complex model structures, while methods that regenerate images without autoencoders lack visibility, making it difficult to interpret the feature expressions effectively.

Method used

An image generation device and method that uses adversarial learning to project feature expressions onto image space, incorporating quality loss and adversarial loss calculations to generate highly visible images in a practical time frame, utilizing an image processing model with selected parameters and an identification model to determine image correctness.

Benefits of technology

Enables the generation of highly visible images that reflect feature expressions in a shorter time frame than traditional methods, allowing for effective interpretation of CNN behavior without lengthy training periods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007561381000002
    Figure 0007561381000002
  • Figure 0007561381000003
    Figure 0007561381000003
  • Figure 0007561381000004
    Figure 0007561381000004
Patent Text Reader

Abstract

To generate, in practical time, an image having a featured representation, obtained in an intermediate process of image processing by CNN, projected in a high-visibility state.SOLUTION: An image generation device comprises: an image processing unit which inputs object image data to be evaluated to an image processing model generated with arbitrarily selected image processing parameters, and generates feature representation data representing features of the object image data to be evaluated obtained in an intermediate process of image processing by the image processing model; a quality loss calculation unit which generates quality loss data indicative of a loss value as an evaluation index for quality of generated image data based upon the object image data to be evaluated, feature representation data on the object image data to be evaluated and the generated image data; and a feature projection image generation unit which performs processing for minimizing the loss value that the quality loss data represents and hostile learning processing using authentic image data and the generated image data so as to generate generated image data on which features that the feature representation data represent are projected.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image generating device, an image generating method, and a program. [Background technology]

[0002] In recent years, the accuracy of techniques using machine learning has improved, and in particular, the accuracy of techniques such as identifying and detecting objects in images and segmenting areas using convolutional neural networks (CNNs) has improved significantly. Technologies that use these machine learning techniques to promote the automation of visual inspection processes in various business operations are attracting attention.

[0003] For example, in order to promote the automation of visual inspection processes in business, image processing is performed on captured images. For this reason, it is desirable for image processing by CNN to behave similarly to the human in charge of the work. However, due to vulnerability to adversarial perturbation as shown in Non-Patent Document 1 and input image shift as shown in Non-Patent Document 2, it is known that the behavior of CNN differs from that of humans.

[0004] Technologies have been proposed to understand the behavior of CNNs, which differ from the behavior of human eyes, by using techniques called visualization and white boxing. For example, in a technology called DeepSiM disclosed in Non-Patent Document 3, feature representations obtained in the intermediate process of image processing by CNN are back-projected into image space using a mechanism similar to that of an autoencoder. For example, when the captured original image is a natural image, DeepSiM uses an image generation method using adversarial learning during the learning process of this backprojection, making it possible to obtain an image with good visibility close to a natural image as a backprojection result. Therefore, by utilizing DeepSiM, it is possible to confirm whether a desired feature representation can be extracted inside the CNN, or whether a feature representation has disappeared in any of the layers of the CNN. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy, “EXPLAINING AND HARNESSING ADVERSARIAL EXAMPLES”, Proceedings of the International Conference on Learning Representations (ICLR), 2015. [Non-Patent Document 2] Richard. Zhang, “Making Convolutional Networks Shift-Invariant Again”, Proceedings of the 36th International Conference on Machine Learning, PMLR 97:7324-7334, 2019. [Non-Patent Document 3] Alexey Dosovitskiy and Thomas Brox, “Generating Images with Perceptual Similarity Metrics based on Deep Networks”, Proceedings of the 30th International Conference on Neural Information Processing Systems(NIPS 2016), Pages 658-666, 2016. [Non-Patent Document 4] Aravindh Mahendran and Andrea Vedaldi, “Understanding deep image representations by inverting them”, IEEE Conference on Computer Vision and Pattern Recognition, 2015. [Non-Patent Document 5] Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge, “A Neural Algorithm of Artistic Style”, [online], 2 Sep 2015, arXiv:1508.06576, [Retrieved June 21, 2021], Internet<URL: https: / / arxiv.org / pdf / 1508.06576.pdf> Summary of the Invention [Problem to be solved by the invention]

[0006] However, DeepSiM requires a long learning time because it performs a learning process to back-project feature representations into image space in the same manner as autoencoders, as described above. In other words, when using DeepSiM, which follows the structure of autoencoders, the model that performs backprojection in DeepSiM needs to have a structure similar to that of the CNN whose behavior is to be confirmed. Therefore, DeepSiM requires a learning time similar to that of the CNN whose behavior is to be confirmed. In recent years, CNNs have become complex in model structure, so the number of parameters has increased, and as a result, they tend to require long learning times, such as several days to several months. Therefore, in order to understand the behavior of a CNN that requires several months of learning time, DeepSiM also requires several months of learning time. There is a problem that requiring such a long learning time to understand the behavior of a CNN is not realistic and is not preferable in practice.

[0007] In contrast, for example, the techniques disclosed in Non-Patent Documents 4 and 5 visualize feature representations obtained in the intermediate process of image processing by CNN without using an autoencoder. Since these techniques do not use an autoencoder, the feature representations are back-projected into image space by regenerating the pixel values ​​of the original image themselves through optimization in a short time of a few seconds to a few minutes. However, the images regenerated by the techniques disclosed in Non-Patent Documents 4 and 5 have a problem in that they have low visibility and are difficult to understand the contents of the images.

[0008] In view of the above circumstances, the present invention aims to provide a technology that can generate, within a practical amount of time, an image in which feature expressions obtained in the intermediate stages of image processing are projected with high visibility. [Means for solving the problem]

[0009] One aspect of the present invention includes an image processing unit that provides evaluation target image data as an input to an image processing model generated by arbitrarily selected image processing parameters, and generates feature representation data that expresses features of the evaluation target image data obtained in an intermediate process of image processing by the image processing model; a quality loss calculation unit that generates quality loss data indicating a loss value that is an evaluation index of quality of the generated image data, based on the evaluation target image data, the feature representation data of the evaluation target image data, the image processing parameters, and generated image data; and a feature projection image generation unit that performs a process to minimize the loss value indicated by the quality loss data, and generates the generated image data in which features indicated by the feature representation data are projected by performing an adversarial learning process using genuine image data and the generated image data. the image processing unit includes an image processing function approximator that becomes the image processing model by applying the image processing parameters, and the feature projection image generation unit includes an image generation unit that generates the generated image data, and an adversarial learning unit that constructs the discriminative model so that a discriminative model determines an image to be correct when the genuine image data is input and determines an image to be incorrect when the generated image data is input, and generates adversarial loss data indicating a loss value that serves as an evaluation index when evaluating whether the image generation unit can generate the generated image data that is determined to be a correct image by the constructed discriminative model when the generated image data is input, and the image generation unit calculates a gradient based on a loss value indicated by the quality loss data and a loss value indicated by the adversarial loss data, and calculates a gradient in the input layer by backpropagating the calculated gradient from a hidden layer corresponding to the intermediate process in the image processing function approximator to an input layer by an error backpropagation method, and generates the generated image data based on the calculated gradient. An image generating device.

[0010] One aspect of the present invention involves generating an image processing model using arbitrarily selected image processing parameters, providing evaluation target image data as an input to the generated image processing model, generating feature representation data expressing features of the evaluation target image data obtained in an intermediate stage of image processing by the image processing model, generating quality loss data indicating a loss value serving as an evaluation index for the quality of the generated image data based on the evaluation target image data, the feature representation data of the evaluation target image data, the image processing parameters, and generated image data, performing processing to minimize the loss value indicated by the quality loss data, and performing adversarial learning processing using genuine image data and the generated image data to generate the generated image data onto which the features indicated by the feature representation data are projected. constructing the discriminative model such that, when the genuine image data is input, the discriminative model determines that the image is correct, and when the generated image data is input, the discriminative model determines that the image is incorrect; generating adversarial loss data indicating a loss value that serves as an evaluation index for evaluating whether the constructed discriminative model is able to generate the generated image data that is determined to be a correct image when the generated image data is input; calculating a gradient based on the loss value indicated by the quality loss data and the loss value indicated by the adversarial loss data; calculating a gradient in the input layer by backpropagating the calculated gradient from a hidden layer corresponding to the intermediate process in an image processing function approximator that becomes the image processing model by applying the image processing parameters to an input layer; and generating the generated image data based on the calculated gradient. An image generation method.

[0011] One aspect of the present invention is a program for causing a computer to execute the above-mentioned image generating device. Effect of the Invention

[0012] According to the present invention, it is possible to generate, within a practical amount of time, an image in which the feature representation obtained in the intermediate steps of image processing is projected with high visibility. [Brief description of the drawings]

[0013] [Figure 1] 1 is a block diagram showing a configuration of an image generating apparatus according to a first embodiment. [Diagram 2] FIG. 4 is a diagram showing a flow of processing by the image generating device of the first embodiment. [Diagram 3] FIG. 4 is a diagram illustrating a flow of processing by a quality loss calculation unit and a feature projection image generation unit in the first embodiment. [Figure 4] FIG. 4 is a diagram illustrating a flow of processing by a quality loss calculation unit in the first embodiment. [Diagram 5] FIG. 4 is a diagram illustrating a flow of processing by an adversarial learning unit according to the first embodiment. [Figure 6]FIG. 11 is a block diagram showing a configuration of an image generating device according to a second embodiment. [Figure 7] FIG. 11 is a diagram showing a flow of processing by an image generating device according to the second embodiment. [Figure 8] FIG. 11 is a diagram illustrating a flow of processing by a quality loss calculation unit and a feature projection image generation unit in the second embodiment. [Figure 9] FIG. 11 is a diagram illustrating a flow of processing by a determination unit according to the second embodiment. [Figure 10] FIG. 11 is a diagram illustrating a flow of processing by an image generating unit according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] (First embodiment) Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing the configuration of an image generating device 1 in a first embodiment. The image generating device 1 includes a start instruction unit 11, an image processing unit 12, an evaluation target image data storage unit 13, an image processing parameter storage unit 14, a quality loss calculation unit 15, and a feature projection image generating unit 16.

[0015] When the start instruction unit 11 receives a designation of an image processing task desired by the user through an operation of the user of the image generating device 1, the start instruction unit 11 reads out image processing parameters corresponding to the designated image processing task from the image processing parameter storage unit 14. The start instruction unit 11 outputs the read out image processing parameters to the image processing unit 12, the quality loss calculation unit 15, and the image generating unit 31 of the feature projection image generating unit 16. Here, the image processing task is, for example, an object identification task for identifying the type of object included in the image, an object detection task for detecting an object included in the image, or a region segmentation task for dividing regions for each object included in the image.

[0016] The start instruction unit 11 reads out one of the evaluation target image data from the evaluation target image data storage unit 13, outputs the read out evaluation target image data to the image processing unit 12 and the quality loss calculation unit 15, and further outputs it to the outside. The start instruction unit 11 writes and stores the read out evaluation target image data as true image data in the true image data storage unit 36 ​​provided in the feature projection image generation unit 16. Note that the start instruction unit 11 may select and read out one of the evaluation target image data specified by the user upon receiving a designation from the user, or may arbitrarily select and read out one of the evaluation target image data. The start instruction unit 11 outputs an initialization instruction signal to the feature projection image generation unit 16.

[0017] The image processing unit 12 includes an input / output processing unit 21 and a function approximator for image processing 22. The function approximator for image processing 22 is, for example, a deep neural network including CNN. The input / output processing unit 21 applies image processing parameters output by the start instruction unit 11 to the function approximator for image processing 22. Here, the image processing parameters are coefficients, i.e., weights and bias values, in each neuron of the deep neural network when the function approximator for image processing 22 is, for example, a deep neural network. Applying the image processing parameters to the function approximator for image processing 22 means using each of a plurality of coefficients included in the image processing parameters as the coefficient of the corresponding neuron. By applying the image processing parameters to the function approximator for image processing 22, an image processing model 41 corresponding to the image processing task designated by the user is constructed.

[0018] The input / output processing unit 21 provides the evaluation target image data output by the start instruction unit 11 to the image processing model 41 as input. The image processing model 41 performs image processing on the evaluation target image data provided as input. The image processing model 41 outputs feature representation data obtained in an intermediate process of the image processing to the input / output processing unit 21. Here, the feature representation data obtained in an intermediate process of the image processing performed by the image processing model 41 is, for example, data included in a feature map obtained in a hidden layer of a specific layer that is determined in advance, which is one of multiple hidden layers existing from the input layer to the output layer, when the image processing function approximator 22 is a deep neural network. The input / output processing unit 21 outputs the feature representation data output by the image processing model 41 to the quality loss calculation unit 15.

[0019] The image processing parameter storage unit 14 stores image processing parameters, which are learned coefficients obtained by a learning process performed in advance for each image task using the image processing function approximator 22 for image processing provided in the image processing unit 12, for each image processing task. The evaluation target image data storage unit 13 stores a plurality of evaluation target image data in advance. Here, the evaluation target image data is, for example, image data of a natural image captured by an imaging device such as a camera, and a natural image means an image that a human being naturally sees in his / her daily life, and may be any image that can be captured by an imaging device such as a camera. The evaluation target image data stored in the evaluation target image data storage unit 13 may include learning image data used in a learning process performed in advance for each image task using the image processing function approximator 22 for image processing provided in the image processing unit 12.

[0020] The quality loss calculation unit 15 generates quality loss data indicating a loss value serving as an evaluation index of the quality of the generated image data, based on the image processing parameters and evaluation target image data output by the start instruction unit 11, the feature expression data output by the image processing unit 12, and the generated image data generated by the feature projection image generation unit 16. Here, the quality refers to, for example, PSNR (Peak Signal-to-Noise Ratio) indicating the quality of the image.

[0021] The feature projection image generating unit 16 performs processing so that the generated image data becomes image data in which the features indicated by the feature representation data output by the image processing unit 12 are projected onto an image space. That is, the feature projection image generating unit 16 performs processing to minimize the loss value indicated by the quality loss data generated by the quality loss calculating unit 15, and performs adversarial learning processing using genuine image data and the generated image data prepared in advance, thereby generating generated image data in which the features indicated by the feature representation data are projected.

[0022] The feature projection image generation unit 16 includes an image generation unit 31 and an adversarial learning unit 32. The adversarial learning unit 32 includes a discriminative model data storage unit 35, a genuine image data storage unit 36, a discriminative function approximator 37, and an adversarial learning processing unit 38. In the adversarial learning unit 32, the discriminative function approximator 37 is, for example, a deep neural network including a CNN.

[0023] The discrimination model data storage unit 35 stores discrimination model data. Here, when the discrimination function approximator 37 is, for example, a deep neural network, the discrimination model data refers to coefficients, i.e., weight and bias values, applied to each neuron of the deep neural network. When new discrimination model data is written to the discrimination model data storage unit 35, the discrimination function approximator 37 reads out and applies the written discrimination model data. The discrimination model data is applied to the discrimination function approximator 37, whereby a discrimination model 42 is constructed.

[0024] A plurality of pieces of genuine image data are stored in the genuine image data storage unit 36. The plurality of pieces of genuine image data stored in the genuine image data storage unit 36 ​​includes evaluation target image data written by the start instruction unit 11. Note that, among the plurality of pieces of genuine image data stored in the genuine image data storage unit 36, the genuine image data other than the evaluation target image data written by the start instruction unit 11 is natural image data similar to the evaluation target image data stored in the evaluation target image data storage unit 13, and is image data whose contents are different from the evaluation target image data written by the start instruction unit 11. Among the plurality of pieces of genuine image data stored in the genuine image data storage unit 36, the genuine image data other than the evaluation target image data written by the start instruction unit 11 is written in advance in the genuine image data storage unit 36, and the number of pieces is one or more.

[0025] When the adversarial learning processing unit 38 receives an initialization instruction signal from the start instruction unit 11, it initializes each of the coefficients included in the discriminative model data stored in the discriminative model data storage unit 35, for example, by random numbers. The adversarial learning processing unit 38 performs an adversarial learning process using genuine image data stored in the genuine image data storage unit 36 ​​and generated image data generated by the image generation unit 31. That is, the adversarial learning processing unit 38 generates new discriminative model data for constructing the discriminative model 42 so that the discriminative model 42 determines that an image is correct when genuine image data is input, and determines that an image is incorrect when generated image data is input. The adversarial learning processing unit 38 rewrites and updates the discriminative model data stored in the discriminative model data storage unit 35 with the new generated discriminative model data.

[0026] The adversarial learning processing unit 38 generates adversarial loss data that indicates a loss value that serves as an evaluation index when evaluating whether the image generation unit 31 is able to generate generated image data that the discriminative model 42 determines to be a correct image when the generated image data is provided as input to the discriminative model 42 constructed based on the newly generated discriminative model data.

[0027] When the image generating unit 31 receives an initialization instruction signal from the start instruction unit 11, it generates generated image data in which pixel values ​​are initialized to initial values ​​(hereinafter also referred to as "initialized generated image data"). Here, the initialized generated image data may be, for example, image data in which the pixel values ​​of each pixel are initialized to random initial values ​​sampled from a normal distribution or the like, or image data in which the pixel values ​​of all pixels are initialized to a uniform initial value such as "0". The image generating unit 31 writes and stores the generated initialized generated image data in an internal storage area.

[0028] The image generation unit 31 generates new generated image data so as to minimize the loss value indicated by the adversarial loss data generated by the adversarial learning unit 32 while minimizing the loss value indicated by the quality loss data generated by the quality loss calculation unit 15. When the process of generating the generated image data is completed, the image generation unit 31 outputs the generated generated image data to the outside as a processing result.

[0029] (Processing by the image generating device of the first embodiment) Next, the processing performed by image generating device 1 will be described with reference to Fig. 2 to Fig. 5. Fig. 2 is a sequence diagram showing the overall flow of processing performed by image generating device 1. The start instruction unit 11 receives a designation of an image processing task desired by a user through an operation of the user of image generating device 1 (step S1). The start instruction unit 11 outputs an initialization instruction signal to the adversarial learning processing unit 38 of the adversarial learning unit 32 and the image generating unit 31 (steps S2-1, S2-2). Note that the start instruction unit 11 may perform the processing of steps S2-1, S2-2 in the order of steps S2-1, S2-2, or in the reverse order.

[0030] When the adversarial learning processing unit 38 of the adversarial learning unit 32 receives the initialization instruction signal output by the start instruction unit 11, it initializes the discriminative model data stored in the discriminative model data storage unit 35. When the discriminative model data stored in the discriminative model data storage unit 35 is initialized by the adversarial learning processing unit 38, the discriminative function approximator 37 reads out the discriminative model data stored in the discriminative model data storage unit 35 and applies the read discriminative model data to itself to construct the discriminative model 42 (step S3-1). When the image generating unit 31 receives the initialization instruction signal output by the start instruction unit 11, it generates generated image data in which pixel values ​​are initialized to initial values, that is, initialized generated image data. The image generating unit 31 writes and stores the generated initialized generated image data in an internal storage area. The image generating unit 31 outputs the generated initialized generated image data to the quality loss calculation unit 15 and the adversarial learning processing unit 38 (step S3-2).

[0031] The start instruction unit 11 reads out image processing parameters corresponding to the designated image task from the image processing parameter storage unit 14 (step S4). The start instruction unit 11 outputs the read image processing parameters to the image generation unit 31, the quality loss calculation unit 15, and the image processing unit 12. The start instruction unit 11 may output the image processing parameters to the image generation unit 31, the quality loss calculation unit 15, and the image processing unit 12 in this order, or may output them in a different order. The image generation unit 31 takes in the image processing parameters output by the start instruction unit 11, and writes and stores the taken-in image processing parameters in an internal storage area (step S5-1). The quality loss calculation unit 15 takes in the image processing parameters output by the start instruction unit 11 (step S5-2). The input / output processing unit 21 of the image processing unit 12 takes in the image processing parameters output by the start instruction unit 11. The input / output processing unit 21 applies the taken-in image processing parameters to the image processing function approximator 22. As a result, the image processing model 41 is constructed (step S5-3).

[0032] The start instruction unit 11 reads out one of the evaluation target image data stored in the evaluation target image data storage unit 13 (step S6). The start instruction unit 11 writes and stores the read out evaluation target image data in the genuine image data storage unit 36 ​​as genuine image data (step S7-1). The start instruction unit 11 outputs the read out evaluation target image data to the quality loss calculation unit 15 and the image processing unit 12. The start instruction unit 11 may perform the three processes of writing the read out evaluation target image data in the genuine image data storage unit 36, outputting the read out evaluation target image data to the quality loss calculation unit 15, and outputting the read out evaluation target image data to the image processing unit 12 in the order shown in FIG. 2 or in a reverse order.

[0033] The quality loss calculation unit 15 imports the evaluation target image data output by the start instruction unit 11 (step S7-2). The input / output processing unit 21 of the image processing unit 12 imports the evaluation target image data output by the start instruction unit 11. The input / output processing unit 21 provides the imported evaluation target image data as input to the image processing model 41. The image processing model 41 performs image processing on the evaluation target image data provided as input, and outputs feature representation data obtained in an intermediate stage of the image processing to the input / output processing unit 21. The input / output processing unit 21 imports the feature representation data output by the image processing model 41. The input / output processing unit 21 outputs the imported feature representation data to the quality loss calculation unit 15 (step S7-3).

[0034] The quality loss calculation unit 15 takes in the feature expression data output by the input / output processing unit 21 (step S8). Note that the start instruction unit 11 may perform the processes of steps S2-1 and S2-2 after the process of step S4, or may perform the processes of step S6.

[0035] Thereafter, the quality loss calculation unit 15 and the feature projection image generation unit 16 perform a process of projecting the feature expression data output by the image processing unit 12 onto the generated image data shown in the flowchart of FIG. 3 (step S9).

[0036] The quality loss calculation unit 15 and the adversarial learning processing unit 38 take in the generated image data generated and output by the image generation unit 31 (step S101). At the first time, the quality loss calculation unit 15 and the adversarial learning processing unit 38 take in the initialized generated image data output by the image generation unit 31 in the process of step S3-2.

[0037] When the quality loss calculation unit 15 receives the generated image data, it starts the processing of the subroutine shown in Fig. 4 (step S102-1). When the adversarial learning unit 32 receives the generated image data, it starts the processing of the subroutine shown in Fig. 5 (step S102-2). Note that the processing of step S102-1 and the processing of step S102-2 may be performed in parallel, or may be performed in the order of step S102-1 and step S102-2, or may be performed in the reverse order.

[0038] (Processing by the quality loss calculation unit of the first embodiment) The process by the quality loss calculation unit 15 in step S102-1 in FIG. 3 will be described according to the flowchart shown in FIG. 4. The quality loss calculation unit 15 applies a predetermined first loss function to the captured generated image data and the evaluation target image data captured in the process of step S7-2 to calculate a first loss value (step S201). Here, the first loss function is a function that calculates a first loss value that minimizes the difference between the evaluation target image data and the generated image data by minimizing the first loss value obtained by the first loss function. Any function may be applied as long as it calculates a loss value that minimizes the difference between the evaluation target image data and the generated image data. For example, as the first loss function, a function that calculates a loss value based on the value of the mean square error (MSE) or the mean absolute error (MAE) between two image data may be applied.

[0039] Based on the image processing parameters acquired in the process of step S5-2 and the acquired generated image data, the quality loss calculation unit 15 generates a feature map in the same layer as the specific layer in the image processing model 41 constructed in the image processing unit 12. The quality loss calculation unit 15 generates feature expression data corresponding to the generated image data from data shown in the generated feature map (step S202). For example, the quality loss calculation unit 15 includes a function approximator having the same configuration as the image processing function approximator 22 included in the image processing unit 12. The quality loss calculation unit 15 applies the image processing parameters acquired in the process of step S5-2 to the function approximator included therein to construct a model identical to the image processing model 41. Hereinafter, the model generated by the quality loss calculation unit 15 is referred to as a simulated image processing model. The quality loss calculation unit 15 obtains the feature map in the specific layer from the simulated image processing model by inputting the acquired generated image data to the constructed simulated image processing model. The quality loss calculation unit 15 generates feature expression data corresponding to the generated image data from the data shown in the acquired feature map.

[0040] The quality loss calculation unit 15 applies a predetermined second loss function to the feature representation data corresponding to the generated image data and the feature representation data acquired in the process of step S8 to calculate a second loss value (step S203). Here, the second loss function is a function that calculates a second loss value that minimizes the difference between the feature representation data corresponding to the generated image data and the feature representation data corresponding to the evaluation target image data output by the image processing unit 12 by minimizing the second loss value obtained by the second loss function. Any function may be applied as long as it calculates a loss value that minimizes the difference between the feature representation data corresponding to the generated image data and the feature representation data corresponding to the evaluation target image data output by the image processing unit 12. For example, as the second loss function, a function that calculates a loss value based on the mean square error or the mean absolute error between two feature representation data can be applied.

[0041] The quality loss calculation unit 15 generates quality loss data based on the calculated first loss value and the calculated second loss value. For example, the quality loss calculation unit 15 generates quality loss data indicating a loss value of a linear sum to which a weight is applied to each of the first loss value and the second loss value. The quality loss calculation unit 15 outputs the generated quality loss data to the image generation unit 31 (step S204), and the processing of the subroutine in FIG. 4 ends, and the process returns to the flowchart in FIG. 3.

[0042] The ratio of the weights applied in the process of step S204 is appropriately determined in consideration of the characteristics of each of the first loss value and the second loss value. The first loss value is, for example, an index indicating deterioration in the quality of the generated image data relative to the evaluation target image data, which is a natural image, that is, the occurrence of spikes in the generated image data that do not exist in the natural image. In contrast, the second loss value is an index indicating the difference between the feature expression data of the generated image data and the evaluation target image data. However, if the second loss value is taken into consideration too much, for example, there is a possibility that artifacts that do not exist in the natural image are generated, as shown in Figure 1 of Non-Patent Document 3. In consideration of the characteristics of each of the first loss value and the second loss value, the ratio of the weights that suppresses the influence of the second loss value may be determined so that the generated image data generated by the image generating unit 31 approaches the natural image. In this case, for example, a weight ratio of "10:1", i.e., a weight ratio in which the ratio for the first loss value is "10" and the ratio for the second loss value is "1", may be determined in advance in the quality loss calculation unit 15, and the determined weight ratio may be applied in the process of step S204. The quality loss calculation unit 15 may apply the predetermined weight ratio fixedly in the repeatedly performed process of step S204, or the quality loss calculation unit 15 may adaptively change and apply the weight ratio in each process of the repeatedly performed process of step S204.

[0043] (Processing by the Adversarial Learning Unit of the First Embodiment) The process by the adversarial learning unit 32 in step S102-2 in FIG. 3 will be described according to the flowchart shown in FIG. 5. The adversarial learning processing unit 38 of the adversarial learning unit 32 reads from the genuine image data storage unit 36. The adversarial learning processing unit 38 may read all genuine image data stored in the genuine image data storage unit 36, or may read a part of a plurality of genuine image data stored in the genuine image data storage unit 36. However, when reading a part of a plurality of genuine image data, the adversarial learning processing unit 38 reads so as to include the evaluation target image data written as genuine image data in the genuine image data storage unit 36 ​​by the start instruction unit 11 (step S301).

[0044] The adversarial learning processor 38 provides the captured generated image data as an input to the discriminative model 42, and obtains judgment result information indicating the result of judgment output by the discriminative model 42. The adversarial learning processor 38 provides each of the read genuine image data as an input to the discriminative model 42, and obtains judgment result information indicating the result of judgment by the discriminative model 42 corresponding to each of the genuine image data (step S302). The judgment result information output by the discriminative model 42 is information indicating the probability that the image data provided as input is correct image data.

[0045] The adversarial learning processor 38 generates new discriminative model data for constructing the discriminative model 42 so that the discriminative model 42 makes a correct decision based on information indicating the decision result output by the discriminative model 42. More specifically, the adversarial learning processor 38 calculates a loss value that serves as an evaluation index for evaluating whether the discriminative model 42 can decide that an image is correct when genuine image data is input, and that an image is incorrect when generated image data is input. The adversarial learning processor 38 generates new discriminative model data that minimizes the calculated loss value. As a loss function for calculating the loss value as described above, for example, cross entropy shown in the following formula (1) is applied.

[0046]

number

[0047] When using the above formula (1), for example, the correct label when genuine image data is provided as an input to the discrimination model 42 is set to "1", and the correct label when generated image data is provided as an input to the discrimination model 42 is set to "0". In the above formula (1), q is an index number assigned to image data provided to the discrimination model 42, i.e., genuine image data or generated image data, q is an integer equal to or greater than 1, and the maximum value of q is the number of multiple genuine image data stored in the genuine image data storage unit 36 ​​plus "1", which is the number of generated image data.

[0048] In formula (1), x q is the determination result information output by the discrimination model 42 when the q-th image data is given as an input, and y q is the correct label associated with the q-th image data. The adversarial learning processing unit 38 calculates the loss value L dist New discriminative model data is generated by minimizing (x, y) using an optimization algorithm such as stochastic gradient descent or Adam.

[0049] When the adversarial learning processing unit 38 generates new discriminative model data, it rewrites and updates the discriminative model data stored in the discriminative model data storage unit 35 with the generated new discriminative model data. When the new discriminative model data is written to the discriminative model data storage unit 35, the discriminative function approximator 37 reads the discriminative model data from the discriminative model data storage unit 35 and applies the read discriminative model data to itself. This results in the construction of a new discriminative model 42 (step S303).

[0050] The adversarial learning processing unit 38 generates adversarial loss data indicating a loss value that serves as an evaluation index when evaluating whether the image generating unit 31 is able to generate generated image data that the discriminative model 42 judges to be a correct image when the generated image data is given as an input to the newly constructed discriminative model 42. The loss value indicated by the adversarial loss data is, for example, a loss value L calculated by the formula (1): dist It can be calculated by multiplying (x, y) by a negative value, i.e., "-1." The adversarial learning processing unit 38 outputs the generated adversarial loss data to the image generating unit 31 (step S304), and the processing of the subroutine in FIG. 5 ends, and the process returns to the flowchart in FIG.

[0051] (Processing by the image generating unit of the first embodiment) The image generating unit 31 takes in the quality loss data output by the quality loss calculation unit 15 and the adversarial loss data output by the adversarial learning processing unit 38. The image generating unit 31 generates new generated image data so as to minimize the loss value indicated by the taken-in quality loss data while minimizing the loss value indicated by the taken-in adversarial loss data. When the image generating unit 31 generates new generated image data, it rewrites the previously generated generated image data stored in an internal storage area with the new generated image data (step S103). More specifically, the image generating unit 31 uses the techniques disclosed in Non-Patent Documents 4 and 5 to generate new generated image data as follows.

[0052] The image generation unit 31 has an internal function approximator for simulated image processing, which is the same function approximator as the function approximator for image processing 22 provided in the image processing unit 12, and applies image processing parameters stored in an internal storage area to the function approximator for simulated image processing. While the techniques in Non-Patent Documents 4 and 5 use only loss values ​​equivalent to loss values ​​indicated by quality loss data generated by the quality loss calculation unit 15, the image generation unit 31 further uses loss values ​​indicated by adversarial loss data generated by the adversarial learning unit 32 in order to improve the visibility of the generated image data.

[0053] The image generating unit 31 calculates a gradient from a loss value indicated by the quality loss data and a loss value indicated by the adversarial loss data. The image generating unit 31 regards a hidden layer in the simulated image processing function approximator, which is a hidden layer of the same layer as the layer in which the feature expression data is obtained in the image processing model 41 of the image processing unit 12, as an output layer. The image generating unit 31 backpropagates the gradient calculated for each layer from the hidden layer regarded as the output layer toward the input layer by an error backpropagation method based on a predetermined optimization algorithm using the simulated image processing function approximator to which the image processing parameters are applied. Here, as the predetermined optimization algorithm, for example, a stochastic gradient descent method, Adam (Adaptive Moment Estimation), L-BFGS (Limited-memory Broyden-Fletcher-Goldfarb-Shanno), etc. are applied. Note that the image generating unit 31 also calculates gradients for each neuron other than the input layer in the calculation of the error backpropagation method, but does not update the image processing parameters by the calculated gradients. This is because if the image processing parameters are updated, it will no longer be possible to project the features onto the generated image data. Therefore, the image generating unit 31 applies the image processing parameters acquired in the process of step S5-1 and stored in an internal storage area to the simulated image processing function approximator in a fixed manner.

[0054] The image generating unit 31 generates new generated image data based on the gradient obtained in the input layer by backpropagation and the previously generated generated image data stored in the internal storage area. That is, the image generating unit 31 reads out the previously generated generated image data from the internal storage area. The image generating unit 31 calculates new pixel values ​​for each pixel from the pixel values ​​of the pixels included in the read out generated image data according to the gradient obtained in the input layer. The image generating unit 31 sets the image data including the calculated new pixel values ​​as the new generated image data. This enables the image generating unit 31 to generate new generated image data so as to minimize the loss value indicated by the adversarial loss data generated by the adversarial learning unit 32 while minimizing the loss value indicated by the quality loss data generated by the quality loss calculation unit 15.

[0055] The image generating unit 31 determines whether a predetermined end condition is satisfied (step S104). Here, the predetermined end condition is, for example, a condition that the number of times that the image generating unit 31 has generated generated image data matches a predetermined number of times.

[0056] When it is determined that the predetermined end condition is not satisfied (step S104, No), the image generating unit 31 outputs the newly generated image data to the quality loss calculating unit 15 and the adversarial learning processing unit 38 (step S105). After that, the processing from step S101 onward is performed again.

[0057] On the other hand, if it is determined that the predetermined end condition is satisfied (Yes at step S104), the image generating unit 31 outputs the generated image data to the outside as a processing result (step S106), and ends the process.

[0058] This enables a user of the image generating device 1 to visually confirm which features of the image data to be evaluated that the image processing model 41 of the image processing unit 12 has extracted from the image data to be evaluated by comparing the image data to be evaluated that is selected and output externally by the start instruction unit 11 with the generated image data that is the processing result and output externally by the image generating unit 31.

[0059] In the image generating device 1 of the first embodiment described above, the image processing unit 12 provides evaluation target image data as an input to an image processing model 41 generated by arbitrarily selected image processing parameters, and generates feature representation data expressing features of the evaluation target image data obtained in an intermediate step of image processing by the image processing model 41. The quality loss calculation unit 15 generates quality loss data indicating a loss value serving as an evaluation index for the quality of the generated image data, based on the evaluation target image data, the feature representation data of the evaluation target image data, the image processing parameters, and the generated image data. The feature projection image generation unit 16 performs processing to minimize the loss value indicated by the quality loss data, and performs adversarial learning processing using the genuine image data and the generated image data, thereby generating generated image data in which the features indicated by the feature representation data are projected.

[0060] In the feature projection image generating unit 16, the adversarial learning unit 32 constructs the discriminative model 42 so that when genuine image data is input, the discriminative model 42 judges the image to be correct, and when generated image data is input, the discriminative model 42 judges the image to be incorrect, and generates adversarial loss data indicating a loss value that serves as an evaluation index when evaluating whether the image generating unit 31 can generate generated image data that is judged to be correct when the constructed discriminative model 42 inputs the generated image data. The image generating unit 31 calculates a gradient based on the loss value indicated by the adversarial loss data and the loss value indicated by the quality loss data. The image generating unit 31 calculates a gradient in the input layer by backpropagating the calculated gradient from a hidden layer corresponding to an intermediate process in the image processing function approximator 22 provided in the image processing unit 12 to the input layer by the error backpropagation method. The image generating unit 31 generates generated image data based on the calculated gradient. That is, like DeepSiM described above, image generating device 1 employs an adversarial learning technique by adversarial learning unit 32 to improve the visibility of generated image data, but image generating unit 31 that generates generated image data employs a technique of directly generating new generated image data from a loss value indicated by adversarial loss data and a loss value indicated by quality loss data. In contrast, DeepSiM performs a learning process to optimize the coefficients of a neural network in generating generated image data. Therefore, image generating device 1 can generate generated image data projecting features indicated by feature representation data in a practical time shorter than DeepSiM.

[0061] In the feature projection image generating unit 16, the genuine image data storage unit 36 ​​stores the evaluation target image data selected by the start instruction unit 11 and image data of a natural image having content different from the evaluation target image data as genuine image data. As a result, the adversarial learning processing unit 38 provided in the feature projection image generating unit 16 can perform adversarial learning using a plurality of genuine image data including image data of natural images other than the evaluation target image data as genuine image data. As a result, a more natural state can be ensured in the generated image data than when the generated image data is generated by performing adversarial learning using only the evaluation target image data selected by the start instruction unit 11, and it is possible to project the feature representation obtained in the intermediate process of image processing onto an image with high visibility, in other words, an image that is easy for humans to interpret. Therefore, by using the image generating device 1, it is possible to generate an image in which the feature representation obtained in the intermediate process of image processing is projected in a state of high visibility in a practical time.

[0062] Second embodiment 6 is a block diagram showing the configuration of an image generating device 1a in the second embodiment. In the second embodiment, the same components as those in the first embodiment are given the same reference numerals, and only the different components will be described below.

[0063] In the first embodiment, the image generating unit 31 optimizes the generated image data by minimizing the loss value indicated by the quality loss data generated by the quality loss calculation unit 15 while minimizing the loss value indicated by the adversarial loss data generated by the adversarial learning processing unit 38. In this case, it is necessary to perform processing to minimize two loss values ​​indicated by the adversarial loss data and the quality loss data, respectively, and depending on the pixel values ​​of the pixels of the initialized generated image data generated by the image generating unit 31 upon receiving an initialization instruction signal, it may be difficult to reach an optimal solution. Therefore, in the second embodiment, in the initial stage of optimizing the generated image data, only the loss value indicated by the quality loss data, which is relatively easy to minimize, is used, and after optimization has been performed to a certain extent by the quality loss data, the loss value indicated by the adversarial loss data is used.

[0064] The image generating device 1a includes a start instruction unit 11a, an image processing unit 12, an evaluation target image data storage unit 13, an image processing parameter storage unit 14, a quality loss calculation unit 15a, a feature projection image generating unit 16a, and a judgment unit 17. The start instruction unit 11a includes a configuration for outputting an initialization instruction signal to the judgment unit 17, in addition to the configuration included in the start instruction unit 11 of the first embodiment. The quality loss calculation unit 15a includes a configuration for outputting quality loss data to the judgment unit 17, in addition to the configuration included in the quality loss calculation unit 15 of the first embodiment.

[0065] The determination unit 17 takes in the quality loss data repeatedly generated by the quality loss calculation unit 15a. When the determination unit 17 takes in new quality loss data, the determination unit 17 determines whether or not to use the adversarial loss data based on the newly taken in quality loss data and the previously taken in quality loss data. The determination unit 17 outputs determination result information indicating the result of the determination to the feature projection image generation unit 16a.

[0066] The feature projection image generating unit 16a includes an image generating unit 31a and an adversarial learning unit 32. When the determination result information output by the determining unit 17 indicates that the adversarial loss data is not used, the image generating unit 31a generates generated image data so as to minimize the loss value indicated by the quality loss data without using the adversarial loss data. On the other hand, when the determination result information output by the determining unit 17 indicates that the adversarial loss data is used, the image generating unit 31a generates generated image data so as to minimize the loss value indicated by the adversarial loss data while minimizing the loss value indicated by the quality loss data, similar to the image generating unit 31 of the first embodiment.

[0067] (Processing by the image generating device of the second embodiment) Next, the processing performed by the image generating device 1a will be described with reference to Fig. 7 to Fig. 10. In Fig. 7, the same reference numerals are used for processing that is the same as the processing shown in Fig. 2, and in Fig. 8, the same reference numerals are used for processing that is the same as the processing shown in Fig. 3. In the processing that is used with the same reference numerals, the processing performed by the start instructing unit 11 in the first embodiment is performed by the start instructing unit 11a, the processing performed by the quality loss calculating unit 15 in the first embodiment is performed by the quality loss calculating unit 15a, and the processing performed by the image generating unit 31 in the first embodiment is performed by the image generating unit 31a.

[0068] FIG. 7 is a sequence diagram showing the overall flow of the process performed by the image generating device 1a. The following describes the process in FIG. 7 that is different from the first embodiment. In the second embodiment, as shown in FIG. 7, the start instruction unit 11a also transmits an initialization instruction signal to the determination unit 17 (step S2-3). When the determination unit 17 receives the initialization instruction signal from the start instruction unit 11a, it generates an area for storing the contents of the processing flag in an internal storage area. The determination unit 17 writes information of "first time" in the area for storing the contents of the generated processing flag (step S3-3). In the second embodiment, as shown in FIG. 7, instead of the process shown in FIG. 3 that was performed in step S9 in the first embodiment, the process shown in FIG. 8 is performed (step Sa9). Note that the start instruction unit 11a may perform the processes of steps S2-1, S2-2, and S2-3 in the order of steps S2-1, S2-2, and S2-3, or may perform them in a reverse order. The start instruction unit 11a may perform the processes of steps S2-1, S2-2, and S2-3 after the process of step S4, or may perform the processes of step S6.

[0069] Next, a process shown in Fig. 8 that differs from the first embodiment will be described. When quality loss calculation unit 15a receives generated image data output by image generation unit 31a, it performs the same process as the subroutine process performed by quality loss calculation unit 15 shown in Fig. 4. However, in the process of step S204 shown in Fig. 4, quality loss calculation unit 15a outputs quality loss data to image generation unit 31a and also to determination unit 17 (step Sa102-1). Note that the process of step Sa102-1 and the process of step S102-2 may be performed in parallel, or may be performed in the order of step Sa102-1 and step S102-2, or may be performed in the reverse order.

[0070] (Processing by the Determination Unit of the Second Embodiment) The processing by the judgment unit 17 shown in FIG. 9 is processing performed after the quality loss calculation unit 15a outputs the quality loss data to the judgment unit 17 in the processing of step S102a-1, and is processing performed in parallel with the processing shown in FIG. 8.

[0071] The determination unit 17 takes in the quality loss data output by the quality loss calculation unit 15a (step S401). The determination unit 17 determines the content of the processing flag in the internal storage area (step S402). When the determination unit 17 determines that the content of the processing flag in the internal storage area is "first time" (step S402, first time), that is, when the determination unit 17 takes in the quality loss data output by the quality loss calculation unit 15a for the first time after receiving an initialization instruction signal from the start instruction unit 11a, the determination unit 17 writes and stores the taken-in quality loss data in the internal storage area (step S403). The determination unit 17 rewrites the content of the processing flag in the internal storage area to "determined" (step S404). The determination unit 17 outputs determination result information indicating that the adversarial loss data is not used to the image generation unit 31a (step S405), and ends the process.

[0072] On the other hand, in the process of step S402, when the determination unit 17 determines that the content of the processing flag in the internal storage area is "determined" (step S402, determined), it reads out the quality loss data written first among the quality loss data stored in the internal storage area as the previous quality loss data (step S406).The determination unit 17 determines whether or not the difference between the loss value indicated by the current quality loss data acquired in the process of step S401 and the loss value indicated by the previous quality loss data read out is equal to or smaller than a predetermined threshold (step S407).

[0073] When the determination unit 17 determines that the difference between the loss value indicated by the current quality loss data and the loss value indicated by the previous quality loss data is not equal to or less than a predetermined threshold (step S407, No), it outputs determination result information indicating that the adversarial loss data is not used to the image generating unit 31a (step S408). The determination unit 17 writes the current quality loss data acquired in the process of step S401 in an internal storage area so that the chronological order can be determined between the current quality loss data and the quality loss data already written (step S409), and ends the process.

[0074] On the other hand, when the determination unit 17 determines that the difference between the loss value indicated by the current quality loss data and the loss value indicated by the previous quality loss data is equal to or less than the predetermined threshold (step S407, Yes), the determination unit 17 rewrites the content of the processing flag in the internal storage area to "no determination" (step S410). The determination unit 17 outputs determination result information indicating that the adversarial loss data is used to the image generation unit 31a (step S411), and then the process proceeds to the process of step S409.

[0075] If the judgment unit 17 judges in the processing of step S402 that the content of the processing flag is “no judgment” (step S402, no judgment), the judgment unit 17 performs processing of step S411, i.e., processing of outputting judgment result information indicating that adversarial loss data will be used to the image generation unit 31a, and then the processing proceeds to processing of step S409.

[0076] (Processing by the image generating unit of the second embodiment) 8, the image generating unit 31a performs the process of a subroutine shown in Fig. 10 (step Sa103). The image generating unit 31a takes in the quality loss data output by the quality loss calculating unit 15a, the adversarial loss data output by the adversarial learning processing unit 38, and the judgment result information output by the judging unit 17 (step S501).

[0077] The image generating unit 31a judges the content of the acquired judgment result information (step S502). When the image generating unit 31a judges that the content of the acquired judgment result information is that the adversarial loss data is not used (step S502, adversarial loss data is not used), the image generating unit 31a calculates a gradient only from the loss value indicated by the acquired quality loss data. Based on the calculated gradient, the image generating unit 31a generates new generated image data by a method using a simulated image processing function approximator to which the image processing parameters described in the processing of step S103 of the first embodiment are applied, and an error backpropagation method. When the image generating unit 31a generates new generated image data, it rewrites the previously generated generated image data stored in the internal storage area with the new generated image data (step S503).

[0078] On the other hand, when the image generating unit 31a determines that the content of the acquired judgment result information indicates that the adversarial loss data is used (step S502, adversarial loss data is used), the image generating unit 31a calculates a gradient from the loss value indicated by the acquired quality loss data and the loss value indicated by the acquired adversarial loss data. The image generating unit 31a generates new generated image data by a method using a simulated image processing function approximator to which the image processing parameters described in the processing of step S103 of the first embodiment are applied based on the calculated gradient, and an error backpropagation method. When the image generating unit 31a generates new generated image data, it rewrites the previously generated generated image data stored in the internal storage area with the new generated image data (step S504). Thereafter, the processing from step S104 in FIG. 8 is performed as in the first embodiment.

[0079] In the process of step S407 shown in Fig. 9, the determination unit 17 performs the determination process using a predetermined threshold, but it may be configured as follows. For example, the determination unit 17 may adaptively determine the threshold from a change in the time series of the loss value indicated by the quality loss data stored in chronological order in an internal storage area. The determination of whether or not it is equal to or less than the threshold in the process of step S407 is one example, and depending on how the threshold is defined, the determination unit 17 may determine whether or not it is less than the threshold.

[0080] In the image generating device 1a of the second embodiment described above, the determining unit 17 determines whether or not to use the adversarial loss data based on the quality loss data generated by the quality loss calculation unit 15a and the previous quality loss data, and outputs the determination result information indicating the result of the determination to the image generating unit 31a. When the determination result information indicates that the adversarial loss data is not used, the image generating unit 31a generates generated image data based on the loss value indicated by the quality loss data without using the adversarial loss data. When the determination result information indicates that the adversarial loss data is used, the image generating unit 31a generates generated image data based on the loss value indicated by the adversarial loss data and the loss value indicated by the quality loss data. As a result, in the image generating device 1a, in the initial stage of optimizing the generated image data, only the quality loss data that is relatively easy to minimize is used, and after the generated image data has been optimized to a certain extent by the quality loss data, the adversarial loss data can be used. Therefore, compared to the image generating device 1 of the first embodiment, it is possible to reach an optimal solution with a higher probability and generate generated image data.

[0081] In the above first and second embodiments, the optimization algorithm applied in the image generation units 31 and 31a is, for example, stochastic gradient descent, Adam, and L-BFGS, but an optimization algorithm other than these may be applied.

[0082] In the first and second embodiments described above, when the discriminant function approximator of the adversarial learning unit 32 can be expressed by an objective function, a mean square function may be applied as a loss function instead of the cross entropy in the above formula (1). Although the stochastic gradient descent method and Adam are shown as examples of optimization algorithms applied to the adversarial learning processing unit 38 of the adversarial learning unit 32, other optimization algorithms such as the Newton method may also be applied.

[0083] In the first and second embodiments described above, the adversarial learning processing unit 38 of the adversarial learning unit 32 calculates the loss value indicated by the adversarial loss data as a loss value L calculated by Equation (1). dist The loss value is calculated by multiplying (x, y) by a negative value. In contrast, any loss value may be applied as long as it is an evaluation index for evaluating whether the image generators 31, 31a are able to generate generated image data that the discriminative model 42 judges to be a correct image. Therefore, the adversarial learning processor 38 may generate the adversarial evaluation data by performing a calculation other than the formula (1) for calculating such a loss value.

[0084] In the above first and second embodiments, the genuine image data stored in the genuine image data storage unit 36 ​​includes the evaluation target image data selected by the start instruction unit 11, 11a, but the genuine image data may not include the evaluation target image data selected by the start instruction unit 11, 11a. When the evaluation target image data is not included in the genuine image data, it is preferable that the genuine image data storage unit 36 ​​stores at least two or more pieces of genuine image data having contents different from the evaluation target image data.

[0085] In the first and second embodiments, the position of a specific layer from which feature expression data is obtained in the function approximator for image processing 22 included in the image processing unit 12 (hereinafter referred to as the "position of a specific layer in the function approximator for image processing 22") is determined in advance. In the simulated image processing model in the quality loss calculation unit 15, 15a, the position of a specific layer from which feature expression data corresponding to generated image data is obtained is also determined in advance to be the same as the position of a specific layer in the function approximator for image processing 22. The position of a hidden layer regarded as an output layer in the function approximator for simulated image processing in the image generation unit 31, 31a is also determined in advance to be the same as the position of a specific layer in the function approximator for image processing 22. In contrast, the position of a specific layer from which feature expression data is obtained in the function approximator for image processing 22 included in the image processing unit 12 may be arbitrarily determined by the user of the image generation device 1, 1a. In this case, for example, the following process is performed. When the position of a specific layer is specified by the user, the start instruction unit 11a outputs information indicating the specified position of the specific layer to the input / output processing unit 21 of the image processing unit 12, the quality loss calculation units 15, 15a, and the image generation units 31, 31a. The input / output processing unit 21 of the image processing unit 12 generates feature expression data corresponding to the evaluation target image data from a feature map obtained from a hidden layer of the image processing model 41 corresponding to the position of the specific layer output by the start instruction unit 11a. The quality loss calculation units 15, 15a generate feature expression data corresponding to the generated image data from a feature map obtained from a hidden layer of the simulated image processing model corresponding to the position of the specific layer output by the start instruction unit 11a. The image generation units 31, 31a regard the hidden layer in the simulated image processing function approximator corresponding to the position of the specific layer output by the start instruction unit 11a as an output layer.

[0086] In the above first and second embodiments, the image processing function approximator 22 included in the image processing unit 12 is, for example, a deep neural network including CNN. In contrast, a neural network performing image processing other than a deep neural network including CNN may be applied as the image processing function approximator 22. The classification function approximator 37 included in the adversarial learning unit 32 is also, for example, a deep neural network including CNN. In contrast, a neural network other than a deep neural network including CNN may be applied as the classification function approximator 37, for example, a neural network such as a properly designed multilayer perceptron may be applied.

[0087] In the above first and second embodiments, the evaluation target image data stored in the evaluation target image data storage unit 13 and the genuine image data stored in the genuine image data storage unit 36 ​​are data of natural images, but the evaluation target image data is not limited to data of natural images. For example, an image other than a natural image, such as image data of a CG (Computer Graphics) image, may be used as the evaluation target image data. It is necessary to apply image data that can be obtained in an environment in which the evaluation target image data can be obtained. Therefore, when the evaluation target image data is CG image data, it is necessary to apply CG image data with contents different from the CG image data of the evaluation target image data as the genuine image data.

[0088] The image generating device 1, 1a in the above-mentioned embodiment may be realized by a computer. In that case, a program for realizing the function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to realize the function. The term "computer system" here includes hardware such as an OS and peripheral devices. The term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into a computer system. The term "computer-readable recording medium" may also include a medium that dynamically holds a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. The above-mentioned program may be a program for realizing a part of the above-mentioned function, or may be a program that can realize the above-mentioned function in combination with a program already recorded in the computer system, or may be a program that is realized using a programmable logic device such as an FPGA (Field Programmable Gate Array).

[0089] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Explanation of symbols]

[0090] 1...image generating device, 11...start instruction unit, 12...image processing unit, 13...evaluation target image data storage unit, 14...image processing parameter storage unit, 15...quality loss calculation unit, 16...feature projection image generating unit, 21...input / output processing unit, 22...image processing function approximator, 31...image generating unit, 32...adversarial learning unit, 35...discrimination model data storage unit, 36...genuine image data storage unit, 37...discrimination function approximator, 38...adversarial learning processing unit, 41...image processing model, 42...discrimination model

Claims

1. an image processing unit that provides evaluation target image data as an input to an image processing model that is generated by arbitrarily selected image processing parameters, and generates feature expression data that expresses features of the evaluation target image data obtained in an intermediate step of image processing by the image processing model; a quality loss calculation unit that generates quality loss data indicating a loss value serving as an evaluation index of quality of the generated image data based on the evaluation target image data, the feature expression data of the evaluation target image data, the image processing parameters, and the generated image data; a feature projection image generation unit that performs a process of minimizing a loss value indicated by the quality loss data and performs an adversarial learning process using genuine image data and the generated image data to generate the generated image data onto which features indicated by the feature representation data are projected; Equipped with The image processing unit includes: an image processing function approximator that becomes the image processing model by applying the image processing parameters; The feature projection image generating unit includes: an image generating unit that generates the generated image data; an adversarial learning unit that constructs an identification model such that, when the genuine image data is input, the identification model determines that the image is correct, and when the generated image data is input, the identification model determines that the image is incorrect, and generates adversarial loss data indicating a loss value that serves as an evaluation index when evaluating whether the image generation unit is able to generate the generated image data that is determined to be a correct image by the constructed identification model when the generated image data is input; The image generating unit includes: an image generating device that calculates a gradient based on a loss value indicated by the quality loss data and a loss value indicated by the adversarial loss data, calculates a gradient in the input layer by backpropagating the calculated gradient from a hidden layer corresponding to the intermediate process in the image processing function approximator to an input layer by an error backpropagation method, and generates the generated image data based on the calculated gradient.

2. a determination unit that determines whether or not to use the adversarial loss data based on the quality loss data generated by the quality loss calculation unit and the previous quality loss data, and outputs determination result information indicating a result of the determination to the image generation unit; The image generating unit includes: When the determination result information indicates that the adversarial loss data is not used, the generated image data is generated based on a loss value indicated by the quality loss data without using the adversarial loss data, and when the determination result information indicates that the adversarial loss data is used, the generated image data is generated based on a loss value indicated by the adversarial loss data and a loss value indicated by the quality loss data.

2. The image generating device of claim 1.

3. The quality loss calculation unit 3. The image generating device of claim 1 or claim 2, wherein the quality loss data is generated from a first loss value indicating the difference between the image data to be evaluated and the generated image data, and a second loss value indicating the difference between feature representation data corresponding to the generated image data obtained in the same intermediate process as the intermediate process and feature representation data corresponding to the image data to be evaluated by providing the generated image data as input to an image processing model that is the same as the image processing model generated from the image processing parameters.

4. The quality loss calculation unit generating the quality loss data by applying weights to the first loss value and the second loss value so as to suppress an influence of the second loss value; 4. The image generating device of claim 3.

5. the evaluation target image data is image data of a natural image, There are a plurality of the genuine image data, and the plurality of the genuine image data include image data of the natural image having content different from the content of the evaluation target image data. The image generating device according to any one of claims 1 to 4.

6. generating an image processing model with arbitrarily selected image processing parameters; providing evaluation target image data as input to the generated image processing model; generating feature expression data expressing features of the evaluation target image data obtained in an intermediate step of image processing by the image processing model; generating quality loss data indicating a loss value serving as an evaluation index of quality of the generated image data based on the evaluation target image data, the feature expression data of the evaluation target image data, the image processing parameters, and the generated image data; performing a process for minimizing a loss value indicated by the quality loss data, and performing an adversarial learning process using genuine image data and the generated image data to generate the generated image data onto which the features indicated by the feature representation data are projected; constructing the discriminant model so that, when the genuine image data is input, the discriminant model determines that the image is correct, and when the generated image data is input, the discriminant model determines that the image is incorrect; generating adversarial loss data indicating a loss value that serves as an evaluation index for evaluating whether the constructed discrimination model is able to generate the generated image data that is determined to be a correct image when the generated image data is input; Calculating a gradient based on a loss value indicated by the quality loss data and a loss value indicated by the adversarial loss data; a backpropagation method for backpropagating the calculated gradient from a hidden layer corresponding to the intermediate process in an image processing function approximator that becomes the image processing model by applying the image processing parameters to an input layer, thereby calculating a gradient in the input layer, and generating the generated image data based on the calculated gradient; Image generation method.

7. A program for causing a computer to execute the image generating apparatus according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Analyzer, analysis program, and analysis method

    JP2021076926A