Open shivasv97 opened 4 years ago
same here
The same was the case for me, in line number 47 just typecast every argument to int, that worked for me like this -
SNR = np.linspace(int(snr_lower), int(snr_upper), int(total_snrlevels))
This PR may work for this issue #11
This bug isn't fixed yet. So anyone working with this follow @NisargBhatt73 suggestion.
Still here. But easy fix. Just make lines 13-15 of noisyspeech_synthesizer.py
into int
. They are only used in for the linspace
function
So:
snr_lower = int(cfg["snr_lower"])
snr_upper = int(cfg["snr_upper"])
total_snrlevels = int(cfg["total_snrlevels"])
There is already a PR for this bug but it seems like this repo is not maintained. https://github.com/microsoft/MS-SNSD/pull/15
Same problem
There seems to be a breaking issue while running the
noisyspeech_synthesizer.py
while running it on Google Colab. Colab has numpy 1.18.5 at the time this issue was posted. This version is installed by default when connecting to a runtime. On following the standard procedure and prerequisites for running this scipt, it gives the following error.However, when the numpy version is downgraded from 1.18.5 to 1.16.4, the script works perfectly fine as it is supposed to.