Closed yalishanda42 closed 3 weeks ago
A simpler fix might be to just convert to str
only for the torchaudio.info(...)
call. Going to try this out now.
Thanks for reporting and trying to fix it. If you can't fix it, another option could be to use AddBackgroundNoise in audiomentations
Hello, I think there is an issue when using
AddBackgroundNoise
. Specifically, no matter whether I supply a list ofPath
s to files, or a list ofstr
s to files, it gives me the same error.I noticed it happends when using CUDA only. When on CPU I cannot reproduce this.Logs:
I checked out the code in the library, specifically
find_audio_files_in_paths
, and saw it converts and saves the file paths it finds/receives asPath
objects always. But the error message says it expects them asstr
objects?Would the issue be fixed if they are kept as
str
and would there be other issues arising from that? I wanted to first check with you, guys, before forking and trying out stuff. If it turns out the fix is that simple I can volunteer to implement it.Versions: Pytorch == 2.1.2 CUDA == 12.1 torch-audiomentations == 0.11.1