IP Library Granted Patent US 11,615,512
Granted Patent B2
US 11,615,512 · App. 17/189,478 · Granted Mar 28, 2023

Relighting system for single images

Inventors: Alexandros Neofytou (London, GB); Eric Chris Wolfgang Sommerlade (Oxford, GB); Sunando Sengupta (Reading, GB); Yang Liu (Reading, GB)
Assignee: Microsoft Technology Licensing, LLC
G06T5/005G06K9/6256G06N3/08G06T2207/20081G06T2207/20084
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,615,512
App. No.
17/189,478
Granted
Mar 28, 2023
Kind
B2
Abstract

In various embodiments, a computer-implemented method of training a neural network for relighting an image is described. A first training set that includes source images and a target illumination embedding is generated, the source images having respective illuminated subjects. A second training set that includes augmented images and the target illumination embedding is generated, where the augmented images corresponding to the source images. A first autoencoder is trained using the first training set to generate a first output set that includes estimated source illumination embeddings and first reconstructed images that correspond to the source images, the reconstructed images having respective subjects that are i) from the corresponding source image, and ii) illuminated based on the target illumination embedding. A second autoencoder is trained using the second training set to generate a second output set that includes estimated augmented illumination embeddings and second reconstructed images that correspond to the augmented images.

Claims (46)

1. A computer-implemented method of training a neural network for relighting an image, the method comprising:

generating a first training set that includes source images and a target illumination embedding, the source images having respective illuminated subjects;

generating a second training set that includes augmented images and the target illumination embedding, the augmented images corresponding to the source images;

training a first autoencoder using the first training set to generate a first output set that includes estimated source illumination embeddings and first reconstructed images that correspond to the source images, the first reconstructed images having respective subjects that are i) from the corresponding source image, and ii) illuminated based on the target illumination embedding;

training a second autoencoder using the second training set to generate a second output set that includes estimated augmented illumination embeddings and second reconstructed images that correspond to the augmented images, wherein the first and second autoencoders have a same structure and shared weights; and

wherein generating the second training set includes generating the augmented images from the source images by flipping, rotating, or color inverting the corresponding source image.

2. The computer-implemented method of claim 1 , wherein a loss function for the training of the first and second autoencoders includes minimizing a difference between the estimated source illumination embedding and the corresponding estimated augmented illumination embeddings.

3. The computer-implemented method of claim 2 , wherein:

the loss function represents the estimated source illumination embedding and the corresponding estimated augmented illumination embeddings using spherical harmonics; and

minimizing the difference between the estimated source illumination embedding and the corresponding estimated augmented illumination embeddings includes forcing representations of the target illumination embedding, the estimated source illumination embeddings, and the estimated augmented illumination embeddings to be converted to spherical harmonics.

4. The computer-implemented method of claim 2 , wherein:

generating the second training set includes generating an augmented image from a source image by flipping the source image horizontally or vertically; and

minimizing the difference between the estimated source illumination embedding and the corresponding estimated augmented illumination embedding includes flipping one of the estimated source illumination embedding and the corresponding estimated augmented illumination embedding in a manner similar to the augmented image.

5. The computer-implemented method of claim 2 , wherein:

generating the second training set includes generating an augmented image from a source image by rotating the source image; and

minimizing the difference between the estimated source illumination embedding and the corresponding estimated augmented illumination embedding includes rotating one of the estimated source illumination embedding and the corresponding estimated augmented illumination embedding in a manner similar to the augmented image.

6. The computer-implemented method of claim 2 , wherein:

generating the second training set includes generating an augmented image from a source image by color inverting the source image; and

minimizing the difference between the estimated source illumination embedding and the corresponding estimated augmented illumination embedding includes color inverting one of the estimated source illumination embedding and the corresponding estimated augmented illumination embedding in a manner similar to the augmented image.

7. The computer-implemented method of claim 6 , wherein generating the augmented image from the source image by color inverting comprises:

converting the source image from an RGB color space to CIELAB color space to generate the augmented image;

estimating depth of the augmented image using a pretrained depth prediction model;

separating a subject of the augmented image from a background of the augmented image using the estimated depth;

inverting a perceptual lightness channel of the subject of the augmented image using the estimated depth without inverting the perceptual lightness channel of the background.

8. The computer-implemented method of claim 1 , wherein the source images are selected from an unlabeled image dataset.

9. The computer-implemented method of claim 1 , the method further comprising:

training a third autoencoder using the first training set to generate a third training set that includes estimated source illumination embeddings and transformed images that correspond to the source images, the transformed images having respective subjects that i) are from the corresponding source image, and ii) illuminated based on the target illumination embedding;

training a fourth autoencoder using the third training set to generate third reconstructed images and reconstructed illumination embeddings, wherein the third and fourth autoencoders have a same structure and shared weights.

10. A computer-implemented method of training a neural network for relighting an image, the method comprising:

generating a first training set that includes source images and a target illumination embedding, the source images having respective illuminated subjects;

training a first autoencoder using the first training set to generate a second training set that includes estimated source illumination embeddings and transformed images that correspond to the source images, the transformed images having respective subjects that i) are from the corresponding source image, and ii) illuminated based on the target illumination embedding;

training a second autoencoder using the second training set to generate reconstructed images and reconstructed illumination embeddings; and

self-supervising the training of the first and second autoencoders using the source images and target illumination embedding as ground truths, wherein a loss function for the training of the first and second autoencoders includes i) mean absolute error loss between the source images and reconstructed images, ii) mean absolute error loss between the reconstructed illumination embeddings and the target illumination embedding, and ii) mean absolute loss of image gradient between the source images and reconstructed images.

11. The computer-implemented method of claim 10 , wherein the first and second autoencoders have a same structure and shared weights.

12. The computer-implemented method of claim 10 , wherein the target illumination embedding is a randomized illumination embedding.

13. The computer-implemented method of claim 10 , wherein the source images are selected from an unlabeled image dataset.

14. A computer-implemented method of relighting an input image, the method comprising:

receiving a single input image having an illuminated subject;

relighting the input image using a neural network and a target spherical harmonic lighting embedding to generate a relighted image having the subject of the single input image illuminated based on the target illumination embedding, the neural network having:

a first autoencoder trained using a first training set that includes source images and a target illumination embedding, the source images having respective illuminated subjects, the first autoencoder being trained to generate a first output set that includes estimated source illumination embeddings and first reconstructed images that correspond to the source images, the reconstructed images having respective subjects that are i) from the corresponding source image, and ii) illuminated based on the target illumination embedding, and

a second autoencoder trained using a second training set that includes augmented images and the target illumination embedding, the augmented images corresponding to the source images and being generated from the source images by flipping, rotating, or color inverting the corresponding source image, the second autoencoder being trained to generate a second output set that includes estimated augmented illumination embeddings and second reconstructed images that correspond to the augmented images, and the first and second autoencoders having a same structure and shared weights.

15. The computer-implemented method of claim 14 , further comprising receiving a data structure that represents the target spherical harmonic lighting embedding.

16. The computer-implemented method of claim 14 , further comprising:

receiving a reference image; and

generating a data structure that represents a reference spherical harmonic lighting embedding of the reference image using the neural network;

wherein relighting the source image comprises relighting the source image using the reference spherical harmonic lighting embedding as the target spherical harmonic lighting embedding.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 2, 2021
From: NEOFYTOU, ALEXANDROS; SOMMERLADE, ERIC CHRIS WOLFGANG; SENGUPTA, SUNANDO; LIU, YANG
To: MICROSOFT TECHNOLOGY LICENSING, LLC
Reel/Frame 055456/0710 →
Continuity (1)
Related Publication 20220284551A1 · Sep 8, 2022