Skip to content

graphific/DeepDreamAnim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DeepDream Animator

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.

deepdreamanim

How to

  1. Extract Video
    python dreamer.py --input myvideo/video.mp4 --output myvideo --extract 1

  2. Run DeepDream
    python dreamer.py --input myvideo --output frames

  3. Create Video
    python dreamer.py --input 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 )

deepdreamanim

Settings

Create a preview
python dreamer.py --input myvideo --output myvideo/frames --preview 600

Tweak settings
python dreamer.py --input myvideo --output myvideo/frames --preview 600 --octaves 4 --octavescale 1.4 --iterations 10 --jitter 32 --zoom 1 --stepsize 1.5 --blend 0.5 --layers inception_3a/output inception_3b/output

(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

deepdreamanim

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. You can find the parameters in the image filenames.

Requirements

  • Python
  • Caffe (and other deepdream dependencies)
  • FFMPEG

Audio

The tool currently does not handle audio. Check out DeepDreamVideo by @graphific

deepdreamanim

Credits

Samim | Samim.io | @samim

About

DeepDream Animation Helper

Resources

License

Stars

2 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%