Giter Club home page Giter Club logo

neural-style-transfer-gatys's Introduction

Neural-Style-Transfer-Gatys

This is a Tensorflow implementation of the paper A Neural Algorithm of Artistic Style by Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge.

Some details

Quick Start

python3 transfer_gatys_tf.py --content_img content_img.jpg --style_img style_img.jpg --lr_rate 1 --epoch 3000

View the code for more details about arguments.

Results

ย 

neural-style-transfer-gatys's People

Contributors

vainf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

arwehei beyonehan

neural-style-transfer-gatys's Issues

tensorflow 2 port

Hi,
can we convert this to tensorflow 2-code?
E.g. it complains at: tf.variable_scope and i was not able to convert the passage to proper tf-2.
Any suggestions?

Thank you

Running on Ubuntu 18.04 in virtual environment

Hi, i try to run your script on an azure gpu Machine.
On this Machine i am using a docker Image (Ubuntu 18.04) with python 3.6
When I am starting the script I receive
root@efd02e5c0ceb:/app/Neural-Style-Transfer-Gatys# python3 transfer_gatys_tf.py --content_img content_img.jpg --style_img style_img.jpg --lr_rate 1 --epoch 3000
Traceback (most recent call last):
File "transfer_gatys_tf.py", line 183, in
main()
File "transfer_gatys_tf.py", line 89, in main
plt.title('Content Image')
File "/usr/local/lib/python3.6/dist-packages/matplotlib/pyplot.py", line 1427, in title
return gca().set_title(s, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/matplotlib/pyplot.py", line 984, in gca
return gcf().gca(**kwargs)
File "/usr/local/lib/python3.6/dist-packages/matplotlib/pyplot.py", line 601, in gcf
return figure()
File "/usr/local/lib/python3.6/dist-packages/matplotlib/pyplot.py", line 548, in figure
**kwargs)
File "/usr/local/lib/python3.6/dist-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/usr/local/lib/python3.6/dist-packages/matplotlib/backends/_backend_tk.py", line 1044, in new_figure_manager_given_figure
window = Tk.Tk(className="matplotlib")
File "/usr/lib/python3.6/tkinter/init.py", line 2020, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

Any ideas?

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.