Skip to content
Vaseem Naazleen Shaik edited this page Sep 25, 2020 · 1 revision

Welcome to the NeuralArt-Website wiki!

What is Neural Style Transfer?

Neural Style Transfer is a technique used to generate an image in the style of another image. The Neural-Style algorithm takes c content image as input, a style image, and returns the content image as if it were painted using the artistic style of the style image.

The key finding of this paper is that the representations of content and style in the Convolutional Neural Network are separable

(that is, we can manipulate both representations independently to produce new, perceptually meaningful images)

description

DESCRIPTION :

Style transfer consists in generating an image with the same content as a base image, but with the style of a different picture (typically artistic). This is achieved through the optimization of a loss function that has 3 components: style loss, content loss, and total variation loss

To compute the style transfer loss :

There are four utilities. They are:

  • GRAM MATRIX: We use gram matrix to compute style loss (feature-wise outer product)

gram_matrix

  • STYLE LOSS: The style loss function, which keeps the generated image close to the style reference image.

Style loss per layer: style_ls

Total style loss : total_style_ls

  • CONTENT IMAGE: The content loss function, which keeps the high-level representation of the generated image close to that of the base image.

Content Loss :

content_ls

Total loss :

tot_ls

  • TOTAL - VARIATION LOSS: The total-variation loss function, a regularization loss which keeps the generated image locally coherent

how_st_works

How the NeuralArt works?

Steps to follow to convert your image into a stylized image in our NeuralArt:

  • 1. UPLOAD CONTENT IMAGE:- Upload your image which is to converted (Content Image).

  • 2. UPLOAD STYLE IMAGE:- Select the style image from the provided style images or Upload your style images.

  • 3. CLICK CREATE:- Your image will be stylized.

Target Audience:

Teens who want to convert their images into interesting paintings and post them on Social media.

Tech stuff to be used:

  • Keras
  • NumPy
  • SciPy
  • Matpltlib
  • Tensorflow
  • Flask (To build the web app)