By now, the entire internet has realized that Deep Dream, Google’s artificial neural network, is capable of some pretty trippy images. But what happens when you run a movie about acid trips through the acid trip generator? Fear and Loathing, the way it was meant to be seen!
Some sinister Github user recently published a set of instructions that enable anyone to pump video through Deep Dream. As proof of concept, he gave a scene from Fear and Loathing in Las Vegas the hallucination treatment.
Just as you saw in the still images, the neural network generates bizarre swirls and shapes of unidentifiable creatures. But when everything is moving, the scene becomes as psychedelic as your most intense LSD trip.
You can do more than just watch a Hunter S. Thompson epic with this utility. The Deep Dream Video process will work with any video or audio!!!!!!!!!
GIFs by Andrew Liszewski
The “DeepDream” software, based on code used to detect faces and other patterns in images, would find such a pattern, edit the image slightly to make it look more like that pattern, and repeat.
Over the course of multiple iterations, everyday photos would morph into psychedelic, abstract, images ranging from the beautiful to the grotesque. Many of the edited images featured animal eyes and faces, since that is what the software had been “trained” to recognize.
“The techniques presented here help us understand and visualize how neural networks are able to carry out difficult classification tasks, improve network architecture, and check what the network has learned during training,” engineers wrote at the time.
“It also makes us wonder whether neural networks could become a tool for artists—a new way to remix visual concepts—or perhaps even shed a little light on the roots of the creative process in general.”
source: James Titcomb – The Telegraph
For those who are still in the dark about Google’s recent artificial intelligence experiment, here are a handful of images we’ve seen so far from the generator.
One of the first images created using the software.
Ahhh Yes… The above is what 911 looked like in a parallel universe.
This is what happens when you try to eat while on drugs…
And for those who are into weird shit. Here’s what happens when you run porn through it. Warning: You CAN’T unsee this…
ADDENDUM: For those who would like to use the software. Here’s how.
Google has released the code of its “DeepDream” software to let the public create strange, hallucinogenic images of their own pictures. The machine dreaming code is now available for download on open source website Github.
Google’s freakish DeepDream project is based on company’s image recognition software. Although, image recognition technology is used to identify information from millions of images stored online, Google’s DeepDream project expects artificial intelligence to recall images from virtual memory and then draw those images – in other words, to “dream up” images.
Last week, Google released many half-horrifying pictures created with the help of this software. The images suggested that the software tends to transform thing into animals, clouds into bizarre llamas, and overlay everything with a rainbow coloring. The pictures included a knight made of dogs and clouds resembling a “pig snail.”
Google is one of many companies that are trying to develop artificial neural networks to simulate thinking process of human brain. Google believes this new tool may help developers get an idea of how neural networks function and carry out classification tasks.
“We have seen a lot of interest and received some great questions, from programmers and artists alike, about the details of how these visualizations are made.” wrote the Google engineers in a blog post.
“We have decided to open source the code we used to generate these images in an IPython notebook, so now you can make neural network inspired images yourself!”
After downloading and installing the software, you’ll need to feed in an image, select parts that you want to be amplified, and the amount of dramatization before getting the final output from the software.
Google is asking people to tag images with #deepdream when posting on Facebook, Google+, or Twitter so that other researchers can also check them.
The DeepDream code is based on Caffe, and to use the software, you’ll need NumPy, PIL, SciPy, IPython, or a scientific python distribution like Canopy or Anaconda.
DeepDream Code: Installing IPython
New users who want to install a full Python environment (for scientific computing and data science) should install the Anaconda or Canopy Python distributions. These provide Python 2.7, IPython and all of its dependencies as well as a complete set of open source packages. You can download IPyhoton from this link.
DeepDream Code: Caffe Deep Learning Framework Installation Instructions
Prerequisites: Caffe is a deep learning framework that has been designed while keeping speed, expression, and modularity in mind. Caffe comes with many dependencies.
- CUDA is required for GPU mode. It is recommended to have library version 7.0 and latest driver version. Library version 6.* is also okay.
- BLAS via MKL, ATLAS, or OpenBLAS.
- Boost >= 1.55
- OpenCV >= 2.4 including 3.0
- protobuf, glog, gflags
- IO libraries hdf5, leveldb, snappy, lmdb
For MATLAB Caffe, you will need MATLAB with the mex compiler. For Python Caffe, you will need Python 2.7 or Python 3.3+, numpy (>= 1.7), boost-provided boost.python
For fastest operation of your Caffe models, install NVIDIA cuDNN followed by uncommenting the USE_CUDNN := 1 flag in Makefile.config when installing Caffe.
For cold-brewed CPU-only Caffe, uncomment the CPU_ONLY := 1 flag in Makefile.config to configure and build Caffe without CUDA.
CUDA and BLAS
CUDA nvcc compiler is needed by Caffe for compilation of GPU code. CUDA driver is needed for GPU operation. In order to install CUDA, visit the NVIDIA CUDA website and follow instructions there. The library and the latest standalone driver should be installed separately.
Use NVIDIA cuDNN to speed up Caffe. Install NVIDIA cuDNN from the cuDNN site. For compilation with cuDNN, you’ll need to set the USE_CUDNN := 1 flag in the Makefile.config
BLAS is required by Caffe as the backend of its matrix and vector computations. There are a variety of implementations of this library.
- ATLAS is free, open source, and is the default for Caffe.
- Intel MKL is optimized for Intel CPUs and comes with a free trial and student licenses. First install MKL; and then set BLAS := mkl in Makefile.config
- OpenBLAS is optimized and parallel BLAS is free and open source. It offers a speedup, but could require more effort to install. First install OpenBLAS; and then set BLAS := open in Makefile.config
Python and/or MATLAB Caffe (optional)
With Python, numpy and boost.python are the main requirements. Dependencies can be installed with:
for req in $(cat requirements.txt); do pip install $req; done
It is however suggested to first install the Anaconda Python distribution, which offer most of the required packages and the hdf5 library dependency. After the installation is complete, you can import the caffe Python module by adding the module directory to your $PYTHONPATH using:
Don’t import the module in the caffe/python/caffe directory!
Install MATLAB, and keep its mex in your $PATH.
After having all the prerequisites, edit your Makefile.config and change the paths for your setup.
For cuDNN speed up, uncomment the USE_CUDNN := 1 switch in Makefile.config for cuDNN acceleration. For CPU-only Caffe, uncomment CPU_ONLY := 1. To compile the Python and MATLAB wrappers, first set your MATLAB and Python paths in Makefile.config and then do make pycaffe and make matcaffe respectively.
Run make distribute to create a distribute directory with all compiled libraries, Caffe headers, binaries, etc. required for distribution to other machines.
Google Deep Dream Code repository
The repository offered by Google on Github contains IPython Notebook with sample code.
The “dream.ipynb” file can viewed directly on github. You can also clone the repository, install dependencies listed and then start playing with code on you system.
– See more at: http://www.biztekmojo.com/00896/google-opens-its-deep-dream-code-let-people-create-hallucinogenic-images#sthash.84Q8Cc45.dpuf