PyTorch implementation of "Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization" by Xun Huang, Serge Belongie. arxiv.
pip install -r requitements.txt
-
to start training:
python main.py train path/to/coco path/to/wikiart [OPTIONS]
-
to change training parameters and options:
python main.py train --help
- to run inference:
python main.py infer [OPTIONS]
- info on supported options:
python main.py infer --help
- All images were resized to 1024x1024 for inference. The 1024x1024 outputs are interpolated to the original size using bilinear interpolation.
Content Img | Style Img | Output |
---|---|---|