First, please search previous issues
and the FAQ and be sure this hasn't
been answered elsewhere.
🐛 Bug
/overlap_add.py:8 :
window="hanning" It should be window="hann"
refer to asteroid/dsp/overlap_add.py:31 LambdaOverlapAdd model use file_separate output audio file is All noise
To Reproduce
Steps to reproduce the behavior (code sample and stack trace):
from asteroid.models import ConvTasNet
from asteroid.dsp.overlap_add import LambdaOverlapAdd
import soundfile as sf
import torch
import time
from asteroid.separate import file_separate
nnet = ConvTasNet(n_src=2)
nnet.cuda()
continuous_nnet = LambdaOverlapAdd(
nnet=nnet, # function to apply to each segment.
n_src=2, # number of sources in the output of nnet
window_size=64000, # Size of segmenting window
hop_size=None, # segmentation hop size
window="hann", # Type of the window (see scipy.signal.get_window
reorder_chunks=True, # Whether to reorder each consecutive segment.
enable_grad=False, # Set gradient calculation on of off (see torch.set_grad_enabled)
)
continuous_nnet.cuda()
file_separate(continuous_nnet, "damo/speech_mossformer_separation_temporal_8k/examples/mix_speech1.wav")
Alternatively, if you cannot install Asteroid or have an old version that doesn't have the asteroid-versions script,
please output the output of:
asteroid==0.6.0
asteroid-filterbanks==0.4.0
pytorch-lightning==1.7.7
pytorch-ranger==0.1.1
rotary-embedding-torch==0.2.3
torch==2.0.1
torch-optimizer==0.1.0
torch-stoi==0.1.2
torchaudio==2.0.2
torchmetrics==0.7.3
torchvision==0.15.2
Note: you may need to restart the kernel to use updated packages.
Additional info
Additional info (environment, custom script, etc...)
Before reporting a bug:
First, please search previous issues and the FAQ and be sure this hasn't been answered elsewhere.
🐛 Bug
/overlap_add.py:8 :
window="hanning"
It should bewindow="hann"
refer to asteroid/dsp/overlap_add.py:31 LambdaOverlapAdd model use file_separate output audio file is All noise
To Reproduce
Steps to reproduce the behavior (code sample and stack trace):
mix_speech1.wav.zip
Expected behavior
Environment
Package versions
Run
asteroid-versions
and paste the output here:Alternatively, if you cannot install Asteroid or have an old version that doesn't have the
asteroid-versions
script, please output the output of:Additional info
Additional info (environment, custom script, etc...)