Can #AI make me look (more) presentable? The jury is out I think.
This is called style transfer, where the style/technique from a kind of painting (could be a photos too) is applied to an image, to create a new image. I took this using the built-in camera on my machine sitting at my desk and then applying the different kind of ‘styles’ on it. Each of these styles are is a separate #deeplearning model that has learned how to apply the relevant style to a source image.
Specifically, this uses a Neural Network (#DeepLearning) model called VGG19 , which is a 19-layer model running on TensorFlow. Of course, you can export this to a ONNX model, that then can be used in most other run-times and libraries.
This is inspired from Cornell universities paper - Perceptual Losses for Real-Time Style Transfer and Super-Resolution . Below is a snapshot of the VGG code that.
|
|
If you want to play with this, you can download the code . Personally, I like the Mosaic style the best.