Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To much time to process videos....even low res 320x240 and smaller. on GTX 1070 8GB #5

Open
zelenooki87 opened this issue Apr 14, 2021 · 4 comments

Comments

@zelenooki87
Copy link

gpu usage is 95-100%... tried on 5min video 176pix ....with around 5000frames...
after 10hours first step not completed....
results on your demo are great, but realy do not see point of project as low res video stabilisation takes forever.
compiled code normally with miniconda, on windows 10.... if I need to change platform to ubuntu please tell me
thank you

@stefanklut
Copy link

stefanklut commented Apr 14, 2021

Not the author, but the first part of the implementation was done rather inefficiently. Where no matter how small/big the input is the images will always be resized to 832 by 448. Considering this is 70% of the process time and it takes 9 seconds per image on images of this size, 10 hours is to be expected with 5000 frames.

@zelenooki87
Copy link
Author

zelenooki87 commented Apr 14, 2021

thank you for explanation. may I ask what is your suggestion to try for video stabilisation, using deep learning open source code here on github? until developer of fusta reorganize and optimize code.

@alex04072000
Copy link
Owner

@stefanklut Thank you for your kind explanation.
@zelenooki87 As said by @stefanklut , the first part of the code (flow smoothing) is not implemented by us. We use this implementation as this is the best-performing method of flow smoothing.
A quick solution is to reduce the running time is to trim down the frame number (e.g. using the first 500 frames) or skip some frames periodically (e.g. only process the odd index of frames).

@stefanklut
Copy link

If you don't mind cropping maybe try https://github.com/Annbless/DUTCode. But if you don't want cropping right now this is your best bet, considering it's much less distortion compared to DIFRINT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants