Skip to content

ericklarac/tf-quick-styler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TF Quick Styler

Based on the model code in magenta and the publication:

Exploring the structure of a real-time, arbitrary neural artistic stylization network. Golnaz Ghiasi, Honglak Lee, Manjunath Kudlur, Vincent Dumoulin, Jonathon Shlens, Proceedings of the British Machine Vision Conference (BMVC), 2017.

Base code taken from TF-Hub: Fast Style Transfer for Arbitrary Styles.ipynb

Original file is located at the this notebook

List of predefined style:

  • kanagawa_great_wave
  • kandinsky_composition_7
  • hubble_pillars_of_creation
  • van_gogh_starry_night
  • turner_nantes
  • munch_scream
  • picasso_demoiselles_avignon
  • picasso_violin
  • picasso_bottle_of_rum
  • fire
  • derkovits_woman_head
  • amadeo_style_life
  • derkovtis_talig
  • amadeo_cardoso

Commands

Using a predifined style

$ python quick-styler.py --content-image-url https://image-cdn.hypb.st/https%3A%2F%2Fhypebeast.com%2Fimage%2F2018%2F09%2Fodell-beckham-jr-facebook-documentary-series-i-am-more-obj-0.jpg --output-file-name styled-image-cli --style-name turner_nantes

Styled image with the command above

Using a URL style

$ python quick-styler.py --content-image-url https://image-cdn.hypb.st/https%3A%2F%2Fhypebeast.com%2Fimage%2F2018%2F09%2Fodell-beckham-jr-facebook-documentary-series-i-am-more-obj-0.jpg --output-file-name styled-image-cli-url --style-url https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Great_Wave_off_Kanagawa2.jpg/800px-Great_Wave_off_Kanagawa2.jpg

Styled image with the command above

Help

Run the following command to get the help of the styler:

$ python quick-styler.py --help

Copyright 2019 The TensorFlow Hub Authors.

Licensed under the Apache License, Version 2.0 (the "License");

Releases

No releases published

Packages

No packages published

Languages