iver56 / audiomentations

A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
https://iver56.github.io/audiomentations/
MIT License
1.76k stars 183 forks source link

Implement RepeatPart transform #296

Closed iver56 closed 10 months ago

iver56 commented 10 months ago

Closes #293

Bonus change: If a transform has frozen parameters and has not been applied before (i.e. parameters are missing), randomize parameters upon the first application. Those selected parameters are then the parameters that are frozen.

codecov[bot] commented 10 months ago

Codecov Report

Patch coverage: 97.59% and project coverage change: +0.26% :tada:

Comparison is base (a95e512) 94.18% compared to head (0848b62) 94.45%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #296 +/- ## ========================================== + Coverage 94.18% 94.45% +0.26% ========================================== Files 44 45 +1 Lines 1893 2057 +164 ========================================== + Hits 1783 1943 +160 - Misses 110 114 +4 ``` | [Files Changed](https://app.codecov.io/gh/iver56/audiomentations/pull/296?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Iver+Jordal) | Coverage Δ | | |---|---|---| | [audiomentations/augmentations/repeat\_part.py](https://app.codecov.io/gh/iver56/audiomentations/pull/296?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Iver+Jordal#diff-YXVkaW9tZW50YXRpb25zL2F1Z21lbnRhdGlvbnMvcmVwZWF0X3BhcnQucHk=) | `97.33% <97.33%> (ø)` | | | [audiomentations/\_\_init\_\_.py](https://app.codecov.io/gh/iver56/audiomentations/pull/296?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Iver+Jordal#diff-YXVkaW9tZW50YXRpb25zL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [audiomentations/core/transforms\_interface.py](https://app.codecov.io/gh/iver56/audiomentations/pull/296?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Iver+Jordal#diff-YXVkaW9tZW50YXRpb25zL2NvcmUvdHJhbnNmb3Jtc19pbnRlcmZhY2UucHk=) | `93.65% <100.00%> (ø)` | | | [audiomentations/core/utils.py](https://app.codecov.io/gh/iver56/audiomentations/pull/296?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Iver+Jordal#diff-YXVkaW9tZW50YXRpb25zL2NvcmUvdXRpbHMucHk=) | `98.66% <100.00%> (+0.27%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

iver56 commented 10 months ago

@mmxgn Would you like a chance to review this before it gets merged?