Implementing DeepDream

Another use for trained CNNs is exploiting the fact that some intermediate nodes detect features of labels (for instance, a cat's ear, or a bird's feather). Using this fact, we can find ways to transform any image to reflect those node features for any node we choose. For this recipe, we will go through the DeepDream tutorial on TensorFlow's website, but we will cover the essential parts in much more detail. The hope is that we can prepare the reader to use the DeepDream algorithm to explore CNNs, and features created in them.

Get TensorFlow Machine Learning Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.