Code Monkey home page Code Monkey logo

styletransfer's Introduction

Image Style Transfer

Introduction

This is a real-time image style transfer project based on AdaIn and VGG network , python flask as frontend and HTML5 as backend , project of AI Introduction, a course of Peking Unicersity

Our website is http://pkuszm.cn/

Authors

Zhuming Shi, Weibo Xu, Yiming Zhao

Dependence

Python 3 only

$ apt-get install python3.6

Use requirements.txt to install packages

$ pip3 install -r requirements.txt

Use start.py to start web application

$ python3 start.py

It is recommended to use virtualenv and gunicorn to deploy the website on the server

$ pip install virtualenv
$ virtualenv -p /usr/bin/python3 ENVE
$ gunicorn -c gunicorn.conf.py --error-logfile errorlog.txt start:app -D

Structure

StyleTransfer/
├── LICENSE
├── README.md
├── start.py
├── function.py
├── net.py
├── train.py
├── convert.py
├── thumb.py
├── favicon.ico
├── image
│   ├── upload
│   │   ├── content
│   │   ├── style
│   │   └── convert
│   └── thumb
│       ├── content
│       ├── style
│       └── convert
├── static
├── templates
│   ├── index.html
│   ├── show.html
│   ├── authors.html
│   └── submissions.html
├── test.py
├── .gitignore
└── requirements.txt

References

  1. Gatys, Leon A., A. S. Ecker, and M. Bethge. "Image Style Transfer Using Convolutional Neural Networks." Computer Vision & Pattern Recognition 2016.

  2. Huang, Xun, and S. Belongie. "Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization." 2017.

styletransfer's People

Contributors

shizhuming avatar zym-pku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.