神经网络绘画示例

来源:互联网 发布:淘宝客转换软件 编辑:程序博客网 时间:2024/05/23 11:49

利用git-hub的神经网络例子生成了几副画作,
地址:https://github.com/jcjohnson/neural-style
具体的命令执行可以分析源代码得到,这里给出一个例子:
python neural_style.py –iterations 5000 –content example.jpg –styles style.jpg –output result.jpg –checkpoint-iterations 50 –checkpoint-output temp%s.jpg
以上命令:迭代次数5000次(实际上设置了checkpoint改成无限次都行),被转换的图片:example.jpg,作为风格的图片style.jpg,输出result.jpg,检查点:每50次迭代生成一张名为temp%s.jpg的图片,其中%s代表已经迭代的次数。
效果如下:
这里写图片描述
这里写图片描述
迭代过程:
这里写图片描述

0 0
原创粉丝点击