Skip to content

Commit

Permalink
set mono default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Robert Stöter committed Jun 4, 2019
1 parent 3ac2761 commit 3087c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchaudio_contrib/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def __repr__(self):


def Spectrogram(fft_len=2048, hop_len=None, frame_len=None,
window=None, pad=0, pad_mode="reflect", power=1., mono=True, **kwargs):
window=None, pad=0, pad_mode="reflect", power=1., mono=False, **kwargs):
"""
Get spectrogram module.
Expand Down Expand Up @@ -330,7 +330,7 @@ def Spectrogram(fft_len=2048, hop_len=None, frame_len=None,
**kwargs),
ComplexNorm(power))
if mono:
modules.add_module(SpectralDownmix(power))
modules.add_module(DownmixSpectrum())


def Melspectrogram(
Expand Down

0 comments on commit 3087c38

Please sign in to comment.