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

Parallelize frame processing #44

Closed
wants to merge 1 commit into from
Closed

Conversation

Luni-4
Copy link
Member

@Luni-4 Luni-4 commented Nov 22, 2019

This PR fixes #10

Starting from the thread-videos branch, I've parallelized the frame processing. Unfortunately, I can't see any notable difference compared to the sequential version. Do you know what could be the problem @shssoichiro?

Thanks in advance for your review! :)

@shssoichiro
Copy link
Contributor

Indeed it does seem to still be using one thread. I'll take a closer look at it later once I get the chance.

@Luni-4
Copy link
Member Author

Luni-4 commented Nov 28, 2019

@shssoichiro

I tried to change the general approach:

  • Used par_iter instead of par_bridge because it is more efficient according to the documentation
  • Increased the number of threads to 8

But we are slower than the sequential version

@Luni-4
Copy link
Member Author

Luni-4 commented Dec 7, 2019

Wrong approach, so closing it.

@Luni-4 Luni-4 closed this Dec 7, 2019
@Luni-4 Luni-4 deleted the thread-speed branch July 14, 2021 21:32
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

Successfully merging this pull request may close these issues.

Parallelize frame processing on whole-video analysis
2 participants