Giter Site home page Giter Site logo

jerriychen / image-style-transfor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harry19902002/image-style-transfor

0.0 2.0 0.0 1.11 MB

照片风格转换 项目主要参考Anish Athalye的Github项目 该项目是基于TensorFlow进行的视频图像转化,参考neural style这篇文章。

License: GNU General Public License v3.0

Python 100.00%

image-style-transfor's Introduction

照片风格转换

项目主要参考Anish Athalye的Github项目

该项目是基于TensorFlow进行的视频图像转化,参考neural style这篇文章。

TensorFlow 并不支持 L-BFGS (论文所用算法), 所以我们使用了 Adam,这样可能需要用更多的参数来获得理想的转换图片.

TensorFlow 可能比其他的深度学习算法稍微慢一些。 我想通过修改tensorFlow的实现方式,算法效率一定会再高一些。 现在,使用TensorFlow实现大概要比Torch工具慢3倍

如何运行

首先在根目录下下载VGG-19网络模型

并在项目根目录下键入:

python neural_style.py --content 原始图片文件名 --styles 风格图片文件名 --out 生成图片文件名

例子

使用 500-2000 迭代次数就可以有一个很不错的结果,通过修改其他参数我们可以得到不同的效果(比如--content-weight,--style-weight,and --learning-rate)。

这是一个迭代了1000次的例子(使用默认参数):

output

原始图片:

input-content

input-style

环境需要

License

Copyright (c) 2015-2016 Anish Athalye. Released under GPLv3. See LICENSE.txt for details.

image-style-transfor's People

Contributors

harry19902002 avatar

Watchers

James Cloos avatar Chris Chen 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.