# US 2023/0067841 A1 · Image Enhancement via Iterative Refinement based on Machine Learning Models

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

- Number: US 2023/0067841 A1
- Document ID: US20230067841A1
- Status: Published application
- Kind: A1
- Application number: 17/391,150
- Filed: 2021-08-02
- Published: 2023-03-02
- Earliest claimed: 2021-08-02
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Chitwan Saharia; Jonathan Ho; William Chan; Tim Salimans; David Fleet; Mohammad Norouzi
- Web page: https://patentgrep.com/patent/US20230067841A1

## CPC

- G06T 5/70: Denoising; Smoothing
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/08: Learning methods
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06T 3/4007: based on interpolation, e.g. bilinear interpolation (image demosaicing G06T3/4015; edge-driven or edge-based scaling G06T3/403)
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 2207/10024: Color image
- G06T 2207/20016: Hierarchical, coarse-to-fine, multiscale or multiresolution image processing; Pyramid transform
- G06T 2207/20076: Probabilistic image processing
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method includes receiving, by a computing device, training data comprising a plurality of pairs of images, wherein each pair comprises an image and at least one corresponding target version of the image. The method also includes training a neural network based on the training data to predict an enhanced version of an input image, wherein the training of the neural network comprises applying a forward Gaussian diffusion process that adds Gaussian noise to the at least one corresponding target version of each of the plurality of pairs of images to enable iterative denoising of the input image, wherein the iterative denoising is based on a reverse Markov chain associated with the forward Gaussian diffusion process. The method additionally includes outputting the trained neural network.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving, by a computing device, training data comprising a plurality of pairs of images, wherein each pair comprises an image and at least one corresponding target version of the image;
training a neural network based on the training data to predict an enhanced version of an input image, wherein the training of the neural network comprises applying a forward Gaussian diffusion process that adds Gaussian noise to the at least one corresponding target version of each of the plurality of pairs of images to enable iterative denoising of the input image, wherein the iterative denoising is based on a reverse Markov chain associated with the forward Gaussian diffusion process; and
outputting the trained neural network.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the applying of the forward Gaussian diffusion process comprises determining, for an iterative step, a scalar hyperparameter indicative of a variance of the Gaussian noise at the iterative step.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the iterative denoising of the input image comprises predicting a noise vector based on a variance of the Gaussian noise added during the forward Gaussian process.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the neural network is a convolutional neural network comprising a U-net architecture based on a denoising diffusion probabilistic (DDPM) model.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the input image is of a first resolution and the enhanced version of the input image is of a second resolution, and wherein the second resolution is greater than the first resolution.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the iterative denoising of the input image further comprises:
upsampling the input image to an enhanced version by applying bicubic interpolation.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the neural network comprises a plurality of cascading models.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the plurality of cascading models are chained together.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the iterative denoising of the input image further comprises:
a plurality of iterative refinement steps corresponding to different levels of image quality, and wherein each step is trained with a regression loss.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein a number of the plurality of iterative refinement steps is greater for refinement steps corresponding to a lower image quality than for refinement steps corresponding to a higher image quality.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the neural network comprises a plurality of cascading models, and wherein the training of the neural network comprises training the plurality of cascading models in parallel.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, wherein the training of the neural network is performed at the computing device.

### Claim 13

A computer-implemented method, comprising:
receiving, by a computing device, an input image;
applying a neural network to predict an enhanced version of the input image by iteratively denoising the input image, wherein the iterative denoising is based on a reverse Markov chain associated with a forward Gaussian diffusion process, the neural network having been trained by applying the forward Gaussian diffusion process to add Gaussian noise to at least one corresponding target version of each image of a plurality of pairs of images in training data; and
outputting the predicted enhanced version of the input image.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, wherein the neural network is a convolutional neural network comprising a U-net architecture based on a denoising diffusion probabilistic (DDPM) model.

### Claim 15 (depends on 13)

The computer-implemented method of claim 13, wherein the iterative denoising of the input image further comprising:
upsampling the input image to an enhanced version by applying bicubic interpolation.

### Claim 16 (depends on 13)

The computer-implemented method of claim 13, wherein the neural network comprises a plurality of cascading models.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein the plurality of cascading models are chained together.

### Claim 18 (depends on 13)

The computer-implemented method of claim 13, wherein the outputting of the predicted enhanced version of the input image further comprising:
obtaining a trained neural network at the computing device; and
applying the trained neural network as obtained to the outputting of the predicted enhanced version of the input image.

### Claim 19 (depends on 13)

The computer-implemented method of claim 13, wherein the outputting of the predicted enhanced version of the input image further comprising:
determining, by the computing device, a request to predict the enhanced version of the input image;
sending the request from the computing device to a second computing device, the second computing device comprising a trained version of the neural network; and
after sending the request, the computing device receiving, from the second computing device, the predicted enhanced version of the input image.

### Claim 20 (depends on 13)

The computer-implemented method of claim 13, wherein the input image is of a first image resolution and the enhanced version of the input image is of a second image resolution, and wherein the second image resolution is greater than the first image resolution.

### Claim 21 (depends on 13)

The computer-implemented method of claim 13, wherein the input image is of a first color version and the enhanced version of the input image is of a second color version, and wherein the second color version is of a higher quality than the first color version.

### Claim 22 (depends on 13)

The computer-implemented method of claim 13, wherein the input image is of a first light composition and the enhanced version of the input image is of a second light composition, and wherein the second light composition is of a higher quality than the first light composition.

### Claim 23 (depends on 13)

The computer-implemented method of claim 13, wherein the input image comprises video content.

### Claim 24 (depends on 13)

The computer-implemented method of claim 13, wherein the input image is a compressed image file, and wherein the predicted enhanced version is a decompressed version of the compressed image file.

### Claim 25

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 operations comprising:
receiving, by the computing device, an input image;
applying a neural network to predict an enhanced version of the input image by iteratively denoising the input image, wherein the iterative denoising is based on a reverse Markov chain associated with a forward Gaussian diffusion process, the neural network having been trained by applying the forward Gaussian diffusion process to add Gaussian noise to at least one corresponding target version of each image of a plurality of pairs of images in training data; and
outputting the predicted enhanced version of the input image.
