# US 2019/0244329 A1 · Photorealistic Image Stylization Using a Neural Network Model

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

- Number: US 2019/0244329 A1
- Document ID: US20190244329A1
- Status: Published application
- Kind: A1
- Application number: 16/246,375
- Filed: 2019-01-11
- Published: 2019-08-08
- Earliest claimed: 2018-02-02
- Assignees: NVIDIA Corporation
- Applicants: NVIDIA Corporation
- Inventors: Yijun Li; Ming-Yu Liu; Ming-Hsuan Yang; Jan Kautz
- Web page: https://patentgrep.com/patent/US20190244329A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 5/70: Denoising; Smoothing
- G06T 7/11: Region-based segmentation
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Photorealistic image stylization concerns transferring style of a reference photo to a content photo with the constraint that the stylized photo should remain photorealistic. Examples of styles include seasons (summer, winter, etc.), weather (sunny, rainy, foggy, etc.), lighting (daytime, nighttime, etc.). A photorealistic image stylization process includes a stylization step and a smoothing step. The stylization step transfers the style of the reference photo to the content photo. A photo style transfer neural network model receives a photorealistic content image and a photorealistic style image and generates an intermediate stylized photorealistic image that includes the content of the content image modified according to the style image. A smoothing function receives the intermediate stylized photorealistic image and pixel similarity data and generates the stylized photorealistic image, ensuring spatially consistent stylizations.

## Claims

### Claim 1

A computer-implemented method, comprising:
processing a photorealistic content image and a photorealistic style image by a max pooling layer of an encoder portion of a photo style transfer neural network model to generate location data identifying a location within a feature map of a maximum value output by the max pooling layer; and
processing an output of the encoder portion by a unpooling layer of a decoder portion of the photo style transfer neural network model based on the location data to produce a stylized photorealistic image including content from the photorealistic content image that is modified according to the photorealistic style image.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising processing the stylized photorealistic image according to pixel similarity data for the photorealistic content image to produce a smoothed stylized photorealistic image.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the pixel similarity data identifies pixels in the stylized photorealistic image that are consistent in color with adjacent pixels.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein a quadratic function with a closed-form solution is solved to produce the smoothed stylized photorealistic image.

### Claim 5 (depends on 2)

The computer-implemented method of claim 2, wherein the pixel similarity data comprises pixel affinity values.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising processing the photorealistic style image by a second photo style transfer neural network model to produce an improved photorealistic style image, wherein the second photo style transfer neural network model has lower feature representation compared with the photo style transfer neural network model.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the photorealistic style image is segmented into a first style region and a second style region and the photo style transfer neural network model processes the first style region and a corresponding first content region of the photorealistic content image to produce a first region of the photorealistic style image.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the photorealistic content image is segmented into a first content region and a second content region and the photo style transfer neural network model processes the first content region and a corresponding first style region of the photorealistic style image to produce a first region of the photorealistic style image.

### Claim 9

A computer-implemented method, comprising:
receiving a stylized photorealistic image generated by a photo style transfer neural network model, wherein the stylized photorealistic image includes content from a photorealistic content image that is modified according to a photorealistic style image; and
processing the stylized photorealistic image according to pixel similarity data for the photorealistic content image to produce a smoothed stylized photorealistic image.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein the pixel similarity data comprises pixel affinity values.

### Claim 11 (depends on 9)

The computer-implemented method of claim 9, wherein the photo style transfer neural network model generates the stylized photorealistic image based on segmentation data for at least one of the photorealistic content image and the photorealistic style image.

### Claim 12

A system, comprising a photo style transfer neural network model comprising an encoder portion and a decoder portion, the encoder portion configured to:
process a photorealistic content image and a photorealistic style image by a max pooling layer of the encoder portion to generate location data identifying a location within a feature map of a maximum value output by the max pooling layer; and
process an output of the encoder portion by a unpooling layer of the decoder portion based on the location data to produce a stylized photorealistic image including content from the photorealistic content image that is modified according to the photorealistic style image.

### Claim 13 (depends on 12)

The system of claim 12, further comprising a smoothing function module configured to process the stylized photorealistic image according to pixel similarity data for the photorealistic content image to produce a smoothed stylized photorealistic image.

### Claim 14 (depends on 13)

The system of claim 13, wherein the pixel similarity data identifies pixels in the stylized photorealistic image that are consistent in color with adjacent pixels.

### Claim 15 (depends on 13)

The system of claim 13, wherein a quadratic function with a closed-form solution is solved to produce the smoothed stylized photorealistic image.

### Claim 16 (depends on 13)

The system of claim 13, wherein the pixel similarity data comprises pixel affinity values.

### Claim 17 (depends on 12)

The system of claim 12, further comprising a second photo style transfer neural network model configured to process the photorealistic style image to produce an improved photorealistic style image, wherein the second photo style transfer neural network model has lower feature representation compared with the photo style transfer neural network model.

### Claim 18 (depends on 12)

The system of claim 12, wherein the photorealistic style image is segmented into a first style region and a second style region and the photo style transfer neural network model processes the first style region and a corresponding first content region of the photorealistic content image to produce a first region of the photorealistic style image.

### Claim 19 (depends on 12)

The system of claim 12, wherein the photorealistic content image is segmented into a first content region and a second content region and the photo style transfer neural network model processes the first content region and a corresponding first style region of the photorealistic style image to produce a first region of the photorealistic style image.

### Claim 20

A non-transitory, computer-readable storage medium storing instructions that, when executed by a processing unit, cause the processing unit to:
process a photorealistic content image and a photorealistic style image by a max pooling layer of an encoder portion of a photo style transfer neural network model to generate location data identifying a location within a feature map of a maximum value output by the max pooling layer; and
process an output of the encoder portion by a unpooling layer of a decoder portion of the photo style transfer neural network model based on the location data to produce a stylized photorealistic image including content from the photorealistic content image that is modified according to the photorealistic style image.
