-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
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.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/numpy/core/function_base.py", line 117, in linspace
num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./MS-SNSD/noisyspeech_synthesizer.py", line 124, in <module>
main(cfg._sections[args.cfg_str])
File "./MS-SNSD/noisyspeech_synthesizer.py", line 47, in main
SNR = np.linspace(snr_lower, snr_upper, total_snrlevels)
File "<__array_function__ internals>", line 6, in linspace
File "/usr/local/lib/python3.6/dist-packages/numpy/core/function_base.py", line 121, in linspace
.format(type(num)))
TypeError: object of type <class 'float'> cannot be safely interpreted as an integer.
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.
aapocketz and mayfly16
Metadata
Metadata
Assignees
Labels
No labels