发布于2019-08-22 16:45 阅读(629) 评论(0) 点赞(19) 收藏(5)
NS之VGG(Keras):基于Keras的VGG16实现之《复仇者联盟3》灭霸风格迁移设计(A Neural Algorithm of Artistic Style)
导读
通过代码设计,基于Keras的VGG16实现A Neural Algorithm of Artistic Style之灭霸风格迁移设计
灭霸风格素材
1、对我的偶像胡歌,下手……
2、其他风格迁移设计
- #Keras:基于Keras的VGG16实现A Neural Algorithm of Artistic Style
- from keras.preprocessing.image import load_img, img_to_array
- import numpy as np
- from scipy.misc import imsave
- from scipy.optimize import fmin_l_bfgs_b
- import time
- from keras.applications.vgg16 import VGG16
- from keras.applications.vgg16 import preprocess_input
- from keras import backend as K
- import os
-
- # References
- - [A Neural Algorithm of Artistic Style](http://arxiv.org/abs/1508.06576)
- '''
- base_image_path=r'F:\File_Python\Python_example\fast_style_transfer_master\examples\content\20180214(21).jpg'
- style_reference_image_path=r'F:\File_Python\Python_example\fast_style_transfer_master\examples\style\mieba02.jpg'
- result_prefix=r'F:\File_Python\Python_example\fast_style_transfer_master\examples\results'
- iterations=10
- content_weight=0.025
- style_weight=1.0
- total_variation_weight=1.0
作者:就是这么自信
链接:https://www.pythonheidong.com/blog/article/53010/67f2e96ce63b1b5a5833/
来源:python黑洞网
任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任
昵称:
评论内容:(最多支持255个字符)
---无人问津也好,技不如人也罢,你都要试着安静下来,去做自己该做的事,而不是让内心的烦躁、焦虑,坏掉你本来就不多的热情和定力
Copyright © 2018-2021 python黑洞网 All Rights Reserved 版权所有,并保留所有权利。 京ICP备18063182号-1
投诉与举报,广告合作请联系vgs_info@163.com或QQ3083709327
免责声明:网站文章均由用户上传,仅供读者学习交流使用,禁止用做商业用途。若文章涉及色情,反动,侵权等违法信息,请向我们举报,一经核实我们会立即删除!