Path: blob/master/second_edition/chapter12_part02_deep-dream.ipynb
713 views
Kernel: Python 3
This is a companion notebook for the book Deep Learning with Python, Second Edition. For readability, it only contains runnable code blocks and section titles, and omits everything else in the book: text paragraphs, figures, and pseudocode.
If you want to be able to follow what's going on, I recommend reading the notebook side by side with your copy of the book.
This notebook was generated for TensorFlow 2.6.
DeepDream
Implementing DeepDream in Keras
Fetching the test image
In [0]:
Instantiating a pretrained InceptionV3
model
In [0]:
Configuring the contribution of each layer to the DeepDream loss
In [0]:
The DeepDream loss
In [0]:
The DeepDream gradient ascent process
In [0]:
In [0]:
Image processing utilities
In [0]:
Running gradient ascent over multiple successive "octaves"
In [0]: