This is an implementation of fast neural style transfer using autoencoders. I used the VGG architecture to measure the style loss of the generated image against that of the original style image. Results can be seen below
model.py
- Autoencoder model definitionvgg.py
- VGG custom architecture to extract featuresloss.py
- Function definitions of Content Loss and Style Lossutils.py
- Helper functionsdataset.py
- Custom Dataset to provide images during trainingmain.ipynb
- Main training script
Pre-trained autoencoder models can be found here
- PyTorch 1.4.0
- Python 3.7.6