资源算法chainer-gogh

chainer-gogh

2019-09-18 | |  93 |   0 |   0

chainer-gogh

Implementation of "A neural algorithm of Artistic style" (http://arxiv.org/abs/1508.06576)

: https://research.preferred.jp/2015/09/chainer-gogh/

cat.png

style_0.png im0.png style_1.png im1.png

style_2.png im2.png style_3.png style_3.png

im3.png  style_4.jpgim4.pngstyle_5.pngim5.pngim6.pngstyle_7.pngim7.png

(VGG, lam=0.0075, after 5000 iteration)

Usage:

Chainer

pip install chainer

https://github.com/pfnet/chainer

  • NIN https://gist.github.com/mavenlin/d802a5849de39225bcc6

(-m nin) * VGG https://gist.github.com/ksimonyan/211839e770f7b538e2d8#file-readme-md

(-m vgg-m vgg_chainer) vgg_chainer(chainer 1.19)

  • GoogLeNet https://github.com/BVLC/caffe/tree/master/models/bvlc_googlenet

NIN(-m googlenet)

  • illustration2vec http://illustration2vec.net/ (pre-trained model for tag prediction, version 2.0)

VGG(-m i2v)

CPU

python chainer-gogh.py -m nin -i input.png -s style.png -o output_dir -g -1

GPU

python chainer-gogh.py -m nin -i input.png -s style.png -o output_dir -g GPU

VGG

python chainer-gogh.py -m vgg_chainer -i input.png -s style.png -o output_dir -g 0 --width 256

-m nin

ninvgg, vgg_chainer, googlenet, i2v

  • input.txt

input0.png style0.png
input1.png style1.png
...

chainer-gogh-multi.py

python chainer-gogh-multi.py -i input.txt

VGGGPU

  • --lr:

  • --lam: inputstyle

  • alpha, beta: models.py

  • *


上一篇:crnn (with Chinese Support)

下一篇:TRPO

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...