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

Refactor bucket selection for customization #1377

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Conversation

pzelasko
Copy link
Collaborator

Sampling constraints can now specify their own policy for bucket selection. This is leveraged in NeMo for implementing a 2D bucketing strategy:

https://github.com/NVIDIA/NeMo/blob/ade45ea1cd6e3ed8bdb4178092582caf2d7bcf2b/nemo/collections/common/data/lhotse/dataloader.py#L481-L514

@pzelasko pzelasko added this to the v1.26.0 milestone Jul 24, 2024
@pzelasko pzelasko merged commit 21b102c into master Jul 24, 2024
9 checks passed
@pzelasko pzelasko deleted the refactor-select-bucket branch July 24, 2024 16:25
yfyeung pushed a commit to yfyeung/lhotse that referenced this pull request Jan 8, 2025
* Refactor bucket selection to allow customization

* Extend the API further

* Prune imports
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