# US 2026/0203923 A1 · Monocular depth and optical flow estimation using diffusion models

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

- Number: US 2026/0203923 A1
- Document ID: US20260203923A1
- Status: Published application
- Kind: A1
- Application number: 19/150,801
- Filed: 2024-01-26
- Published: 2026-07-16
- Earliest claimed: 2023-01-27
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Saurabh SAXENA; Mohammad NOROUZI; David James FLEET; Abhishek KAR; Charles Irwin HERRMANN; Junhwa HUR; Deqing SUN
- Web page: https://patentgrep.com/patent/US20260203923A1

## CPC

- G06T 7/50: Depth or shape recovery
- G06T 7/55: from multiple images
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 20/20: Ensemble learning
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 2207/10024: Color image
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T 2207/20028: Bilateral filtering
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20132: Image cropping
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Improved methods are provided for generating, via a noise-diffusion iterative process, depth maps or optical flow maps from input images. Also provided are improved methods for training the machine learning model(s) employed in the iterative process and for augmenting die set of training data used to train such models. By translating the depth or optical flow map prediction process into the noise diffusion context, improved performance with respect to compute cost, training data, requirements, model size, and output quality are obtained. Additionally, the noise diffusion context allows models trained as described herein to generate maps de novo from target color images and/or to begin from initial ‘guess’ maps (e.g., noisy maps, maps containing holes) when generating improved output maps, natively incorporating the imperfect prior information represented by such initial maps.

## Claims

### Claim 1

A computer-implemented method comprising:
training a machine learning model to predict depth maps for color images via an iterative diffusion inference process, wherein training the machine learning model comprises:
adding noise to a first depth map to generate a second depth map, wherein the first depth map represents depth across a first scene depicted in a first color image;
applying the first color image and the second depth map to the machine learning model to generate a third depth map;
based on the third depth map, generating a plurality of loss values; and
updating the machine learning model based on the plurality of loss values.

### Claim at position 2

2-3. (canceled)

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein generating the plurality of loss values comprises generating a plurality of L1 loss values between the third depth map and the first depth map or between the third depth map and the noise added to the first depth map to generate the second depth map.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
training a precursor machine learning model to predict restored color images for degraded color images via an iterative diffusion inference process, wherein training the precursor machine learning model comprises:
adding noise to a first source color image to generate a second source color image;
applying the second source color image and a third source color image to the precursor machine learning model to generate a fourth source color image, wherein the third source color image is a degraded version of the first source color image that has been degraded by at least one of: (i) being cropped, (ii) being decolorized, (iii) having had image compression artifacts added thereto, or (iv) having had one or more regions of missing pixels added thereto; and
updating the precursor machine learning model based on a plurality of loss values generated based on differences between the fourth source color image and the first source color image; and
modifying the precursor machine learning model to receive an input color image and an input depth map and to generate therefrom an output depth map based on the input depth map and conditioned on the input color image, wherein training the machine learning model to predict depth maps for color images via the iterative diffusion inference process comprises using the modified precursor machine learning model as an initial state for the machine learning model.

### Claim at position 5

6-7. (canceled)

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein training the machine learning model further comprises:
prior to adding noise to the first depth map to generate the second depth map, filling in at least one hole in the first depth map.

### Claim 9

(canceled)

### Claim 10 (depends on 8)

The computer-implemented method of claim 8, wherein filling in at least one hole in the first depth map comprises (i) identifying, based on the first color image, a region of the first depth map that represents a sky and (ii) filling in pixels of the region of the first depth map that represents the sky with a specified depth value.

### Claim at position 9

11-12. (canceled)

### Claim 13 (depends on 1)

The computer-implemented method of claim 1, wherein training the machine learning model to predict depth maps for color images via the iterative diffusion inference process comprises:
training the machine learning model to predict log-distance metric depth maps for color images via the iterative diffusion inference process, wherein the first depth map is a first log-distance depth map, wherein the second depth map is a second log-distance depth map, wherein the first log-distance depth map represents the logarithm of depth across the first scene depicted in the first color image, and wherein the third depth map is a third log-distance depth map.

### Claim at position 11

14-19. (canceled)

### Claim 20 (depends on 13)

The computer-implemented method of claim 13, further comprising determining the first log-distance depth map from a source distance depth map by:
determining a first intermediate depth map by dividing the source distance depth map by a minimum distance of the source distance depth map;
determining a second intermediate depth map by determining a logarithm of the first intermediate depth map;
determining a third intermediate depth map by dividing the second intermediate depth map by a logarithm of a ratio of a maximum distance of the source distance depth map and the minimum distance of the source distance depth map; and
normalizing the third intermediate depth map to a finite range of values centered on zero.

### Claim at position 13

21-24. (canceled)

### Claim 25 (depends on 1)

The computer-implemented method of claim 1, wherein training the machine learning model to predict depth maps for color images via the iterative diffusion inference process comprises training the machine learning model to predict metric depth maps for color images and associated field of view (FOV) measurements via the iterative diffusion inference process, wherein applying the first color image and the second depth map to the machine learning model to generate the third depth map comprises applying the first color image, a first FOV measurement, and the second depth map to the machine learning model to generate a third depth map, and wherein the first FOV measurement represents an angular field of view across at least one dimension of the first color image.

### Claim 26 (depends on 25)

The computer-implemented method of claim 25, further comprising:
training a precursor machine learning model to predict metric depth maps for color images via an iterative diffusion inference process; and
augmenting the trained precursor machine learning model to receive FOV measurements as inputs in addition to color images and depth maps, wherein training the machine learning model to predict metric depth maps comprises training the trained, augmented precursor machine learning model.

### Claim 27 (depends on 26)

The computer-implemented method of claim 26, wherein augmenting the trained precursor machine learning model to receive FOV measurements as inputs in addition to color images and depth maps comprises:
adding a sinusoidal positional embedding of the FOV measurement input; and
adding a linear projection of outputs of the sinusoidal positional embedding to one or more layers of the trained precursor machine learning model.

### Claim 28 (depends on 25)

The computer-implemented method of claim 25, wherein the first FOV measurement represents a tangent function of the angular field of view across at least one dimension of the first color image.

### Claim 29

(canceled)

### Claim 30 (depends on 25)

The computer-implemented method of claim 25, wherein training the machine learning model to predict metric depth maps for color images via the iterative diffusion inference process comprises using an augmented training dataset to train the machine learning model, wherein the augmented training dataset includes the first depth map and the first color image, and wherein the method further comprises augmenting a source training dataset to generate the augmented training dataset by at least one of cropping or un-cropping a source depth map and a source color image in at least one of a vertical direction or a horizontal direction to generate the first depth map and the first color image.

### Claim 31

(canceled)

### Claim 32 (depends on 30)

The computer-implemented method of claim 30, wherein un-cropping the source depth map and the source color image in at least one of a vertical direction or a horizontal direction comprises padding the source depth map and the source color image with noise in at least one of the vertical direction or the horizontal direction.

### Claim 33

(canceled)

### Claim 34 (depends on 1)

The computer-implemented method of claim 1, wherein training the machine learning model to predict depth maps for color images via the iterative diffusion inference process comprises training the machine learning model to predict metric depth maps for color images and associated noise inputs via the iterative diffusion inference process, wherein applying the first color image and the second depth map to the machine learning model to generate a third depth map comprises applying the first color image, a first noise estimate, and the second depth map to the machine learning model to generate a third depth map, wherein the first noise estimate represents an amount of noise added to the first depth map to generate the second depth map, and wherein the iterative diffusion inference process additionally comprises:
determining a weighted combination of (i) the first depth map and (ii) the noise added to the first depth map to generate the second depth map, wherein generating the plurality of loss values comprises determining pixel-wise differences between the weighted combination and the third depth map to generate the plurality of loss values.

### Claim at position 24

35-38. (canceled)

### Claim 39

A computer-implemented method comprising:
using a machine learning model to predict a first target depth map for a target color image via an iterative diffusion inference process by, for a plurality of iterations:
applying the target color image and a respective input depth map estimate to the machine learning model to generate a respective output depth map, wherein the input depth map of a first iteration of the plurality of iterations is a randomly or pseudo-randomly generated depth map of noise, wherein the input depth map for each iteration of the plurality of iterations other than the first iteration is the output depth map of an immediately preceding iteration with an amount of noise added thereto, and wherein the first target depth map is the output depth map of a final iteration of the plurality of iterations.

### Claim 40 (depends on 39)

The computer-implemented method of claim 39, further comprising generating a novel view of a target scene depicted in the target color image by:
using the first target depth map and the target color image to render an alternative color image of the target scene, wherein the alternative color image includes holes representing aspects of the target scene that are occluded from view in the target color image;
using the first target depth map to render an alternative depth map of the target scene as viewed from a perspective of the alternative color image, wherein the alternative depth map includes holes representing aspects of the target scene that are occluded from view in the first target depth map;
filling in the holes of the alternative color image; and
subsequent to filling in the holes of the alternative color image, using the machine learning model to fill in the holes of the alternative depth map via the iterative diffusion inference process by, for a plurality of iterations:
applying the alternative color image and a respective input depth map estimate to generate a respective output depth map, wherein the input depth map of a first iteration of the plurality of iterations is the alternative depth map with an amount of noise added thereto, and wherein the input depth map for each iteration of the plurality of iterations other than the first iteration is the output depth map of an immediately preceding iteration with an amount of noise added thereto.

### Claim 41

(canceled)

### Claim 42 (depends on 39)

The computer-implemented method of claim 39, further comprising generating, for the target color image, a second target depth map for the target color image, by:
upsampling the first target depth map to generate an upsampled depth map; and
using the machine learning model to predict a plurality of patches of the second target depth map for respective patches of the target color image via the iterative diffusion inference process, wherein using the machine learning model to predict a given patch of the second target depth map for a corresponding patch of the target color image via the iterative diffusion inference process comprises using, as the input depth map of a first iteration of the plurality of iterations of the process, a corresponding patch of the upsampled depth map.

### Claim 43

(canceled)

### Claim 44 (depends on 39)

The computer-implemented method of claim 39, wherein using the machine learning model to predict the first target depth map for the target color image via the iterative diffusion inference process comprises using the machine learning model to predict a first target log-distance metric depth map for the target color image via the iterative diffusion inference process, wherein the respective input depth map estimate is a respective input log-distance depth map, and wherein the respective output depth map is a respective output log-distance depth map.

### Claim at position 31

45-49. (canceled)

### Claim 50 (depends on 44)

The computer-implemented method of claim 44, further comprising determining a linear metric depth map for the target color image by:
determining a first intermediate depth map by scaling and shifting the target log-distance metric depth map;
determining a second intermediate depth map by exponentiating the first intermediate depth map; and
scaling the second intermediate depth map.

### Claim 51 (depends on 39)

The computer-implemented method of claim 39, wherein applying the target color image and the respective input depth map estimate to the machine learning model to generate the respective output depth map comprises applying the target color image, a target FOV measurement, and the respective input depth map estimate to the machine learning model to generate the respective output depth map, and wherein the target FOV measurement represents an angular field of view across at least one dimension of the target color image.

### Claim at position 34

52-68. (canceled)
