LoginSignup
2
1

More than 5 years have passed since last update.

neural styleを実装しました。
下記にてダウンロードできます。

pip install Optimizer_with_theano

API化しているので実装は簡素です。

import Optimizer_with_theano.API as API

neural = API.neural_style(content_img_path=None,
                          style_img_path=None,
                          out_img_path=None)
neural.build()
neural.generate_image()

content_img_path、style_img_path、out_img_pathにそれぞれコンテンツ画像のパス、スタイル画像のパス、出力画像を格納するディレクトリパスをそれぞれ入力します。何も入力しない場合はカレントディレクトリにimg_{}.jpg({}は番号)の名前でサイケデリックなインコが出力されます笑

出力結果:
img_15.jpg

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1