CV之NS:图像风格迁移(Neural Style 图像风格变换)算法简介、过程思路、关键步骤配图、案例应用之详细攻略
目录
图像风格迁移算法简介
图像风格迁移算法过程思路
1、VGG对比NS
图像风格迁移算法关键步骤
1、根据VGG卷积层的特征还原出对应的原始图像
2、利用风格损失还原的图像
3、 原始图像风格迁移的原理
4、 快速图像风格迁移的原理
5、原始图像风格迁移和快速图像风格迁移的比较
图像风格迁移算法案例应用
图像风格迁移算法简介
相关论文
1、A Neural Algorithm of Artistic Style
arXiv:https://arxiv.org/abs/1508.06576
PDF链接01:https://arxiv.org/pdf/1508.06576.pdf
![1581daec5709f709a5365a5c88232fff.png](https://img-blog.csdnimg.cn/img_convert/1581daec5709f709a5365a5c88232fff.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
![13671415b553c906b5fec3f90908bb5e.png](https://img-blog.csdnimg.cn/img_convert/13671415b553c906b5fec3f90908bb5e.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
2、Torch implementation of neural style algorithm
neural-style: Torch implementation of neural style algorithm
GitHub代码地址:https://github.com/daerduoCarey/neural-style
![258e7e3ad2179fda53e4894fc4cdac0a.png](https://img-blog.csdnimg.cn/img_convert/258e7e3ad2179fda53e4894fc4cdac0a.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
图像风格迁移算法过程思路
1、VGG对比NS
![6c949895eff343b2cbb020f8fc7e40d8.png](https://img-blog.csdnimg.cn/img_convert/6c949895eff343b2cbb020f8fc7e40d8.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
图像风格迁移算法关键步骤
1、根据VGG卷积层的特征还原出对应的原始图像
![67c585e18631796313f26570af7a1f20.png](https://img-blog.csdnimg.cn/img_convert/67c585e18631796313f26570af7a1f20.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
2、利用风格损失还原的图像
梵高的著名画作《星空》的风格
![22dafdc55dc972f063818beca3703658.png](https://img-blog.csdnimg.cn/img_convert/22dafdc55dc972f063818beca3703658.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
3、 原始图像风格迁移的原理
组合内容损失和风格损失还原图像
![1b5e5ee7354d3781a00ea89b2cb55654.png](https://img-blog.csdnimg.cn/img_convert/1b5e5ee7354d3781a00ea89b2cb55654.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
4、 快速图像风格迁移的原理
![c5a552b9bf649a223916d65f2e10ef13.png](https://img-blog.csdnimg.cn/img_convert/c5a552b9bf649a223916d65f2e10ef13.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
5、原始图像风格迁移和快速图像风格迁移的比较
![ef676553bacc51c82aae2a93c379d930.png](https://img-blog.csdnimg.cn/img_convert/ef676553bacc51c82aae2a93c379d930.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
图像风格迁移算法案例应用
1、论文中的案例应用
(1)、neural-style: Torch implementation of neural style algorithm
GitHub代码地址:https://github.com/daerduoCarey/neural-style
![3bd966403b143bdfb89de291f2015ed4.png](https://img-blog.csdnimg.cn/img_convert/3bd966403b143bdfb89de291f2015ed4.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
![7c5898dbb260b575d109ffc12cf44dc5.png](https://img-blog.csdnimg.cn/img_convert/7c5898dbb260b575d109ffc12cf44dc5.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
![v2-98cab4f35d2084f969a8189e90b47dee_b.jpeg](http://img-01.proxy.5ce.com/view/image?&type=2&guid=db7b661d-cd2a-eb11-8da9-e4434bdf6706&url=https://pic3.zhimg.com/v2-98cab4f35d2084f969a8189e90b47dee_b.jpeg)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
![26108cc329cd2e1b4ca2f9a7483b7671.png](https://img-blog.csdnimg.cn/img_convert/26108cc329cd2e1b4ca2f9a7483b7671.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
(2)、《A Neural Algorithm of Artistic Style》
![b3d48aaf435c34ffe276c7396d17a11e.png](https://img-blog.csdnimg.cn/img_convert/b3d48aaf435c34ffe276c7396d17a11e.png)
![567c51d057f5cd9cb004a4ef640253f3.png](https://img-blog.csdnimg.cn/img_convert/567c51d057f5cd9cb004a4ef640253f3.png)
2、博客文章案例应用
NS之VGG(Keras):基于Keras的VGG16实现之《复仇者联盟3》灭霸风格迁移设计(A Neural Algorithm of Artistic Style)
CV之NS之VGG16:基于TF Slim(VGG16)利用七个不同的预训练模型实现快速NS风格
CV之NS之VGG16:基于预训练模型VGG16训练COCO的train2014数据集实现训练《神奈川冲浪里》风格配置yml文件