CV之NS之VGG16:基于TF Slim库利用VGG16算法的预训练模型实现七种不同快速图像风格迁移设计(cubist/denoised_starry/mosaic/scream/wave)案例
2023-09-14 09:04:44 时间
CV之NS之VGG16:基于TF Slim库利用VGG16算法的预训练模型实现七种不同快速图像风格迁移设计(cubist/denoised_starry/feathers/mosaic/scream/udnie/wave)案例
目录
基于TF Slim库利用VGG16算法的预训练模型实现七种不同快速图像风格迁移设计(cubist/denoised_starry/mosaic/scream/wave)案例
基于TF Slim库利用VGG16算法的预训练模型实现七种不同快速图像风格迁移设计(cubist/denoised_starry/mosaic/scream/wave)案例
实现结果
1、本博主,以前几天拍过的东方明珠照片,为例进行快速NS风格
model | introduction | original | result |
cubist | Modern art pictures | ||
denoised_starry | Van Gogh's famous painting 《The Starry Night》 | ||
feathers | Leaf art pictures | ||
mosaic | Mosaic glass decoration | ||
scream | Edvard Munch's famous painting, 《The Scream》 | ||
udnie | Francis Capilla's paintings《udnie Young American Girl》 | ||
wave | The famous painting of Kanagawa, 《かながわおきなみうら》 |
2、这是本博主拍摄的一张东方明珠夜景,进行了快速NS实现
部分实例代码
from __future__ import print_function
import tensorflow as tf
import reader
import model
import time
import os
image01='NS_test03'
type01='wave'
model_file='models/%s.ckpt-done' %(type01)
image_file='img/%s.jpg' % (image01)
……
tf.app.flags.DEFINE_integer('image_size', 256, 'Image size to train.')
tf.app.flags.DEFINE_string("model_file", model_file, "") #tf.app.flags.DEFINE_string("model_file", "models.ckpt", "")
tf.app.flags.DEFINE_string("image_file", image_file, "") #tf.app.flags.DEFINE_string("image_file", "a.jpg", "")
……
相关文章
- Microsoft Visual Studio Installer Projects 安装包的制作案例
- Mybatis+mysql动态分页查询数据案例——工具类(MybatisUtil.java)
- SPSS统计分析案例:无空白列重复正交试验设计方差分析
- 数据迁移案例
- keras系列︱迁移学习:利用InceptionV3进行fine-tuning及预测、完美案例(五)
- 运行RF测试案例,显示unable to open socket to "localhost:56505" error: [Errno 10061] 错误,且关闭RF卡死的解决办法
- 数据迁移案例
- reactjs redux集中式状态管理最简入门案例
- NLP之Chatgpt:基于openai框架通过调用API接口实现Chatgpt的吊炸天功能的图文教程(基于python代码实现)、案例应用之详细攻略
- DL之AlexNet:AlexNet算法的简介(论文介绍)、架构详解、案例应用等配图集合之详细攻略
- Py之matplotlib-seaborn :高级图可视化之Q-Q分位数图probplot、boxplot箱线图、stripplot分类散点图的简介、案例应用、代码实现之详细攻略
- Java递归基础案例-斐波纳契数列
- 实战案例丨使用云连接CC和数据复制服务DRS实现跨区域RDS迁移和数据同步
- js之购物车案例
- glibc性能:改进的一个典型案例
- EasyExcel 实现读写 Excel 超多案例
- Scratch3.0——助力新进程序员理解程序(案例一十一、大象吃苹果)