In this recipe, you will teach a computer how to paint. The key idea is to have a painting model image from which the neural network infers the painting style. This style is then transferred to a another picture that is repainted accordingly. The recipe is a modification of the code developed by log0 and available online (https://github.com/log0/neural-style-painting/blob/master/TensorFlow%20Implementation%20of%20A%20Neural%20Algorithm%20of%20Artistic%20Style.ipynb).
Transferring style with VGG19 for image repainting
Getting ready
We are going to implement the algorithm described in the paper, A Neural Algorithm of Artistic Style (https://arxiv.org/abs/1508.06576) by Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge...