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

add multi thread to process AIShell data #259

Closed
wants to merge 7 commits into from
Closed

add multi thread to process AIShell data #259

wants to merge 7 commits into from

Conversation

pingfengluo
Copy link

@pingfengluo pingfengluo commented Apr 9, 2021

add multi thread to process AIShell data and try to make it faster

text=text.strip()
)
supervisions.append(segment)
with ThreadPoolExecutor(num_jobs) as ex:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ex object is never used here, so nothing actually gets processed in parallel. You’d have to use either ex.submit or ex.map to leverage the thread pool (I think there’s an example in the librispeech recipe).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. thank you.

@pzelasko
Copy link
Collaborator

Did you test it after the changes? Let me know and I'll merge it.

@pzelasko pzelasko added this to the v0.7 milestone Apr 27, 2021
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.

2 participants