Skip to content

🌊 Image to β†’ 2.5D Parallax Effect Video. A Free and Open Source LeiaPix/ImmersityAI alternative

License

Notifications You must be signed in to change notification settings

mohakmalviya/DepthFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

55 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

γ€β˜°γ€‘Table of Contents πŸ‘†

DepthFlow

Stars Badge License Badge Telegram Channel Badge Discord Badge

πŸ‘† Out of the many Explorers, you can be among the Shining stars who support us! ⭐️


[DepthFlow]: Image to β†’ 2.5D Parallax Effect Video. A Professional [Depthy] Alternative.


πŸ‘‡ Right click and loop me!

DepthFlow.2023.12.19.mp4

Note: Yes, the only input to DepthFlow was the Original Image


🎩 Click to see the Original Image
Original Image
Source: Wallhaven. All images remain property of their original owners. βš–οΈ

πŸͺ„ Click to see the Estimated Depth map
Depth Map
The Depth Map was estimated with ZoeDepth πŸš€



πŸ“¦ Installation

DepthFlow directly uses ShaderFlow. Check it out! πŸš€


πŸ”΄πŸŸ‘πŸŸ’Β  For Extra installation Help, check out the Monorepo

  • 🐧 Linux and MacOS 🍎: Open a Terminal in some Folder and run:

    /bin/bash -c "$(curl -sS https://brakeit.github.io/get.sh)"
  • πŸ’  Windows: Open a PowerShell in some Folder and run:

    irm https://brakeit.github.io/get.ps1 | iex

Note: The commands above are the simplified version and assumes installed dependencies


After you are inside the Development Environment:

  • Run the command: broken depthflow

A real time window should pop up.

Selecting the input image

  • Run broken depthflow parallax --help for parallax options

  • You can also drag and drop an Image File or URL From your Browser

Rendering Options

  • Run broken depthflow --help for options and rendering

Full Examples

  • broken depthflow (--render | -r)
  • broken depthflow -r -w 1280 -h 720 -f 30
  • broken depthflow -r -o ./video_name --format mkv
  • broken depthflow parallax --image (url | path) main --render -s 2
  • broken depthflow -r -t 2 --open
  • broken depthflow parallax -i (image) -d (depth) main

Note: A high SSAA -s 1.5 is recommended for antialiasing due the Steep Parallax



πŸš€ Using your GPU

By default, Pytorch will be installed with CPU support

For Faster Depth Estimation, you can switch the PyTorch backend:


NVIDIA + CUDA:

  • Have the NVIDIA Drivers installed
  • Run the command: broken depthflow poe cuda

AMD + ROCm:

  • Run the command: broken depthflow poe rocm

macOS:

  • Run the command: broken depthflow poe mac

CPU:

  • Run the command: broken depthflow poe cpu

Reverting to the default:

  • Run the command: broken depthflow poe default


βš–οΈ License

See BrokenSource Repository for the License of the Code, Assets, Projects and User Generated Content.

About

🌊 Image to β†’ 2.5D Parallax Effect Video. A Free and Open Source LeiaPix/ImmersityAI alternative

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.8%
  • GLSL 12.2%