# US 2023/0056082 A1 · Fast image style transfers

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

- Number: US 2023/0056082 A1
- Document ID: US20230056082A1
- Status: Published application
- Kind: A1
- Application number: 17/980,879
- Filed: 2022-11-04
- Published: 2023-02-23
- Earliest claimed: 2016-12-09
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Jaewook Chung; Wisam Dakka; Christopher Yale Crutchfield; Aymeric Damien; Emre Yamangil; Chunhui Zhu
- Web page: https://patentgrep.com/patent/US20230056082A1

## CPC

- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06T 11/60: Creating or editing images; Combining images with text
- G06V 10/82: using neural networks
- G06V 30/194: References adjustable by an adaptive method, e.g. learning
- G06F 16/51: Indexing; Data structures therefor; Storage structures
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Manipulating images using computationally expensive machine learning schemes can be implemented using server-generated models of the machine learning schemes that are transmitted to a client device for application. The schemes can include convolutional neural networks having a kernel comprising a plurality of low-rank matrices.

## Claims

### Claim 1

A method comprising:
accessing an image generated using an image sensor on a device;
generating, using one or more processors of the device, image data of the image by using a fully connected neural network layer that outputs the image data into a convolutional layer, the image data comprising rank one image matrices;
generating a modified image from the image data using a convolutional neural network (CNN), the CNN configured with the convolution layer having rank one convolution kernel matrices, an output of the convolution layer generated based on the rank one image matrices and the rank one convolution kernel matrices; and
storing the modified image in memory of the device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the rank one convolution kernel matrices are generated using an inferred matrix that is configured to apply an image modification, wherein the output of the convolution layer is generated at least in part by generating dot products of the rank one image matrices and the rank one convolution kernel matrices.

### Claim 3 (depends on 1)

The method of claim 1, wherein the rank one convolution kernel matrices and the rank one image matrices are separable rank one matrices of a kernel matrix trained to apply the image modification.

### Claim 4 (depends on 1)

The method of claim 1, wherein the fully connected neural network layer comprises a REctified Linear Unit (RELU) that generates the image data.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
publishing the modified image as an ephemeral message on a social network.

### Claim 6 (depends on 1)

The method of claim 1, wherein the image data is generated from a photograph, and the image modification is a conversion to a paint brush style, the CNN being trained on one or more images that are in the paint brush style.

### Claim 7 (depends on 1)

The method of claim 1, wherein the inferred matrix is pre-computed before the image data is generated, and wherein the method further comprises: storing the inferred matrix on the device.

### Claim 8

A system comprising:
one or more processors of a machine; and
a memory comprising instructions that, when executed by the one or more processors, cause the machine to perform operations comprising:
accessing an image generated using an image sensor on a device;
generating image data of the image by using a fully connected neural network layer that outputs the image data into a convolutional layer, the image data comprising rank one image matrices;
generating a modified image from the image data using a convolutional neural network (CNN), the CNN configured with the convolution layer having rank one convolution kernel matrices, an output of the convolution layer generated based on the rank one image matrices and the rank one convolution kernel matrices; and
storing the modified image in memory of the device.

### Claim 9 (depends on 8)

The system of claim 8, wherein the rank one convolution kernel matrices are generated using an inferred matrix that is configured to apply an image modification, wherein the output of the convolution layer is generated at least in part by generating dot products of the rank one image matrices and the rank one convolution kernel matrices.

### Claim 10 (depends on 8)

The system of claim 8, wherein the rank one convolution kernel matrices and the rank one image matrices are separable rank one matrices of a kernel matrix trained to apply the image modification.

### Claim 11 (depends on 8)

The system of claim 8, wherein the fully connected neural network layer comprises a REctified Linear Unit (RELU) that generates the image data.

### Claim 12 (depends on 8)

The system of claim 8, wherein the operations further comprise:
publishing the modified image as an ephemeral message on a social network.

### Claim 13 (depends on 8)

The system of claim 8, wherein the image data is generated from a photograph, and the image modification is a conversion to a paint brush style, the CNN being trained on one or more images that are in the paint brush style.

### Claim 14 (depends on 1)

The system of claim 1, wherein the inferred matrix is pre-computed before the image data is generated, and wherein the method further comprises: storing the inferred matrix on the device.

### Claim 15

A non-transitory computer-readable storage medium comprising instructions that, when executed by one or more processors of a device, cause the device to perform operations comprising:
accessing an image generated using an image sensor on the device;
generating, using one or more processors of the device, image data of the image by using a fully connected neural network layer that outputs the image data into a convolutional layer, the image data comprising rank one image matrices;
generating a modified image from the image data using a convolutional neural network (CNN), the CNN configured with the convolution layer having rank one convolution kernel matrices, an output of the convolution layer generated based on the rank one image matrices and the rank one convolution kernel matrices; and
storing the modified image in memory of the device.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the rank one convolution kernel matrices are generated using an inferred matrix that is configured to apply an image modification, wherein the output of the convolution layer is generated at least in part by generating dot products of the rank one image matrices and the rank one convolution kernel matrices.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the rank one convolution kernel matrices and the rank one image matrices are separable rank one matrices of a kernel matrix trained to apply the image modification.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the fully connected neural network layer comprises a REctified Linear Unit (RELU) that generates the image data.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the operations further comprise:
publishing the modified image as an ephemeral message on a social network.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the image data is generated from a photograph, and the image modification is a conversion to a paint brush style, the CNN being trained on one or more images that are in the paint brush style.
