IP Library Granted Patent US 12682557
Granted Patent B2
US 12682557 · App. 18/601,435 · Granted Jul 14, 2026

Scene re-lighting using direct shading control

Inventors: Peter Koppany Kocsis (Josef-Zauser-Weg, DE); Yannick Hold-Geoffroy (Quebec City, CA); Julien Olivier Victor Philip (London, GB); Kalyan K Sunkavalli (Saratoga, CA)
Assignee: ADOBE INC.
G06T15/80G06T7/50G06T15/04G06T15/506G06T15/60G06T2207/20081
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 12682557
App. No.
18/601,435
Granted
Jul 14, 2026
Kind
B2
Abstract

A method, apparatus, non-transitory computer readable medium, apparatus, and system for scene re-lighting using direct shading control include obtaining an input image and a lighting direction indicator that describes a lighting direction. A direct shading map is generated based on the input image and the lighting direction indicator and a shaded image is generated depicting an object from the input image with shading consistent with the lighting direction based on the shading map.

Claims (48)

1 . A method comprising:

obtaining an input image and a lighting direction indicator that describes a lighting direction;

generating, using a direct shading model, a direct shading map based on the input image and the lighting direction indicator; and

generating, using an image generation model, a shaded image depicting an object from the input image with shading consistent with the lighting direction based on the direct shading map, wherein generating the shaded image comprises performing a reverse diffusion process using the direct shading map as a control guidance.

2 . The method of claim 1 , wherein generating the direct shading map comprises:

encoding the input image to obtain image features; and

projecting the image features in a depth dimension to obtain a three dimensional (3D) feature grid, wherein the direct shading map is based on the 3D feature grid.

3 . The method of claim 2 , further comprising:

generating a depth map based on the input image, wherein the 3D feature grid is based on the depth map.

4 . The method of claim 2 , further comprising:

generating a density grid based on the 3D feature grid.

5 . The method of claim 4 , further comprising:

generating a shading input based on the density grid, wherein the shading input includes a shadow map, a normal map, an N-dot-L map, or any combination thereof, and wherein the direct shading map is generated based on the shading input.

6 . The method of claim 4 , further comprising:

generating a coarse shading map based on the density grid; and

refining the coarse shading map based on the input image to obtain the direct shading map.

7 . The method of claim 1 , wherein generating the shaded image comprises:

encoding, using a residual control encoder, the direct shading map to obtain lighting control information, wherein the shaded image is generated based on the lighting control information.

8 . The method of claim 7 , wherein generating the shaded image comprises:

obtaining a normal map, wherein the lighting control information is generated based on the normal map.

9 . The method of claim 7 , wherein:

the residual control encoder is trained based on an output of a residual control decoder that reconstructs an input of the residual control encoder.

10 . The method of claim 1 , wherein:

the image generation model is trained to generate images depicting an element of a training image with shading based on a training direct shading map.

11 . A method for training a machine learning model, comprising:

obtaining a training set including a training image and a direct shading map for the training image;

encoding, using a residual control encoder, the direct shading map to obtain an encoder output;

decoding, using a residual control decoder, the encoder output to obtain a reconstructed shading map; and

training, using the training set, an image generation model to generate images depicting an object from the training image with shading based on the direct shading map, wherein the image generation model is separate from the residual control encoder and the residual control decoder.

12 . The method of claim 11 , wherein obtaining the training set comprises:

generating, using a direct shading model, the direct shading map based on the training image.

13 . The method of claim 12 , further comprising:

training the direct shading model to generate the direct shading map based on the training image.

14 . The method of claim 12 , further comprising:

extracting a lighting direction from the training image, wherein the direct shading map is based on the lighting direction.

15 . The method of claim 11 , wherein training the image generation model comprises:

computing a reconstruction loss based on the reconstructed shading map and the direct shading map, wherein the image generation model is updated based on the reconstruction loss.

16 . An apparatus comprising:

at least one processor;

at least one memory storing instructions executable by the at least one processor;

a direct shading model comprising parameters stored in the at least one memory, wherein the direct shading model is configured to generate a direct shading map based on an input image and a lighting direction indicator that describes a lighting direction; and

an image generation model comprising parameters stored in the at least one memory, wherein the image generation model is configured to generate a shaded image depicting an object from the input image with shading consistent with the lighting direction based on the direct shading map by performing a reverse diffusion process using the direct shading map as control guidance.

17 . The apparatus of claim 16 , wherein:

the image generation model comprises a residual control encoder trained to generate lighting control information for an image generator.

18 . The apparatus of claim 16 , wherein:

the direct shading model comprises a density network trained to generate a density grid based on 3D features of the input image.

19 . The apparatus of claim 18 , wherein:

the direct shading model comprises a shading network trained to generate the direct shading map based on the density grid.