# US 2022/0284236 A1 · Blur classification and blur map estimation

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

- Number: US 2022/0284236 A1
- Document ID: US20220284236A1
- Status: Published application
- Kind: A1
- Application number: 17/190,197
- Filed: 2021-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Aashish Misraa; Zhe Lin
- Web page: https://patentgrep.com/patent/US20220284236A1

## CPC

- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06T 7/00: Image analysis
- G06F 18/241: relating to the classification model, e.g. parametric or non-parametric approaches
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06V 10/87: {using selection of the recognition techniques, e.g. of a classifier in a multiple classifier system}
- G06V 10/993: {Evaluation of the quality of the acquired pattern}
- G06V 20/35: {Categorising the entire scene, e.g. birthday party or wedding scene}
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20076: Probabilistic image processing
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20132: Image cropping
- G06T 2207/30168: Image quality inspection
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems and methods for image processing are described. Embodiments identify a training set including a first image that includes a ground truth blur classification and second image that includes a ground truth blur map, generate a first embedded representation of the first image and a second embedded representation of the second image using an image encoder, predict a blur classification of the first image based on the first embedded representation using a classification layer, predict a blur map of the second image based on the second embedded representation using a map decoder, compute a classification loss based on the predicted blur classification and the ground truth blur classification, train the image encoder and the classification layer based on the classification loss, compute a map loss based on the blur map and the ground truth blur map, and train the image encoder and the map decoder.

## Claims

### Claim 1

A method for training a machine learning model, comprising:
identifying a training set comprising a first image that includes a ground truth blur classification and second image that includes a ground truth blur map;
generating a first embedded representation of the first image and a second embedded representation of the second image using an image encoder;
predicting a blur classification of the first image based on the first embedded representation using a classification layer;
predicting a blur map of the second image based on the second embedded representation using a map decoder;
computing a classification loss based on the predicted blur classification and the ground truth blur classification;
training the image encoder and the classification layer based on the classification loss;
computing a map loss based on the blur map and the ground truth blur map; and
training the image encoder and the map decoder based on the map loss.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
identifying a first training batch including the first image;
determining that the first training batch does not include ground truth blur map information; and
freezing the map decoder while training with the first batch based on the determination.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
identifying a second training batch including the second image;
determining that the second training batch does not include ground truth blur classification information; and
freezing the classification layer while training with the second batch based on the determination.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
identifying a second training batch including the second image;
determining that the second training batch includes ground truth blur classification information and ground truth blur map information; and
training the image encoder, the classification layer, and the map decoder jointly based on the determination.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
identifying a joint loss function comprising the classification loss and the map loss, wherein the image encoder, the classification layer, and the map decoder are jointly trained using the joint loss function.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the classification loss comprises a softmax cross entropy loss between the ground truth blur classification and the predicted blur classification.

### Claim 7 (depends on 1)

The method of claim 1, wherein:
the map loss comprises an L2 loss between the ground truth blur map and the predicted blur map.

### Claim 8

An apparatus for image processing, comprising:
an image encoder configured to generate an embedded representation of an image;
a classification layer configured to predict a blur classification of the image based on the embedded representation, wherein the image encoder and the classification layer are trained based on a classification loss; and
a map decoder configured to predict a blur map of the image based on the embedded representation, wherein the image encoder and the map decoder are trained based on a map loss.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein:
the image encoder comprises a plurality of levels, wherein each of the levels of the image encoder comprises a different resolution.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein:
the map decoder comprises a plurality of levels, wherein each of the levels of the map decoder takes input from a different level of the levels of the image encoder.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein:
the map decoder comprises a feature pyramid network (FPN).

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein:
the classification layer comprises a fully connected layer configured to output a plurality of values corresponding to a plurality of blur categories.

### Claim 13

A method for image processing, comprising:
receiving an image comprising a plurality of regions having different blur levels;
generating an embedded representation of the image using an image encoder;
predicting a blur classification of the image based on the embedded representation using a classification layer, wherein the image encoder and the classification layer are trained based on a classification loss; and
predicting a blur map of the image based on the embedded representation using a map decoder, wherein the image encoder and the map decoder are trained based on a map loss.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
determining an image quality based on the blur classification.

### Claim 15 (depends on 13)

The method of claim 13, further comprising:
editing the image based on the blur map.

### Claim 16 (depends on 13)

The method of claim 13, wherein:
the classification layer is not trained based on the map loss.

### Claim 17 (depends on 13)

The method of claim 13, wherein:
the map decoder is not trained based on the classification loss.

### Claim 18 (depends on 13)

The method of claim 13, wherein:
the blur classification comprises a plurality of probability values corresponding to different blur categories, wherein each of the different blur categories represents a global property of the image.

### Claim 19 (depends on 18)

The method of claim 18, wherein:
the different blur categories include a positive category, a moderate category, a negative category, and a clear category.

### Claim 20 (depends on 13)

The method of claim 13, wherein:
the blur map comprises a pixel-level indication of a blur level.
