Implementation of "Deep Feature Interpolation for Image Content Changes"(https://arxiv.org/abs/1611.05507) using Chainer.
- Python 2.7
- Chainer 1.16.0
- Pillow 3.1.0
Download VGG_ILSVRC_19_layers.caffemodel from https://gist.github.com/ksimonyan/3785162f95cd2d5fee77.
$ python src/create_chainer_model.py
- Download img_align_celeba.zip and list_attr_celeba.txt from CelebA Dataset web site.
- Extract zip file.
Example:
$ python src/extract_image.py img_align_celeba list_attr_celeba.txt image/smile image/normal smiling young,black_hair,straight_hair -e eyeglasses,male,wearing_hat,pale_skin,narrow_eyes,bushy_eyebrows,chubby,double_chin,bald,bangs,receding_hairline,sideburns,wavy_hair
Example:
$ python src/train.py sample/sample.png sample/out.png image/normal image/smile -g 0 -i 2000
MIT License