这篇文章通过一个具体的例子来看一下使用torch可以做的有趣的事情。
事前准备
- https://liumiaocn.blog.csdn.net/article/details/109848433
liumiaocn:fast-neural-style liumiao$ th
______ __ | Torch7
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ | Type ? for help
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
th>
步骤1: 下载图像风格迁移代码
执行 命令:git clone https://github.com/jcjohnson/fast-neural-style
liumiaocn:~ liumiao$ git clone https://github.com/jcjohnson/fast-neural-style
Cloning into 'fast-neural-style'...
remote: Enumerating objects: 3, done.
remote: Counting object