[PYTHON] Style conversion by neural style

Implemented neural style. You can download it below.

pip install Optimizer_with_theano

Implementation is simple because it is made into an 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()

Enter the content image path, style image path, and directory path to store the output image in content_img_path, style_img_path, and out_img_path, respectively. If you do not enter anything, a psychedelic parakeet will be output in the current directory with the name img_ {} .jpg ({} is a number) lol

Output result: img_15.jpg

Recommended Posts

Style conversion by neural style
Another style conversion method using Convolutional Neural Network
Become Indian (domain conversion by Cycle-GAN)
Landscape † Different World Conversion by AI †
[Chainer] Document classification by convolutional neural network