Giter Club home page Giter Club logo

neural-style-visualizer's Introduction

Neural-Style Visualization

This project aims at visualize loss and other important metrics for analysis.

This project also implement an instance of neural-style, follows the idea of a keras example keras/examples/neural_style_transfer.py, but with a mostly different design.

Visualization is important and fun. It tells us what's going on.

Requirements

  • python 3
  • keras
  • tensorflow >= 0.9.0 / Theano
  • h5py
  • Pillow
  • requests
  • tornado

Usage

make sure you have the requirements above, or type this in your command line:

sudo pip install -r requirements.txt

if you want to use tensorflow as backend, follow the instruction to install tensorflow first

then

python neural_style.py

now you can see the neural style board in localhost:8000

Loss analysis

For example, you may find an bad output

after comparing the loss, you will found negative correlation between style loss and content loss(against the assumption of neural-style):

so a very small picture may not be very suitable for neural-style task.

Here's a better result with nearly independent loss:

A very high learning rate:

Realtime watch

Headstart

You can stop your training at any time and continue at the last epoch.

Realtime hyperparameter adjusting

You are free to adjust hyperparameter

Speed

Using TensorFlow as backend.

CPU: about 30 seconds/iter on Macbook Pro

GPU: about 0.3 s/iter on an K20

neural-style-visualizer's People

Contributors

suquark avatar xymeow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

neural-style-visualizer's Issues

Logic error in recording

The record file should use given name, not a fix one. And there should not be any assumption about the record file.

Project issue

Clean up project, write requirements, add license

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.