A python implementation of Deep-Image-Analogy based on pytorch

Deep-Image-Analogy

This project is a python implementation of Deep Image Analogy.

Some results

results-1

Requirements

  • python 3

  • opencv3

    If you use anaconda, you can install opencv3 by conda install opencv

  • pytorch

    See pytorch for installation

    Codes in branch “master” works with pytorch 0.4

    Codes in branch “pytorch0.3” works with pytorch 0.3

  • cuda (CPU version is not implemented yet)

Usage (demo)

python main.py --resize_ratio 0.5 --weight 2 --img_A_path data/demo/ava.png --img_BP_path data/demo/mona.png --use_cuda True

GitHub

https://github.com/Ben-Louis/Deep-Image-Analogy-PyTorch

 

 

 

To finish reading, please visit source site