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

38 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

๐Ÿช› From Source Code

๐Ÿ”ด๐ŸŸก๐ŸŸข

Download our Monorepo with all the code and Projects first

Note: You cannot run this project in development mode without it !

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

After running the brakeit script on the Monorepo and inside the Virtual 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


๐Ÿ”ฎ Prebuilt Binaries

Whenever stuff gets more stable, we'll likely release PyPI packages so you can just pip install shaderflow and run it directly from the source code or prebuilt binaries that you can just download and run ./shaderflow scene.py



๐Ÿš€ 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%