-
Notifications
You must be signed in to change notification settings - Fork 89
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
No fast pitch-shift ratios could be computed for the given sample rate and transpose range. #151
Comments
Hey Does it work if you use 0.9 instead of -0.9? |
And what do you mean with cpu version github? Are you refering to https://github.com/iver56/audiomentations? |
What's the sample rate? |
No, It doesn't |
|
Yep, that what i mean. |
Oh, that is indeed a low sample rate. Maybe you can use audiomentations for now then, since it works there @KentoNishi Have you tried torch-pitch-shift with sr=8000? |
Torch-pitch-shift works fine, thank you! |
Good :) torch-audiomentations actually depends on torch-pitch-shift, but uses its get_fast_shifts feature. So yeah, if you use torch-pitch-shift directly without get_fast_shifts, it'll probably work. |
Good to hear that it works! |
I have the same issue ( Also, the running time dramatically increased after using
|
Pitch shifts are generally pretty intensive operations so I'm not too surprised about the increase in execution time. Regarding speed issues with some pitch shift factors, unfortunately some factors aren't ideal for speed, so the rate of data transfer to the GPU becomes the bottleneck. In your specific case, it may be better to apply cpu-based pitch shift instead. |
That's an interesting use case, AliKarimi95 Note: Although the pitch shift transform in torch-audiomentations can be comparatively fast on GPU, it is slow on CPU. When running pitch shift on CPU, the one in audiomentations is roughly 3x as fast. |
I use PitchShift wih min=-0.9 and max = 1.1, then it raise
No fast pitch-shift ratios could be computed for the given sample rate and transpose range.
. I dont face with this error when use cpu version github. Do you have any plan to fix it?The text was updated successfully, but these errors were encountered: