Learning device, mask generation device, learning method, and recording medium
The learning device and method address the expense of training data for amodal segmentation by using neural networks for object representation, reconstruction, and depth estimation, enabling effective amodal instance segmentation mask generation without supervised data, thus improving efficiency and cost-effectiveness.
Patent Information
- Application Number
- PCT/JP2023/007226
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-06
AI Technical Summary
The creation of training data for amodal segmentation is expensive, making it challenging to learn a model for generating amodal segmentation masks effectively.
A learning device and method that extracts object representations, reconstructs images with alpha masks, estimates depth, and combines these elements to generate a reconstructed image, allowing for parameter updates without supervised training data, using a neural network configuration for object expression extraction, reconstruction, and depth estimation.
Enables the generation of amodal instance segmentation masks without the need for expensive training data, accurately reflecting object context and depth, thereby improving the efficiency and cost-effectiveness of amodal segmentation tasks.
Smart Images

Figure JP2023007226_06092024_PF_FP
Abstract
Description
Learning device, mask generation device, learning method, and recording medium
[0001] The present disclosure relates to amodal segmentation.
[0002] Segmentation is known as one of the image recognition techniques using AI (Artificial Intelligence). In particular, the task of segmenting an image by estimating even hidden areas of objects is called amodal segmentation. In the fields of robot control and video surveillance, amodal segmentation is used to estimate the entire shape of an object hidden behind an object.
[0003] Patent Document 1 describes a technique for estimating the three-dimensional shape of a photographed object using machine learning (deep learning).
[0004] International Publication No. WO2019 / 035155
[0005] Training data is required to learn amodal segmentation, but the problem is that the cost of creating training data for amodal segmentation is high.
[0006] One objective of the present disclosure is to train a model that generates a mask for amodal segmentation without preparing training data.
[0007] In one aspect of the present disclosure, a learning device includes: an object representation extraction means for extracting an object representation of each object in an input image; an object reconstruction means for generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object; a depth estimation means for estimating the depth of each object based on the object representation of each object; an image combination means for generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object, and the depth of each object; a loss calculation means for calculating a loss based on the input image and the overall reconstructed image; and a parameter update means for updating parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss.
[0008] In another aspect of the present disclosure, a learning method executed by a computer includes: extracting an object representation of each object in an input image using an object representation extraction means; generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object using an object reconstruction means; estimating the depth of each object based on the object representation of each object using a depth estimation means; generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object, and the depth of each object; calculating a loss based on the input image and the overall reconstructed image; and updating parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss.
[0009] In yet another aspect of the present disclosure, a recording medium records a program that causes a computer to execute the following processes: extracting an object representation of each object in an input image using an object representation extraction means; generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object using an object reconstruction means; estimating the depth of each object based on the object representation of each object using a depth estimation means; generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object, and the depth of each object; calculating a loss based on the input image and the overall reconstructed image; and updating parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss.
[0010] 1 shows the concept of a learning device according to a first embodiment; FIG. 2 is a block diagram showing the hardware configuration of the learning device; FIG. 3 is a block diagram showing the functional configuration of the learning device; FIG. 4 is a flowchart of learning processing by the learning device; FIG. 5 is a block diagram showing the functional configuration of a learning device according to a modified example; FIG. 6 is a block diagram showing the functional configuration of a mask generation device according to the first embodiment; FIG. 7 is a flowchart of mask generation processing by the mask generation device; FIG. 8 is a block diagram showing the configuration of a learning device according to a second embodiment; and FIG. 9 is a flowchart of processing by the learning device according to the second embodiment.
[0011] Preferred embodiments of the present disclosure will now be described with reference to the drawings. First Embodiment [Learning Device] FIG. 1 shows the concept of a learning device according to a first embodiment. The learning device 100 learns a mask generation model for generating an amodal instance segmentation mask based on an input image. In this embodiment, the mask generation model is configured using a neural network. The trained mask generation model generated by the learning device 100 is used during inference to generate an amodal instance segmentation mask for an unknown target image.
[0012] 2 is a block diagram showing the hardware configuration of learning device 100. As shown in the figure, learning device 100 includes an interface (IF) 12, a processor 13, a memory 14, a recording medium 15, a database (DB) 16, a display unit 17, and an input unit 18.
[0013] The IF 12 acquires an input image from an external device. The input image is data for training a mask generation model by the training device 100, but is unsupervised data for which no teacher label is prepared. The IF 12 also outputs the mask generation model obtained by training to an external device.
[0014] The processor 13 is a computer such as a CPU (Central Processing Unit) and executes a pre-prepared program to control the entire learning device 100. The processor 13 may be a CPU, a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), an MPU (Micro Processing Unit), an FPU (Floating Point number Processing Unit), a PPU (Physics Processing Unit), a TPU (Tensor Processing Unit), a quantum processor, a microcontroller, or a combination thereof. The processor 13 executes the learning process described below.
[0015] The memory 14 is composed of a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The memory 14 stores various programs executed by the processor 13. The memory 14 is also used as a working memory while the processor 13 is executing various processes.
[0016] Recording medium 15 is a non-volatile, non-transitory recording medium such as a disk-shaped recording medium or semiconductor memory, and is configured to be detachable from learning device 100. Recording medium 15 records various programs executed by processor 13. When learning device 100 executes various processes, the programs recorded on recording medium 15 are loaded into memory 14 and executed by processor 13.
[0017] DB16 stores, as necessary, input images input through IF12 during learning, generated learned mask generation models, and the like.
[0018] Display unit 17 is configured with, for example, a liquid crystal display, etc. Input unit 18 includes, for example, a keyboard, a mouse, etc. Display unit 17 and input unit 18 are used, for example, by an operator of learning device 100 to input necessary operations and to display and view input images and generated masks.
[0019] (Functional Configuration) Fig. 3 is a block diagram showing the functional configuration of the learning device 100. Functionally, the learning device 100 includes an object representation extraction unit 21, an object reconstruction unit 22, a depth estimation unit 23, an image combination unit 24, and a parameter update unit 25. The object reconstruction unit 22 includes object reconstruction units 22a to 22c corresponding to objects A to C. The object representation extraction unit 21, the object reconstruction unit 22, and the depth estimation unit 23 are configured using neural networks.
[0020] An RGB image is input to the object representation extraction unit 21. In the example of FIG. 3, the input RGB image IP is an image including objects A to C. As shown in the figure, objects A to C partially overlap in the RGB image IP. Object C is at the back, object B is in front of object C, and object A is at the forefront. In the following description, when it is not necessary to distinguish between objects A to C, the subscripts of the reference numerals will be omitted. For example, when referring to the object reconstruction unit for object A, it will be referred to as "object reconstruction unit 22a," and when referring to the object reconstruction unit without specifying the object, it will be simply referred to as "object reconstruction unit 22." The same applies to the other components.
[0021] The object representation extraction unit 21 extracts object representations of the individual objects A to C from the input RGB image IP. The object representation is, for example, a feature vector of each object. The object representation of each object is data in which information such as the object's position, orientation, shape, and color is encoded. The object representation extraction unit 21 extracts object representations for each of the objects A to C and outputs them to the object reconstruction units 22a to 22c, respectively. The object representation extraction unit 21 also outputs the object representations for all of the objects A to C to the depth estimation unit 23.
[0022] The object reconstruction units 22a to 22c acquire object representations of objects A to C, respectively, and generate reconstructed images RPa to RPc and alpha masks Ma to Mc for each object. Specifically, the object reconstruction unit 22a reconstructs an image of object A based on the object representation of object A to generate a reconstructed image RPa. The object reconstruction unit 22a also generates an alpha mask Ma based on the reconstructed image RPa. The alpha mask Ma masks the area of the reconstructed image RPa other than the area of object A. Similarly, the object reconstruction unit 22b generates a reconstructed image RPb and an alpha mask Mb based on the object representation of object B. The object reconstruction unit 22c also generates a reconstructed image RPc and an alpha mask Mc based on the object representation of object C.
[0023] 3, for convenience of explanation, the number of object reconstructors 22a to 22c shown corresponds to the number of objects included in the RGB image IP (three in this example), but in reality, it is sufficient for one object reconstructor 22 to generate a reconstructed image and an alpha mask for each object. The object reconstructor 22 outputs the generated reconstructed field images RPa to RPc and alpha masks Ma to Mc to the image combination unit 24.
[0024] The depth estimation unit 23 estimates the depth of each object based on the object representations of objects A to C. As described above, information such as the object's position is encoded in the object representation, so the depth estimation unit 23 can extract depth information for each object from the object representation. Note that "depth" refers to the foreground-background relationship of each object in the image.
[0025] A specific example of processing by the depth estimation unit 23 will be described below. Let us assume that the number of objects is K. The depth estimation unit 23 receives K object representation vectors from the object representation extraction unit 21. Each object representation vector has d dimensions. The depth estimation unit 23 combines the K input object representation vectors into a single (K×d)-dimensional vector. The depth estimation unit 23 then inputs the generated single (K×d)-dimensional vector into a multi-layer perceptron (MLP) to obtain K outputs. The obtained K outputs are depth values for each of the K objects. In this case, the K output values are unnormalized numerical values, and the closer an object is to the foreground of the image, the larger the value. The K output values may be normalized using Softmax or the like. In the above example, K vectors are combined to form a (K×d)-dimensional vector, but instead, K vectors may be input individually to the MLP to estimate the depth of each object separately. The depth estimation unit 23 outputs the calculated depth to the image combination unit 24.
[0026] The image combining unit 24 generates a reconstructed image WRP by combining the reconstructed images RPa to RPc using the reconstructed images RPa to RPc of each object, the alpha masks Ma to Mc, and the depth for each object input from the depth estimation unit 23. Specifically, the image combining unit 24 weights the alpha masks Ma to Mc using the depth input from the depth estimation unit 23. The image combining unit 245 then combines the reconstructed images RPa to RPc using the weighted alpha masks Ma to Mc to generate the reconstructed image WRP. In the following description, the reconstructed images corresponding to individual objects will be referred to as "individual reconstructed images RP," and the reconstructed image combined by the image combining unit 24 will be referred to as the "whole reconstructed image WRP" to distinguish between the two.
[0027] Specifically, the image combination unit 24 calculates a weight value used to weight the alpha mask for each object based on the depth of each object. The depth estimation unit 23 calculates a weight value based on the depth of each object so that the alpha mask of an object located further back in the image has a smaller weight value and the alpha mask of an object located closer to the image has a larger weight value. The image combination unit 24 then synthesizes the reconstructed images using the alpha masks weighted using the calculated weight values to generate a reconstructed image WRP.
[0028] A specific example of processing by the image combination unit 24 will be described below. First, the image combination unit 24 corrects the alpha mask M using the depth of each object input from the depth estimation unit 23 as a weighting value. Now, assuming that there are K objects, the image combination unit 24 multiplies the entirety of each of the K objects by the K depths output from the depth estimation unit 23. Next, the image combination unit 24 normalizes the K alpha masks after multiplication by the depths for each pixel so that the sum of the values of the K alpha masks is 1, thereby generating K normalized alpha masks. In this way, an alpha mask weighted by the depth of each object and further normalized on a pixel-by-pixel basis is obtained.
[0029] Next, the image combining unit 24 generates an overall reconstructed image WRP by performing so-called alpha blending of the individual reconstructed image RP of each object with the normalized alpha mask M. Specifically, for the K objects, the image combining unit 24 multiplies the individual reconstructed image RP of each object by the value of the normalized alpha mask M, and then adds up the reconstructed images of each object to generate an overall recombined image WRP. The image combining unit 24 outputs the generated reconstructed image WRP to the parameter updating unit 25.
[0030] The parameter update unit 25 updates parameters included in the object representation extraction unit 21, the object reconstruction unit 22, and the depth estimation unit 23. As described above, in this embodiment, the object representation extraction unit 21, the object reconstruction unit 22, and the depth estimation unit 23 are configured by neural networks, and therefore the parameter update unit 25 updates parameters of one or more neural networks that configure the object representation extraction unit 21, the object reconstruction unit 22, and the depth estimation unit 23. Note that the object representation extraction unit 21, the object reconstruction unit 22, and the depth estimation unit 23 may be configured by machine learning models other than neural networks, and even in this case, the parameter update unit 25 only needs to update the parameters of each machine learning model.
[0031] Specifically, the RGB image IP and the reconstructed image WRP are input to the parameter update unit 25. The parameter update unit 25 calculates the loss between the RGB image IP and the reconstructed image WRP, and updates the parameters of the object representation extraction unit 21, the object reconstruction unit 22, and the depth estimation unit 23 based on the loss. Note that, for convenience of explanation, FIG. 3 shows that the parameter update unit 25 updates the parameters by outputting updated parameters U1 to U3 to the object representation extraction unit 21, the object reconstruction unit 22, and the depth estimation unit 23, respectively.
[0032] (Learning Process) Fig. 4 is a flowchart of the learning process by the learning device 100. This process is realized by the processor 13 shown in Fig. 2 executing a program prepared in advance and operating as each element shown in Fig. 3.
[0033] First, the object representation extraction unit 21 extracts an object representation for each object from the input RGB image IP (step S11). Next, the object reconstruction unit 22 generates a reconstructed image RP and an alpha mask M for each object from the object representation of each object (step S12). Furthermore, the depth estimation unit 23 estimates the depth of each object from the object representation of each object (step S13). Note that steps S12 and S13 may be executed in reverse order or in parallel.
[0034] Next, the image combining unit 24 weights the alpha mask M based on the depth of each object, and synthesizes the reconstructed images RP of each object using the weighted alpha mask to generate the overall reconstructed image WRP (step S14). Next, the parameter updating unit 25 calculates the loss from the input RGB image IP and the overall reconstructed image WRP (step S15), and updates the parameters of the object representation extraction unit 21, the object reconstruction unit 22, and the depth estimation unit 23 based on the obtained loss (step S16).
[0035] The learning device 100 repeats the processes of steps S11 to S16 described above until a predetermined learning end condition is met, and when the learning end condition is met (step S17: Yes), ends the learning process.
[0036] As described above, according to the learning device 100 of the first embodiment, the depth of each object is estimated based on the object representation of each object included in the input image, and the alpha mask is weighted based on the obtained depth to synthesize a reconstructed image of each object, so that an image can be reconstructed using an alpha mask that correctly reflects the anteroposterior relationship of the objects in the input image. Then, as will be described in detail later, during inference, the trained object representation extraction unit 21 and object reconstruction unit 22 are used as a trained mask generation model.
[0037] (Modification) Next, a modification of the learning device 100 of the first embodiment will be described. Fig. 5 is a block diagram showing the functional configuration of a learning device 100a according to a modification of the first embodiment. As can be seen by comparing with Fig. 3, the learning device 100a of the modification differs from the learning device 100 of the first embodiment in that a reconstructed image RP output from the object reconstruction unit 22 is input to the object representation extraction unit 21. However, in other respects, the learning device 100a is basically the same as the learning device 100 of the first embodiment.
[0038] In the learning device 100 of the first embodiment, the object representation extraction unit 21 extracts object representations from the RGB image IP, and the object reconstruction unit 22 generates a reconstructed image RP of each object based on the object representation. Here, because the RGB image IP is an image containing multiple objects, the object representation of each object output by the object representation extraction unit 21 contains some influence from other objects. Therefore, in this modification, the extraction of object representations by the object representation extraction unit 21 and the generation of reconstructed images by the object reconstruction unit 22 are performed in two stages.
[0039] Specifically, in the first stage, the object representation extraction unit 21 extracts object representations from the RGB image IP, and the object reconstruction unit 22 generates reconstructed images RPa-RPc of each object based on the object representations. This process is similar to that of the learning device 100 of the first embodiment. Next, in the second stage, as indicated by arrow 80 in the figure, the reconstructed images RPa-RPc of each object generated by each object reconstruction unit 22 are individually input to the object representation extraction unit 21, and the object representation extraction unit 21 generates individual object representations based on the reconstructed images RPa-RPc for each object. Here, the reconstructed images RPa-RPc output from each object reconstruction unit 22a-22c are basically images that include only the object representations of the individual objects, and the influence of other objects is smaller than that of the RGB image IP. Therefore, by individually extracting object representations from each of the reconstructed images RPa-RPc, the object representation extraction unit 21 can generate reconstructed images RPa-RPc in which the influence of other objects is sufficiently reduced. As a result, the object reconstructor 22 can generate alpha masks Ma to Mc in which the influence of other objects has been sufficiently reduced.
[0040] In this way, in the learning device 100a according to the modified example, the reconstructed image RP and the alpha mask M can be refined by recursively inputting each reconstructed image RP output by the object reconstruction unit 22 into the object representation extraction unit 21 to obtain the object representation again. Note that the second-stage processing may be performed multiple times. In other words, the accuracy of the reconstructed image RP and the alpha mask M may be improved by repeatedly inputting the reconstructed image RP generated by the object reconstruction unit 22 into the object representation extraction unit 21 multiple times.
[0041] [Mask Generation Device] Next, a mask generation device (inference device) according to the first embodiment will be described. Fig. 6 is a block diagram showing the functional configuration of a mask generation device 200 according to the first embodiment. Note that the hardware configuration of the mask generation device is basically the same as the configuration of the learning device 100 shown in Fig. 2, so a description thereof will be omitted.
[0042] As shown in Fig. 6, the mask generation device 200 includes an object representation extraction unit 21 and an object reconstruction unit 22. Here, the object representation extraction unit 21 and the object reconstruction unit 22 have been trained using the above-mentioned learning device 100 or 100a. In the example of Fig. 6, the target image OP from which the mask is generated includes three objects, and therefore three object reconstruction units 22a to 22c are illustrated for convenience of explanation, but in practice, it is sufficient to use one object reconstruction unit 22 to reconstruct each of the objects included in the target image OP.
[0043] During inference, i.e., during mask generation, the mask generation device 200 first generates, as a first step, a reconstructed image RP of each object from a target image OP containing multiple objects, and then, as a second step, generates an alpha mask M from the reconstructed image RP of each object.
[0044] In detail, in the first step, an unknown target image OP is input to an object representation extraction unit 21. The object representation extraction unit 21 extracts an object representation for each object included in the target image OP and outputs the extracted representation to an object reconstruction unit 22. The object reconstruction unit 22 generates reconstructed images RPa to RPc from the object representation of each object. Here, the object reconstruction unit 22 has already learned through the above-mentioned learning process so that it can reconstruct each object with high accuracy, and therefore the obtained reconstructed images RPa to RPc are images in which each object is individually extracted with high accuracy from the target image OP.
[0045] Next, in the second step, the obtained reconstructed image RP of each object is then individually input to the object representation extraction unit 21. The object representation extraction unit 21 individually extracts an object representation from each reconstructed image RP and outputs it to the object reconstruction unit 22. As a result, the object reconstruction unit 22 individually creates and outputs a reconstructed image RP and an alpha mask M for each object. The alpha mask M created in this way also includes the shape of hidden regions of the object in the target image, and can be used as a mask for amodal instance segmentation.
[0046] (Mask Generation Processing) Fig. 7 is a flowchart of the mask generation processing by the mask generation device 200. This processing is realized by the processor 13 shown in Fig. 2 executing a program prepared in advance and operating as each element shown in Fig. 6.
[0047] First, the object representation extraction unit 21 extracts an object representation for each object from the input target image OP (step S21). Next, the object reconstruction unit 22 generates a reconstructed image RP and an alpha mask M for each object from the object representation of each object (step S22). Next, the reconstructed images RP for each object are input separately to the object representation extraction unit 21, and the object representation extraction unit 21 extracts an object representation from the reconstructed image RP for each object (step S23). Next, the object reconstruction unit 22 generates and outputs a reconstructed image RP and an alpha mask M from the object representation of each object (step S24). Then, the processing ends.
[0048] As described above, the mask generation device 200 of the first embodiment can generate an alpha mask from an unknown target image OP containing a mixture of multiple objects by using the object representation extraction unit 21 and the object reconstruction unit 22 that have been trained by the learning device 100 or 100a. The alpha mask generated in this manner also represents the shapes of hidden regions of objects included in the target image OP, and can be used as a mask for amodal instance segmentation.
[0049] (Modifications) (1) In the mask generation process shown in FIG. 7, the process of steps S21 to S24 may be repeated multiple times to improve the accuracy of the mask that is finally output.
[0050] (2) In the above example, in step S23, the mask generation device 200 inputs the reconstructed image for each object to the object representation extraction unit 21 trained by the learning device 100 or 100a to generate an alpha mask. However, the alpha mask may be generated by inputting the image to a different object representation extraction unit. In steps S21 and S22, the reconstructed image of each object in the target image is generated with high accuracy using the trained object representation extraction unit 21 and object reconstruction unit 22. Therefore, it is possible to generate a highly accurate amodal instance segmentation mask even when using a normal object representation extraction model.
[0051] (3) In the above example, the object reconstructing unit 22 generates a reconstructed image of an RGB image, but the object reconstructing unit 22 may output images in other formats, such as optical flow or depth images including depth information. In that case, in steps S23 and S24, a mask may be generated using a model that generates a mask from an image in those other formats, instead of the object representation extracting unit 21.
[0052] 8 is a block diagram showing the configuration of a learning device according to the second embodiment. A learning device 70 according to the second embodiment includes an object representation extraction unit 71, an object reconstruction unit 72, a depth estimation unit 73, an image combination unit 74, a loss calculation unit 75, and a parameter update unit 76.
[0053] FIG. 9 is a flowchart of processing by the learning device 70 according to the second embodiment. The object representation extraction means 71 extracts an object representation of each object in the input image (step S71). The object reconstruction means 72 generates an individual reconstructed image of each object and an alpha mask for each object based on the object representation of each object (step S72). The depth estimation means 73 estimates the depth of each object based on the object representation of each object (step S73). The image combination means 74 generates an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask for each object, and the depth of each object (step S74). The loss calculation means 75 calculates the loss based on the input image and the overall reconstructed image (step S75). The parameter update means 76 updates the parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss (step S76).
[0054] According to the learning device 70 of the second embodiment, it is possible to learn a model that generates a mask for amodal segmentation without preparing training data.
[0055] A part or all of the above-described embodiments can be described as, but not limited to, the following supplementary notes.
[0056] (Supplementary Note 1) A learning device comprising: an object representation extraction means for extracting an object representation of each object in an input image; an object reconstruction means for generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object; a depth estimation means for estimating the depth of each object based on the object representation of each object; an image combination means for generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object, and the depth of each object; a loss calculation means for calculating a loss based on the input image and the overall reconstructed image; and a parameter update means for updating parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss.
[0057] (Supplementary Note 2) The image combining means is a learning device according to Supplementary Note 1, which calculates a weight value for each object based on the depth of each object, weights an alpha mask of each object using the weight value, and alpha-blends the individual reconstructed images of each object using the weighted alpha mask to generate the overall reconstructed image.
[0058] (Supplementary Note 3) The learning device according to Supplementary Note 2, wherein the image combining means calculates the weights based on the depth of each object so that the weight value is smaller for objects further back in the image and larger for objects closer to the image.
[0059] (Supplementary Note 4) The learning device according to Supplementary Note 3, wherein the image combining means normalizes the weight values of each alpha mask based on the weight values for each object so that the sum of the weight values for each object for each pixel in the alpha mask of each object is 1.
[0060] (Appendix 5) The learning device according to Appendix 1, wherein the object reconstruction means inputs the generated individual reconstructed image of each object to the object representation extraction means, and regenerates the individual reconstructed image of each object based on the extracted object representation of each object.
[0061] (Supplementary Note 6) A mask generation device comprising an object representation extraction means and an object reconstruction means that have been trained by the learning device of Supplementary Note 1, wherein the object representation extraction means extracts an object representation of each object in a target image, the object reconstruction means generates an individual reconstructed image for each object based on the extracted object representation of each object, and inputs the generated individual reconstructed image for each object individually to the object representation extraction means, the object representation extraction means extracts an object representation for each object from the individually input individual reconstructed image for each object, and the object reconstruction means generates and outputs an alpha mask for each object from the object representation for each object.
[0062] (Supplementary Note 7) A learning method executed by a computer, comprising: an object representation extraction means extracting an object representation of each object in an input image; an object reconstruction means generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object; a depth estimation means estimating the depth of each object based on the object representation of each object; generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object, and the depth of each object; calculating a loss based on the input image and the overall reconstructed image; and updating parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss.
[0063] (Supplementary Note 8) A recording medium having recorded thereon a program that causes a computer to execute the following processes: extracting an object representation of each object in an input image using an object representation extraction means; generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object using an object reconstruction means; estimating the depth of each object based on the object representation of each object using a depth estimation means; generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object, and the depth of each object; calculating a loss based on the input image and the overall reconstructed image; and updating parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss.
[0064] Although the present disclosure has been described above with reference to the embodiments and examples, the present disclosure is not limited to the above-described embodiments and examples. Various modifications that can be understood by a person skilled in the art can be made to the configuration and details of the present disclosure within the scope of the present disclosure.
[0065] 13 Processor 21 Object representation extraction unit 22, 22a to 22c Object reconstruction unit 23 Depth estimation unit 24 Image combination unit 25 Parameter update unit 100 Learning device 200 Model generation device
Claims
1. A learning device comprising: an object representation extraction means for extracting an object representation of each object in an input image; an object reconstruction means for generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object; a depth estimation means for estimating a depth of each object based on the object representation of each object; an image combination means for generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object, and the depth of each object; a loss calculation means for calculating a loss based on the input image and the overall reconstructed image; and a parameter update means for updating parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss.
2. The learning device of claim 1, wherein the image combination means calculates a weighting value for each object based on the depth of each object, weights the alpha mask of each object using the weighting value, and alpha-blends the individual reconstructed images of each object using the weighted alpha mask to generate the overall reconstructed image.
3. A learning device according to claim 2, wherein the image combining means calculates the weights based on the depth of each object so that the weight value is smaller for objects that are further back in the image and larger for objects that are closer to the image.
4. A learning device as described in claim 3, wherein said image combining means normalizes the weight values of each alpha mask based on the weight values for each object so that the sum of the weight values for each object for each pixel in the alpha mask of each object is 1.
5. The learning device according to claim 1, wherein the object reconstructing means inputs the generated individual reconstructed image of each object to the object representation extracting means, and regenerates an individual reconstructed image of each object based on the extracted object representation of each object.
6. A mask generating device comprising an object representation extraction means and an object reconstruction means which have been trained by the learning device of claim 1, wherein the object representation extraction means extracts an object representation of each object in a target image, the object reconstruction means generates an individual reconstructed image for each object based on the extracted object representation of each object, and inputs the generated individual reconstructed image for each object individually to the object representation extraction means, the object representation extraction means extracts an object representation for each object from the individual reconstructed image for each object which has been individually input, and the object reconstruction means generates and outputs an alpha mask for each object from the object representation for each object.
7. A learning method executed by a computer, comprising: an object representation extraction means extracting an object representation of each object in an input image; an object reconstruction means generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object; a depth estimation means estimating the depth of each object based on the object representation of each object; generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object and the depth of each object; calculating a loss based on the input image and the overall reconstructed image; and updating parameters of the object representation extraction means, the object reconstruction means and the depth estimation means based on the loss.
8. A recording medium having recorded thereon a program that causes a computer to execute the following processes: extracting an object representation of each object in an input image using an object representation extraction means; generating an individual reconstructed image of each object and an alpha mask of each object based on the object representation of each object using an object reconstruction means; estimating the depth of each object based on the object representation of each object using a depth estimation means; generating an overall reconstructed image by reconstructing the input image based on the individual reconstructed image of each object, the alpha mask of each object, and the depth of each object; calculating a loss based on the input image and the overall reconstructed image; and updating parameters of the object representation extraction means, the object reconstruction means, and the depth estimation means based on the loss.
Citation Information
Patent Citations
Signal processing apparatus, signal processing method, output apparatus, output method, and program
JP2014063360A
Learning program, learning device and learning method
JP2020113083A
State determination device and state determination method
JP2021096581A
Cited By
Information processing device, information processing method, and program
JP2026137530A
