This is a fork of neural-dream, a PyTorch implementation of DeepDream. This fork introduces optical flow estimation and occlusion masking to apply DeepDream to videos with temporal consistency.
Features
Standard DeepDream : The original single-image implementation.
: The original single-image implementation. Video DeepDream : New CLI ( video_dream.py ) that uses RAFT Optical Flow to warp previous dream frames into the current frame, ensuring smooth transitions and object tracking.
: New CLI ( ) that uses RAFT Optical Flow to warp previous dream frames into the current frame, ensuring smooth transitions and object tracking. Occlusion Masking: Automatically detects when objects move in front of one another to prevent "ghosting" artifacts.
Demo
With temporal consistency
mallard_demo.mp4
highway_demo.mp4
With frames processed independently
... continue reading