Skip to content

gs18113/AdaIN-TensorFlow2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdaIN-TensorFlow2

AdaIN(from the paper Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization, https://arxiv.org/abs/1703.06868) implementation with TensorFlow 2

Original PyTorch code: https://github.com/naoto0804/pytorch-AdaIN

Includes TFLite conversion for mobile/embedded usage.

Requirements

  • tensorflow >= 2.0.0
  • tensorflow_datasets

Note

Usage

Download style images

cd STYLE/IMAGE/DIRECTORY/
wget http://web.fsktm.um.edu.my/~cschan/source/ICIP2017/wikiart.zip
unzip wikiart.zip

Train

python3 train.py -exp_name EXP_NAME [-lr LEARNING_RATE] [-batch_size BATCH_SIZE] [-output_dir OUTPUT_DIR] [-save_every SAVE_EVERY] [-save_tflite SAVE_TFLITE]

Check out the code for more training options.

TODO

  • Generate TFLite model from checkpoints
  • Color preserving
  • Style interpolation
  • Different style for different region

About

AdaIN(https://arxiv.org/abs/1703.06868) implementation with TensorFlow 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages