Skip to content

EndyWon/StyleEval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StyleEval

[update 1/14/2022]

This is the official implementation of paper "Evaluate and Improve the Quality of Neural Style Transfer" (CVIU 2021)

Environment Implemented:

  • Python 3.6
  • TensorFlow 1.4.0
  • Numpy 1.16.0
  • CUDA 8.0

Getting Started:

Step 1: clone this repo

git clone https://github.com/EndyWon/StyleEval
cd StyleEval

Step 2: download pre-trained vgg19 model

bash download_vgg19.sh

Quality Evaluation:

  • Test on a single image pair

python quality_criteria.py --content ContentImagePath --style StyleImagePath --stylized StylizedImagePath

MO-Net:

python MONet.py --content inputs/Seth.jpg --style inputs/Gogh.jpg

Discussions

For quality evaluation, we tested images of size 512x512 on an Intel Core i7-5820K CPU @ 3.30GHz × 12, the average time is about 126 seconds. We found that the most time was spent on calculating LP scores (about 80 seconds).

Currently the evaluation time is too slow, one may consider using GPU convolution to accelerate the patch matching process in LP calculation.

Citation:

If you find this code useful for your research, please cite the paper:

@article{wang2021evaluate,
  title={Evaluate and improve the quality of neural style transfer},
  author={Wang, Zhizhong and Zhao, Lei and Chen, Haibo and Zuo, Zhiwen and Li, Ailin and Xing, Wei and Lu, Dongming},
  journal={Computer Vision and Image Understanding},
  volume={207},
  pages={103203},
  year={2021},
  publisher={Elsevier}
}

About

This is the official implementation of paper "Evaluate and Improve the Quality of Neural Style Transfer" (CVIU 2021))

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published