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

1.2-1.4 speed up #1

Open
CJHFUTURE opened this issue Apr 20, 2017 · 2 comments
Open

1.2-1.4 speed up #1

CJHFUTURE opened this issue Apr 20, 2017 · 2 comments

Comments

@CJHFUTURE
Copy link

when you say 1.2-1.4x speed up does that mean it's 120% or 140% faster or 20% and 40% faster?

Also is it possible to include this in the original repo stylising per frame so it doesn't require a batch but stores the style features and uses them unless you execute a new command with a different style input?

@gsssrao
Copy link
Owner

gsssrao commented Apr 21, 2017

@Sugarbank I meant 20% and 40% faster but it depends. On a second thought it really sound misleading. I will change the description when I push audio support. Thanks!!

Basically the speedup depends on:

  • Size of style image vs content image
  • Number of content images (Total frames of a video).

If style image is smaller you get less speedup whereas when it is bigger you get a higher speedup. The operation of computing artistic images would be nearly 100% faster when style image and content image are of the same size (assuming number of content images is greater than 10).

This is already included in the original repo as well. I just haven't mentioned it. You just need to call testVid.lua instead of test.lua for this to work. I mean:

th testVid.lua -contentDir input/content -styleDir input/style

I just did not want to change the original test.lua because Xun seemed to be busy. So, maintaining a separate file with changes would have made the pull request easier to merge.

@gsssrao
Copy link
Owner

gsssrao commented Apr 21, 2017

By the way use the following modifier in line 53 of styVid.sh:

-styleSize 0 -contentSize 0

Or else by default the program resizes images.

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