ใโฐใTable of Contents ๐
![](/mohakmalviya/DepthFlow/raw/93d6d6f287be87bc3408d96ac1fe8544bc01abef/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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzc1MzUsIm5iZiI6MTczOTMzNzIzNSwicGF0aCI6Ii8yOTA0Njg2NC8yOTE2ODcxNTMtMTk3NWZkYzktOTUxNy00NzAwLTg4ZGQtZWQ4MTc1YWI4MTNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA1MTM1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBmZjZkMTVlMmJjZjBlMGMwYjlkZmY1ZTE1MDU0Y2M5YzNmMjIyMjE5NDhhOWEzOTNjYWM1YjgzYmQ3NzU5ZjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.X5mSTulSyxvB370hXrPFFKtwf0YRPFNq01GCWjZCtwk)
Source: Wallhaven. All images remain property of their original owners. โ๏ธ
๐ด๐ก๐ข
Download our Monorepo with all the code and Projects first
Note: You cannot run this project in dev 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.
-
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
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
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
See BrokenSource Repository for the License of the Code Assets, Projects and User Generated Content.