Create DeepDream-like images and videos
Installing Pipenv:
pip install pipenv
Setting up pipenv:
pipenv install
Using pipenv:
pipenv shell
python [file_name]
To generate dream images, put your image in the root directory and change dream_image.py
show_dream_image_layer(file_name='your_picture.png', layer=your_desired_dream_layer_number)
Then run the file in pipenv shell
python dream_image.py
More information about the different dream layers inside dream_image.py
.
Examples of different layers inside the test
png images.
More information about DeepDream
To generate dream videos, use dream_to_vid.py
- Generate the frames of the video, pass in your original file, total amount of frames to generate, and your desired dream layer, with optional zoom-in effect:
create_dream_frames(file_name='test.png', target_dream_layer=3, total_frames=10,zoom_in=True)
- Use the generated frames and write to a video file and run
python 3.5