# US 2024/0202891 A1 · Method for training image processing model, and method for generating high dynamic range image

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

- Number: US 2024/0202891 A1
- Document ID: US20240202891A1
- Status: Published application
- Kind: A1
- Application number: 17/910,020
- Filed: 2021-09-17
- Published: 2024-06-20
- Earliest claimed: 2021-09-17
- Assignees: Boe Technology Group Co., Ltd.
- Applicants: Boe Technology Group Co., Ltd.
- Inventors: Mengdi SUN; Guannan CHEN
- Web page: https://patentgrep.com/patent/US20240202891A1

## CPC

- G06T 5/92: based on global image properties
- G06N 3/04: Architecture, e.g. interconnection topology
- 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/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20208: High dynamic range [HDR] image processing
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for training an image processing model includes: inputting a low dynamic range image into a first initial image processing model, so that a high dynamic range reconstruction processing is performed on the low dynamic range image to generate a first high dynamic range image; inputting the low dynamic range image into a second initial image processing model to generate a first coefficient; generating a second high dynamic range image according to the first high dynamic range image and the first coefficient; generating a loss function according to data pairs of the second high dynamic range image and a real high dynamic range image, the real high dynamic range image corresponding to the low dynamic range image; and training the first initial image processing model and the second initial image processing model with the loss function.

## Claims

### Claim 1

A method for training an image processing model, comprising:
inputting a low dynamic range image into a first initial image processing model, so that a high dynamic range reconstruction processing is performed on the low dynamic range image to generate a first high dynamic range image;
inputting the low dynamic range image into a second initial image processing model to generate a first coefficient;
generating a second high dynamic range image according to the first high dynamic range image and the first coefficient;
generating a loss function according to data pairs of the second high dynamic range image and a real high dynamic range image, wherein the real high dynamic range image corresponds to the low dynamic range image; and
training the first initial image processing model and the second initial image processing model with the loss function, so that a trained first target image processing model and a trained second target image processing model are obtained.

### Claim 2 (depends on 1)

The method for training the image processing model according to claim 1, wherein the first coefficient is a weight coefficient generated by the second initial image processing model performing a structural feature analysis on the low dynamic range image.

### Claim 3 (depends on 2)

The method for training the image processing model according to claim 2, wherein the weight coefficient is a 1×1×3 matrix.

### Claim 4 (depends on 1)

The method for training the image processing model according to claim 1, wherein the low dynamic range image, the first high dynamic range image and the second high dynamic range image each include RGB channels, and further include a fourth channel; and
the loss function is further related to the fourth channel.

### Claim 5 (depends on 4)

The method for training the image processing model according to claim 4, wherein the fourth channel is a maximum value of a pixel; and
the loss function includes an L1 loss and a tone mapping loss of RGB data pairs of the second high dynamic range image and the real high dynamic range image, and an L1 loss of data pairs of maximum values of pixels of the second high dynamic range image and the real high dynamic range image.

### Claim 6 (depends on 1)

The method for training the image processing model according to claim 1, wherein generating the second high dynamic range image according to the first high dynamic range image and the first coefficient includes:
multiplying the first high dynamic range image by the first coefficient to generate the second high dynamic range image.

### Claim 7 (depends on 1)

The method for training the image processing model according to claim 1, wherein before inputting the low dynamic range image into the second initial image processing model, the method for training the image processing model further comprises:
performing a down-sampling processing on the low dynamic range image to generate a down-sampled low dynamic range image.

### Claim 8 (depends on 7)

The method for training the image processing model according to claim 7, wherein a number of layers of the second initial image processing model is less than a number of layers of the first initial image processing model.

### Claim 9 (depends on 1)

The method for training the image processing model according to claim 1, further comprising: in a process of training the first initial image processing model and the second initial image processing model with the loss function, if the loss function does not converge, updating parameters of the first initial image processing model and parameters of the second initial image processing model, wherein a network optimizer is an Adam optimizer, and a learning rate is 1e-4.

### Claim 10 (depends on 1)

A method for generating a high dynamic range image, comprising:
inputting an image to be processed into a first target image processing model, so that a high dynamic range reconstruction processing is performed on the image to be processed to generate a first processed image, the image to be processed being the low dynamic range image;
inputting the image to be processed into a second target image processing model to generate a second coefficient, wherein the first target image processing model and the second target image processing model are the trained first target image processing model and the trained second target image processing model obtained by the method for training the image processing model according to claim 1; and
generating a second processed image according to the first processed image and the second coefficient.

### Claim 11 (depends on 10)

The method for generating the high dynamic range image according to claim 10, wherein the second coefficient is a weight coefficient generated by the second target image processing model performing a structural feature analysis on the image to be processed.

### Claim 12 (depends on 10)

The method for tranining the high dynamic range image according to claim 10, wherein generating the second processed image according to the first processed image and the second coefficient includes:
multiplying the first processed image by the second coefficient to generate the second processed image.

### Claim 13 (depends on 10)

The method for generating the high dynamic range image according to claim 10, wherein before inputting the image to be processed into the second target image processing model, the method for generating the high dynamic range image further comprises:
performing a down-sampling processing on the image to be processed to generate a down-sampled image to be processed.

### Claim 14 (depends on 13)

The method for generating the high dynamic range image according to claim 13, wherein a number of layers of the second target image processing model is less than a number of layers of the first target image processing model.

### Claim 15

An electronic device comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein
the processor is configured to input a low dynamic range image into a first initial image processing model, so that a high dynamic range reconstruction processing is peformed on the low dynamic range image to generate a first high dynamic range image;
the processor is further configured to input the low dynamic range image into a second initial image processing model to generate a first coefficient;
the processor is further configured to generate a second high dynamic range image according to the first high dynamic range image and the first coefficient;
the processor is further configured to generate a loss function according to data pairs of the second high dynamic range image and a real high dynamic range image; wherein the real high dynamic range image is a real high dynamic range image corresponding to the low dynamic range image;
the processor is further configured to train the first initial image processing model and the second initial image processing model with the loss function, so that a trained first target image processing model and a trained second target image processing model are obtained; and
the memory is configured to store data of the first high dynamic range image, the first coefficient, and data of the second high dynamic range image.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the processor is further configured to multiply the first high dynamic range image by the first coefficient to generate the second high dynamic range image; and
the processor is further configured to perform a down-sampling processing on the low dynamic range image to generate a down-sampled low dynamic range image before inputting the low dynamic range image into the second initial image processing model.

### Claim 17 (depends on 15)

The electronic device according to claim 15, wherein the processor is further configured to input an image to be processed into the first target image processing model, so that a high dynamic range reconstruction processing is performed on the image to be processed to generate a first processed image, the image to be processed being the low dynamic range image;
the processor is further configured to input the image to be processed into the second target image processing model to generate a second coefficient;
the processor is further configured to generate a second processed image according to the first processed image and the second coefficient; and
the memory is further configured to store the first processed image, the second coefficient and the second processed image.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the processor is further configured to multiply the first processed image by the second coefficient to generate the second processed image; and
the processor is further configured to perform a down-sampling processing on the image to be processed to generate a down-sampled image to be processed before inputting the image to be processed into the second target image processing model.

### Claim 19 (depends on 1)

A non-transitory_computer-readable storage medium storing computer program instructions that, when executed on a processor, cause the processor to perform the method for training the image processing model according to claim 1.

### Claim 20 (depends on 10)

A non-transitory computer-readable storage medium storing computer program instructions that, when executed on a processor, cause the processor to perform the method for generating the high dynamic range image according to claim 10.
