GithubHelp home page GithubHelp logo

endywon / styleeval Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 2.0 460 KB

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

License: MIT License

Python 99.54% Shell 0.46%

styleeval's Introduction

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}
}

styleeval's People

Contributors

endywon avatar

Stargazers

 avatar ZinkCas avatar hhuz avatar  avatar  avatar  avatar  avatar FeiChi Chen avatar  avatar  avatar

Watchers

 avatar

styleeval's Issues

CST and MO-Net

Hi,
thank you very much for sharing the code for this interesting paper.
as far as I understand this is just the evaluation method, so basically the first contribution of the paper but not the second one with the CST and MO-Net right?

If thats the case, are you also going to publish the code for CST and MO-Net?

Thank you for clarifying.
Best regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.