Comments (5)
The code to resize to the image's resolution was at a bad position and causing some edge cases (again depending on monitor resolution and platform), so I've deliberately unhooked it yesterday after some user on Discord, but it's top priority to fix (I have a much better idea where to place it, just struggling on it)
The video of yours just wasn't automatically resized to 1080x1920, the borders are lack of information, using (...) main -w 1080 -h 1920 (...)
should work :)
from depthflow.
About a website, I'm quite sure it would be nearly impossible to run the code locally on the user's browser because of Python (and many other factors), if just acessing an url to use it, quite certainly not in real time, but...
I can see a Gradio or Streamlit dashboard working if we run it locally, but it's a lot of bandwidth for only me to code right now, as the architecture needs also better ffmpeg, presets system, caching, reusability, but is the end goal per roadmap
One option is to host myself and make it available, I don't have good spare hardware (a R3 1300X and 1050 ti lol), or cloud host it, but for depthflow the computational costs are significant (hugginface spaces are an alternative, not sure if enough cpu there), and-
-would need mechanisms to detect abuse, subscription status if it's paid, etc. not really my expertise in programming
so, for now I'll keep focusing on the foundations, and if someone's up for making a wrapper on top of current stuff or a beta website I'm up to it!
from depthflow.
I'm very close to a once and for all fix to this aspect ratio enforcing thing, it's much more stable now
I'm reviewing the code and will test on Windows, in a few hours I'll have it commited (^ if things go right 😓)
from depthflow.
The code to resize to the image's resolution was at a bad position and causing some edge cases (again depending on monitor resolution and platform), so I've deliberately unhooked it yesterday after some user on Discord, but it's top priority to fix (I have a much better idea where to place it, just struggling on it)
The video of yours just wasn't automatically resized to 1080x1920, the borders are lack of information, using
(...) main -w 1080 -h 1920 (...)
should work :)
New code is up wih a much better place to have the resolutions calculations!
Now depthflow enforces an aspect ratio to the scene and any resize respects it, so depthflow -i image main -r -o ./video
will best-match the input image's aspect ratio to the width and height one sends (1920x1080 by default)
It prioritizes width changes over height, and calculates the other missing component if it's not set, so for example:
shaderflow default --ar 16/9 -w 1280
: Calculatesh=720
as it's not setshaderflow default --ar 1
: Sets resolution to(1920, 1920)
as it prioritizes width and ar=1shaderflow default --ar 16:9 -w 1920 -h 90
: Will use the smallest component of the two, so(160, 90)
All of those transfer to depthflow after the main (args)
or just depthflow (args)
which implies main
, the --ar
setting is set by depthflow's input
command of the image's ratio
Need to git pull all shaderflow/depthflow/monorepo for the new changes as they interop, maybe a git pull --recurse-submodules --rebase
could work
Let me know if it works, and any potential edge case I missed, but so far it's much better than previous solutions
from depthflow.
I will try and let you know later.
from depthflow.
Related Issues (17)
- Changing the video codec HOT 2
- how to open after the installation? HOT 36
- i can't find the perfect settings HOT 12
- (BUG) Segmentation Fault on Apple Silicon when Compiling Shaders HOT 2
- (REQUEST) support conda or pip install HOT 2
- (BUG) Quality went downhill in latest version HOT 5
- Can you add a version that runs on Linux servers? HOT 9
- (BUG) Worse quality when using cached depthmap HOT 3
- (REQUEST) A way of executing this without launchin UI
- "Grab the latest DepthFlow Release for your platform, run it" - no release available. HOT 3
- Installation is so painful HOT 2
- DepthFlow cannot be deployed and run HOT 3
- Awesome project HOT 6
- Can't select input image through comandline or file selection dialog HOT 6
- Render video from one cli command directly from image and depth map HOT 21
- Issue when trying to run Broken Depthflow HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from depthflow.