Generating your own dreamy images
Deep learning has an entertaining side. DeepDream is one application that aims to understand the inner workings of deep neural networks by exciting certain activations on selected layers. However, beyond the investigative intent of the experiment, it also produces psychedelic, dream-like fun images.
In this recipe, we'll experiment with several configurations of DeepDream on a test image and see how they affect the results.
Getting ready
We'll use the DeepDreamer()
implementation from the first recipe of this chapter (Implementing DeepDream). Although I encourage you to try this out with your own images, if you want to follow this recipe as closely as possible, you can download the sample image here: https://github.com/PacktPublishing/Tensorflow-2.0-Computer-Vision-Cookbook/tree/master/ch4/recipe2/road.jpg.
Let's take a look at the sample image:
Let's begin.
...