Coder Social home page Coder Social logo

psycam's Introduction

PsyCam

Alt text

Google DeepDream

The Google DeepDream algorithm is a modified neural network. Instead of identifying objects in an input image, it changes the image into the direction of its training data set, which produces impressive surrealistic, dream-like images. You can find the original GitHub repository at https://github.com/google/deepdream/blob/master/dream.ipynb

PsyCam

PsyCam is an extension of the DeepDream for the Raspberry Pi. With the RPi camera module, PsyCam can take a photo and convert it into a DeepDream.

Installation

Either follow the manual installation instructions at

http://www.knight-of-pi.org/deepdream-on-the-raspberry-pi-3-with-raspbian-jessie/

or perform the following steps for the semi-automated installation:

$ mkdir ~/deepdream && cd ~/deepdream
$ git clone https://github.com/JoBergs/PsyCam
$ cd PsyCam
$ python install_tools.py packages
$ python install_tools.py caffe
$ python install_tools.py protobuf
$ python install_tools.py camera
$ sudo reboot

The installation will take half a day or so. The installer script should also work on most modern Ubuntu systems.

Usage

The script psycam.py is controlled via command-line parameters. They are listed with

$python psycam.py --help

Start PsyCam with randomized layer and octave. This requires an attached and enabled Raspberry Pi camera module.

$python psycam.py

Start PsyCam with an input image instead of a camera snapshot (required for non-RPi usage!):

$python psycam.py -i sky_small.jpg

Make snapshots with the given size width height (large sizes will crash the RPi):

$python psycam.py -s 400 300

Make snapshots and convert them to dreams continually:

$python psycam.py -c

Start PsyCam set layer depth, type and octave manually:

$python psycam.py -d 2 -t 1 -o 6

Create a new network model file:

$python psycam.py -n

Output images

The dreams are stored in

~/deepdream/PsyCam/dreams 

with the original photo and tagged with a timestamp.

Have fun

Author: Johannes Bergs

psycam's People

Stargazers

Woolfy avatar Tomas Mistoler avatar  avatar  avatar  avatar G. B. avatar yvt avatar Yukimasa Sugizaki avatar Ben Berg avatar

Watchers

James Cloos avatar Johannes Bergs avatar  avatar  avatar

psycam's Issues

continual display of dreams

Thank you for doing this. I actually got it to work! I know it's not really an issue, but can i get the RPi to keep showing images instead of the terminal output? I installed fbi and it's great for showing images but I have to keep issuing commands from the terminal. I guess I have to modify the psych script to programmatically call fbi with subsequent images. Unless you know of a better and simpler way?

Pi4 Ubuntu

Hello,

Thanks for your work.
Is it OK to use with Pi4 and Ubuntu ?
Is there any news with deep dream that is not implemented in your script ?
Is it still the best way to use it on a Pi ?

Regards,

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.