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

why are calculating the optical flow on cpu? #29

Open
rayset opened this issue Sep 11, 2016 · 4 comments
Open

why are calculating the optical flow on cpu? #29

rayset opened this issue Sep 11, 2016 · 4 comments
Labels

Comments

@rayset
Copy link

rayset commented Sep 11, 2016

I'm trying to use this program for the first time.
I have a 3 minute long video, it has something like 5000 frames.
I see optical flow working in my folder,but it's quite slow.
atm it's doing files named like 60_61, and takes a non negligible time to advance of 1 unit.

getting to 4999_5000 it will take ages. I have a gtx 1070, is there a way to use it?

does it really have to compute flows up to 4999_5000 or is the naming different?

@svdka
Copy link

svdka commented Sep 12, 2016

Indeed, there are optical flow calculation implementation done in GPU. - with openCV https://github.com/qassemoquab/gpuoptflow but not sure how to implement that. I'm looking into it but if someone has a better answer go for it.

@manuelruder
Copy link
Owner

The reason why I have chosen the CPU version is because you can parallelize optical flow calculation and video stylization. When the stylizing script works on frame 2, you can compute 0002_0003 in advance, and so on. Optical flow should be faster than the video stylization, therefore you should never have to wait for the optical flow.

Also it must be mentioned that it's crucial to have a high quality optical flow estimation. Therefore, we recommend state of the art optical flow algorithms like DeepFlow or EpicFlow.

@svdka
Copy link

svdka commented Sep 19, 2016

Ok, thanks, that makes a lot of sense !

@NameRX
Copy link

NameRX commented Jan 10, 2017

Here is my pull request #37 , where i changed code to process both optical flow and style transfer simultaneously, making work both CPU and GPU, to speed up a process.

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

No branches or pull requests

4 participants