Image style transfer using a style attentional network.
- install requirements with
pip install -r requirements.txt - get your kaggle API key from here
- start training with
python3 train.py
content_dirdirectory to content images (default todata/content)style_dirdirectory to style images (default todata/style)vggpretrained vgg file (default topretrained/vgg.pth)lrleaning ratelr_decayleaning rate decaymax_itermaximum number of iterations (default to 160,000)batch_sizenumber of image pairs in a batchstyle_weightstyle images weight (default to 3.0)content_weightcontent images weight (default to 1.0)n_threadsnumber of threads used for the data loader (default to 2)save_model_intervalinterval to save models (default to 1000)start iternumber of iteration to start training from (in case training was stopped)
- run
test.pywith appropriate arguments
contentcontent imagestylestyle imagealphastyle content trade-offvggpath to pretrained vgg modeldecoderpath to pretrained decodertransformerpath to pretrained transfomer model

