Coder Social home page Coder Social logo

luzhouheng / deep-dream-maker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from overstruck/deep-dream-maker

0.0 2.0 0.0 401 KB

GUI Interface for Google's Deep Dream and related python scripts

License: GNU General Public License v2.0

Python 100.00%

deep-dream-maker's Introduction

DeepDream Maker

DeepDream Maker is a GUI Interface wrapper for Google's Deep Dream and related python scripts

It allows you to easily dreamifty images without needing to use a terminal and provides a flexible and intuitive way to customize your dreams by specifying different parameters

Note: currenly only tested in Ubuntu and Mint, not Windows or OSX

Demo Video

Previous Image 1 | Previous Image 2 | Previous Image 3

Contributing

You need to have Deep Dream working, which means having all of its dependencies installed like caffe. You will also need python 2.7 and PyQt4

The UI was made by using Qt Designer because it is really fast and easy to use, aside from that fact that it is cross-platform compatible with Windows and OSx. You can edit the UI by editing the GUI.ui file. There's no need to compile anything, just saving your changes in Qt Designer will update the interface the next time you run the program since it is loaded dinamically.

In Ubuntu/Mint you can get Qt Designer using Software Manager

You can install PyQt4 in Debian and "Ubuntus" distros (like mint) by doing

sudo apt-get install python-qt4

To run the program in your terminal:

cd deep-dream-maker
python -u DeepDreamMaker.py

Or just double click DeepDreamMaker.py

I am using Sublime Text 3 to develop the software. If you are using it too, and you use Crtl + B to "build" your applications, you need to add caffe to your PATH so that when you run DeepDream Maker, you don't run into problems. If you don't you will most likely run into ImportError: No module named caffe

See: https://stackoverflow.com/questions/28300286/sublime-importerror-no-module-named

You can do this by adding

{
	"shell_cmd": "python -u \"$file\"",
	"env": {
		"PYTHONPATH": "/home/YOU-USER-NAME/caffe/python"
	},
	"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python"
}

To your .sublime-build file. You can create a custom "build system" by going to Tools->Build System->New Build System. Don't forget to use your username (don't copy and paste blinly)

Things do to

  • Add support for different arguments such as number of iterations (1st priority)
    • Add gui elements for different arguments (checkboxes, etc...)
  • Add support to create animations (videos and gifs w/ option to zoom and rotate)
  • Error checking
  • Multi-proccesing support

Requirements

You need to have Deep Dream working, which means having all of its dependencies installed like caffe. You will also need python 2.7 and PyQt4

To run the program in your terminal:

cd deep-dream-maker
python -u DeepDreamMaker.py

Final thoughts

I will continue to work on this application in my free time. It really shouldn't be that hard to implement all the functionality I want since we are mostly just wrapping around Google's deep dream. To create animations I think we will also just need to wrap around ffmpeg using it in a subproccess and pasing it the user arguments.

Happy dreaming!

deep-dream-maker's People

Contributors

overstruck avatar

Watchers

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