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

AudioTokenExtractor batch inference #81

Closed
wants to merge 2 commits into from
Closed

AudioTokenExtractor batch inference #81

wants to merge 2 commits into from

Conversation

JunZhan2000
Copy link
Contributor

@JunZhan2000 JunZhan2000 commented Apr 11, 2023

Implemented AudioTokenExtractor‘s batch inferenceing
The main thing is adding an extract_batch method to AudioTokenExtractor to match lhotse's Cutset.compute_and_store_features_batch interface

return padded_tensor, lengths, max_length

def extract_batch(self, samples, sampling_rate, lengths) -> np.ndarray:
# for s in samples:
Copy link
Owner

Choose a reason for hiding this comment

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

clean debug code

@lifeiteng lifeiteng mentioned this pull request Apr 14, 2023
@lifeiteng
Copy link
Owner

Let's review in #88

@lifeiteng
Copy link
Owner

Thanks @Guokr233

@lifeiteng lifeiteng closed this Apr 14, 2023
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