womeier / adaconv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo is a copy of https://github.com/RElbers/ada-conv-pytorch from an earlier point in time. Please look at the original repo for a more recent version, don't use this one.

AdaConv

Unofficial PyTorch implementation of the Adaptive Convolution architecture for image style transfer from "Adaptive Convolutions for Structure-Aware Style Transfer". Disclaimer: I have not trained the model the full number of iterations yet, this is still a work in progress.

Direct link to the adaconv module.

Direct link to the kernel predictor module.

Data

Trained with MS COCO train2017 dataset for content images and WikiArt train dataset for style images. By default the content images should be placed in ./data/MSCOCO/train2017 and the style images in ./data/WikiArt/train. You can change these directories by passing arguments when running the script: python .\train.py --content=<path/to/content-images> --style=<path/to/style-images> or by changing the default value in /lib/lightning/datamodule.py

Architecture (from the original paper):

https://raw.githubusercontent.com/RElbers/ada-conv-pytorch/master/imgs/arch_01.png

https://raw.githubusercontent.com/RElbers/ada-conv-pytorch/master/imgs/arch_02.png

Preliminary results after training 45k iterations:

https://raw.githubusercontent.com/RElbers/ada-conv-pytorch/master/imgs/preliminary_results.jpg

About

License:MIT License


Languages

Language:Python 100.0%