# US 2022/0284640 A1 · End-to-end relighting of a foreground object technical

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

- Number: US 2022/0284640 A1
- Document ID: US20220284640A1
- Status: Published application
- Kind: A1
- Application number: 17/664,800
- Filed: 2022-05-24
- Published: 2022-09-08
- Earliest claimed: 2020-03-18
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Xin Sun; Ruben Villegas; Manuel Lagunas Arto; Jimei Yang; Jianming Zhang
- Web page: https://patentgrep.com/patent/US20220284640A1

## CPC

- G06T 11/00: Two-dimensional [2D] image generation
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 5/94: based on local image properties, e.g. for local contrast enhancement
- G06T 7/11: Region-based segmentation
- G06T 7/194: involving foreground-background segmentation
- G06T 7/90: Determination of colour characteristics
- G06T 15/50: Lighting effects
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30196: Human being; Person
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Introduced here are techniques for relighting an image by automatically segmenting a human object in an image. The segmented image is input to an encoder that transforms it into a feature space. The feature space is concatenated with coefficients of a target illumination for the image and input to an albedo decoder and a light transport detector to predict an albedo map and a light transport matrix, respectively. In addition, the output of the encoder is concatenated with outputs of residual parts of each decoder and fed to a light coefficients block, which predicts coefficients of the illumination for the image. The light transport matrix and predicted illumination coefficients are multiplied to obtain a shading map that can sharpen details of the image. Scaling the resulting image by the albedo map to produce the relight image. The relight image can be refined to denoise the relight image.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving an image including a foreground object and a background;
segmenting the foreground object relative to the background to produce a segmented image;
processing the segmented image with an encoder to convert the segmented image into a feature vector;
concatenating the feature vector with spherical harmonic coefficients of a target illumination for the image;
generating an albedo map influenced by the target illumination from the feature vector concatenated with the spherical harmonic coefficients of the target illumination utilizing and albedo decoder; and
generating a relight image of the image based on the albedo map influenced by the target illumination.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising generating a light transport matrix for the target illumination from the feature vector concatenated with the spherical harmonic coefficients of the target illumination utilizing a light transport decoder.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, further comprising predicting illumination coefficients for the image by concatenating a residual output of the albedo decoder and a residual output of the light transport decoder with the feature vector.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, further comprising generating a shading map of the image based on the light transport matrix and the illumination coefficients.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein generating the shading map comprises performing a matrix multiplication between the light transport matrix and the predicted illumination coefficients.

### Claim 6 (depends on 4)

The computer-implemented method of claim 4, wherein generating the relight image of the image is further based on the shading map.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising, prior to generating the relight image producing a refined image by processing the shading map through a refinement process to generate sharper shadows and reduce noise in the image.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein segmenting the foreground object comprises generating a segmentation mask for the foreground object in the image utilizing a neural network.

### Claim 9

A non-transitory computer-readable medium with instructions stored thereon that, when executed by a processor, cause the processor to perform operations comprising:
receiving an image including a foreground object and a background;
segmenting the foreground object relative to the background to produce a segmented image;
processing the segmented image with an encoder to convert the segmented image into a feature vector;
concatenating the feature vector with spherical harmonic coefficients of a target illumination for the image;
generating an albedo map influenced by the target illumination from the feature vector concatenated with the spherical harmonic coefficients of the target illumination utilizing and albedo decoder; and
generating a relight image of the image based on the albedo map influenced by the target illumination.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the operations further comprise generating a light transport matrix for the target illumination from the feature vector concatenated with the spherical harmonic coefficients of the target illumination utilizing a light transport decoder.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the operations further comprise predicting illumination coefficients for the image by concatenating a residual output of the albedo decoder and a residual output of the light transport decoder with the feature vector.

### Claim 12 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the operations further comprise generating a shading map of the image based on the light transport matrix and the illumination coefficients.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein generating the shading map comprises performing a matrix multiplication between the light transport matrix and the predicted illumination coefficients.

### Claim 14 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein generating the relight image of the image is further based on the shading map.

### Claim 15

A computing system comprising:
a memory device; and
at least one processor configured to cause the computing system to:
convert an image into a feature vector utilizing a neural network encoder;
predict an illumination coefficient of the image by concatenating the feature vector with spherical harmonic coefficients of a target illumination;
generate an albedo map influenced by the target illumination from the feature vector concatenated with the spherical harmonic coefficients of the target illumination utilizing an albedo decoder;
generate a shading map based on the predicted illumination coefficient; and
generate a relight image of the image based on the albedo map influenced by the target illumination and the shading map.

### Claim 16 (depends on 15)

The computing system of claim 15, wherein the at least one processor is configured to cause the computing system to generate a light transport matrix from the feature vector concatenated with the spherical harmonic coefficients of the target illumination utilizing a light transport decoder.

### Claim 17 (depends on 16)

The computing system of claim 16, wherein the at least one processor is configured to cause the computing system to generate the light transport matrix utilizing one or more skip links from residual blocks of the neural network encoder.

### Claim 18 (depends on 16)

The computing system of claim 16, wherein the at least one processor is configured to cause the computing system to generate the shading map by performing a matrix multiplication between the light transport matrix and the predicted illumination coefficients.

### Claim 19 (depends on 15)

The computing system of claim 15, wherein the at least one processor is configured to cause the computing system to generate the albedo map utilizing one or more skip links from residual blocks of the neural network encoder.

### Claim 20 (depends on 15)

The computing system of claim 15, wherein the at least one processor is configured to cause the computing system to determine the spherical harmonic coefficients of the target illumination by taking into account a bidirectional reflectance distribution function of one or more materials in the image.
