Skip to content

Conversation

@ma7555
Copy link

@ma7555 ma7555 commented Aug 15, 2020

fixes this bug

Traceback (most recent call last):
  File "e:/MS-SNSD-master/noisyspeech_synthesizer.py", line 125, in <module>
    main(cfg._sections[args.cfg_str])
  File "e:/MS-SNSD-master/noisyspeech_synthesizer.py", line 48, in main
    SNR = np.linspace(snr_lower, snr_upper, total_snrlevels)
  File "<__array_function__ internals>", line 6, in linspace
  File ".\anaconda3\lib\site-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.

Traceback (most recent call last):
  File "e:/MS-SNSD-master/noisyspeech_synthesizer.py", line 125, in <module>
    main(cfg._sections[args.cfg_str])
  File "e:/MS-SNSD-master/noisyspeech_synthesizer.py", line 48, in main
    SNR = np.linspace(snr_lower, snr_upper, total_snrlevels)
  File "<__array_function__ internals>", line 6, in linspace
  File ".\anaconda3\lib\site-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.
@anupsingh15
Copy link

anupsingh15 commented Dec 9, 2020

While computing SNR, you take the square root of the scalar; shouldn't you avoid it because you are considering the RMS values instead of the power?

@ma7555
Copy link
Author

ma7555 commented Nov 9, 2021

this is the value of SNR levels between lower and upper levels. Can only be an integer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants