Giter Club home page Giter Club logo

deep-dream's Introduction

Deep-Dream

Find and Enhance Patterns in Images via Algorithmic Pareidolia

What is Deep Dream ?

DeepDream is a computer vision program created by Google engineer Alexander Mordvintsev which uses a convolutional neural network to find and enhance patterns in images via algorithmic pareidolia, thus creating a dream-like hallucinogenic appearance in the deliberately over-processed images.

How Deep Dream Works ?

The idea, simply, is like having a feedback loop on the image classification model. You give the model an image, and it gives you some scores for what objects it was trained on that it believes they might exist in the image. Then, you let the network to modify the input image to make these objects visible more and more. You can repeat this more than one time. Any pretrained network can be used, but in this Inception5h is used since it can accept images of different sizes.

Once the image is passed through the layers, a function calculates the gradient of an input image for use in the DeepDream algorithm. The gradient is then added to the input image so the mean value of the layer-tensor is increased. This process is repeated a number of times and amplifies whatever patterns the Inception model sees in the input image.

Usage:

  • The script provided runs the deep dream algorithim to create frames, and the frames are compiled into a video.
python dreamer.py --help

usage: dreamer.py [-h] --input INPUT --name NAME --frames FRAMES
                  [--iter_num ITER_NUM] [--zoom ZOOM] [--rec_num REC_NUM]

Deep Dream Creator

optional arguments:
  -h, --help           show this help message and exit
  --input INPUT        Image to use for deep dream
  --name NAME          Name of the Dream
  --frames FRAMES      Number of frames
  --iter_num ITER_NUM  Number of iterations
  --zoom ZOOM          Controls the speed of the zoom [1,2,.....]
  --rec_num REC_NUM    Number of recursive loops

Example:

G00D LUCK

For doubts email me at: [email protected]

deep-dream's People

Contributors

crypto-code avatar

Stargazers

 avatar

Watchers

 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.