This tool helps to create animations with deepdream.
Extract frames from videos, process them with deepdream and then output as new video file.
Frame blending option is provided, to ensure "stable" dreams across frames.
A preview function make rapid iterations possible. Optionally guided dreaming & optical flow can be used.
How to
Extract Video python dreamer.py --input myvideo/video.mp4 --output myvideo --extract 1
Run DeepDream python dreamer.py --input myvideo --output myvideo/frames
Create Video python dreamer.py --input myvideo/frames --output myvideo/deepdreamvideo.mp4 --create 1
(change "myvideo" to your directory/file name)
(change the path of the caffe model inside dreamer.py to where your model is )
(Preview changes Images to width of choice, original files not changed)
(Try using multiple layers, it will cycle through them from frame to frame.)
Batch Processing
Use the above commands and stack them by putting a ";" inbetween commands. python dreamer.py --input myvideo --output myvideo/frames;python dreamer.py --input myvideo2 --output myvideo2/frames
Examples
DeepDream Music Video
Optical flow + Guided Dreaming tests
Creative Request
It would be very helpful for other deepdream researchers, if you
could include the used parameters in the description of your youtube
videos.