Information processing device, information processing method, and information processing program
The information processing device employs a diffusion model to generate mask information and other data by restoring images from noise using text-based attention, addressing the challenge of generating desired information without dedicated background identification models.
Patent Information
- Application Number
- JP2023044311
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-10-03
- Estimated Expiration
- 2043-03-20
AI Technical Summary
Conventional image processing technologies require dedicated models for background identification and mask information generation, making it difficult to generate desired information if such models are not available.
An information processing device that uses a diffusion model trained to restore images from noise images based on text input, generating mask information and other relevant data by leveraging attention mechanisms during image generation.
Enables the appropriate generation of mask information and other relevant data using existing image generation models, even without dedicated background identification models, by progressively restoring images from noise using text-based attention.
Smart Images

Figure 2024134162000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and an information processing program. [Background technology]
[0002] Conventionally, there have been provided techniques for generating various information related to an image. For example, there has been provided a technique for generating information such as mask information (mask image) that identifies the background in an image and masks that portion. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2022-014263 [Patent Document 2] JP 2023-030850 A [Non-patent literature]
[0004] [Non-Patent Document 1] “Prompt-to-Prompt Image Editing with Cross Attention Control”, Amir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or<Internet>https: / / arxiv.org / pdf / 2208.01626.pdf (retrieved March 10, 2020) [Non-Patent Document 2] “Denoising Diffusion Probabilistic Models”, Jonathan Ho, Ajay Jain, and Pieter Abbeel, <Internet>https: / / arxiv.org / pdf / 2006.11239.pdf(Retrieved March 10, 2023) [Non-Patent Document 3] “High-Resolution Image Synthesis with Latent Diffusion Models”, Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Bjorn Ommer, <Internet> https: / / arxiv.org / pdf / 2112.10752.pdf (Retrieved March 10, 2023) [Non-Patent Document 4] “Null-text Inversion for Editing Real Images using Guided Diffusion Models”, Ron Mokady, Amir Hertz, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or,<Internet>https: / / arxiv.org / pdf / 2211.09794.pdf(Retrieved March 10, 2023) Summary of the Invention [Problem to be solved by the invention]
[0005] However, there is room for improvement in the above conventional techniques. For example, the above conventional techniques require a dedicated model for identifying the background and generating mask information, and if such a dedicated model is not available, it is difficult to generate desired information. Therefore, it is desirable to appropriately generate other information such as mask information using information from the processing in the model that generates the image.
[0006] The present application has been made in consideration of the above, and aims to provide an information processing device, an information processing method, and an information processing program that appropriately generate other information using information generated when an image is generated using a model that generates the image. [Means for solving the problem]
[0007] The information processing device of the present application is characterized in that it comprises a diffusion model, which is a model that has been trained to gradually restore an image indicated by text from a noise image and has been trained to restore the image in accordance with attention based on the text, an acquisition unit that acquires input text entered by a user, and a generation unit that uses the diffusion model and the input text acquired by the acquisition unit to generate a corresponding image corresponding to the input text, and generates mask information of the target range indicated by the input text from the corresponding image based on the attention used by the diffusion model when generating the corresponding image. Effect of the Invention
[0008] According to one aspect of the embodiment, it is possible to provide an effect that other information can be appropriately generated using information at the time of image generation using a model that generates the image. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of information processing according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating another example of information processing according to the embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of the configuration of an information processing system according to the embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of the configuration of the information processing device according to the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of a model information storage unit according to the embodiment. [Figure 6] FIG. 6 is a flowchart illustrating an example of information processing according to the embodiment. [Figure 7] FIG. 7 is a flowchart illustrating an example of information processing according to the embodiment. [Figure 8] FIG. 8 is a flowchart illustrating an example of information processing according to the embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of a model configuration. [Figure 10]FIG. 10 is a diagram showing an example of a configuration of a main part of a model. [Figure 11] FIG. 11 is a diagram illustrating an example of a hardware configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the information processing device, the information processing method, and the information processing program according to the present application will be described in detail with reference to the drawings. Note that the information processing device, the information processing method, and the information processing program according to the present application are not limited to the embodiments. In addition, the same parts in the following embodiments are denoted by the same reference numerals, and duplicated descriptions are omitted.
[0011] (Embodiment) [1. Information Processing] An example of information processing according to the embodiment will be described below with reference to FIG. 1. FIG. 1 is a diagram showing an example of information processing according to the embodiment. Specifically, FIG. 1 shows an example of information processing including a learning process of a model according to the embodiment and a generation process of an image using the model. In FIG. 1, a case will be described as an example in which an information processing device 100 (see FIG. 4) learns (generates) a diffusion model M1 (hereinafter also referred to as "model M1"), which is a diffusion model for generating an image from a noise image, and generates an image using the generated model M1. In addition, the point of generating other information such as mask information using information during the generation process of an image using model M1 will be described after the overview of the model is described in FIG. 1.
[0012] [1-1. Learning process example] First, an example of the learning process of the model M1 will be described with reference to Fig. 1. First, data (learning data) used in the learning process of the model M1 will be described.
[0013] In Fig. 1, the information processing device 100 acquires data (learning data) used in the learning process of the model M1. For example, the information processing device 100 acquires the learning data of the model M1 from a learning data storage unit 121 (see Fig. 4). Note that, when the learning data is not registered in the learning data storage unit 121, the information processing device 100 may request an external device such as an information providing device 50 (see Fig. 3) to provide the learning data, and register the data received from the external device in the learning data storage unit 121 as learning data (also referred to as "learning data").
[0014] 1, as an example of data used in the learning process of the model M1, an image group IG1 including a plurality of stage images in which noise is added to a predetermined image in stages is shown. The information processing device 100 learns the model M1 using learning data including the image group IG1 shown in FIG.
[0015] The image group IG1 includes an image P10, which is an image (learning image) of a predetermined object. The image P10 is an image of a sofa and a person (woman) as the predetermined object. The image P10 is at the noise addition stage #0, i.e., an image with no noise added.
[0016] The image group IG1 also includes an image P11, which is an image in which noise has been added to the image P10. The image P11 is an image in which one level of noise has been added to the image P10. The level of noise addition for the image P11 is level #1, that is, an image in which one level of noise has been added. For example, the image P11 is generated by a noise addition process (process SN1 in FIG. 1) that adds noise to the image P10.
[0017] The image group IG1 also includes an image P12, which is an image obtained by adding noise to the image P11. The image P12 is an image obtained by adding one more level of noise to the image P11. The level of noise addition for the image P12 is level #2, that is, an image to which two levels of noise have been added. For example, the image P12 is generated by a noise addition process (process SN2 in FIG. 1) that adds noise to the image P11.
[0018] The image group IG1 also includes an image P13, which is an image obtained by adding noise to the image P12. For example, a noise adding process (process SN3 in FIG. 1) adds noise to the image P12 to generate an image (image P13) at stage #3, which is an image with three stages of noise added. Note that, since the noise is repeated, a description of the intermediate processes is omitted.
[0019] The image group IG1 also includes an image P1K-2 which is an image obtained by adding noise to an image P1K-3 to which K-3 levels of noise have been added, where K is an arbitrary number (value), for example, 30, 1000, etc. For example, a noise adding process (process SNK-2 in FIG. 1) that adds noise to the image P1K-3 generates an image (image P1K-2) at stage #K-2 to which K-2 levels of noise have been added.
[0020] Furthermore, the image group IG1 includes an image P1K-1, which is an image in which noise has been added to the image P1K-2. The image P1K-1 is an image in which one more level of noise has been added to the image P1K-2. The level of noise addition for the image P1K-1 is level #K-1, that is, the image in which K-1 levels of noise have been added. For example, the image P1K-1 is generated by a noise addition process (process SNK-1 in FIG. 1) that adds noise to the image P1K-2.
[0021] Moreover, the image group IG1 includes an image P1K which is a noise image. For example, the image P1K is an image in which one level of noise is further added to the image P1K-1. The level of noise addition of the image P1K is level #K, that is, the image in which K levels of noise are added. For example, the image P1K is generated by a noise adding process (process SNK in FIG. 1) that adds noise to the image P1K-1. Processes SN1 to SNK in FIG. 1 correspond to a forward process in a diffusion model.
[0022] For example, each image in the image group IG1 may be generated by a process (noise adding process) in which Gaussian noise is added to data and the data gradually transitions from real data to complete Gaussian noise. For example, when K is 1000, each image in the image group IG1 is generated by mixing data and noise while changing the ratio so that the data becomes complete noise after 1000 noise adding processes. Note that the case where K is 1000, that is, the number of times of noise adding processes is 1000, is merely an example, and the number of times of noise adding processes may be less than 1000 times, such as 32 times or 1 time, or may be more than 1000 times. In addition, each image in the image group IG1 may be generated by the information processing device 100 or an external device such as the information providing device 50.
[0023] Thus, the image group IG1 shown in FIG. 1 includes a plurality of images such as images P10, P11, P12, ... P1K-2, P1K-1, P1K, etc. Hereinafter, a case where the information processing device 100 learns the model M1 using the above-mentioned image group IG1 will be described as an example. Note that the above is merely an example, and the images included in the image group IG1 may be any images. For example, the images included in the image group IG1 are not limited to real images such as captured images (photographs) of a subject (target) actually captured by an imaging device such as a camera, but may be images generated by information processing using an image generation model, etc. Also, for example, the image P1K may be a noise image such as so-called white noise.
[0024] From here, the details of the learning process example will be described. In FIG. 1, the information processing device 100 executes a learning process to learn a model M1 using an image group IG1 and the like (step S1). The information processing device 100 inputs an image containing noise (noise image) and learns the model M1 to output (predict) an image obtained by removing noise from the previous process, that is, the noise image by one step. For example, the information processing device 100 learns the model M1 to input a noise image, text (character information) indicating the contents of the image to be generated (for example, an object or phenomenon to be included in the image), and information (stage information) indicating the noise level of the noise image. Objects, phenomena, and the like may be collectively referred to as "objects". Note that the stage information may not be included in the input of the model M1 when it is used as information (internal information) managed within the model M1.
[0025] The text input to the model M1 may be in any form as long as it indicates the content of the image to be generated. The text may be a character string (word) indicating an object. In this case, the text may be a word indicating one object such as a bear or a sofa. The text may also be a character string including words indicating each of a plurality of objects. In this case, the text may be a character string including words indicating each of a plurality of objects such as a bear, a bird, a sofa and a woman, and particles such as parallel particles (parallel particles). The text may also be a character string (sentence) having a meaning as a whole. In this case, the text may be a sentence indicating the content to be expressed in an image such as a certain situation, such as a bear watching a flying bird or a woman wearing a dress sitting on a sofa. The input to the model M1 described above is merely an example, and the model M1 may input any information.
[0026] In Fig. 1, the information processing device 100 trains a model M1 so as to generate an image in which noise has been removed by one level from a noise image at one level. In Fig. 1, the information processing device 100 trains the model M1 using text (also called "learning text") indicating the content of an image P10 and level information (a value indicating the level to be processed).
[0027] For example, the information processing device 100 executes a learning process (process SR1 in FIG. 1) in which the model M1 is trained to output an image P1K-1 using an image P1K, a learning text (e.g., text TX1), and stage information as input. For example, the text TX1 is a sentence saying, "A woman wearing a dress is sitting on a sofa." The stage information may be, for example, a value corresponding to time t in FIG. 9. In this case, the stage information may be, for example, information such as a noise removal stage "0" or a noise stage "K." For example, the stage information may be information (0, 1, etc.) indicating the number of repeated processes, for example, the number of times the process has been performed. In this way, the information processing device 100 trains the model M1 to generate an image P1K-1, which is a noise image at the stage #K-1 of the previous process, from the image P1K, which is a noise image at the stage #K.
[0028] Furthermore, the information processing device 100 executes a learning process (process SR2 in FIG. 1) for learning the model M1 to output an image P1K-2, which is a noise image of stage #K-2, using an image P1K-1, which is a noise image of stage #K-1, learning text, and stage information as inputs. Similarly, the information processing device 100 executes a learning process (process SR3 in FIG. 1) for learning the model M1 to output an image P1K-3, which is a noise image of stage #K-3, using an image P1K-2, which is a noise image of stage #K-2, learning text, and stage information as inputs. Note that the processes between process SR3 and process SRK-2 in FIG. 1 are similar to the above-mentioned processes in that they learn to input a noise image and output an image one stage before the noise addition of the noise image, and therefore detailed explanations will be omitted.
[0029] The information processing device 100 executes a learning process (process SRK-2 in FIG. 1) for training a model M1 to output an image P12, which is a noise image of stage #2, using as input an image P13, which is a noise image of stage #3, a learning text, and stage information. The information processing device 100 executes a learning process (process SRK-1 in FIG. 1) for training a model M1 to output an image P11, which is a noise image of stage #1, using as input an image P12, which is a noise image of stage #2, a learning text, and stage information.
[0030] Then, the information processing device 100 executes a learning process (process SRK in FIG. 1) for learning a model M1 so as to output image P10, which is an image at stage #0, i.e., an image to which no noise has been added, using image P11, which is a noise image at stage #1, learning text, and stage information as input. Processes SR1 to SRK in FIG. 1 correspond to a generation process (reverse process) in a diffusion model. In FIG. 1, the information processing device 100 learns a model M1 using an image group IG1 including images P10, P11, P12, ... P1K-2, P1K-1, P1K, etc.
[0031] In this way, the information processing device 100 learns the model M1, which is a model that generates data by inputting a noise image and gradually removing noise. In Fig. 1, the information processing device 100 learns the model M1, which receives a noise image, text, and stage information as input, and generates data reflecting the content indicated by the text (also called a "generated image") by gradually removing noise from the noise image.
[0032] 1, the information processing device 100 learns a model M1 that generates a generated image showing the content of the text, for example, a situation (state) in which a woman wearing a dress is sitting on a sofa, by gradually removing noise from the noise image. In this way, the information processing device 100 learns a model M1 that converts a noise image so as to approach a learning image based on the text.
[0033] 1 is a part of the learning of the model M1, and the information processing device 100 learns the model M1 using learning data including various image groups other than the image group IG1. The process shown in FIG. 1 is merely an example, and the information processing device 100 may learn the model M1 based on a learning method related to a diffusion model disclosed in Non-Patent Documents 2, 3, etc.
[0034] In this way, the information processing device 100 learns a diffusion model that converts a noise image to approach the learning image based on a learning image including a predetermined object and text indicating the predetermined object. In this way, the information processing device 100 learns to gradually restore an image indicated by the text from a noise image, and learns model M1, which is a diffusion model trained to restore an image according to attention based on the text.
[0035] In the above-mentioned example, the information processing device 100 inputs an image together with text indicating the content of the image into the diffusion model to learn the diffusion model. For example, if text indicating the content of the image is also collected when collecting an image, the text is also known, and the information processing device 100 learns a model such as model M1 by self-supervised learning using the data as learning data. Note that, when another device (learning device) learns a model such as the diffusion model, the information processing device 100 does not need to learn the diffusion model. When the information processing device 100 does not learn the diffusion model, the information processing device 100 may acquire the model M1 by receiving the diffusion model, which is a diffusion model, from the learning device.
[0036] [1-2. Example of generation process] Next, an example of an image generation process using model M1 will be described. In FIG. 1, for the sake of explanation, a case where the text used to generate the generated image (also referred to as "corresponding text") is text TX1 will be described as an example, but the corresponding text is not limited to text TX1 and may be any image. For example, information processing device 100 accepts a designation from a user that text TX1 is to be used to generate the generated image. Thus, hereinafter, a case where text TX1 is text input by a user (also referred to as "input text") will be described as an example.
[0037] The information processing device 100 executes a generation process to generate a generated image using a noise image, text, and stage information as inputs (step S11). For example, the noise image NZ1 may be the same noise image as the image P1K, or may be a different noise image. In FIG. 1, the information processing device 100 generates an image P20 by repeating image generation using the model M1 using the noise image NZ1, text TX1, and stage information as input information IN1 to the initial model M1.
[0038] For example, the information processing device 100 generates an image P20 by repeating the input to the model M1 K times. For example, when K is 1000, the information processing device 100 repeats the input to the model M1 999 times, using as input the noise image NZ1, the text TX1, and the image output by the model M1 to which the stage information has been input.
[0039] For example, in the first (first) iteration, the information processing device 100 inputs a noise image NZ1, text TX1, and stage information indicating that this is the first (first) iteration to the model M1, and causes the model M1 to output an image #1. Then, in the second iteration, the information processing device 100 inputs an image #1, text TX1, and stage information indicating that this is the second iteration to the model M1, and causes the model M1 to output an image #2. In the third iteration, the information processing device 100 inputs an image #2, text TX1, and stage information indicating that this is the third iteration to the model M1, and causes the model M1 to output an image #3.
[0040] Similarly, in the 4th to K-1th repetitive processes, the information processing device 100 inputs each of the images #3 to #K-2, the text TX1, and stage information corresponding to the processes to the model M1, and causes the model M1 to output each of the images #4 to #K-1. Then, in the Kth repetitive process, the information processing device 100 inputs the image #K-1, the text TX1, and stage information indicating that this is the Kth process to the model M1, and causes the model M1 to output the image P20.
[0041] As a result, the information processing device 100 generates an image P20 showing the contents of the text TX1 by gradually removing noise from the noise image. In FIG. 1, the information processing device 100 generates an image P20, which is a generated image expressing a situation in which a woman wearing a dress, included in the text TX1, is sitting on a sofa, by gradually removing noise from the noise image using the model M1. In this way, the information processing device 100 generates an image P20 showing the contents of the text TX1 in the same manner as the image P10, by gradually removing noise from the noise image based on the text TX1.
[0042] [1-3. Examples of information generation] The above-mentioned process makes it possible to generate an image using a diffusion model that generates an image showing the contents of a text from a noise image. Information generated during processing with the diffusion model is information that can be used for purposes other than generating a generated image, and can also be used to generate other information. Therefore, the information processing device 100 generates other information such as mask information using information generated during processing with the diffusion model as described above. First, before explaining an example of generating other information, a configuration example of model M1, which is a diffusion model, will be described with reference to FIG. 9. FIG. 9 is a diagram showing an example of the configuration of the model.
[0043] The model structure example shown in FIG. 9 shows an example of the structure of model M1. In this case, model M1 has a structure based on U-net. Note that the structure based on U-net is only one example, and model M1 is not limited to a structure based on U-net, and any structure can be adopted as long as the desired processing is possible. For example, model M1 may have a structure based on a method other than U-net, such as Transformer. Note that since the structure based on U-net is known, a detailed description will be omitted, but a brief overview will be provided below.
[0044] In FIG. 9, the model M1 having a structure based on U-net has a structure having a plurality of ResBlocks, which are first type blocks, and AttnBlocks, which are second type blocks. For example, the first type block ResBlock is a residual block having a combination of a convolution layer and SkipConnection. The second type block AttnBlock is a block having an attention function, and its structure will be described later.
[0045] In the model shown in Figure 9, the left side corresponds to the input side, and the right side corresponds to the output side. The straight lines and arrows connecting each part indicate the concatenation relationship of each part. For example, model M1 applies a first type of block (ResBlock) and a second type of block (AttnBlock) to the input, and performs processing to lower the input resolution and increase the number of channels in the first half (the left side (input side) of Figure 9), and to reduce the number of channels and increase the resolution in the second half (the right side (output side) of Figure 9).
[0046] In the structure of the model shown in FIG. 9, pairs of a first type block and a second type block are linked in multiple layers. For example, “Z t The input portion corresponding to "t" corresponds to a portion where an image (noise image) corresponding to time t is input. For example, the input portion corresponding to "t" in FIG. 9 corresponds to a portion where information indicating the stage of the processing is input (stage information input portion). The stage information input portion is linked to each of the first type blocks and the second type blocks, and provides stage information to each block.
[0047] For example, "TextEncoder" in FIG. 9 corresponds to an encoding unit that executes a process of encoding input text. The encoding unit is connected to each of the second type blocks, and provides text information (encoding information) to each of the second type blocks. Thus, in the model shown in FIG. 9, text information encoded by the encoding unit indicated by "TextEncoder" is input to each of the second type blocks.
[0048] AttnBlock, which is a second type of block having an attention function, has a structure as shown in Fig. 10. Fig. 10 is a diagram showing an example of the configuration of the main part of the model. Specifically, Fig. 10 is a diagram showing an example of the configuration of the second type of block.
[0049] In the second type block shown in Fig. 10, the left side corresponds to the input side, and the right side corresponds to the output side. As shown in Fig. 10, in the second type block (AttnBlock), information from the encoding unit is used in a part (cross-attention unit) having a cross-attention function, denoted as "Cross-Attn".
[0050] In addition, the second type block shown in Fig. 10 includes a part having a self-attention function indicated as "Self-Attn" and a part having a dropout function indicated as "Dropout" in addition to the cross-attention part. The configuration in the second type block is not limited to that shown in Fig. 10, and any configuration can be adopted as long as it has a cross-attention part that uses information from text, and detailed description will be omitted.
[0051] For example, the cross attention unit calculates cross attention between text information and image information. The cross attention unit obtains a cross attention result according to the content of the text. In this manner, the cross attention unit generates information (also called "attention information") indicating the cross attention result between the text information and image information.
[0052] Here, an example of attention information generated at each stage will be shown with reference to Fig. 2. Fig. 2 is a diagram showing another example of information processing according to the embodiment. For the sake of explanation, Fig. 2 shows an example in which an image P20 is generated from an image P2K (corresponding to the noise image NZ1 in Fig. 1), which is a noise image in Fig. 1.
[0053] The text TX1 is divided into a token TK1, which is designated as "token #1" in Fig. 2, and a token TX2, which is designated as "token #2" in Fig. 2. When the tokens TK1 and TK2 are not to be distinguished from each other, they are referred to as "token TK".
[0054] In FIG. 2, token TK1 is a "sofa" and token TX2 is a "woman wearing a dress." For example, token TK1 and token TX2 correspond to each of the multiple elements that make up text TX1. For example, tokens TK1 and TX2 are character strings included in the text, and are elements that indicate the content (meaning) of a certain object, phenomenon, etc. For example, a token is a unit for which attention information is generated by cross attention.
[0055] In Fig. 2, the model M1 generates attention information corresponding to each token at each stage of processing. For example, the model M1 generates attention information for the first processing in the process of generating the image P2K-1 (image #1) in response to the input of the image P2K, the text TX1, and the stage information indicating that it is the first (first) processing.
[0056] 2, the model M1 generates attention information A1K as attention information in the first processing for the token TK1 (token #1). The attention information A1K is information indicating the area in the image (image P2K) that corresponds to the token TK1.
[0057] Each piece of attention information such as the attention information A1K shown in FIG. 2 is map information (attention map) that indicates the degree of relevance of each area (pixel, etc.) of an image to an object indicated by a token. In the example of FIG. 2, the darker the hatching in the attention information, the higher the relevance of the area (pixel, etc.) to an object indicated by the token in the corresponding image. For example, the darker the hatching in the attention information, the higher the possibility that the object indicated by the token is included in the corresponding area. Also, the lighter the hatching in the attention information, the lower the relevance of the area (pixel, etc.) to an object indicated by the token in the corresponding image. For example, the lighter the hatching, the higher the possibility that the object indicated by the token is not included in the corresponding area. For example, the darker the hatching in the attention information, the higher the value of that area, and the lighter the hatching, the lower the value of that area.
[0058] 2, the model M1 generates attention information A2K as attention information in the first processing for the token TK2 (token #2). The attention information A2K is information indicating an area in an image (e.g., image P2K) corresponding to the token TK2.
[0059] In addition, model M1 generates attention information for the second processing in the process of generating image P2K-2 (image #2) in response to input of image P2K-1 (image #1), text TX1, and stage information indicating that this is the second processing.
[0060] 2, the model M1 generates attention information A1K-1 as attention information in the second processing for the token TK1. The attention information A1K-1 is information indicating an area in an image (e.g., image P2K-1) that corresponds to the token TK1.
[0061] 2, the model M1 generates attention information A2K-1 as attention information for the token TK2 in the second processing. The attention information A2K-1 is information indicating an area in an image (e.g., image P2K-1) corresponding to the token TK2.
[0062] Similarly, in the 3rd to K-3rd repetitive processes, model M1 generates attention information in the process of generating each of images #3 to #K-3 in response to input of each of images #2 to #K-4, text TX1, and stage information corresponding to that process.
[0063] In addition, model M1 generates attention information for the K-2nd processing in the process of generating image P22 (image #K-2) in response to input of image P23 (image #K-3), text TX1, and stage information indicating that this is the K-2nd processing.
[0064] In Fig. 2, the model M1 generates attention information A13 for token TK1 as attention information in the (K-2)th processing. The attention information A13 is information indicating an area in an image (e.g., image P23) corresponding to token TK1. In Fig. 2, the attention information A13 is assumed to be attention information that most appropriately indicates an area in an image where an object indicated by token TK1 is located.
[0065] 2, the model M1 generates attention information A23 for token TK2 as attention information in the (K-2)th processing. The attention information A23 is information indicating an area in an image (e.g., image P23) corresponding to token TK2. In FIG. 2, the attention information A23 is assumed to be attention information that most appropriately indicates an area in an image where an object indicated by token TK2 is located.
[0066] In addition, model M1 generates attention information for the K-1th processing in the process of generating image P21 (image #K-1) in response to input of image P22 (image #K-2), text TX1, and stage information indicating that this is the K-1th processing.
[0067] 2, the model M1 generates attention information A12 for the token TK1 as attention information in the (K−1)th processing. The attention information A12 is information indicating an area in an image (e.g., image P22) that corresponds to the token TK1.
[0068] 2, the model M1 generates attention information A22 as attention information for the token TK2 in the (K−1)th processing. The attention information A22 is information indicating an area in an image (e.g., image P22) that corresponds to the token TK2.
[0069] In addition, model M1 generates attention information for the Kth processing in the process of generating image P20 (image #K) in response to input of image P21 (image #K-1), text TX1, and stage information indicating that this is the Kth processing.
[0070] 2, the model M1 generates attention information A11 as attention information in the Kth processing for the token TK1. The attention information A11 is information indicating an area in an image (for example, image P21) that corresponds to the token TK1.
[0071] 2, the model M1 generates attention information A21 as attention information for the token TK2 in the K-th process. The attention information A21 is information indicating an area in an image (for example, image P21) that corresponds to the token TK2.
[0072] In this way, in the model M1, attention information indicating the result of cross-attention between text information and image information is generated in the process of generating a generated image. Therefore, the information processing device 100 generates the following information using the attention information generated in the process of generating a generated image.
[0073] In the following, when attention information A1K, A1K-1, ... A12, A11, etc. corresponding to token TK1 (token #1) is described without distinction, it may be written as attention information A1, and when attention information A2K, A2K-1, ... A22, A21, etc. corresponding to token TK2 (token #2) is described without distinction, it may be written as attention information A2. Also, when attention information A1 and attention information A2, i.e., attention information A1K, A2K, A1K-1, A2K-1, ... A12, A22, A11, A21, etc. in Figure 2 are described without distinction, it may be written as attention information A.
[0074] [1-3-1. Example of mask information generation] First, a first generation example in which the information processing device 100 generates mask information using attention information A will be described below with reference to Fig. 2. Note that descriptions of points similar to those described above will be omitted as appropriate.
[0075] 2, the information processing device 100 uses a model M1 and text TX1 to generate an image P20 that is a corresponding image corresponding to the text TX1, and generates mask information of the target range indicated by the text TX1 in the image P20 based on attention information A used by the model M1 when generating the image P20. The information processing device 100 generates mask information of the target range indicated by the text TX1 in the image P20 based on attention information A at a predetermined stage during the generation process of the image P20 that is a generated image by the model M1.
[0076] For example, the information processing device 100 generates mask information of a target range indicated by a token TK in the image P20 based on attention information A corresponding to each token included in the text TX1 used by the model M1 when generating the image P20. The information processing device 100 acquires designation information designating one of the tokens TX1 and TX2 included in the text TX1 from the user, and generates mask information of a target range indicated by the one token in the image P20 based on attention information A corresponding to the one token indicated by the designation information.
[0077] In the following, a case where both tokens TX1 and TX2 included in text TX1 are specified by the user will be described as an example. The information processing device 100 acquires specification information specifying each of the multiple tokens TX1 and TX2 included in text TX1 from the user, and generates mask information of the target range indicated by each of the multiple tokens TX1 and TX2 in the image P20 based on attention information A1 and A2 corresponding to each of the multiple tokens TX1 and TX2 indicated by the specification information.
[0078] For example, the information processing device 100 generates mask information of the target range indicated by the token TK1 in the image P20 based on attention information A1 corresponding to the token TK1 included in the text TX1 used by the model M1 when generating the image P20. For example, the information processing device 100 generates mask information of the target range indicated by the token TK1 in the image P20 based on attention information A1 at a stage determined based on information stored in the storage unit 120, etc. For example, the information processing device 100 generates mask information of the target range indicated by the token TK1 in the image P20 based on attention information A1 at a preset stage (designated stage).
[0079] In addition, the attention information used when generating the mask information is not limited to one piece of attention information, and multiple pieces of attention information may be used. In this case, the information processing device 100 may use attention information (synthetic attention information) calculated (generated) by any calculation method such as weighted averaging for multiple pieces of attention information corresponding to each of multiple processing times (timings). In the following, a case will be shown in which one piece of attention information that most appropriately indicates the area in which the target indicated by each token TK is located is selected and used.
[0080] 2, attention information A13 in the (K-2)th processing is attention information that most appropriately indicates the area in the image where the object indicated by token TK1 is located, so the information processing device 100 generates mask information for the object range indicated by token TK1 in image P20 based on attention information A13. For example, the information processing device 100 generates mask information that distinguishes between the range including the object "sofa" indicated by token TK1 (object range) and the other range (also referred to as "non-object range") in image P20 based on attention information A13.
[0081] For example, the information processing device 100 generates mask information that masks a non-target range that is a range other than the target range of the token TK1 in the image P20 based on the attention information A13. For example, the information processing device 100 generates a segmentation mask indicating a segmentation of the object "sofa" indicated by the token TK1 in the image P20 based on the attention information A13 as mask information. For example, the information processing device 100 generates a range in the attention information A13 whose value satisfies a predetermined condition as mask information indicating the segmentation of the object "sofa" indicated by the token TK1. For example, the information processing device 100 generates a range (pixels, etc.) whose value is equal to or greater than a predetermined value as mask information indicating the segmentation of the object "sofa" indicated by the token TK1 in the attention information A13. In FIG. 2, the information processing device 100 generates a hatched range in the attention information A13 as mask information indicating the segmentation of the object "sofa" indicated by the token TK1. For example, the information processing device 100 generates mask information that masks a range of the attention information A13 whose value is less than a predetermined value as a non-target range.
[0082] For example, the information processing device 100 generates mask information of a target range indicated by the token TK2 in the image P20 based on attention information A2 corresponding to the token TK2 included in the text TX1 used by the model M1 when generating the image P20. For example, the information processing device 100 generates mask information of a target range indicated by the token TK2 in the image P20 based on attention information A2 at a preset stage (designated stage).
[0083] 2, attention information A23 in the (K-2)th processing is attention information that most appropriately indicates the area in the image where the object indicated by token TK2 is located, so the information processing device 100 generates mask information for the object range indicated by token TK2 in image P20 based on attention information A23. For example, the information processing device 100 generates mask information that distinguishes between a range (object range) including the object "woman wearing a dress" indicated by token TK2 in image P20 and a non-object range based on attention information A23.
[0084] For example, the information processing device 100 generates mask information that masks a non-target range, which is a range other than the target range of the token TK2, in the image P20, based on the attention information A23. For example, the information processing device 100 generates, as mask information, a segmentation mask indicating a segmentation of the target "woman wearing a dress" indicated by the token TK2 in the image P20, based on the attention information A23. For example, the information processing device 100 generates, as mask information, a range in which the value satisfies a predetermined condition in the attention information A23, as the segmentation of the target "woman wearing a dress" indicated by the token TK2. In FIG. 2, the information processing device 100 generates, as mask information, a hatched range in the attention information A23, as the segmentation of the target "woman wearing a dress" indicated by the token TK2. For example, the information processing device 100 generates mask information that masks a range in which the value is less than a predetermined value in the attention information A23, as the non-target range.
[0085] As described above, the information processing device 100 can appropriately generate other information using information at the time of image generation using a model that generates an image. For example, the information processing device 100 uses text, a target image to be generated (also called a "target image"), and an image in which noise is added to the target image in stages, and trains a diffusion model (such as model M1) so as to generate an image that is one stage closer to the target image from the input noise image and text in each repeated process. This allows the information processing device 100 to train a diffusion model (such as model M1) so as to generate an image indicated by the text in stages when an image and text are input.
[0086] For example, the information processing device 100 accepts designation of text and tokens from a user. The information processing device 100 generates an image corresponding to the text using a diffusion model (such as model M1). The information processing device 100 generates mask information from attention information corresponding to each token generated during image generation processing using the diffusion model (such as model M1). The information processing device 100 provides various services using the mask information and the generated image.
[0087] The information processing device 100 executes various information processing as described above. For example, the information processing device 100 generates mask information for extracting an image portion corresponding to text. For example, when a token is a noun, the information processing device 100 generates mask information for specifying a range (target range) including an object corresponding to the noun.
[0088] For example, when the token is a verb, the information processing device 100 generates mask information that specifies a range (target range) that includes an event corresponding to the verb. In this way, the information processing device 100 visualizes an event indicated by a verb such as "see" and generates mask information that specifies the range (target range). For example, the information processing device 100 can dynamically convey the range to a visually impaired person or the like by embossed information or the like generated based on the mask information.
[0089] For example, when text is used that specifies a state (behavior state) such as an action or a pose (posture, gesture, etc.), the information processing device 100 generates mask information that specifies a range (target range) that includes an event corresponding to the behavior state indicated by the text. In this way, the information processing device 100 generates mask information that specifies a range (target range) that includes an event corresponding to the "XX action" indicated by the text, for example, in response to a text such as "a person performing XX action."
[0090] Furthermore, the information processing device 100 can generate mask information combining multiple tokens. For example, in the case of "bear and bird," where the token "bear" and the token "bird" are connected by a parallel particle (logical sum), the information processing device 100 generates mask information (logical sum mask information) that specifies both a first target range that includes an object corresponding to the token "bear" and a second target range that includes an object corresponding to the token "bird." In this case, the information processing device 100 generates mask information that distinguishes the first target range and the second target range from other ranges. Note that the information processing device 100 may generate mask information that can distinguish both the first target range and the second target range by adding information that can distinguish between the first target range and the second target range.
[0091] Furthermore, when the tokens "flying in the sky" and "car" are in a logic (logical product) where one token describes another token, such as "a car flying in the sky", the information processing device 100 generates mask information (logical product mask information) that specifies a target range that includes an object corresponding to the token "flying in the sky", which is a combination of the tokens "flying in the sky" and "car". Note that the above is merely an example, and the information processing device 100 may generate desired information by any process. In this way, the information processing device 100 can appropriately generate other information by using information at the time of image generation using a model that generates an image.
[0092] The information processing device 100 may generate mask information using any information. For example, the information processing device 100 may obtain cross-attention results (attention information) at multiple different resolutions according to the positions of the second type blocks by the cross-attention unit shown in Fig. 10. In this case, the information processing device 100 may select attention information according to the resolution and generate mask information from the selected attention information.
[0093] For example, the information processing device 100 may generate mask information of the target range indicated by the token TK1 in the image P20 based on attention information A1 corresponding to a resolution determined based on information stored in the storage unit 120, etc. For example, the information processing device 100 may generate mask information of the target range indicated by the token TK1 in the image P20 based on attention information A1 closest to a preset resolution (designated resolution). In addition, the information processing device 100 may also generate mask information of the target range indicated by the token TK2 in the image P20 based on attention information A2 corresponding to the resolution in the same manner as in the case of the token TK1.
[0094] Furthermore, the information processing device 100 provides a service using the generated mask information. For example, the information processing device 100 transmits the generated mask information to the terminal device 10 used by the user. For example, the information processing device 100 transmits, to the terminal device 10 used by the user, information that associates mask information generated using information generated during the generation process of the generated image in the model M1 with the generated image generated in the model M1.
[0095] For example, the information processing device 100 transmits information in which a generated image generated by the model M1, mask information generated using information at the time of generation processing of the generated image, and a label indicating an object corresponding to the mask information are associated with each other to the terminal device 10 used by the user. For example, the information processing device 100 transmits information in which a generated image generated by the model M1, mask information, and a label indicating an object corresponding to the mask information are associated with each other to the terminal device 10 used by the user as learning data.
[0096] Through the above-described processing, the information processing device 100 can appropriately generate any information, such as data used for learning (learning data). For example, the information processing device 100 can automatically generate a segmentation mask corresponding to any word in an input text. For example, there is an application in which the generated image is used to improve the accuracy in an image classification task. Therefore, by using the information generated by the information processing device 100 as learning data, an image with a mask can be generated, which can be applied to classification tasks, detection tasks, segmentation tasks, and the like.
[0097] The information processing system 1 (see FIG. 3) may also provide a UI (User Interface) for searching for an object corresponding to a portion of an image designated (touched) by a user. In this case, the information processing system 1 executes a process for searching for an object in a portion of an image designated by the user, thereby providing, for example, information indicating an object included in a portion of pixels touched by a small child. The information processing system 1 may also provide a service for assisting in the creation of an embossed book for understanding the shapes of animals, etc., assuming use by visually impaired people as described above. In addition, in the case of a book in which the embossing generated by the information processing system 1 can be operated in real time, information (words) indicating an object corresponding to a portion of an image designated by a user can be provided. The information processing system 1 can also specify a word to specify an area in an image containing many objects. For example, the information processing system 1 can specify an area in an image containing a person performing a specific action.
[0098] The above-mentioned process is merely an example, and the information processing device 100 may generate other information using various information. For example, the image used for learning the model M1 may be an image that satisfies a predetermined condition. A second generation example in which the information processing device 100 generates information based on an image that satisfies a predetermined condition will be described. Note that the description of the same points as those in the above-mentioned process will be omitted as appropriate.
[0099] For example, the model M1 may be a diffusion model trained to gradually restore the target image in response to attention based on the corresponding text, using a target image that is an image satisfying a predetermined condition, text (corresponding text) associated with the target image, and a noise image. In this case, the information processing device 100 may train the model M1 to gradually restore the target image in response to attention based on the corresponding text, using a target image that is an image satisfying a predetermined condition, corresponding text associated with the target image, and a noise image.
[0100] For example, the image satisfying the predetermined condition may be a real image. For example, the image satisfying the predetermined condition is a captured image (real image) of a predetermined object captured by an imaging device such as a camera. For example, the model M1 may be a diffusion model that is trained to gradually restore the real image according to attention based on the corresponding text using the real image, the corresponding text indicating the content of the real image, and a noise image.
[0101] In this case, the information processing device 100 may train the model M1 using the real image, the corresponding text indicating the contents of the real image, and the noise image to gradually restore the real image according to attention based on the corresponding text. The information processing device 100 trains the model M1 by an inversion method. This allows the information processing device 100 to generate (reproduce) the real image using the model M1, which is a diffusion model (generative model).
[0102] In this case, the information processing device 100 uses the model M1 that generates (reproduces) a real image and the text to generate mask information for a target range indicated by the text. For example, the information processing device 100 generates a target image (hereinafter also referred to as "image P30") that is a real image corresponding to the text using the model M1, and generates mask information for a target range indicated by the text in the image P30 based on attention information used by the model M1 when generating the image P30.
[0103] In this way, the information processing device 100 generates mask information corresponding to a real image, which makes it easy to add data of the real image to learning data for a detection task or a segmentation task. Therefore, the information processing device 100 can appropriately generate other information by using information at the time of image generation using a model that generates an image. Note that the information processing device 100 may learn a model M1 that generates a real image by any learning method. For example, the information processing device 100 may learn a model M1 that generates a real image based on a learning method related to a diffusion model disclosed in Non-Patent Document 4 and the like.
[0104] As described above, the information processing device 100 receives an image and text indicating the image, and learns a model to gradually restore the received image from a noise image and the text, and learns the model to restore the image taking into account attention based on the text. In addition, the information processing device 100 generates mask information of the range indicated by the text based on the attention used when the model generates an image from the text. For example, the information processing device 100 performs inversion learning to generate mask information. This allows the information processing device 100 to generate mask information corresponding to specified character information.
[0105] Furthermore, the information processing device 100 may execute various processes other than just generating mask information. For example, the information processing device 100 executes processing on a generated image (target image) based on the mask information. The information processing device 100 may generate a processed image to be used as learning data for machine learning by processing the target image. For example, the information processing device 100 generates a processed image in which a range other than a target range identified based on the mask information in the target image is used as the background.
[0106] For example, the information processing device 100 generates mask information that distinguishes between a range (target range) including the object indicated by the text TX2 and the other range (non-target range) within the target image (image P30) based on attention information generated during the target image generation process in the model M1 using the text TX2 as input.
[0107] For example, the information processing device 100 identifies the non-target range indicated by the generated mask information as the background of the target image (image P30). Then, the information processing device 100 generates a processed image by executing a predetermined processing process using the non-target range as the background of the target image (image P30). For example, the information processing device 100 generates an image P31 as the processed image by removing the non-target range as the background of the target image (image P30).
[0108] In this way, the information processing device 100 can also be applied to a task of removing the background of a real image, etc. The information processing device 100 may dynamically change (decide) which part of an image is to be used as the background according to a category (e.g., a service field) in which the image is used.
[0109] In this regard, the case of image P20 shown in Fig. 2 will be described as an example. For example, when the category is an interior category, the information processing device 100 specifies the object "sofa" indicated by the token TK1 in the image P20 as the object range, and the rest as the non-object range. Then, the information processing device 100 removes the range (non-object range) other than the object range of the object "sofa" indicated by the token TK1 in the image P20 as the background. As a result, the information processing device 100 generates, as a processed image, image P32 in which the range (non-object range) other than the object range of the object "sofa" indicated by the token TK1 in the image P20 has been removed as the background.
[0110] Furthermore, for example, when the category is a fashion category, the information processing device 100 specifies the portion of the image P20 in which the object "woman wearing a dress" indicated by the token TK2 is the object range, and the rest as the non-object range. Then, the information processing device 100 removes the range (non-object range) other than the object range of the object "woman wearing a dress" indicated by the token TK2 from the image P20 as the background. As a result, the information processing device 100 generates, as a processed image, an image P33 in which the range (non-object range) other than the object range of the object "woman wearing a dress" indicated by the token TK2 from the image P20 is removed as the background.
[0111] [1-3-2. Examples of generating other information] Note that the information processing device 100 may generate various feature information such as feature vectors, not limited to mask information. For example, the information processing device 100 generates a corresponding image corresponding to the input text by using a diffusion model and an input text, and generates feature information indicating the features of a target range indicated by the input text.
[0112] In this case, the information processing device 100 may use the diffusion model and the input text to generate a corresponding image corresponding to the input text, and generate feature information indicating the features of the target range indicated by the input text from the corresponding image based on the attention used by the diffusion model when generating the corresponding image. In this way, a third generation example in which the information processing device 100 generates feature information other than the mask information using the attention information A will be described below. Note that the same points as those described above will not be described as appropriate.
[0113] 2, the information processing device 100 uses the model M1 and the text TX1 to generate an image P20 that is a corresponding image corresponding to the text TX1, and generates feature information indicating the features of the target range indicated by the text TX1 in the image P20 based on the attention information A used by the model M1 when generating the image P20. For example, the information processing device 100 generates a feature vector that extracts the features of the target indicated by the text TX1 included in the image P20 as the feature information.
[0114] For example, the information processing device 100 generates feature information to be used as learning data for machine learning. For example, the information processing device 100 may generate a feature vector indicating the feature of an object indicated by text TX1 included in the image P20 as correct answer information of a feature extraction model that extracts the feature of an image. For example, the information processing device 100 generates a feature vector indicating the feature of an object indicated by text TX1 as correct answer information to be output by the feature extraction model when an image including an object indicated by text TX1 is input.
[0115] For example, the information processing device 100 generates a feature vector indicating the features of an object indicated by text, using model M2, which is a feature extraction model that extracts features of an input image. Model M2, which is a feature extraction model, is a model that outputs feature information of an object indicated by text in an image. Note that the feature extraction model that extracts the features of an image may be any model as long as it is capable of extracting features from an image, and detailed description thereof will be omitted. For example, when learning of model M2 is performed by a device (learning device) other than the information processing device 100, the information processing device 100 may acquire model M2 by receiving model M2 from the learning device. Note that the information processing device 100 may learn model M2.
[0116] For example, the information processing device 100 may generate a feature vector indicating the characteristics of the target indicated by the text in the extraction target image by using a processed image generated using the attention information A as the extraction target image. For example, the information processing device 100 may generate a feature vector indicating the characteristics of the target indicated by the text in the extraction target image by using a processed image on which background removal processing has been performed using the attention information A as the extraction target image.
[0117] The information processing device 100 generates feature information of an object indicated by text in the extraction target image, using an extraction target image based on attention information A and model M2, which is a feature extraction model. The information processing device 100 inputs the extraction target image based on attention information A to the model M2, and causes the model M2 to output a feature vector indicating the feature of an object indicated by text in the extraction target image. In this way, the information processing device 100 generates a feature vector indicating the feature of an object indicated by text in the extraction target image.
[0118] The information processing device 100 generates a feature vector indicating the features of the target indicated by the text TX2 in the image P31 by inputting the image P31, which is generated using the attention information A corresponding to the text TX2 and from which the background has been removed, as an image to be extracted into the model M2. In this way, the information processing device 100 generates a feature vector indicating the features of the target range indicated by the text TX2, "A woman wearing a dress is sitting on a sofa."
[0119] The information processing device 100 generates a feature vector indicating the characteristics of the range (target range) including the object "sofa" indicated by the token TK1 in the image P32 by inputting the image P32, which is generated using the attention information A1 corresponding to the token TK1 and from which the background has been removed, as an extraction target image to the model M2. In this way, the information processing device 100 generates a feature vector indicating the characteristics of the target range corresponding to the object "sofa" indicated by the token TK1.
[0120] The information processing device 100 generates a feature vector indicating the characteristics of the range (target range) including the object "woman wearing a dress" indicated by the token TK2 in the image P33 by inputting the image P33, which has been generated using the attention information A2 corresponding to the token TK2 and from which the background has been removed, into the model M2 as an extraction target image. In this way, the information processing device 100 generates a feature vector indicating the characteristics of the target range corresponding to the object "woman wearing a dress" indicated by the token TK2.
[0121] In this way, the information processing device 100 can appropriately generate other information using information at the time of image generation using a model that generates an image. As described above, the information processing device 100 generates a corresponding image indicated by the text using a diffusion model, and generates mask information of a target range indicated by the text based on attention information used when the diffusion model generates the corresponding image. Then, the information processing device 100 applies a mask corresponding to the text to the corresponding image, thereby generating learning data for learning the features of the target image indicated by the text. For example, the information processing device 100 generates a feature vector as feature information, as in the above example.
[0122] The above-mentioned procedure is merely an example, and the information processing device 100 may generate various feature information by appropriately using various information. For example, the information processing device 100 may generate information by processing using mask information instead of the global average pooling process in the model. In this case, the information processing device 100 may generate a feature vector by performing pooling that emphasizes the obtained mask information using the mask information. For example, when the category is the interior category, the information processing device 100 generates a feature vector by using mask information corresponding to the object "sofa" indicated by the token TK1 in the image P20. For example, when the category is the fashion category, the information processing device 100 generates a feature vector by using mask information corresponding to the object "woman wearing a dress" indicated by the token TK2 in the image P20.
[0123] Furthermore, the information processing device 100 provides a service using the generated feature information. For example, the information processing device 100 transmits the generated feature information to the terminal device 10 used by the user. For example, the information processing device 100 transmits information that associates the feature information generated using information generated during the generation process of the generated image in the model M1 with the generated image generated in the model M1 to the terminal device 10 used by the user.
[0124] For example, the information processing device 100 transmits information in which a generated image generated by the model M1, feature information generated using information at the time of the generation process of the generated image, and a label indicating an object corresponding to the feature information are associated with each other to the terminal device 10 used by the user. For example, the information processing device 100 transmits information in which a generated image generated by the model M1, feature information, and a label indicating an object corresponding to the feature information are associated with each other to the terminal device 10 used by the user as learning data.
[0125] 2. Configuration of the Information Processing System Next, a configuration example of the information processing system 1 will be described with reference to Fig. 3. Fig. 3 is a diagram showing a configuration example of the information processing system according to the embodiment. As shown in Fig. 3, the information processing system 1 includes an information processing device 100, an information providing device 50, and a terminal device 10. The information processing device 100, the information providing device 50, and the terminal device 10 are connected to each other via a predetermined network N so as to be able to communicate with each other by wire or wirelessly. Note that the information processing system 1 shown in Fig. 3 may include a plurality of information processing devices 100, a plurality of information providing devices 50, and a plurality of terminal devices 10.
[0126] The information processing device 100 is a computer that generates information using a model such as a diffusion model. That is, the information processing device 100 is a generating device that performs information generation processing. The information processing device 100 generates a corresponding image corresponding to the text using the diffusion model and text, and generates mask information of a target range indicated by the text in the corresponding image based on the attention used by the diffusion model when generating the corresponding image.
[0127] Furthermore, the information processing device 100 uses the corresponding text, which is text associated with the generated image, which is an image that satisfies a predetermined condition, and the diffusion model to generate mask information for a target range indicated by the corresponding text in the generated image, based on the attention used by the diffusion model when generating the generated image. The information processing device 100 uses the diffusion model and the text to generate a corresponding image corresponding to the text, and generates feature information indicating features of the target range indicated by the text.
[0128] The information processing device 100 is a computer that provides a service to a user who uses the terminal device 10. The information processing device 100 provides a service using the generated mask information. The information processing device 100 provides the generated mask information to the user. The information processing device 100 transmits the generated mask information to the terminal device used by the user.
[0129] The information processing device 100 provides a service using the generated characteristic information. The information processing device 100 provides the generated characteristic information to a user. The information processing device 100 transmits the generated characteristic information to a terminal device 10 used by the user.
[0130] The information providing device 50 is a server device that provides the information processing device 100 with information (data) that can be used for model learning. For example, the information providing device 50 transmits data that is permitted to be used for model learning to the information processing device 100 as learning data. For example, the information providing device 50 publishes public data on the Internet, and transmits the requested data to the external device that is the request destination, in response to a request from the external device such as the information processing device 100. For example, the information providing device 50 receives request information requesting data from the information processing device 100, and transmits data corresponding to the request information to the information processing device 100 in response to the reception of the request information.
[0131] For example, the information providing device 50 transmits, as learning data to the information processing device 100, information associating a group of images in which noise has been gradually added to an image with text indicating an object included in the image. For example, the information providing device 50 transmits, as learning data to the information processing device 100, data associating a plurality of staged images in which noise has been gradually added to an image of a transaction object to be traded on an EC site or the like with text indicating the contents of the transaction object.
[0132] The terminal device 10 is an information processing device used by a user. The terminal device 10 is realized by, for example, a smartphone, a tablet terminal, a notebook PC (Personal Computer), a desktop PC, a mobile phone, a PDA (Personal Digital Assistant), or the like. The terminal device 10 may be referred to as a user. In other words, the user may be read as the terminal device 10.
[0133] The terminal device 10 accepts operations by a user. In addition, the terminal device 10 transmits various information to the information processing device 100 and the information providing device 50 in response to the user's operations. For example, the terminal device 10 transmits request information requesting various information to the information processing device 100 and the information providing device 50. In addition, the terminal device 10 receives various information from the information processing device 100 and the information providing device 50.
[0134] The terminal device 10 transmits an image (target image) designated by the user as a target for generating information to the information processing device 100. The terminal device 10 transmits information indicating the target designated by the user (designated information) to the information processing device 100.
[0135] The terminal device 10 receives various information from the information processing device 100. For example, the terminal device 10 receives mask information from the information processing device 100. For example, the terminal device 10 receives feature information from the information processing device 100.
[0136] The terminal device 10 receives, as learning data, information associating a generated image generated by the model M1, mask information, and a label indicating an object corresponding to the mask information from the information processing device 100. The terminal device 10 receives, as learning data, information associating a generated image generated by the model M1, feature information, and a label indicating an object corresponding to the feature information from the information processing device 100.
[0137] 3. Configuration of Information Processing Device Next, the configuration of the information processing device 100 according to the embodiment will be described with reference to Fig. 4. Fig. 4 is a diagram showing an example of the configuration of the information processing device 100 according to the embodiment. As shown in Fig. 4, the information processing device 100 has a communication unit 110, a storage unit 120, and a control unit 130. Note that the information processing device 100 may have an input unit (e.g., a keyboard, a mouse, etc.) that accepts various operations from an administrator of the information processing device 100, and a display unit (e.g., a liquid crystal display, etc.) that displays various information.
[0138] (Communication unit 110) The communication unit 110 is realized by, for example, a network interface card (NIC) etc. The communication unit 110 is connected to a network by wire or wirelessly, and transmits and receives information to and from the terminal device 10 and the information providing device 50.
[0139] (Storage unit 120) The storage unit 120 is realized by, for example, a semiconductor memory element such as a random access memory (RAM) or a flash memory, or a storage device such as a hard disk or an optical disk. As shown in FIG. 4, the storage unit 120 according to the embodiment has a learning data storage unit 121 and a model information storage unit 122.
[0140] (Learning data storage unit 121) The learning data storage unit 121 according to the embodiment stores various information (learning data) related to data used for learning. The learning data storage unit 121 stores teacher data used for generating a model. The learning data storage unit 121 stores learning data information including information such as data used for input and correct answer information (correct answer image) corresponding to the data.
[0141] The learning data storage unit 121 stores learning data in which a combination of a noise image and text used for input is associated with image data (correct image) corresponding to the input.
[0142] The learning data storage unit 121 may store various kinds of information according to the purpose, not limited to the above. For example, the learning data storage unit 121 stores information indicating the type of input data in association with each input data.
[0143] (Model information storage unit 122) The model information storage unit 122 according to the embodiment stores information about a model. For example, the model information storage unit 122 stores information (model data) about a trained model (model) trained (generated) by a learning process. FIG. 5 is a diagram illustrating an example of a model information storage unit according to the embodiment. In the example shown in FIG. 5, the model information storage unit 122 includes items such as "model ID," "purpose," and "model data."
[0144] "Model ID" indicates identification information for identifying a model. "Use" indicates the use of the corresponding model. "Model Data" indicates the data of the model. Figure 5 shows an example in which conceptual information such as "MDT1" is stored in "Model Data", but in reality, various information constituting the model is included, such as information on the model configuration (network configuration) and information on parameters. For example, "Model Data" includes information including the nodes in each layer of the network, the functions employed by each node, the connection relationships between the nodes, and the connection coefficients set for the connections between the nodes.
[0145] In FIG. 5, the model (model M1) identified by the model ID "M1" has an application of "image generation", and for example, model M1 indicates that it is a model used to generate an image showing the contents of text. For example, model M1 indicates that it is a model used to convert character information into image information, that is, to express (reproduce) the contents of character information as an image. Also, it indicates that the model data of model M1 is model data MDT1.
[0146] The model information storage unit 122 may store various information according to the purpose, not limited to the above. The model such as the model M1 may be expected to be used as a program module that is a part of artificial intelligence software. The model such as the model M1 may be a program.
[0147] (Control unit 130) Returning to the explanation of Fig. 4, the control unit 130 is a controller, and is realized, for example, by a CPU (Central Processing Unit), MPU (Micro Processing Unit), etc., executing various programs (corresponding to examples of information processing programs such as learning programs and generation programs) stored in a storage device inside the information processing device 100 using a RAM as a working area. The control unit 130 is also a controller, and is realized, for example, by an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).
[0148] 4, the control unit 130 has an acquisition unit 131, a generation unit 132, a learning unit 133, a processing unit 134, and a provision unit 135, and realizes or executes the functions and actions of information processing described below. Note that the internal configuration of the control unit 130 is not limited to the configuration shown in FIG. 4, and may be other configurations as long as they perform the information processing described below.
[0149] (Acquisition part 131) The acquisition unit 131 acquires various information. The acquisition unit 131 acquires various information from an external information processing device such as the terminal device 10 or the information providing device 50. The acquisition unit 131 may receive various information indicated in the learning data storage unit 121, the model information storage unit 122, etc. from the external information processing device.
[0150] The acquisition unit 131 acquires various pieces of information from the storage unit 120. The acquisition unit 131 acquires various pieces of information from the learning data storage unit 121, the model information storage unit 122, etc. The acquisition unit 131 receives various pieces of information from an external device.
[0151] The acquisition unit 131 receives various information from the terminal device 10 used by the user. For example, the acquisition unit 131 receives an image for which mask information is to be generated from the terminal device 10. For example, the acquisition unit 131 receives information specifying an object for which mask information is to be generated from within the image from the terminal device 10. For example, the acquisition unit 131 receives an image for which feature information is to be generated from the terminal device 10.
[0152] The acquisition unit 131 receives various information from the information providing device 50. For example, the acquisition unit 131 receives information used for learning from the information providing device 50. For example, the acquisition unit 131 receives learning data used for learning the model M1 from the information providing device 50.
[0153] The acquisition unit 131 acquires a diffusion model, which is a model trained to gradually restore an image indicated by text from a noise image and to restore an image in response to attention based on the text. The acquisition unit 131 acquires an input text input by a user. The acquisition unit 131 acquires designation information that designates one token among the tokens included in the input text. The acquisition unit 131 acquires designation information that designates multiple tokens among the tokens included in the input text.
[0154] The acquisition unit 131 acquires a target image, which is an image that satisfies a predetermined condition, and a corresponding text, which is a text associated with the target image. The acquisition unit 131 acquires a diffusion model, which is a model that has been trained to gradually restore the target image from a noise image and the corresponding text, and is a model that restores the target image in response to attention based on the corresponding text.
[0155] The acquisition unit 131 acquires a target image, which is a real image, and corresponding text associated with the target image. The acquisition unit 131 acquires a target image, which is a captured image of a predetermined target, and corresponding text indicating the predetermined target. The acquisition unit 131 acquires corresponding text indicating the captured target captured by the target image. The acquisition unit 131 acquires corresponding text indicating the captured target included in the target image.
[0156] The acquisition unit 131 acquires a target image to be processed from a user. The acquisition unit 131 acquires designation information from the user that designates a target in the image for which information is to be generated.
[0157] (Generation unit 132) The generating unit 132 executes a generation process to estimate various pieces of information. For example, the generating unit 132 executes the generation process based on various pieces of information acquired by the acquiring unit 131. The generating unit 132 executes the generation process based on various pieces of information stored in the storage unit 120. The generating unit 132 executes the generation process based on various pieces of information received from an external information processing device. The generating unit 132 executes the generation process based on a model learned by the learning unit 133. The generating unit 132 executes the generation process based on information determined by the processing unit 134.
[0158] The generation unit 132 generates a corresponding image corresponding to the input text using the diffusion model and input text acquired by the acquisition unit 131, and generates mask information of a target range indicated by the input text in the corresponding image based on attention used by the diffusion model when generating the corresponding image. The generation unit 132 generates a corresponding image corresponding to the input text, and generates mask information of a target range indicated by a token in the corresponding image based on attention corresponding to each of the tokens included in the input text used by the diffusion model when generating the corresponding image.
[0159] The generation unit 132 generates mask information of a target range indicated by one token in the corresponding image based on attention corresponding to one token specified by the designation information among the tokens included in the input text. The generation unit 132 generates mask information of a target range indicated by multiple tokens in the corresponding image based on attention corresponding to each of multiple tokens specified by the designation information among the tokens included in the input text.
[0160] The generating unit 132 generates mask information for a target range corresponding to a logical sum of a plurality of tokens.The generating unit 132 generates mask information for a target range corresponding to a logical product of a plurality of tokens.
[0161] The generation unit 132 generates mask information of a target range indicated by a token in a corresponding image based on attention corresponding to each token that is a noun included in the input text. The generation unit 132 generates mask information of a target range indicated by a token in a corresponding image based on attention corresponding to each token that is a verb included in the input text. The generation unit 132 generates a corresponding image corresponding to the input text, and generates mask information of a target range indicated by the input text in a corresponding image based on attention at a predetermined stage during the generation process of the diffusion model.
[0162] The generation unit 132 generates mask information of a target range indicated by the corresponding text in the target image based on the attention used by the diffusion model when generating the target image, using the diffusion model and the corresponding text acquired by the acquisition unit 131. The generation unit 132 generates mask information of a target range corresponding to a predetermined target in the target image, based on the attention used by the diffusion model when generating the target image.
[0163] The generation unit 132 generates mask information of a target range of the target image corresponding to the imaging target based on the attention used by the diffusion model when generating the target image. The generation unit 132 generates a corresponding image corresponding to the corresponding text, and generates mask information of a target range of the corresponding image indicated by the corresponding text based on the attention at a predetermined stage during the generation process of the diffusion model.
[0164] The generation unit 132 generates a corresponding image corresponding to the input text using the diffusion model acquired by the acquisition unit 131 and the input text, and generates feature information indicating the features of the target range indicated by the input text. The generation unit 132 generates a vector indicating the features of the target range indicated by the input text as the feature information. The generation unit 132 generates the feature information to be used as learning data for machine learning.
[0165] The generation unit 132 generates a corresponding image corresponding to the input text, and generates feature information indicating features of a target range indicated by the input text in the corresponding image based on attention used by the diffusion model when generating the corresponding image. The generation unit 132 generates a corresponding image corresponding to the input text, and generates feature information indicating features of a target range indicated by a token in the corresponding image based on attention corresponding to each of the tokens included in the input text used by the diffusion model when generating the corresponding image.
[0166] The generation unit 132 generates feature information indicating the features of the target range indicated by one token in the corresponding image based on attention corresponding to one token specified by the designation information among the tokens included in the input text. The generation unit 132 generates feature information indicating the features of the target range indicated by multiple tokens in the corresponding image based on attention corresponding to each of multiple tokens specified by the designation information among the tokens included in the input text.
[0167] The generating unit 132 generates feature information indicating the feature of a target range corresponding to a logical sum of a plurality of tokens.The generating unit 132 generates feature information indicating the feature of a target range corresponding to a logical product of a plurality of tokens.
[0168] The generation unit 132 generates feature information indicating the characteristics of the target range indicated by the tokens of the corresponding images based on attention corresponding to each token that is a noun included in the input text. The generation unit 132 generates feature information indicating the characteristics of the target range indicated by the tokens of the corresponding images based on attention corresponding to each token that is a verb included in the input text. The generation unit 132 generates a corresponding image corresponding to the input text, and generates feature information indicating the characteristics of the target range indicated by the input text of the corresponding images based on attention at a predetermined stage during the generation process of the diffusion model.
[0169] (Learning Section 133) The learning unit 133 learns various information. The learning unit 133 generates various models by a learning process. For example, the learning unit 133 performs a learning process based on information stored in the learning data storage unit 121, etc. The learning unit 133 generates various models based on information stored in the learning data storage unit 121, etc. For example, the learning unit 133 learns a model M1 using the learning data stored in the learning data storage unit 121.
[0170] The learning unit 133 learns a diffusion model which is a model trained to gradually restore an image indicated by text from a noise image and to restore an image in response to attention based on the text. The learning unit 133 learns a diffusion model which is a model trained to gradually restore a target image from a noise image and corresponding text and to restore a target image in response to attention based on the corresponding text.
[0171] The learning unit 133 learns a diffusion model using the multiple stage images acquired by the acquisition unit 131. The learning unit 133 learns the diffusion model so as to generate a stage image that is an image in which noise has been removed by one stage from one of the multiple stage images. The learning unit 133 learns the diffusion model so as to generate a first stage image in which noise has been removed by one stage from a second stage image. The learning unit 133 learns the diffusion model so as to generate a second stage image in which noise has been removed by one stage from a third stage image.
[0172] For example, the learning unit 133 executes a learning process based on various information acquired by the acquisition unit 131. For example, the learning unit 133 learns a model based on information generated by the generation unit 132. The learning unit 133 executes a learning process based on information from an external information processing device and information stored in the storage unit 120. The learning unit 133 executes a learning process based on information stored in the model information storage unit 122. The learning unit 133 stores the model generated by learning in the model information storage unit 122.
[0173] The learning unit 133 performs a learning process. The learning unit 133 performs various learning. The learning unit 133 learns various information based on the information acquired by the acquisition unit 131. The learning unit 133 learns (generates) a model. The learning unit 133 learns various information such as a model. The learning unit 133 generates a model by learning. The learning unit 133 learns the model using various machine learning techniques. For example, the learning unit 133 learns parameters of the model (network). The learning unit 133 learns the model using various machine learning techniques.
[0174] The learning unit 133 generates various learning models such as the model M1. The learning unit 133 learns network parameters. For example, the learning unit 133 learns network parameters of various learning models such as the model M1. The learning unit 133 performs a learning process using learning data stored in the model information storage unit 122, thereby generating various learning models such as the model M1. For example, the learning unit 133 generates a model used for generating an image. The learning unit 133 generates various learning models such as the model M1 by learning network parameters of various learning models such as the model M1.
[0175] The learning unit 133 performs a learning process based on the learning data (teacher data) stored in the model information storage unit 122. The learning unit 133 performs a learning process using the learning data stored in the model information storage unit 122, thereby generating various learning models such as model M1.
[0176] For example, the learning unit 133 performs a learning process using a method such as backpropagation so that an image output by the model M1 approaches correct answer information (information indicating a desired generation result) associated with input information input to the model M1. For example, the learning unit 133 performs a learning process so that an image output by the model M1 to which input information including a noise image is input approaches an image (correct answer information) in which noise has been removed from the input noise image by one step.
[0177] For example, the learning unit 133 adjusts the value of the weight (i.e., the connection coefficient) that is taken into consideration when a value is transmitted between nodes by the learning process. In this way, the learning unit 133 learns the model M1 by a process such as backpropagation that corrects the parameters (connection coefficients) so as to reduce the error between the output in the model M1 and the correct answer information corresponding to the input. For example, the learning unit 133 generates the model M1 by a process such as backpropagation that minimizes a predetermined loss function. This allows the learning unit 133 to perform a learning process that learns the parameters of the model M1.
[0178] The learning method of the model is not limited to the above-mentioned method, and any known technology can be applied. The generation of each model may be performed by appropriately using various conventional technologies related to machine learning. For example, the generation of the model may be performed by using a technology related to machine learning of supervised learning, such as SVM (Support Vector Machine). Also, for example, the generation of the model may be performed by using a technology related to machine learning of unsupervised learning. For example, the generation of the model may be performed by using a deep learning technology. For example, the generation of the model may be performed by appropriately using various deep learning technologies such as DNN (Deep Neural Network), RNN (Recurrent Neural Network), and CNN (Convolutional Neural Network). Note that the description regarding the generation of the above model is an example, and the generation of the model may be performed by a learning method appropriately selected according to the obtainable information, etc. That is, the learning unit 133 may generate the model M1 by any method as long as the model M1 can be learned so as to output information corresponding to the correct answer information when the input information included in the learning data is input.
[0179] As described above, the method of learning by the learning unit 133 is not particularly limited, but for example, learning data in which data (input information) and its correct answer information (output information) are linked may be prepared, and the learning data may be input to a computation model based on a multi-layer neural network for learning. In addition, a method based on DNN such as CNN or 3D-CNN may be used. Specifically, the learning method by the learning unit 133 may be a method based on U-net. When targeting time-series data such as voice, the learning unit 133 may use a method based on a recurrent neural network (RNN) or LSTM (Long Short-Term Memory units), which is an extension of RNN.
[0180] (Processing section 134) The processing unit 134 processes various types of information. The processing unit 134 performs information processing based on the information stored in the storage unit 120. The processing unit 134 functions as an inference unit that performs inference processing. The processing unit 134 performs inference processing by using a model stored in the model information storage unit 122. For example, the learning unit 133 performs inference processing based on the information generated by the generation unit 132.
[0181] The processing unit 134 executes processing on the target image based on the mask information. The processing unit 134 generates a processed image to be used as learning data for machine learning by processing the target image. The processing unit 134 generates a processed image in which a range of the target image other than the target range specified based on the mask information is used as a background.
[0182] The processing unit 134 performs inference using the model M1 learned by the learning unit 133. The processing unit 134 performs inference using the model M1, which is a diffusion model. The processing unit 134 inputs a noise image and text as input information to the model M1, thereby performing inference processing to generate an image including an object corresponding to the text.
[0183] (Provider 135) The providing unit 135 provides various information. For example, the providing unit 135 provides various information to the terminal device 10 and the information providing device 50. The providing unit 135 transmits various information to the terminal device 10 and the information providing device 50. The providing unit 135 provides various information based on the various information acquired by the acquiring unit 131. The providing unit 135 provides various information based on the various information generated by the generating unit 132.
[0184] The providing unit 135 provides various information based on the various information learned by the learning unit 133. The providing unit 135 provides various information based on the model learned by the learning unit 133. The providing unit 135 provides various information based on the various information processed by the processing unit 134. For example, the providing unit 135 transmits information to the terminal device 10.
[0185] The providing unit 135 provides a service using the diffusion model learned by the learning unit 133. The providing unit 135 provides a service using the mask information generated by the generating unit 132. The providing unit 135 provides the mask information generated by the generating unit 132 to a user. The providing unit 135 transmits the mask information generated by the generating unit 132 to a terminal device used by the user.
[0186] The providing unit 135 provides a service using the characteristic information generated by the generating unit 132. The providing unit 135 provides the characteristic information generated by the generating unit 132 to a user. The providing unit 135 transmits the characteristic information generated by the generating unit 132 to the terminal device 10 used by the user.
[0187] [4. Information processing flow] Next, a flow of information processing by the information processing device 100 will be described with reference to Fig. 6 to Fig. 8. Fig. 6 to Fig. 8 are flowcharts showing an example of information processing according to an embodiment.
[0188] First, a process example shown in Fig. 6 will be described. As shown in Fig. 6, the information processing device 100 acquires a diffusion model, which is a model trained to gradually restore an image indicated by text from a noise image and to restore an image according to attention based on the text, and an input text input by a user (step S101).
[0189] The information processing device 100 uses the diffusion model and the input text to generate a corresponding image corresponding to the input text, and generates mask information that masks the target range indicated by the input text in the corresponding image based on the attention used when the diffusion model generated the corresponding image (step S102).
[0190] Next, a processing example shown in Fig. 7 will be described. As shown in Fig. 7, the information processing device 100 acquires a target image which is an image that satisfies a predetermined condition, a corresponding text which is a text associated with the target image, and a diffusion model which is a model that has been trained to gradually restore the target image from a noise image and the corresponding text and which restores the target image according to attention based on the corresponding text (step S201).
[0191] The information processing device 100 uses the diffusion model and the corresponding text to generate mask information that masks the target range indicated by the corresponding text in the target image based on the attention used when the diffusion model generated the target image (step S202).
[0192] Next, a processing example shown in Fig. 8 will be described. As shown in Fig. 8, the information processing device 100 acquires a diffusion model, which is a model trained to gradually restore an image indicated by text from a noise image and to restore an image according to attention based on the text, and an input text input by a user (step S301).
[0193] The information processing device 100 generates a corresponding image corresponding to the input text by using the diffusion model and the input text, and generates feature information indicating the features of the target range indicated by the input text (step S302).
[0194] 5. Effects As described above, the information processing device 100 according to the embodiment includes an acquisition unit 131 and a generation unit 132. The acquisition unit 131 acquires a diffusion model, which is a model trained to gradually restore an image indicated by text from a noise image and to restore an image according to attention based on the text, and an input text input by a user. The generation unit 132 generates a corresponding image corresponding to the input text using the diffusion model acquired by the acquisition unit 131 and the input text, and generates mask information of a target range indicated by the input text in the corresponding image based on the attention used by the diffusion model when generating the corresponding image.
[0195] In this way, the information processing device 100 according to the embodiment can generate a corresponding image corresponding to the input text using the input text and a diffusion model trained to restore an image according to attention based on the text, and generate mask information of a target range of the corresponding image indicated by the input text based on the attention used by the diffusion model when generating the corresponding image. Therefore, the information processing device 100 can appropriately generate other information using information at the time of image generation using a model that generates an image.
[0196] In addition, in the information processing device 100 according to the embodiment, the generation unit 132 generates a corresponding image corresponding to the input text, and generates mask information of the target range indicated by the tokens in the corresponding image based on the attention corresponding to each of the tokens included in the input text used by the diffusion model when generating the corresponding image.
[0197] In this way, the information processing device 100 according to the embodiment generates a corresponding image corresponding to an input text, and generates mask information of a target range indicated by a token in the corresponding image based on attention corresponding to each token included in the input text used by the diffusion model when generating the corresponding image. Therefore, the information processing device 100 can appropriately generate other information using information at the time of image generation using a model that generates an image.
[0198] In the information processing device 100 according to the embodiment, the acquisition unit 131 acquires designation information designating one of the tokens included in the input text. The generation unit 132 generates mask information of a target range indicated by the one token in the corresponding image based on attention corresponding to the one token designated by the designation information among the tokens included in the input text.
[0199] In this way, the information processing device 100 according to the embodiment can generate mask information of a target range indicated by one token in a corresponding image based on attention corresponding to one token specified by the specification information among the tokens included in the input text. Therefore, the information processing device 100 can appropriately generate other information by using information at the time of image generation using a model that generates the image.
[0200] In the information processing device 100 according to the embodiment, the acquisition unit 131 acquires designation information that designates multiple tokens among the tokens included in the input text. The generation unit 132 generates mask information of a target range indicated by the multiple tokens in the corresponding image based on attention corresponding to each of the multiple tokens designated by the designation information among the tokens included in the input text.
[0201] In this way, the information processing device 100 according to the embodiment can generate mask information of the target range indicated by the multiple tokens in the corresponding image based on attention corresponding to each of the multiple tokens specified by the specification information among the tokens included in the input text. Therefore, the information processing device 100 can appropriately generate other information by using information at the time of image generation using a model that generates the image.
[0202] Moreover, in the information processing device 100 according to the embodiment, the generation unit 132 generates mask information of a target range corresponding to the logical sum of a plurality of tokens.
[0203] In this way, the information processing device 100 according to the embodiment generates mask information for a target range corresponding to the logical sum of multiple tokens, and can appropriately generate other information using information obtained when an image is generated using a model that generates the image.
[0204] Moreover, in the information processing device 100 according to the embodiment, the generation unit 132 generates mask information of a target range corresponding to a logical product of a plurality of tokens.
[0205] In this way, the information processing device 100 according to the embodiment generates mask information for a target range corresponding to the logical product of multiple tokens, and can appropriately generate other information using information obtained when an image is generated using a model that generates the image.
[0206] Moreover, in the information processing device 100 according to the embodiment, the generation unit 132 generates mask information of a target range indicated by a token in a corresponding image, based on attention corresponding to each token that is a noun included in an input text.
[0207] In this way, the information processing device 100 according to the embodiment generates mask information for the target range indicated by the token in the corresponding image based on attention corresponding to each token, which is a noun contained in the input text, and can appropriately generate other information using information generated when the image is generated using a model that generates the image.
[0208] Moreover, in the information processing device 100 according to the embodiment, the generation unit 132 generates mask information of a target range indicated by a token in a corresponding image, based on attention corresponding to each token that is a verb included in an input text.
[0209] In this way, the information processing device 100 according to the embodiment generates mask information for the target range indicated by the token in the corresponding image based on attention corresponding to each token, which is a verb included in the input text, and can appropriately generate other information using information generated when the image is generated using a model that generates the image.
[0210] Moreover, in the information processing device 100 according to the embodiment, the generation unit 132 generates a corresponding image corresponding to the input text, and generates mask information of a target range indicated by the input text in the corresponding image based on attention at a predetermined stage during the diffusion model generation process.
[0211] In this way, the information processing device 100 according to the embodiment generates a corresponding image corresponding to the input text, and generates mask information of the target range indicated by the input text within the corresponding image based on attention at a certain stage during the diffusion model generation process, thereby making it possible to appropriately generate other information using information at the time of image generation using a model that generates the image.
[0212] Moreover, the information processing device 100 according to the embodiment includes a learning unit 133. The learning unit 133 learns a diffusion model that is a model trained to gradually restore an image indicated by text from a noise image and is trained to restore an image in response to attention based on the text.
[0213] In this way, the information processing device 100 according to the embodiment can learn a model that appropriately generates images by training a diffusion model that is trained to restore images according to attention based on text.
[0214] Moreover, the information processing device 100 according to the embodiment includes a providing unit 135. The providing unit 135 provides a service using the mask information generated by the generating unit 132.
[0215] In this way, the information processing apparatus 100 according to the embodiment can provide appropriate services by providing services using the generated mask information.
[0216] Moreover, in the information processing device 100 according to the embodiment, the providing unit 135 provides the mask information generated by the generating unit 132 to the user.
[0217] In this way, the information processing apparatus 100 according to the embodiment can provide an appropriate service to the user by providing the user with mask information.
[0218] Moreover, in the information processing device 100 according to the embodiment, the providing unit 135 transmits the mask information generated by the generating unit 132 to the terminal device 10 used by the user.
[0219] In this manner, the information processing device 100 according to the embodiment can provide the user with appropriate search results by transmitting mask information to the terminal device 10 used by the user.
[0220] [6. Hardware Configuration] Moreover, the information processing device 100 and the terminal device 10 according to the above-described embodiment are realized by a computer 1000 having a configuration as shown in Fig. 11, for example. The information processing device 100 will be described below as an example. Fig. 11 is a diagram showing an example of a hardware configuration. The computer 1000 is connected to an output device 1010 and an input device 1020, and has a configuration in which a calculation device 1030, a primary storage device 1040, a secondary storage device 1050, an output I / F (Interface) 1060, an input I / F 1070, and a network I / F 1080 are connected by a bus 1090.
[0221] The arithmetic device 1030 operates based on programs stored in the primary storage device 1040 and the secondary storage device 1050, programs read from the input device 1020, and the like, and executes various processes. The arithmetic device 1030 is realized by, for example, a CPU (Central Processing Unit), an MPU (Micro Processing Unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or the like.
[0222] The primary storage device 1040 is a memory device such as a RAM (Random Access Memory) that primarily stores data used by the arithmetic device 1030 for various calculations. The secondary storage device 1050 is a storage device in which data used by the arithmetic device 1030 for various calculations and various databases are registered, and is realized by a ROM (Read Only Memory), an HDD (Hard Disk Drive), an SSD (Solid State Drive), a flash memory, or the like. The secondary storage device 1050 may be an internal storage device or an external storage device. The secondary storage device 1050 may be a removable storage medium such as a USB memory or a Secure Digital (SD) memory card. The secondary storage device 1050 may be a cloud storage device (online storage device), a NAS (Network Attached Storage), a file server, or the like.
[0223] The output I / F 1060 is an interface for transmitting information to be output to an output device 1010 that outputs various types of information, such as a display, a projector, a printer, etc., and is realized by a connector conforming to a standard such as USB (Universal Serial Bus), DVI (Digital Visual Interface), or HDMI (registered trademark) (High Definition Multimedia Interface). The input I / F 1070 is an interface for receiving information from various input devices 1020, such as a mouse, a keyboard, a keypad, a button, a scanner, etc., and is realized by a USB, etc.
[0224] Furthermore, the output I / F 1060 and the input I / F 1070 may be wirelessly connected to the output device 1010 and the input device 1020, respectively. That is, the output device 1010 and the input device 1020 may be wireless devices.
[0225] The output device 1010 and the input device 1020 may be integrated into one device, such as a touch panel. In this case, the output I / F 1060 and the input I / F 1070 may also be integrated into one device, such as an input / output I / F.
[0226] The input device 1020 may be a device that reads information from, for example, an optical recording medium such as a CD (Compact Disc), a DVD (Digital Versatile Disc), or a PD (Phase change rewritable Disk), a magneto-optical recording medium such as an MO (Magneto-Optical disk), a tape medium, a magnetic recording medium, or a semiconductor memory.
[0227] The network I / F 1080 receives data from other devices via the network N and sends it to the arithmetic device 1030, and also transmits data generated by the arithmetic device 1030 to other devices via the network N.
[0228] The arithmetic unit 1030 controls the output device 1010 and the input device 1020 via the output I / F 1060 and the input I / F 1070. For example, the arithmetic unit 1030 loads a program from the input device 1020 or the secondary storage device 1050 onto the primary storage device 1040 and executes the loaded program.
[0229] For example, when the computer 1000 functions as the information processing device 100, the arithmetic unit 1030 of the computer 1000 executes a program loaded onto the primary storage device 1040 to realize the functions of the control unit 130. The arithmetic unit 1030 of the computer 1000 may also load a program acquired from another device via the network I / F 1080 onto the primary storage device 1040 and execute the loaded program. The arithmetic unit 1030 of the computer 1000 may also cooperate with the other device via the network I / F 1080 and use functions, data, etc. of a program by calling them from another program of the other device.
[0230] [7. Other] Furthermore, among the processes described in the above embodiments and modifications, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified. For example, the various information shown in each drawing is not limited to the illustrated information.
[0231] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or part of them can be functionally or physically distributed and integrated in any unit according to various loads, usage conditions, etc.
[0232] Furthermore, the above-described embodiments and modifications can be appropriately combined as long as the processing contents are not contradictory.
[0233] Furthermore, the above-mentioned "section, module, unit" can be read as "means" or "circuit", etc. For example, an acquisition section can be read as an acquisition means or an acquisition circuit. [Explanation of symbols]
[0234] 1. Information Processing Systems 100 Information processing device 121 Learning data storage unit 122 Model information storage unit 130 Control section 131 Acquisition Department 132 Generation part 133 Learning Department 134 Processing section 135 Provision Department 10 Terminal Equipment 50 Information provision device N Network
Claims
1. an acquisition unit that acquires a diffusion model, which is a model trained to gradually restore an image represented by text from a noise image, and which is trained to restore the image in response to attention based on the text, and an input text input by a user; a generation unit that generates a corresponding image corresponding to the input text by using the diffusion model and the input text acquired by the acquisition unit, and generates mask information of a target range indicated by the input text in the corresponding image based on attention used by the diffusion model when generating the corresponding image; An information processing device comprising:
2. The generation unit is A corresponding image corresponding to the input text is generated, and the mask information of the target range indicated by the token in the corresponding image is generated based on attention corresponding to each of the tokens included in the input text used by the diffusion model when generating the corresponding image.
2. The information processing apparatus according to claim 1,
3. The acquisition unit is acquiring designation information for designating one of the tokens included in the input text; The generation unit is Generate the mask information of the target range indicated by the one token in the corresponding image based on attention corresponding to the one token designated by the designation information among the tokens included in the input text.
3. The information processing apparatus according to claim 2.
4. The acquisition unit is obtaining designation information for designating a plurality of tokens among the tokens included in the input text; The generation unit is Generate the mask information of the target range indicated by the plurality of tokens in the corresponding image based on attention corresponding to each of the plurality of tokens designated by the designation information among the tokens included in the input text.
4. The information processing apparatus according to claim 3.
5. The generation unit is Generate the mask information of the target range corresponding to the logical sum of the plurality of tokens.
5. The information processing apparatus according to claim 4.
6. The generation unit is Generate the mask information of the target range corresponding to the logical product of the plurality of tokens.
5. The information processing apparatus according to claim 4.
7. The generation unit is Based on attention corresponding to each of the tokens, which are nouns included in the input text, the mask information of the target range indicated by the token in the corresponding image is generated.
3. The information processing apparatus according to claim 2.
8. The generation unit is Based on attention corresponding to each of the tokens, which are verbs included in the input text, the mask information of the target range indicated by the token in the corresponding image is generated.
3. The information processing apparatus according to claim 2.
9. The generation unit is A corresponding image corresponding to the input text is generated, and the mask information of the target range indicated by the input text is generated from the corresponding image based on attention at a predetermined stage during the generation process of the diffusion model.
2. The information processing apparatus according to claim 1,
10. a learning unit configured to learn the diffusion model, the diffusion model being a model trained to gradually restore the image indicated by the text from the noise image, and trained to restore the image in response to attention based on the text; The information processing apparatus according to claim 1 , further comprising:
11. a providing unit that provides a service using the mask information generated by the generating unit; The information processing apparatus according to claim 1 , further comprising:
12. The providing unit is The mask information generated by the generation unit is provided to the user.
12. The information processing apparatus according to claim 11 .
13. The providing unit is The mask information generated by the generation unit is transmitted to a terminal device used by the user.
13. The information processing apparatus according to claim 12.
14. 1. A computer-implemented information processing method, comprising: an acquisition step of acquiring a diffusion model, which is a model trained to gradually restore an image represented by text from a noise image, and which is trained to restore the image in response to attention based on the text, and an input text input by a user; a generation step of generating a corresponding image corresponding to the input text using the diffusion model and the input text acquired by the acquisition step, and generating mask information of a target range indicated by the input text in the corresponding image based on attention used by the diffusion model when generating the corresponding image; 13. An information processing method comprising:
15. an acquisition step of acquiring a diffusion model, which is a model trained to gradually restore an image represented by text from a noise image, and which is trained to restore the image in response to attention based on the text, and an input text input by a user; a generation step of generating a corresponding image corresponding to the input text using the diffusion model and the input text acquired by the acquisition step, and generating mask information of a target range indicated by the input text in the corresponding image based on attention used by the diffusion model when generating the corresponding image; An information processing program characterized by causing a computer to execute the above.
Citation Information
Patent Citations
Learned threshold token pruning for transformer neural networks
EP4095762A1
API detection device, API detection method, and program
WO2022249256A1
Image processing apparatus, image processing method, and program
JP2022014263A
Image processing apparatus, image processing method, and program
JP2023030850A
