Google Deep Dream

This is my python package to implement google's deep dream. The use of this package is fairly simple.

It takes the image path or url as input and displays the deep dream implementation of the image.

For example

Input image to model is this

Input Image

And the model will output following

Output

Following are the steps to implement my GoogleDeepDream model

  1. Install the package in your system with following commands
python GoogleDeepDream/setup.py install
  1. Implement the model whether the image is stored remote or local

We have two flavours of deep dream model available

2.1 Simple deep dream

Remote image using url of it

python GoogleDeepDream/src/Model/DeepDream.py --image_url "https://github.com/rajeevratan84/ModernComputerVision/raw/main/castara-tobago.jpeg"

or local image using path of it

python GoogleDeepDream/src/Model/DeepDream.py --image_path "castara-tobago.jpeg"

Results

Deep Dream Output

2.2 Improved deep dream

Remote image using url of it

python GoogleDeepDream/src/Model/ImprovedDeepDream.py --image_url "https://github.com/rajeevratan84/ModernComputerVision/raw/main/castara-tobago.jpeg"

or local image using path of it

python GoogleDeepDream/src/Model/ImprovedDeepDream.py --image_path "castara-tobago.jpeg"

Results

Improved Deep Dream Output

The code is completely open source you can use it however you like. If you want to see some improvement in this code, or you did some work on it, please let me. I would love to hear it.

If you're having any problem using it. Please feel free to contact me.

Follow me on

Revel Twitter Revel's LinkedIn Revel's github Revel's Youtube