一、导读。
图片风格转换,最初是由Gatys在2015年发表的“A Neural Algorithm of Artistic Style”这篇论文中提出。该论文构建了一个无监督的学习网络,输入两张图片(一张内容图,一张风格图),经过训练输出一张带有内容图内容且带有风格图风格的新图片。这篇博客就是写了我自己对这片论文的实现。代码地址(neural style文件夹):点击打开链接
二、原理。
(一)、实验材料准备。需要两张图片(一张内容图,一张风格图),一个带有VGG19权重的npy文件。
(二)、基本原理。通俗来讲,就是利用机器学习的不断迭代,学内容图的内容特征,学风格图的风格特征,最后在内容以及风格上不断逼近两