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

Batched feature extraction for s3prl #942

Merged
merged 3 commits into from
Jan 17, 2023

Conversation

desh2608
Copy link
Collaborator

This PR enables batch extraction of S3PRL features (similar to kaldifeat).

@desh2608
Copy link
Collaborator Author

@DongjiGao can you take a look?

else samples
]

samples = [s.to(self.config.device) for s in samples]
Copy link
Collaborator

Choose a reason for hiding this comment

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

does s3prl support list of uneven-sized tensor inputs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it internally pads the list of tensors to the same length using torch.rnn.utils.pad_sequence.

@pzelasko pzelasko added this to the v1.12 milestone Jan 16, 2023
@DongjiGao
Copy link
Contributor

@DongjiGao can you take a look?

LGTM.

@pzelasko pzelasko merged commit c33345d into lhotse-speech:master Jan 17, 2023
@pzelasko
Copy link
Collaborator

Thanks!

@desh2608 desh2608 deleted the ssl_batch branch November 2, 2023 19:18
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.

3 participants