AdaIN-Style Trained on MS-COCO and Painter by Numbers Data

Transfer the style of one image to another image

This model is also available through the built-in function ImageRestyle

Released in 2017, this is the first real-time feedforward image stylization model to accept arbitrary styles. Building on the interpretation of neural style transfer as a statistical domain adaptation task, the model leverages a novel technique called Adaptive Instance Normalization (AdaIN). The AdaIN layer inside the net performs the style transfer by aligning the mean and variance of the content and style feature maps.

Number of layers: 109 | Parameter count: 10,516,675 | Trained size: 42 MB |

Training Set Information

Examples

Resource retrieval

Get the pre-trained net:

In[1]:=
NetModel["AdaIN-Style Trained on MS-COCO and Painter by Numbers Data"]
Out[1]=

Basic usage

Restyle an image:

In[2]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/85bff3d8-9c15-4ac8-a24a-8902f04921b1"]
Out[2]=

Requirements

Wolfram Language 11.2 (September 2017) or above

Resource History

Reference