Nadya Primak
I am a game designer, developer, writer, and digital artist. During the day I work on improving the functionality and user experience of websites. At night I am a multi-passionate maker with an endless list of ideas. www.nadyaprimak.com

How to Transfer an Art Style to Any Image

Machine learning and artificial intelligence have been on my radar for years now, but more as a concept and “thing I should know about” rather than something I felt I had the free time or the skills to truly dig into. However, my attitude about machine learning has changed in the past few months as I have seen new and easier tools become accessible to the public.

One such tool is called Spell. Last week I spent days trying to set up Tensorflow on my laptop with the correct dependencies to run a style transfer algorithm. As someone who thought they would grow up to be an artist, learning how to transfer the art style of an artist I admire to my photography seemed like one of the coolest things I could possibly do. However after traversing several levels of dependency hell and realizing that my machine could take days or weeks to train on a single artwork, I decided to outsource the tedium and frustration of dependency management as well as the expense/speed of the GPU to Spell.

An example of style transfer from Priyanka Mandikal’s blog

What’s great about Spell is it is absolutely free to sign up, and when you run commands they run remotely on Spell’s many CPU’s and GPU’s so you don’t have to keep your machine on for days at a time. They do charge you when you use their GPU’s, but the prices are very reasonable, and you are only charged for the time that the GPU was actually training your model (the one I paid for was $0.90 per hour, and training the model took 8 hours). They have good documentation and a very user friendly design, just to sweeten the deal.

Spell also had wonderful tutorials, one which actually included the Style Transfer training that I had been trying to execute. See it for yourself here.

The Scream by Edvard Munch

After some debate I decided to train my model on one of Edvard Munch‘s paintings (no, not The Scream, even though it’s a great one). I wasn’t as happy with it as I hoped to be, because I did not adjust any of the parameters for color and abstraction which are offered when you train the model. Still, it was an exciting moment when I finally got the style transfer to work, and I am even more excited to keep experimenting with it.

If you are interested in experimenting with AI and Machine Learning yourself, I highly recommend trying out Spell.

You may also like...

3 Responses

  1. Jeff says:

    Very cool stuff here, Nadya.

  2. Ting says:

    Wow! Awesome venture into this art area. I can’t find the exact app I used to use, but there’s an Apple app that was pretty good at converting photos into different art styles too. 🙂

  1. June 29, 2019

    […] while ago I published a post about how I used Spell, a machine learning framework that allows you to train yo…. I’ve continued to use Spell, and have expanded into exploring other training […]

Leave a Reply

Your email address will not be published. Required fields are marked *