Day 99 – Convert Your Photos To 3D Effect Videos Using 3D Ken Burns

This is my 99th-day blog on my #100daychallenge. I want to check some awesome libraries that give real effect on our photos.

Today, we will check 3D Ken Burns, how it works, and its features.

What is 3D Ken Burns?

This is a reference implementation of 3D Ken Burns Effect from a Single Image [1] using PyTorch. Given a single input image, it animates this still image with a virtual camera scan and zoom subject to motion parallax.

Source: 3D Ken Burns

Research Paper:

3D Ken Burns Effect from a Single Image

How does it work?
3D Ken Burns Overview

Overview of our depth estimation pipeline. Given a high-resolution image, we start by estimating a coarse depth based on a low-resolution input
image. This depth estimation network is guided by semantic information extracted using VGG-19 [Simonyan and Zisserman 2014] and supervised on a computer-generated dataset with accurate ground truth depth in order to facilitate geometrically sound predictions. To avoid semantic distortions, we then adjust the depth map according to the segmentation of Mask R-CNN [He et al. 2017] and make sure that each salient object is mapped to a coherent plane. Lastly, we utilize a depth refinement network that, guided by the input image, upsamples the coarse depth and ensures accurate depth boundaries.

Source: 3D Ken Burns Effect from a Single Image

Let’s check the code how it works that was created Manuel Romero.

Note: If you copy the code to local Google Colab, it would give a module error not found for Chainer and Gevent.  I have installed both separately.

I have copied the code, and you can check on Google Colab.

Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Sample Animation Videos
Example 1 – Original Photo and 3D Video
Shop
Example 2 – Original Photo and 3D Video
3D Ken Burns 2
Example 3 – Original Photo and 3D Video

What you like about 3D Kens Burns library?

Please comment your thoughts.

Further Reading

Posts on Artificial IntelligenceDeep LearningMachine Learning, and Design Thinking articles:

Cartoonize Your Photo or Video Using Cartoonize Artificial Intelligence

Real-Time Multi-Object Tracker Using YOLO v5 and Deep Sort Algorithm

Autonomous Vehicle Environment Perception Task By Pandas Team

Deep Learning Basics: Introduction, Concepts, and Overview

TextStyleBrush by Facebook AI Research Team

Watercolor Painting Under 5 Mins Using Stylized Neural Painting Artificial Intelligence

Marker Pen Painting Under 5 Mins Using Stylized Neural Painting Artificial Intelligence

Detail Sentence Analyzer Using spaCy Natural Language Processing – Part II

Named Entity Recognition Using spaCy Natural Language Processing – Part III

AI Converts Your Photo Or Video Selfie To Animation – GANsNRoses

Artificial Intelligence Chatbot Using Neural Network and Natural Language Processing

Tensorflow Sobel Filter Image Processing and Computer Vision

COCO Keypoint Detection Detectron2 Computer Vision by Facebook AI Research (FAIR)

By |2022-01-28T23:13:22+00:00July 26th, 2021|Artificial Intelligence|5 Comments

About the Author:

5 Comments

  1. Asli Jat November 12, 2021 at 5:23 am - Reply

    Thanks for a very informative article & providing the code for folks like me to use the 3D Ken Burns effect on our own pics.

    I have been tweaking the autozoom function, with varying levels of success, in order to see if it can produce different angles or longer videos. Just wondering if you’ve tried this also & could suggest some values / tips?

    Thanks

    • Gopi Chandrakesan December 14, 2021 at 2:34 am - Reply

      No, I haven’t tried in-depth on this.

      If you have anything to share with our AI community, I will look forward.

  2. Asli Jat November 12, 2021 at 7:48 pm - Reply

    Thanks for a very informative article & providing the code for folks like me to use the 3D Ken Burns effect on our own pics.

    I have also been tweaking the autozoom function, with varying levels of success, in order to see if it can produce different angles or longer videos. Just wondering if you’ve tried this also & could suggest some values / tips?

    Thanks

  3. James January 28, 2022 at 9:57 pm - Reply

    I really want this to work, but I am having a problem at the very end:

    Traceback (most recent call last):
    File “autozoom.py”, line 7, in
    import cupy
    ModuleNotFoundError: No module named ‘cupy’

    Any ideas as to how I can get this to work? Thanks so much!

Leave A Comment