# US 2021/0174513 A1 · Method and apparatus for semantic segmentation and depth completion using a convolutional neural network

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0174513 A1
- Document ID: US20210174513A1
- Status: Published application
- Kind: A1
- Application number: 16/707,404
- Filed: 2019-12-09
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: Naver Corporation
- Applicants: Naver Corporation
- Inventors: Boris Chidlovskii; Giorgio Giannone
- Web page: https://patentgrep.com/patent/US20210174513A1

## CPC

- G06T 7/11: Region-based segmentation
- G06T 7/174: involving the use of two or more images
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 20/20: Ensemble learning
- G06T 2207/10024: Color image
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computer-implemented method for generating a semantically segmented image and a depth completion image using a convolutional neural network (CNN) from an input visible image and/or an input depth image. A central component of the CNN for semantic segmentation and depth completion is a common representation that allows both tasks to be performed when given any of these combinations of input images (i) both an input visible image and an input depth image, (ii) only an input visible image, or (iii) only an input depth image.

## Claims

### Claim 1

A computer implemented method for training a convolutional neural network for semantic segmentation and depth completion of images using a training set of image pairs, with each image pair in the training set having a visible image (xi) and a corresponding depth image (di), where at least one of the visible image (xi) and the corresponding depth image (di) is semantically segmented, comprising:
(a) training a first subnetwork (S1) of the neural network, the first subnetwork (S1) being a first encoder-decoder network with: (i) an encoder branch that generates an outputted first feature map (xip) from a visible image (xi); and (ii) a decoder branch that generates a semantically segmented image ({circumflex over (x)}i) from an inputted first feature map (xir); wherein during training the encoder branch and the decoder branch of the first subnetwork (S1) are directly connected for setting the inputted first feature map (xir) as the outputted first feature map (xip);
(b) training a second subnetwork (S2) of the neural network, the second subnetwork (S2) being a second encoder-decoder network with: (i) an encoder branch of the second subnetwork (S2) generating an outputted second feature map (dip) from a depth image (di); and (ii) a decoder branch of the second subnetwork (S2) either generating a semantically segmented image or a depth image ({circumflex over (d)}i) from an inputted second feature map (dir); wherein during training the encoder branch and the decoder branch of the second subnetwork (S2) are directly connected for setting the inputted second feature map (dir) as the outputted second feature map (dip); and
(c) training a third subnetwork (S3) of the neural network arranged between the encoder branch and the decoder branch of the first subnetwork (S1) and the second subnetwork (S2) to reconstruct (i) the inputted first feature map (xir) from the outputted first feature map (xip) and (ii) the inputted second feature map (dir) from the outputted second feature map (dip),
wherein the third subnetwork S3 is trained to generate a common representation of the outputs reconstructed feature maps xr for visible images and dr for depth images, allowing either the view from the first subnetwork (S1) or the view from the second subnetwork (S2) to be reconstructed therefrom.

### Claim 2 (depends on 1)

The method of claim 1, wherein the third subnetwork (S3) comprises a multi-view autoencoder network with at least one hidden layer.

### Claim 3 (depends on 2)

The method of claim 2, wherein the encoder branch of the first subnetwork (S1) and the second subnetwork (S2) comprise convolution layers of one of atrous and dilated.

### Claim 4 (depends on 3)

The method of claim 3, wherein the training set of image pairs comprises a set of RGB-D images.

### Claim 5 (depends on 1)

The method of claim 1, wherein said training (a) further comprises learning parameters (θV) of the first subnetwork (S1).

### Claim 6 (depends on 5)

The method of claim 5, wherein said training (b) further comprises learning parameters (θD) of the second subnetwork (S2).

### Claim 7 (depends on 6)

The method of claim 6, wherein said training (c) further comprises refining parameters (θV) of the first subnetwork (S1) and parameters (θD) of the second subnetwork (S2).

### Claim 8 (depends on 1)

The method of claim 1, wherein a first loss function is associated with the first subnetwork (S1), a second loss function is associated with the second subnetwork (S2), and a third loss function is associated with the third subnetwork (S3), the first subnetwork (S1) being trained at said training (a) by minimizing the first loss function, the second subnetwork (S2) being trained at said training (b) by minimizing the first loss function, and the first subnetwork (S1), second subnetwork (S2) and third subnetwork (S3) being trained at said training (c) by minimizing a weighted sum of the first loss function, the second loss function and a third loss function.

### Claim 9

A computer-implemented method for semantic segmentation and/or depth completion of an inputted visible image and/or an inputted depth image, comprising:
accessing a convolutional neural network (CNN) for semantic segmentation and/or depth completion of images; and
performing semantic segmentation and/or depth completion of the inputted visible image and/or the inputted depth image using the CNN, comprising inputting a first subnetwork (S1) of the CNN with the inputted visible image and/or inputting a second subnetwork (S2) of the CNN with the inputted depth image,
wherein the CNN is trained using a training set of image pairs, with each image pair in the training set having a visible image (xi) and a corresponding depth image (di), where at least one of the visible image (xi) and the corresponding depth image (di) is semantically segmented, by:
(a) training the first subnetwork (S1) of the neural network, the first subnetwork (S1) being a first encoder-decoder network with: (i) an encoder branch that generates an outputted first feature map (xip) from a visible image (xi); and (ii) a decoder branch that generates a semantically segmented image ({circumflex over (x)}i) from an inputted first feature map (xir); wherein during training the encoder branch and the decoder branch of the first subnetwork (S1) are directly connected for setting the inputted first feature map (xir) as the outputted first feature map (xip);
(b) training the second subnetwork (S2) of the neural network, the second subnetwork (S2) being a second encoder-decoder network with: (i) an encoder branch of the second subnetwork (S2) generating an outputted second feature map (dip) from a depth image (di); and (ii) a decoder branch of the second subnetwork (S2) either generating a semantically segmented image or a depth image ({circumflex over (d)}i) from an inputted second feature map (dir); wherein during training the encoder branch and the decoder branch of the second subnetwork (S2) are directly connected for setting the inputted second feature map (dir) as the outputted second feature map (dip); and
(c) training a third subnetwork (S3) of the neural network arranged between the encoder branch and the decoder branch of the first subnetwork (S1) and the second subnetwork (S2) to reconstruct (i) the inputted first feature map (xir) from the outputted first feature map (xip) and (ii) the inputted second feature map (dir) from the outputted second feature map (dip);
wherein third subnetwork S3 is trained to generate a common representation of the outputs reconstructed feature maps xr for visible images and dr for depth images, allowing either the view from the first subnetwork (S1) or the view from the second subnetwork (S2) to be reconstructed therefrom.

### Claim 10 (depends on 9)

The method of claim 9, wherein the decoder branch of the second subnetwork (S2) generates a semantically segmented image from an inputted second feature map, and two semantically segmented images are produced at the respective outputs of the first subnetwork (S1) and the second subnetwork (S2).

### Claim 11 (depends on 9)

The method of claim 9, wherein the decoder branch of the second subnetwork (S2) generates a depth completion image from an inputted second feature map, and a semantically segmented image and a depth completion image are produced at the respective outputs of the first subnetwork (S1) and the second subnetwork (S2).

### Claim 12 (depends on 9)

The method of claim 9, wherein the third subnetwork (S3) comprises a multi-view autoencoder network with at least one hidden layer.

### Claim 13 (depends on 12)

The method of claim 12, wherein the encoder branch of the first subnetwork (S1) and the second subnetwork (S2) comprise convolution layers of one of atrous and dilated.

### Claim 14 (depends on 13)

The method of claim 13, wherein the training set of image pairs comprises a set of RGB-D images.

### Claim 15 (depends on 9)

The method of claim 9, wherein said training (a) further comprises learning parameters (θV) of the first subnetwork (S1).

### Claim 16 (depends on 15)

The method of claim 15, wherein said training (b) further comprises learning parameters (θD) of the second subnetwork (S2).

### Claim 17 (depends on 16)

The method of claim 16, wherein said training (c) further comprises refining parameters (θV) of the first subnetwork (S1) and parameters (θD) of the second subnetwork (S2).

### Claim 18 (depends on 9)

The method of claim 9, wherein a first loss function is associated with the first subnetwork (S1), a second loss function is associated with the second subnetwork (S2), and a third loss function is associated with the third subnetwork (S3), the first subnetwork (S1) being trained at said training (a) by minimizing the first loss function, the second subnetwork (S2) being trained at said training (b) by minimizing the first loss function, and the first subnetwork (S1), second subnetwork (S2) and third subnetwork (S3) being trained at said training (c) by minimizing a weighted sum of the first loss function, the second loss function and a third loss function.

### Claim 19

A computer-implemented method for generating a semantically segmented image and a depth completion image using a convolutional neural network (CNN) from an inputted visible image, comprising:
accessing from a memory the CNN having a first subnetwork (S1), a second subnetwork (S2) and a third subnetwork (S3); and
processing the inputted visible image using the first subnetwork (S1) of the CNN to produce a first runtime feature map (xip);
processing the first runtime feature map (xip) using the third subnetwork (S3) of the CNN to produce a second runtime feature map (xir) and a third runtime feature map (dir) from a common representation;
processing the second runtime feature map (xir) using the first subnetwork (S1) of the CNN to produce the semantically segmented image;
processing the third runtime feature map (dir) using the second subnetwork (S2) of the CNN to produce the depth image; and
outputting the semantically segmented image and the depth image;
wherein the CCN is trained to produce the common representation using a training set of image pairs, with each image pair in the training set having a visible image (xi) and a corresponding depth image (di), where at least one of the visible image (xi) and the corresponding depth image (di) is semantically segmented.

### Claim 20 (depends on 19)

The method of claim 19, wherein the CCN is trained by:
(a) training the first subnetwork (S1) of the neural network, the first subnetwork (S1) being a first encoder-decoder network with: (i) an encoder branch that generates an outputted first feature map (xip) from a visible image (xi); and (ii) a decoder branch that generates a semantically segmented image ({circumflex over (x)}i) from an inputted first feature map (xir); wherein during training the encoder branch and the decoder branch of the first subnetwork (S1) are directly connected for setting the inputted first feature map (xir) as the outputted first feature map (xip);
(b) training the second subnetwork (S2) of the neural network, the second subnetwork (S2) being a second encoder-decoder network with: (i) an encoder branch of the second subnetwork (S2) generating an outputted second feature map (dip) from a depth image (di); and (ii) a decoder branch of the second subnetwork (S2) either generating a semantically segmented image or a depth image ({circumflex over (d)}i) from an inputted second feature map (dir); wherein during training the encoder branch and the decoder branch of the second subnetwork (S2) are directly connected for setting the inputted second feature map (dir) as the outputted second feature map (dip); and
(c) training the third subnetwork (S3) of the neural network arranged between the encoder branch and the decoder branch of the first subnetwork (S1) and the second subnetwork (S2) to reconstruct (i) the inputted first feature map (xir) from the outputted first feature map (xip) and (ii) the inputted second feature map (dir) from the outputted second feature map (dip).
