Skip to content

mhd-danish/portfolio_neural_style_transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Style Transfer Project

Neural Style Transfer is a technique discussed in paper A Neural Algorithm of Artistic Style which introduces an artificial system based on a Deep Neural Network that creates artistic images of high perceptual quality. The system uses neural representations to separate and recombine content and style of arbitrary images, providing a neural algorithm for the creation of artistic images. In simple terms, Neural Style transfer is a computer vision topic for stylization that takes two images: a content image and a style reference image, and blends them together so that the resulting output image retains the core elements of the content image, but appears to be painted in the style of the style reference image. This stylization heavily depended on the CNN under study and is more customizatable than CycleGAN (according to the blog).

This project main focus is to take advantage of the customization provided by this technique to generate an image that looks as though painted by a famous artist.

Note: This project is partially inspired from TensorFlow's Neural Style Transfer Documentation and Assignment in TensorFlow: Advanced Techniques Specialization - Coursera.

Approach

  1. Importing the Data (content and style images).
  2. Choosing a model architecture to generate stylized images.
  3. Preprocessing the Data.
  4. Exploring the Data (optional: for the sake of audience)
  5. Creating custom loss functions.
  6. Utilizing TensorFlow's Gradient Tape to update the stylized image.
  7. Using Adam's optimizer instead of LBFGS (as it also works fine).
  8. Saving the results in .gif format.

Content Images

Style Images

Example

Let's take one example to show how the neural style transfer actually works.

Content Image

Style Image

Generation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published