IP Library › Granted Patent US 12,530,744
Granted Patent B2
US 12,530,744 · App. 18/554,960 · Granted Jan 20, 2026

Photo relighting and background replacement based on machine learning models

Inventors: Chloe LeGendre (Culver City, CA); Paul Debevec (Culver City, CA); Sean Ryan Francesco Fanello (San Francisco, CA); Rohit Kumar Pandey (Mountain View, CA); Sergio Orts Escolano (San Francisco, CA); Christian Haene (Berkeley, CA); Sofien Bouaziz (Los Gatos, CA)
Assignee: Google LLC
G06T5/50G06T7/194G06V10/56G06V10/60H04N5/272G06T2207/20221
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 12,530,744
App. No.
18/554,960
Filed
Oct 11, 2023
Granted
Jan 20, 2026
Kind
B2
Art Unit
2619
USPC
345/629
Abstract

Apparatus and methods related to applying lighting models to images are provided. An example method includes receiving, via a computing device, an image comprising a subject. The method further includes relighting, via a neural network, a foreground of the image to maintain a consistent lighting of the foreground with a target illumination. The relighting is based on a per-pixel light representation indicative of a surface geometry of the foreground. The light representation includes a specular component, and a diffuse component, of surface reflection. The method additionally includes predicting, via the neural network, an output image comprising the subject in the relit foreground. One or more neural networks can be trained to perform one or more of the aforementioned aspects.

Claims (57)

1 . A computer-implemented method, comprising:

receiving, by a computing device, an image comprising a subject;

relighting, by a neural network, a foreground of the image to maintain a consistent lighting of the foreground with a target illumination, wherein the relighting is based on a per- pixel light representation indicative of a surface geometry of the foreground, and wherein the light representation comprises a specular component, and a diffuse component, of surface reflection, and wherein the relighting comprises:

pre-filtering the target illumination to generate a plurality of candidate specular light maps,

predicting, by a specular net of the neural network, a per-pixel weight image based on the plurality of candidate specular light maps, and

generating a blended specular light map by taking a weighted sum of the plurality of candidate specular light maps using the per-pixel weight image; and

predicting, by the neural network, an output image comprising the subject in a relit foreground.

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

predicting, via the neural network, a reflectance field indicative of an appearance of the subject.

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

predicting, via the neural network and based on the foreground and the surface geometry, a per-pixel albedo image.

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

pre-filtering the target illumination, wherein the pre-filtering is based on a convolved specular light map and a convolved diffuse light map, and

wherein the specular component and the diffuse component of the surface reflection are determined by sampling the convolved specular light map and the convolved diffuse light map by using one or more of a surface normal or a reflection vector.

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

receiving, as input to the neural network, the plurality of candidate light maps, an albedo, and an initial foreground; and

predicting, via the neural network, the specular component of the per-pixel lighting representation.

6 . The computer-implemented method of claim 5 , wherein the relighting of the foreground further comprises:

concatenating the specular component, the diffuse component, and the albedo; and

predicting, via the neural network, the relighting of the foreground based on the concatenating.

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

estimating, via the neural network, the foreground of the image.

8 . The computer-implemented method of claim 7 , wherein the estimating of the foreground comprises estimating an alpha matte.

9 . The computer-implemented method of claim 1 , wherein the relighting of the foreground comprises inferring one or more of a low-frequency color or a shading under the target illumination.

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

predicting, via the neural network, a plurality of per-pixel surface normal representations.

11 . The computer-implemented method of claim 1 , wherein an initial illumination associated with the image is different from the target illumination.

12 . The computer-implemented method of claim 1 , wherein the target illumination is not based on controlled lighting.

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

identifying a target background, wherein the target illumination is associated with the target background, and wherein the predicting of the output image comprises compositing the relit foreground into the target background using an alpha matte.

14 . The computer-implemented method of claim 13 , wherein the image comprises the subject in an initial background that is different from the target background.

15 . The computer-implemented method of claim 13 , further comprising:

receiving a second input image comprising a second subject in a second initial background;

relighting a second foreground of the second image based on the target illumination; and

compositing the relit foreground, the second relit foreground and the target background, and

wherein the output image comprises the subject and the second subject in the target background.

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

training the neural network to receive a particular input image comprising a particular subject, and predict a particular output image comprising the particular subject in a relit foreground.

17 . The computer-implemented method of claim 16 , wherein the training of the neural network comprises training a ground truth alpha matte generation model.

18 . The computer-implemented method of claim 1 , wherein a training dataset comprises a plurality of images of subjects captured in a light stage computational illumination system, wherein the computational illumination system records one or more of: (i) a plurality of lighting conditions, (ii) a plurality of reflectance fields indicative of surface reflectance and surface geometry, or (iii) a plurality of alpha mattes.

19 . A computing device, comprising:

one or more processors; and

data storage, wherein the data storage has stored thereon computer-executable instructions that, when executed by the one or more processors, cause the computing device to carry out functions comprising:

receiving, by the computing device, an image comprising a subject;

relighting, by a neural network, a foreground of the image to maintain a consistent lighting of the foreground with a target illumination, wherein the relighting is based on a per-pixel light representation indicative of a surface geometry of the foreground, and wherein the light representation comprises a specular component, and a diffuse component, of surface reflection, and wherein the relighting comprises:

pre-filtering the target illumination to generate a plurality of candidate specular light maps,

predicting, by a specular net of the neural network, a per-pixel weight image based on the plurality of candidate specular light maps, and

generating a blended specular light map by taking a weighted sum of the plurality of candidate specular light maps using the per-pixel weight image; and

predicting, by the neural network, an output image comprising the subject in a relit foreground.

20 . An article of manufacture comprising one or more non-transitory computer readable media having computer-readable instructions stored thereon that, when executed by one or more processors of a computing device, cause the computing device to carry out functions comprising:

receiving, by the computing device, an image comprising a subject;

relighting, by a neural network, a foreground of the image to maintain a consistent lighting of the foreground with a target illumination, wherein the relighting is based on a per-pixel light representation indicative of a surface geometry of the foreground, and wherein the light representation comprises a specular component, and a diffuse component, of surface reflection, and wherein the relighting comprises:

pre-filtering the target illumination to generate a plurality of candidate specular light maps,

predicting, by a specular net of the neural network, a per-pixel weight image based on the plurality of candidate specular light maps, and

generating a blended specular light map by taking a weighted sum of the plurality of candidate specular light maps using the per-pixel weight image; and

predicting, by the neural network, an output image comprising the subject in a relit foreground.

21 . The computer-implemented method of claim 1 , wherein each candidate specular light map corresponds to a different Phong exponent.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 13, 2023
From: LEGENDRE, CHLOE; DEBEVEC, PAUL; FANELLO, SEAN RYAN FRANCESCO; PANDEY, ROHIT KUMAR; ESCOLANO, SERGIO ORTS; HAENE, CHRISTIAN; BOUAZIZ, SOFIEN
To: GOOGLE LLC
Reel/Frame 065213/0555 →
Continuity (1)
Related Publication 20240212106A1 · Jun 27, 2024
References Cited (36)
US 20150043806A1 · Karsch et al. · 2015 [cited by applicant]
US 20170262962A1 · Rad et al. · 2017 [cited by applicant]
US 20180253869A1 · Yumer et al. · 2018 [cited by applicant]
US 20180359416A1 · Hold-Geoffroy et al. · 2018 [cited by applicant]
US 20190164261A1 · Sunkavalli et al. · 2019 [cited by applicant]
US 20190340810A1 · Sunkavalli et al. · 2019 [cited by applicant]
US 20200074674A1 · Guo et al. · 2020 [cited by applicant]
US 20200153385A1 · Vincent et al. · 2020 [cited by applicant]
US 20200273237A1 · Sunkavalli et al. · 2020 [cited by applicant]
US 20200311946A1 · Price · 2020 [cited by examiner]
US 20200372284A1 · Rhemann et al. · 2020 [cited by applicant]
WO 2020068158 · 2020 [cited by applicant]
Wang, Zhibo, et al. “Single image portrait relighting via explicit multiple reflectance channel modeling.” ACM Transactions on Graphics (ToG) 39.6 (2020): 1-13. (Year: 2020). [cited by examiner]
International Searching Authority, International Search Report and Written Opinion mailed on Jan. 25, 2022, issued in connection with International Patent Application No. PCT/US2021/0296354, filed Apr. 28, 2021, 11 page… [cited by applicant]
Nestmeyer et al., “Learning Physics—guided Face Relighting under Directional Light,” CVPR, 2020, 10 pages. [cited by applicant]
Sun et al., “Single Image Portrait Relighting,” ACM Trans. Graph., arXiv:1905.00824v1, 2019, 12 pages, vol. 38, No. 4, Article 79. [cited by applicant]
Tsai et al., “Portrait Light: Enhancing Portrait Lighting with Machine Learning,” Google Research, Blog, Dec. 11, 2020, 9 pages. [cited by applicant]
Wang et al., “Single Image Portrait Relighting via Explicit Multiple Reflectance Channel Modeling,” ACM Transactions on Graphics, Nov. 26, 2020, 13 pages, vol. 39, No. 6. [cited by applicant]
Agusanto et al., “Photorealistic rendering for augmented reality using environment illumination,” Proceedings of the Second IEEE and ACM International Symposium on Mixed and Augmented Reality, Conference Paper, IEEE, 20… [cited by applicant]
Chen et al., “Live HDR+ and Dual Exposure Controls on Pixel 4 and 4a,” Google AI Blog, Aug. 3, 2020, 8 pages. [cited by applicant]
Debevec et al., “Acquiring the Reflectance Field of a Human Face,” SIGGRAPH 2000 Conference Proceedings, Jul. 2000, 12 pages. [cited by applicant]
Devries et al. “Learning Confidence for Out—0f-Distribution Detection in Neural Networks,” arXiv:1802.04865v1, Feb. 13, 2018, 12 pages. [cited by applicant]
Hu et al., “FC'4: Fully Convolutional Color Constancy with Confidence-Weighted Pooling,” IEEE Conference on Computer Vision and Pattern Recognition, 2017, pp. 330-339, XP033249369. [cited by applicant]
International Searching Authority, International Search Report and Written Opinion mailed Jul. 29, 2019, issued in connection with International Patent Application No. PCT/US2019/025205, filed Apr. 1, 2019, 15 pages. [cited by applicant]
International Searching Authority, International Search Report and Written Opinion mailed on Sep. 8, 2021, issued in connection with International Patent Application No. PCT/US2021/032734, filed on May 17, 2021, 17 page… [cited by applicant]
International Searching Authority, International Search Report and Written Opinion mailed on Jan. 25, 2022, issued in connection with International Patent Application No. PCT/US2021/029634, filed Apr. 28, 2021, 11 pages. [cited by applicant]
International Searching Authority, International Search Report and Written Opinion mailed on Jun. 28, 22, issued in connection with International Patent Application No. PCT/US2021/071986, filed Oct. 22, 2021, 15 pages. [cited by applicant]
Legendre et al., “Learning Illumination from Diverse Portraits,” arXiv:2008.02396v1, Aug. 5, 2020, 14 pages. [cited by applicant]
Pandey et al., “Total Relighting: Learning to Relight Portraits for Background Replacement,” ACM Transactions on Graphics, 2021, 21 pages, vol. 40, No. 4, Article 1. [cited by applicant]
Shashua et al., “The Quotient Image: Class-Based Re-rendering and Recognition With Varying Illuminations,” IEEE Transactions on Pattern Analysis and Machine Intelligence, IEEE Computer Society, USA, Feb. 2001, pp. 129-1… [cited by applicant]
Wang et al., “Face Relighting from a Single Image under Arbitrary Unknown Lighting Conditions,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Nov. 2009, pp. 1968-1984, vol. 31, No. 11. [cited by applicant]
Wen et al., “Face Relighting with Radiance Environment Maps,” Proceedings of the 2003 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Jun. 2003, pp. 158-165, vol. 2. [cited by applicant]
Wu et al., “One-shot Deep Neural Network for Pose and Illumination Normalization Face Recognition,” 2016 IEEE Conference on Multimedia and Expo (ICME), IEEE, Jul. 2016, 6 pages. [cited by applicant]
Xu et al., “Deep Image-Based Relighting from Optimal Sparse Samples,” ACM Transactions on Graphics, 2018, 13 pages, vol. 37, No. 4, Article 126. [cited by applicant]
Zhang et al., “Portrait Shadow Manipulation,” arXiv:2005.008925v2, ACM Transactions on Graphics, 2020, 14 pages, vol. 39, No. 4, Article 78. [cited by applicant]
Zhang, Richard, “Making Convolutional Networks Shift-Invariant Again,” arXiv:1904.11486v2, Jun. 9, 2019, 17 pages. [cited by applicant]