![](/mohakmalviya/DepthFlow/raw/9a995e2bb682eeadb9146b2cd72967f71748db31/DepthFlow/Resources/DepthFlow.png)
π 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](https://private-user-images.githubusercontent.com/29046864/291687153-1975fdc9-9517-4700-88dd-ed8175ab813f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NDYxMDAsIm5iZiI6MTczOTU0NTgwMCwicGF0aCI6Ii8yOTA0Njg2NC8yOTE2ODcxNTMtMTk3NWZkYzktOTUxNy00NzAwLTg4ZGQtZWQ4MTc1YWI4MTNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE1MTAwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU4OGJhYmZmNGY0Y2I4MTMzYTgwOGE0N2ZlODVjYzBjMTNhZjAzOWU3NmFiODYzMWZiOWNhZGM1NTZkYjZjNGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.N-OyppOASJcbQwWYvEiZPovHLCTzzhpWvl4KVXh8J2w)
Source: Wallhaven. All images remain property of their original owners. βοΈ
π‘ Base idea:
- Given an image and its depth map, have a shader to generate a parallax effect
- Estimate Depth Maps with Neural Networks for generic images
- Varying the projections over time generates a 2.5D video
As simple as that, we achieve a similar effect as Depthy
π΄π‘π’
Download and install our Monorepo with all the code and projects first
Note: You cannot run this project in dev mode without the Framework!
- 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.
-
Run
broken depthflow parallax --help
for parallax options -
You can also drag and drop an Image File or URL From your Browser
- Run
broken depthflow --help
for options and rendering
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
By default, Pytorch will be installed with CPU support.
If you want to Speed Up the Depth Estimation, you can add Pytorch with GPU support:
NVIDIAN1 (CUDA):
- Have the NVIDIA Drivers installed - Windows might already have installed them
- Run the command:
broken depthflow poe cuda
*N1: Check GPU compatibility (<= GTX 800 series is not supported). Preferably install CUDA from your package manager.
AMDR1 (ROCm):
- Run the command:
broken depthflow poe rocm
*R1: Check GPU compatibility (<= RX 500 series is not supported). Preferably install ROCm from your package manager
CPU / macOS (Default):
- Run the command:
broken depthflow poe cpu
See BrokenSource Repository for the License of the Code Assets, Projects and User Generated Content.