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

Replace multiprocessing.dummy.Pool() with concurrent.futures.ThreadPoolExecutor() so whisper_s2t instance can run separately with multiprocessing.Process() #74

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kirillsaidov
Copy link

I tried loading whisper model and running transcription in a separate multiprocessing.Process(), but failed. The process just froze unresponsive when loading audio to memory with multiprocessing.dummy.Pool(). Replaced with a safer concurrent.futures.ThreadPoolExecutor() and it works now!

…hreadPoolExecutor().

I tried loading whisper model and running transcription in a separate multiprocessing.Process(), but failed.
The process just froze unresponsive when loading audio to memory with multiprocessing.dummy.Pool(). Replaced with
concurrent.futures.ThreadPoolExecutor() and it works now!
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.

1 participant