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

Issue 790 pytorch integration #849

Merged
merged 7 commits into from
Oct 6, 2023
Merged

Conversation

sammlapp
Copy link
Collaborator

@sammlapp sammlapp commented Oct 4, 2023

No description provided.

Added a collate function that converts a list of AudioSample objects to two tensors containing a batch of data: one data and one labels. This is useful when integrating opensoundscape AudioFileDataset with other PyTorch code that expects batches to be generated from DataLoader as two tensors (data, labels)
@sammlapp sammlapp marked this pull request as ready for review October 5, 2023 18:04
@sammlapp sammlapp merged commit 5697b9c into develop Oct 6, 2023
@sammlapp sammlapp deleted the issue_790_pytorch_integration branch October 6, 2023 16:09
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