asteroid-team / torch-audiomentations

Fast audio data augmentation in PyTorch. Inspired by audiomentations. Useful for deep learning.
MIT License
928 stars 87 forks source link

PyPi ColoredNoise doesn't match GitHub #167

Closed wilke0818 closed 1 year ago

wilke0818 commented 1 year ago

When attempting to use ColoredNoise with the same values of f_min and f_max, I get the following error: raise ValueError("Uniform is not defined when low>= high") ValueError: Uniform is not defined when low>= high

However, in colored_noise.py on the Github, this is mitigated through a conditional statement but when I look at the torch-audiomentations code that I have locally, the if-statement is not there.

Looks like it was merged in #162

iver56 commented 1 year ago

Yeah, that has not been released yet. If you want, you can install the "bleeding edge" directly from Github instead of using the released version on PyPi. Or make a fork. It's up to you 😉 Good luck, have fun