Stylizing input images
AssigneeGoogle Inc.
InventorsJonathon Shlens, Vincent Dumoulin, Manjunath Kudlur Venkatakrishna
Life of this patent
Estimating the term…
Abstract
A method for applying a style to an input image to generate a stylized image. The method includes maintaining data specifying respective parameter values for each image style in a set of image styles, receiving an input including an input image and data identifying an input style to be applied to the input image to generate a stylized image that is in the input style, determining, from the maintained data, parameter values for the input style, and generating the stylized image by processing the input image using a style transfer neural network that is configured to process the input image to generate the stylized image.
Claims20
A computer-implemented method for processing an input image to generate a stylized image using a style transfer neural network, the style transfer neural network comprising a conditional instance normalization layer between a first neural network layer and a second neural network layer, the method comprising:
- maintaining, by a computing system, data that maps each image style in a set of image styles to respective parameter values of the image style;
- receiving, by the computing system, an input comprising an input image and input style data, the input style data identifying, from the set of image styles, one or more image styles to be applied to the input image to generate a stylized image that is in an input style;
- mapping, using the maintained data, each of the one or more image styles identified by the input style data to respective parameter values;
- determining, by the computing system, parameter values for the input style based on the respective parameter values mapped to the one or more image styles identified by the input style data;
- setting current values of parameters of the conditional instance normalization layer to be the determined parameter values for the input style without modifying current values of parameters of the first neural network layer and the second neural network layer;
- processing the input image, using the style transfer neural network having the current values of parameters of the conditional instance normalization layer set to be the determined parameter values for the input style and the current values of parameters of the first neural network layer and the second neural network layer unchanged, to generate the stylized image.
One or more non-transitory computer-readable storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform operations for processing an input image to generate a stylized image using a style transfer neural network, the style transfer neural network comprising a conditional instance normalization layer between a first neural network layer and a second neural network layer, the operations comprising:
- maintaining data that maps each image style in a set of image styles to respective parameter values of the image style;
- receiving an input comprising an input image and input style data, the input style data identifying, from the set of image styles, one or more image styles to be applied to the input image to generate a stylized image that is in an input style;
- mapping, using the maintained data, each of the one or more image styles identified by the input style data to respective parameter values;
- determining parameter values for the input style based on the respective parameter values mapped to the one or more image styles identified by the input style data;
- setting current values of parameters of the conditional instance normalization layer to be the determined parameter values for the input style without modifying current values of parameters of the first neural network layer and the second neural network layer;
- processing the input image, using the style transfer neural network having the current values of parameters of the conditional instance normalization layer set to be the determined parameter values for the input style and the current values of parameters of the first neural network layer and the second neural network layer unchanged, to generate the stylized image.
A system implemented by one or more computers, the system comprising:
- a style transfer neural network that is configured to process an input image to generate a stylized image from the input image,
- wherein the style transfer neural network comprises a conditional instance normalization layer between a first neural network layer and a second neural network layer;
- and
- a subsystem configured to perform operations comprising:
- maintaining data that maps each image style in a set of image styles to respective parameter values of the image style;
- receiving an input comprising an input image and input style data, the input style data identifying, from the set of image styles, one or more image styles to be applied to the input image to generate a stylized image that is in an input style;
- mapping, using the maintained data, each of the one or more image styles identified by the input style data to respective parameter values;
- determining parameter values for the input style based on the respective parameter values mapped to the one or more image styles identified by the input style data for the identified at least one image style;
- setting the current values of the conditional instance normalization layer parameters to be the determined parameter values for the input style without modifying values of parameters of the first neural network layer and the second neural network layer;
- and
- processing the input image using the style transfer neural network having the current values of parameters of the conditional instance normalization layer set to be the determined parameter values for the input style and the current values of parameters of the first neural network layer and the second neural network layer unchanged.
Dependencies are inferred from the claim text.