Skip to content

re-implementation for A "Neural Algorithm of Artistic Style" with live video/gif demos on google colab

License

Notifications You must be signed in to change notification settings

mohammed-elkomy/neural-style-transfer-tensorflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Style Transfer [Keras|Tensorflow v2]

In this repo I re-implement A Neural Algorithm of Artistic Style from scratch entirly on Google Colab, using Imagenet pre-traing VGG19 network, with a lot of interesting gif demos of the reconstruction process from layers and the style transfer process.

How To Use

To run the code through colab you just need add my drive folder for style transfer artifacts to your google drive storage since the code references content and style images from this folder, also saves generated images to it to generate videos and demos.

You may make your own directory structure on your drive and change the root_path referenced in the notebook, Also make sure of the root_path in your drive when mounted to Colab.

In summary you may need to

  1. Set the mounted path
  2. modify the layer of interset at Precomputing Source Style and Content Representation
  3. Either Do Style Transfer or Image reconstruction from layer

Image Reconstruction using VGG19 features

Modify the layer of interest at Precomputing Source Style and Content Representation then run Recontstruction From Layer Experiment.

Style Transfer Experiment

Modify the layer of interest at Precomputing Source Style and Content Representation then run Style Transfer Experiment You may also modify the losses and the weighting of content and style loss.

Video to gif

Converting high resolution videos into gifs isn't a simple task, I used gifski it's a great and efficient tool for producing high-quality gifs.

For More Gif Demos

Here

Reference Papers:

About

re-implementation for A "Neural Algorithm of Artistic Style" with live video/gif demos on google colab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published