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

Please open makeOptFlow.sh and specify the command line for computing the optical flow. #4

Closed
CJHFUTURE opened this issue May 6, 2016 · 5 comments

Comments

@CJHFUTURE
Copy link

HI could you give an example of how to specify this in the script if i'm using deepflow?

Thanks

@manuelruder
Copy link
Owner

manuelruder commented May 6, 2016

I would recommend to create an auxiliary script run-deepflow.sh <file1> <file2> <output>. There you can write something like this:

<deepmatching_path>/deepmatching-static $1 $2 | <deepflow_path>/deepflow2-static $1 $2 $3 -match

(If you don't want to or can't use the static builds, then you have to remove the -static suffix of course. But the static build should be sufficient in most cases.)

The you can just specify:
flowCommandLine="./run-deepflow.sh"

@ghost
Copy link

ghost commented May 8, 2016

@manuelruder @Sugarbank you can add -nt 0 to deepmatching-static $1 $2 to enable multithreading. By the way, is there a GPU version for DeepFlow ?

@manuelruder
Copy link
Owner

There is no GPU version of DeepFlow.
If you want to speedup the process, you could compute the optical flow in parallel to the torch script. Then it's anyway beneficial to run it on CPU, because the torch script mainly runs on GPU.
Just call ".\makeOptFlow.sh ..." in a different process than "th artistic_video.sh ...".

@CJHFUTURE
Copy link
Author

Hi,Sorry this is a bit newbie but...Where do I set the path to the optical flow utilities in the makeOptFlow.sh file?
it say "# Specify the path to the optical flow utility here."
Sorry for the stupid questions.

Date: Fri, 6 May 2016 09:19:27 -0700
From: notifications@github.com
To: artistic-videos@noreply.github.com
CC: sugarbank@hotmail.com; author@noreply.github.com
Subject: Re: [manuelruder/artistic-videos] Please open makeOptFlow.sh and specify the command line for computing the optical flow. (#4)

I would recommend to create an auxiliary script run-deepflow.sh . There you can write something like this:

<deepmatching_path>/deepmatching-static $1 $2 | <deepflow_path>/deepflow2-static $1 $2 $3 -match

(If you don't want to or can't use the static builds, then you have to remove the -static suffix of course.)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@manuelruder
Copy link
Owner

manuelruder commented May 20, 2016

@Sugarbank if you use the newest version of this script there is nothing you have to change any more. Just download and place deepflow and deepmatching in the same directory as the scripts, as said in the updated readme. In case you want to use your own algorithm, check out line 3 where it says flowCommandLine="...".

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

2 participants