IP Library › Granted Patent US 11,683,362
Granted Patent B2
US 11,683,362 · App. 17/123,493 · Granted Jun 20, 2023

Realistic neural network based image style transfer

Inventors: Jaewook Chung (Mountain View, CA); Christopher Yale Crutchfield (San Diego, CA); Emre Yamangil (San Francisco, CA)
Assignee: Snap Inc.
H04L67/04G06N3/08G06N20/00G06T5/001G06T5/009G06T5/40G06T7/90G06V10/7753G06V10/82G06V40/161G06V40/175G06Q50/01G06T2207/10024G06T2207/20132
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,683,362
App. No.
17/123,493
Granted
Jun 20, 2023
Kind
B2
Abstract

A mobile device can implement a neural network-based style transfer scheme to modify an image in a first style to a second style. The style 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 style 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 (51)

1. A method comprising:

receiving an indication of an instruction to modify an initial image comprising a user face, the instruction indicating to change the user face from having a first appearance to having a second appearance;

detecting the user face in the initial image;

separating the initial image into a cropped portion of the initial image and a non-cropped portion of the initial image, the cropped portion of the initial image comprising the user face;

modifying the cropped portion using a convolutional neural network, the modified cropped portion displaying the user face having the second appearance; and

modifying the non-cropped portion by applying adjustments to the non-cropped portion, wherein the adjustments are effects selected based on the convolutional neural network used to modified to the cropped portion.

2. The method of claim 1 wherein the convolutional neural network is trained on a set of images including images of user faces exhibiting the first appearance and images of user faces exhibiting the second appearance.

3. The method of claim 1 further comprising:

generating a result image by blending the modified cropped portion with the modified non-cropped portion.

4. The method of claim 1 further comprising:

generating a result image by blending the modified cropped portion with the modified non-cropped portion and the initial image.

5. The method of claim 4 wherein the result image is generated by blending modified cropped portion with the modified non-cropped portion and the initial image using Laplacian blending.

6. The method of claim 4 further comprising:

storing the result image.

7. The method of claim 1 , wherein the convolutional neural network comprises a plurality of downsampling convolution layers that input into a plurality of residual block layers.

8. The method of claim 7 wherein the method is performed on a client device, and wherein the method further comprising:

identifying a model type of the client device; and

decreasing a number of residual blocks implemented in the plurality of residual block layers based on the model type of the client device not satisfying a pre-specified computational resource threshold.

9. The method of claim 1 further comprising:

selecting the convolutional neural network from a plurality of convolution neural networks, wherein the convolution neural network was trained to change user faces to the second appearance.

10. The method of claim 1 wherein the second appearance is an aged face and the effects selected comprise an effect to color hair in the non-cropped portion to appear gray.

11. The method of claim 1 wherein the method is performed on a mobile device, and wherein the modified cropped portion is generated on the mobile device.

12. The method of claim 1 , further comprising:

adjusting color values of the modified non-cropped portion spatially close to the modified cropped portion.

13. The method of claim 12 wherein the adjusting color values comprises:

transferring the modified non-cropped portion from a first color space to a second color space;

transferring the modified cropped portion from the first color space to the second color space; and

adjusting the second color space of the modified non-cropped portion to colors that are closer to the second color space of the modified cropped portion.

14. The method of claim 13 , further comprising:

transferring the modified non-cropped portion from the second color space to the first color space.

15. The method of claim 14 , wherein the first color space is a red, green, and blue (RGB) color space and the second color space is a luma component (Y), two chrominance components (U) and red projection (V) (YUV) color space, and wherein adjustments are implemented using a histogram matching scheme that adjusts a distribution of the second color space of the non-cropped portion.

16. The method of claim 1 further comprising:

generating a result image by blending the modified cropped portion with the modified non-cropped portion; and

publishing the result image as an ephemeral message on a social network site.

17. 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:

receiving an indication of an instruction to modify an initial image comprising a user face, the instruction indicating to change the user face from having a first appearance to having a second appearance;

detecting the user face in the initial image;

separating the initial image into a cropped portion of the initial image and a non-cropped portion of the initial image, the cropped portion of the initial image comprising the user face;

modifying the cropped portion using a convolutional neural network, the modified cropped portion displaying the user face having the second appearance; and

modifying the non-cropped portion by applying adjustments to the non-cropped portion, wherein the adjustments are effects selected based on the convolutional neural network used to modified to the cropped portion.

18. The system of claim 17 wherein the convolutional neural network is trained on a set of images including images of user faces exhibiting the first appearance and images of user faces exhibiting the second appearance.

19. A computer-readable storage medium embodying instructions that, when executed by a device, cause the device to perform operations comprising:

receiving an indication of an instruction to modify an initial image comprising a user face, the instruction indicating to change the user face from having a first appearance to having a second appearance;

detecting the user face in the initial image;

separating the initial image into a cropped portion of the initial image and a non-cropped portion of the initial image, the cropped portion of the initial image comprising the user face;

modifying the cropped portion using a convolutional neural network, the modified cropped portion displaying the user face having the second appearance; and

modifying the non-cropped portion by applying adjustments to the non-cropped portion, wherein the adjustments are effects selected based on the convolutional neural network used to modified to the cropped portion.

20. The computer-readable storage medium of claim 19 wherein the convolutional neural network is trained on a set of images including images of user faces exhibiting the first appearance and images of user faces exhibiting the second appearance.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 9, 2023
From: CHUNG, JAEWOOK; YALE CRUTCHFIELD, CHRISTOPHER; YAMANGIL, EMRE
To: SNAP INC.
Reel/Frame 063579/0643 →
Continuity (3)
Continuation 16147705 · Sep 29, 2018
Provisional Application 62566072 · Sep 29, 2017
Related Publication 20210183033A1 · Jun 17, 2021
Cited By (1)
US 12,430,468