# US 11,120,526 B1 · Deep feature generative adversarial neural networks

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

- Number: US 11,120,526 B1
- Document ID: US11120526B1
- Status: Granted
- Kind: B1
- Application number: 16/376,564
- Filed: 2019-04-05
- Granted: 2021-09-14
- Earliest claimed: 2019-04-05
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Sergey Demyanov; Aleksei Podkin; Aleksei Stoliar; Vadim Velicodnii; Fedor Zhdanov
- Web page: https://patentgrep.com/patent/US11120526B1

## CPC

- H04L 51/10: Multimedia information
- G06T 5/10: using non-spatial domain filtering
- G06T 11/60: Creating or editing images; Combining images with text
- G06T 2200/16: involving adaptation to the client's capabilities
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T 2207/10004: Still image; Photographic image
- G06T 2207/20048: Transform domain processing
- G06T 2207/20081: Training; Learning
- G06T 2207/30196: Human being; Person
- H04L 51/214: using selective forwarding
- H04L 51/52: for supporting social networking services
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A mobile device can implement a neural network-based domain transfer scheme to modify an image in a first domain appearance to a second domain appearance. The domain transfer scheme can be configured to detect an object in the image, apply an effect to the image, and blend the image using color space adjustments and blending schemes to generate a realistic result image. The domain transfer scheme can further be configured to efficiently execute on the constrained device by removing operational layers based on resources available on the mobile device.

## Claims

### Claim 1

A method comprising:
identifying an image on a user device;
identifying an instruction to apply an image effect to the image;
generating, by a processor of the user device, a modified image by applying a domain transfer neural network to the image, the domain transfer neural network comprising an adversarial transformation network within a generator network;
storing the modified image; and
publishing, by the user device, the modified image to a network site as an ephemeral message.

### Claim 2 (depends on 1)

The method of claim 1, wherein the generator network comprises an encoder network and decoder network, the adversarial transformation network being between the encoder network and the decoder network.

### Claim 3 (depends on 2)

The method of claim 2, wherein the adversarial transformation network is adversarially trained using a discrimination network that receives output data from the decoder network.

### Claim 4 (depends on 2)

The method of claim 2, wherein the domain transfer neural network is trained in stages comprising:
a first stage in which at least one of the encoder network or the decoder network are trained; and
a second stage in which the adversarial transformation network is using a discrimination network.

### Claim 5 (depends on 4)

The method of claim 4, wherein in the first stage the encoder network and the decoder network are jointly trained using feature loss.

### Claim 6 (depends on 4)

The method of claim 4, wherein the adversarial transformation network is not trained in the first stage.

### Claim 7 (depends on 4)

The method of claim 4, wherein the encoder network and the decoder network are not trained in the second stage.

### Claim 8 (depends on 4)

The method of claim 4, wherein the adversarial transformation network is trained using Generative Adversarial Loss (GAN) loss.

### Claim 9 (depends on 1)

The method of claim 1, wherein the adversarial transformation network is trained to transfer an image between different domains.

### Claim 10 (depends on 9)

The method of claim 9, wherein the domains includes one or more of the following: an old person domain, a young person domain, a masculine person domain, a feminine person domain, a painted domain, a photorealistic domain.

### Claim 11 (depends on 1)

The method of claim 1, wherein the domain transfer neural network is a convolutional neural network.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
receiving, from a server, the adversarial transformation network pre-trained to apply the image effect.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
receiving, from an input interface of the user device, the instruction to apply the image effect on the image.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
in response to receiving the instruction, selecting, from a plurality of domain transfer neural networks stored on the user device, the domain transfer neural network based on the domain transfer neural network being trained for the image effect specified by the instruction, wherein each of the plurality of domain transfer neural networks is trained for different image effects using adversarial transformation networks within respective generator networks.

### Claim 15 (depends on 1)

The method of claim 1, further comprising:
generating the image using an image sensor of the user device.

### Claim 16

A system comprising:
one or more processors of a client device;
an image sensor; and
a memory storing instructions that, when executed by the one or more processors, cause the system to perform operations comprising:
identifying an image on a user device;
identifying an instruction to apply an image effect to the image;
generating a modified image by applying a domain transfer neural network to the image, the domain transfer neural network comprising an adversarial transformation network within a generator network;
storing the modified image; and
publishing, by the user device, the modified image to a network site as an ephemeral message.

### Claim 17 (depends on 16)

The system of claim 16, wherein the generator network comprises an encoder network and decoder network, the adversarial transformation network being between the encoder network and the decoder network.

### Claim 18

A machine-readable storage device embodying instructions that, when executed by a device, cause the device to perform operations comprising:
identifying an image on a user device;
identifying an instruction to apply an image effect to the image;
generating a modified image by applying a domain transfer neural network to the image, the domain transfer neural network comprising an adversarial transformation network within a generator network;
storing the modified image; and
publishing, by the user device, the modified image to a network site as an ephemeral message.
