This package implements an algorithm called neural styles.
Currently, you can generate an image using any of available pre-trained models.
perceptual("path/to/input/", "model"; gpu = -1, write = true, out = "")
Kwargs:
- gpu: If you set this to
true
, the model is loaded onto the GPU. Improves performance. - write: If this is true, it writes to file.
- out: By default,
path/$(name)_output.jpg
is the name of the file written. With this, you can change the output filename and path.
If this is the input:
running perceptual("img.jpg", "s4")
will give you:
The original Python implementation here by @zhaw